Skip to content

Commit

Permalink
Add missing gems in Appraisals
Browse files Browse the repository at this point in the history
  • Loading branch information
yogeshjain999 committed Dec 21, 2022
1 parent 1631d40 commit fab8a7a
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 3 deletions.
7 changes: 6 additions & 1 deletion Appraisals
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
appraise 'rails-app' do
gem 'rails', '6.0.3.1'
gem 'sqlite3', '~> 1.4'
gem "representable"
gem "trailblazer-operation", '>= 0.6.5'
gem "trailblazer-cells"
gem "cells-rails"
gem "cells-erb"
gem "jwt"
end

appraise 'grape-app' do
gem 'grape', '~> 1.5'
gem "zeitwerk", "~> 2.4"
gem "representable"
gem "trailblazer-operation", '>= 0.6.5'
gem "trailblazer-endpoint", path: "../../."

gem "minitest-line", "~> 0.6"
gem "rack-test", "1.1.0"
Expand Down
4 changes: 4 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@ Rake::TestTask.new(:test) do |test|
test.verbose = true
end

# To run grape app's test, run below command
# $ appraisal rails-app rake test-rails-app
Rake::TestTask.new('test-rails-app') do |test|
test.libs << 'test'
test.test_files = FileList['test/rails-app/test/test_helper.rb', 'test/rails-app/test/**/*.rb']
test.verbose = true
end

# To run grape app's test, run below command
# $ appraisal grape-app rake test-grape-app
Rake::TestTask.new('test-grape-app') do |test|
test.libs << 'test'
test.test_files = FileList['test/grape-app/test/test_helper.rb', 'test/grape-app/test/**/*.rb']
Expand Down
5 changes: 3 additions & 2 deletions gemfiles/grape_app.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
source "https://rubygems.org"

gem "multi_json"
gem "minitest-line"
gem "minitest-line", "~> 0.6"
gem "dry-validation"
gem "grape", "~> 1.5"
gem "zeitwerk", "~> 2.4"
gem "rack-test", "1.1.0"
gem "representable"
gem "trailblazer-operation", ">= 0.6.5"
gem "rack-test", "1.1.0"

gemspec path: "../"
17 changes: 17 additions & 0 deletions gemfiles/rails_app.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "multi_json"
gem "minitest-line"
gem "dry-validation"
gem "rails", "6.0.3.1"
gem "sqlite3", "~> 1.4"
gem "representable"
gem "trailblazer-operation", ">= 0.6.5"
gem "trailblazer-cells"
gem "cells-rails"
gem "cells-erb"
gem "jwt"

gemspec path: "../"
2 changes: 2 additions & 0 deletions test/grape-app/app/concepts/album/representer.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'representable'

class Album::Representer < Representable::Decorator
include Representable::JSON

Expand Down
2 changes: 2 additions & 0 deletions test/grape-app/app/concepts/song/representer.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'representable'

class Song::Representer < Representable::Decorator
include Representable::JSON

Expand Down

0 comments on commit fab8a7a

Please sign in to comment.