action_args 2.6.0 → 2.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8be56bb5bd7e6183a1f68f1cfeb7baa5da32287d11a50dddc53248561755ee1c
4
- data.tar.gz: 14b0d9da9608f4d0cdc465039d202eb35eabb2abe7471f12cdf28af205d0bd01
3
+ metadata.gz: 0f39ce97090f0a421ac97075c9282d1dd644bd6bf3b065ac79ae5ad3c6900793
4
+ data.tar.gz: 6ae6f79d371088a28d87e06ccf3ee5ef8c77e75e87f4ba81953f1c9c9f381d27
5
5
  SHA512:
6
- metadata.gz: 4a112b0b811700d98a8f5c65958d1f9566b0401bcb885bcd160f2d6d7fdcbbc47b55b72e8b3258f9f3c6a461e3256e5d4c97409fe2ccc3373fbdb2deb5db55d4
7
- data.tar.gz: d10fdf287ee66df67eee06cfd9c515bbaab7567cac69a84dbbdf11732ca86609ecafc7d437e3e2c89dff9b4001f9757edc4887061cc5d0c3d606d68629850ed6
6
+ metadata.gz: 2e6b7373af88aea4dd76f04e97fdae2b84761d46a212f3738499beac00ccd1e24a1bf639a370c28381fa52ebf7d21d926088e2726a0ecb65ede0bb9d5823e512
7
+ data.tar.gz: b310e7647093de316c5eeeee0464d29306531f1211eb14d79709b84a51da79ea953f02d234b2af8422026ce923868a54c710db5f4c618c553fd5e983c6b3fd58
@@ -0,0 +1,58 @@
1
+ name: build
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ build:
7
+ strategy:
8
+ matrix:
9
+ ruby_version: [ruby-head, '3.1', '3.0', '2.7', 'jruby']
10
+ rails_version: [edge, '7.0', '6.1', '6.0']
11
+
12
+ include:
13
+ - ruby_version: '2.6'
14
+ rails_version: '6.1'
15
+ - ruby_version: '2.6'
16
+ rails_version: '6.0'
17
+ - ruby_version: '2.6'
18
+ rails_version: '5.2'
19
+ - ruby_version: '2.6'
20
+ rails_version: '5.1'
21
+ - ruby_version: '2.6'
22
+ rails_version: '5.0'
23
+
24
+ - ruby_version: '2.5'
25
+ rails_version: '6.1'
26
+ - ruby_version: '2.5'
27
+ rails_version: '5.2'
28
+
29
+ - ruby_version: '2.4'
30
+ rails_version: '5.2'
31
+
32
+ - ruby_version: '2.3'
33
+ rails_version: '5.2'
34
+
35
+ - ruby_version: '2.2'
36
+ rails_version: '4.2'
37
+ - ruby_version: '2.2'
38
+ rails_version: '4.1'
39
+
40
+ - ruby_version: '2.1'
41
+ rails_version: '4.2'
42
+
43
+ runs-on: ubuntu-latest
44
+
45
+ env:
46
+ RAILS_VERSION: ${{ matrix.rails_version }}
47
+
48
+ steps:
49
+ - uses: actions/checkout@v2
50
+
51
+ - uses: ruby/setup-ruby@v1
52
+ with:
53
+ ruby-version: ${{ matrix.ruby_version }}
54
+ bundler-cache: true
55
+ continue-on-error: ${{ (matrix.ruby_version == 'ruby-head') || (matrix.ruby_version == 'jruby') || (matrix.rails_version == 'edge') }}
56
+
57
+ - run: bundle exec rake
58
+ continue-on-error: ${{ (matrix.ruby_version == 'ruby-head') || (matrix.ruby_version == 'jruby') || (matrix.rails_version == 'edge') }}
data/Gemfile CHANGED
@@ -4,3 +4,26 @@ source 'https://rubygems.org'
4
4
 
5
5
  # Specify your gem's dependencies in action_args.gemspec
6
6
  gemspec
7
+
8
+ if ENV['RAILS_VERSION'] == 'edge'
9
+ gem 'rails', git: 'https://github.com/rails/rails.git'
10
+ elsif ENV['RAILS_VERSION']
11
+ gem 'rails', "~> #{ENV['RAILS_VERSION']}.0"
12
+ else
13
+ gem 'rails'
14
+ end
15
+
16
+ rails_version = ENV['RAILS_VERSION'] || '∞'
17
+
18
+ platforms :ruby do
19
+ gem 'sqlite3', rails_version >= '5.1' ? '>= 1.4' : '< 1.4'
20
+ end
21
+ platforms :jruby do
22
+ gem 'activerecord-jdbcsqlite3-adapter'
23
+ end
24
+
25
+ gem 'nokogiri', RUBY_VERSION < '2.1' ? '~> 1.6.0' : '>= 1.7'
26
+
27
+ gem 'selenium-webdriver' if rails_version >= '6.1'
28
+
29
+ gem 'net-smtp' if RUBY_VERSION >= '3.1'
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # action_args
2
- [![Build Status](https://travis-ci.org/asakusarb/action_args.svg?branch=master)](https://travis-ci.org/asakusarb/action_args)
2
+ [![Build Status](https://github.com/asakusarb/action_args/actions/workflows/main.yml/badge.svg)](https://github.com/asakusarb/action_args/actions)
3
3
 
4
4
  Controller action arguments parameterizer for Rails
5
5
 
@@ -249,7 +249,7 @@ You may notice that
249
249
 
250
250
  * Ruby 2.0.0, 2.1.x, 2.2.x, 2.3.x, 2.4.x, 2.5.x, 2.6.x, 2.7.x, 3.0.x, 3.1 (trunk), JRuby, & Rubinius with 2.0+ mode
251
251
 
252
- * Rails 4.1.x, 4.2.x, 5.0, 5.1, 5.2, 6.0, 6.1, 7.0 (edge)
252
+ * Rails 4.1.x, 4.2.x, 5.0, 5.1, 5.2, 6.0, 6.1, 7.0, 7.1 (edge)
253
253
 
254
254
  For Rails 4.0.x, please use Version 1.5.4.
255
255
 
data/Rakefile CHANGED
@@ -10,22 +10,4 @@ Rake::TestTask.new do |t|
10
10
  t.verbose = true
11
11
  end
12
12
 
13
- task :default => 'test:all'
14
-
15
- namespace :test do
16
- %w(rails_41 rails_42 rails_edge).each do |gemfile|
17
- desc "Run Tests against #{gemfile}"
18
- task gemfile do
19
- sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
20
- sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake -t test"
21
- end
22
- end
23
-
24
- desc 'Run Tests against all Rails versions'
25
- task :all do
26
- %w(rails_41 rails_42 rails_edge).each do |gemfile|
27
- sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
28
- sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake -t test"
29
- end
30
- end
31
- end
13
+ task default: :test
@@ -4,73 +4,79 @@ using ActionArgs::ParamsHandler
4
4
 
5
5
  module ActionArgs
6
6
  module ActiveSupport
7
- # For Rails >= 5.1
8
- module CallbackParameterizer
9
- # Extending AS::Callbacks::Callback's `make_lambda` not just to call specified
10
- # method but to call the method with method parameters taken from `params`.
11
- # This would happen only when
12
- # * the target object is_a ActionController object
13
- # * the filter was not defined via lambda
14
- def make_lambda
15
- lambda do |target, value, &block|
16
- target, block, method, *arguments = expand(target, value, block)
17
-
18
- if (ActionController::Base === target) && (method != :instance_exec) && arguments.empty?
19
- target.strengthen_params! method
20
- arguments, keyword_arguments = target.extract_method_arguments_from_params method
21
- if keyword_arguments.any?
22
- target.send(method, *arguments, **keyword_arguments, &block)
23
- else
24
- target.send(method, *arguments, &block)
7
+ if Rails::VERSION::MAJOR >= 7
8
+ module CallTemplate
9
+ module MethodCallParameterizer
10
+ def make_lambda
11
+ lambda do |target, value, &block|
12
+ if ActionController::Base === target
13
+ target.strengthen_params! @method_name
14
+ arguments, keyword_arguments = target.extract_method_arguments_from_params @method_name
15
+ if keyword_arguments.any?
16
+ target.send(@method_name, *arguments, **keyword_arguments, &block)
17
+ else
18
+ target.send(@method_name, *arguments, &block)
19
+ end
20
+ else
21
+ target.send(@method_name, &block)
22
+ end
25
23
  end
26
- else
27
- target.send(method, *arguments, &block)
28
24
  end
29
25
  end
30
26
  end
31
- end
27
+ ::ActiveSupport::Callbacks::CallTemplate::MethodCall.prepend ActionArgs::ActiveSupport::CallTemplate::MethodCallParameterizer
28
+ elsif Rails.version >= '5.1'
29
+ module CallbackParameterizer
30
+ # Extending AS::Callbacks::Callback's `make_lambda` not just to call specified
31
+ # method but to call the method with method parameters taken from `params`.
32
+ # This would happen only when
33
+ # * the target object is_a ActionController object
34
+ # * the filter was not defined via lambda
35
+ def make_lambda
36
+ lambda do |target, value, &block|
37
+ target, block, method, *arguments = expand(target, value, block)
32
38
 
33
- # For Rails 4 & 5.0
34
- module CallbackParameterizerLegacy
35
- # Extending AS::Callbacks::Callback's `make_lambda` not just to call specified
36
- # method but to call the method with method parameters taken from `params`.
37
- # This would happen only when
38
- # * the filter was defined in Symbol form
39
- # * the target object is_a ActionController object
40
- def make_lambda(filter)
41
- if Symbol === filter
42
- lambda do |target, _, &blk|
43
- if ActionController::Base === target
44
- target.strengthen_params! filter
45
- values, kwargs_values = target.extract_method_arguments_from_params filter
46
- values << kwargs_values if kwargs_values.any?
47
- target.send filter, *values, &blk
39
+ if (ActionController::Base === target) && (method != :instance_exec) && arguments.empty?
40
+ target.strengthen_params! method
41
+ arguments, keyword_arguments = target.extract_method_arguments_from_params method
42
+ if keyword_arguments.any?
43
+ target.send(method, *arguments, **keyword_arguments, &block)
44
+ else
45
+ target.send(method, *arguments, &block)
46
+ end
48
47
  else
49
- target.send filter, &blk
48
+ target.send(method, *arguments, &block)
50
49
  end
51
50
  end
52
- else
53
- super
54
51
  end
55
52
  end
56
- end
57
- end
58
- end
59
-
60
- if Rails.version >= '5.1'
61
- module ActiveSupport
62
- module Callbacks
63
- class CallTemplate
64
- prepend ActionArgs::ActiveSupport::CallbackParameterizer
65
- end
66
- end
67
- end
68
- else
69
- module ActiveSupport
70
- module Callbacks
71
- class Callback
72
- prepend ActionArgs::ActiveSupport::CallbackParameterizerLegacy
53
+ ::ActiveSupport::Callbacks::CallTemplate.prepend ActionArgs::ActiveSupport::CallbackParameterizer
54
+ else
55
+ # For Rails 4 & 5.0
56
+ module CallbackParameterizerLegacy
57
+ # Extending AS::Callbacks::Callback's `make_lambda` not just to call specified
58
+ # method but to call the method with method parameters taken from `params`.
59
+ # This would happen only when
60
+ # * the filter was defined in Symbol form
61
+ # * the target object is_a ActionController object
62
+ def make_lambda(filter)
63
+ if Symbol === filter
64
+ lambda do |target, _, &blk|
65
+ if ActionController::Base === target
66
+ target.strengthen_params! filter
67
+ values, kwargs_values = target.extract_method_arguments_from_params filter
68
+ values << kwargs_values if kwargs_values.any?
69
+ target.send filter, *values, &blk
70
+ else
71
+ target.send filter, &blk
72
+ end
73
+ end
74
+ else
75
+ super
76
+ end
77
+ end
73
78
  end
79
+ ::ActiveSupport::Callbacks::Callback.prepend ActionArgs::ActiveSupport::CallbackParameterizerLegacy
74
80
  end
75
81
  end
76
82
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActionArgs
4
- VERSION = '2.6.0'
4
+ VERSION = '2.7.2'
5
5
  end
@@ -0,0 +1,51 @@
1
+ class <%= controller_class_name %>Controller < ApplicationController
2
+ <% if defined? ActionController::StrongParameters -%>
3
+ permits <%= attributes.map {|a| ":#{a.name}" }.join(', ') %>
4
+
5
+ <% end -%>
6
+ # GET <%= route_url %>
7
+ def index
8
+ @<%= plural_table_name %> = <%= orm_class.all(class_name) %>
9
+
10
+ render json: <%= "@#{plural_table_name}" %>
11
+ end
12
+
13
+ # GET <%= route_url %>/1
14
+ def show(id)
15
+ @<%= singular_table_name %> = <%= orm_class.find(class_name, 'id') %>
16
+
17
+ render json: <%= "@#{singular_table_name}" %>
18
+ end
19
+
20
+ # POST <%= route_url %>
21
+ def create(<%= singular_table_name %>)
22
+ @<%= singular_table_name %> = <%= orm_class.build(class_name, singular_table_name) %>
23
+
24
+ if @<%= orm_instance.save %>
25
+ render json: <%= "@#{singular_table_name}" %>, status: :created, location: <%= "@#{singular_table_name}" %>
26
+ else
27
+ render json: <%= "@#{orm_instance.errors}" %>, status: :unprocessable_entity
28
+ end
29
+ end
30
+
31
+ # PATCH/PUT <%= route_url %>/1
32
+ def update(id, <%= singular_table_name %>)
33
+ @<%= singular_table_name %> = <%= orm_class.find(class_name, 'id') %>
34
+
35
+ <% if orm_instance.respond_to? :update -%>
36
+ if @<%= orm_instance.update(singular_table_name) %>
37
+ <% else -%>
38
+ if @<%= orm_instance.update_attributes(singular_table_name) %>
39
+ <% end -%>
40
+ render json: <%= "@#{singular_table_name}" %>
41
+ else
42
+ render json: <%= "@#{orm_instance.errors}" %>, status: :unprocessable_entity
43
+ end
44
+ end
45
+
46
+ # DELETE <%= route_url %>/1
47
+ def destroy(id)
48
+ @<%= singular_table_name %> = <%= orm_class.find(class_name, 'id') %>
49
+ @<%= orm_instance.destroy %>
50
+ end
51
+ end
@@ -30,11 +30,11 @@ class <%= controller_class_name %>Controller < ApplicationController
30
30
  if @<%= orm_instance.save %>
31
31
  redirect_to @<%= singular_table_name %>, notice: '<%= human_name %> was successfully created.'
32
32
  else
33
- render :new
33
+ render :new, status: :unprocessable_entity
34
34
  end
35
35
  end
36
36
 
37
- # PUT <%= route_url %>/1
37
+ # PATCH/PUT <%= route_url %>/1
38
38
  def update(id, <%= singular_table_name %>)
39
39
  @<%= singular_table_name %> = <%= orm_class.find(class_name, 'id') %>
40
40
 
@@ -45,7 +45,7 @@ class <%= controller_class_name %>Controller < ApplicationController
45
45
  <% end -%>
46
46
  redirect_to @<%= singular_table_name %>, notice: '<%= human_name %> was successfully updated.'
47
47
  else
48
- render :edit
48
+ render :edit, status: :unprocessable_entity
49
49
  end
50
50
  end
51
51
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_args
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akira Matsuda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-05 00:00:00.000000000 Z
11
+ date: 2022-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -59,28 +59,21 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
+ - ".github/workflows/main.yml"
62
63
  - ".gitignore"
63
- - ".travis.yml"
64
64
  - CONTRIBUTING.md
65
65
  - Gemfile
66
66
  - MIT-LICENSE
67
67
  - README.md
68
68
  - Rakefile
69
69
  - action_args.gemspec
70
- - gemfiles/rails_41.gemfile
71
- - gemfiles/rails_42.gemfile
72
- - gemfiles/rails_50.gemfile
73
- - gemfiles/rails_51.gemfile
74
- - gemfiles/rails_52.gemfile
75
- - gemfiles/rails_60.gemfile
76
- - gemfiles/rails_61.gemfile
77
- - gemfiles/rails_edge.gemfile
78
70
  - lib/action_args.rb
79
71
  - lib/action_args/abstract_controller.rb
80
72
  - lib/action_args/callbacks.rb
81
73
  - lib/action_args/params_handler.rb
82
74
  - lib/action_args/version.rb
83
75
  - lib/generators/rails/action_args_scaffold_controller_generator.rb
76
+ - lib/generators/rails/templates/api_controller.rb
84
77
  - lib/generators/rails/templates/controller.rb
85
78
  homepage: http://asakusa.rubyist.net/
86
79
  licenses:
@@ -102,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
95
  - !ruby/object:Gem::Version
103
96
  version: '0'
104
97
  requirements: []
105
- rubygems_version: 3.2.15
98
+ rubygems_version: 3.4.0.dev
106
99
  signing_key:
107
100
  specification_version: 4
108
101
  summary: Controller action arguments parameterizer for Rails 4+ & Ruby 2.0+
data/.travis.yml DELETED
@@ -1,78 +0,0 @@
1
- script: 'bundle exec rake -t test'
2
- language: ruby
3
-
4
- cache: bundler
5
-
6
- before_install:
7
- - "ruby -e 'exit RUBY_VERSION.to_f >= 2.3' && gem up --system || (gem i rubygems-update -v '<3' && update_rubygems)"
8
- - gem up bundler
9
-
10
- # rvm:
11
- # - 2.6.7
12
- # - 2.5.9
13
- # - 2.4.10
14
- # - 2.3.8
15
- # - 2.2.10
16
- # - 2.1.10
17
- # - 2.0.0
18
- # - ruby-head
19
- # gemfile:
20
- # - gemfiles/rails_52.gemfile
21
- # - gemfiles/rails_51.gemfile
22
- # - gemfiles/rails_50.gemfile
23
- # - gemfiles/rails_42.gemfile
24
- # - gemfiles/rails_41.gemfile
25
- # - gemfiles/rails_edge.gemfile
26
-
27
- matrix:
28
- include:
29
- - rvm: 3.0.1
30
- gemfile: gemfiles/rails_61.gemfile
31
- - rvm: 3.0.1
32
- gemfile: gemfiles/rails_60.gemfile
33
- - rvm: 3.0.1
34
- gemfile: gemfiles/rails_edge.gemfile
35
- - rvm: 2.7.3
36
- gemfile: gemfiles/rails_61.gemfile
37
- - rvm: 2.7.3
38
- gemfile: gemfiles/rails_edge.gemfile
39
- - rvm: 2.6.7
40
- gemfile: gemfiles/rails_61.gemfile
41
- - rvm: 2.6.7
42
- gemfile: gemfiles/rails_52.gemfile
43
- - rvm: 2.6.7
44
- gemfile: gemfiles/rails_51.gemfile
45
- - rvm: 2.6.7
46
- gemfile: gemfiles/rails_50.gemfile
47
- - rvm: 2.5.9
48
- gemfile: gemfiles/rails_61.gemfile
49
- - rvm: 2.5.9
50
- gemfile: gemfiles/rails_52.gemfile
51
- - rvm: 2.4.10
52
- gemfile: gemfiles/rails_52.gemfile
53
- - rvm: 2.3.8
54
- gemfile: gemfiles/rails_52.gemfile
55
- - rvm: 2.2.10
56
- gemfile: gemfiles/rails_42.gemfile
57
- - rvm: 2.2.10
58
- gemfile: gemfiles/rails_41.gemfile
59
- - rvm: 2.1.10
60
- gemfile: gemfiles/rails_42.gemfile
61
- - rvm: 2.0.0
62
- gemfile: gemfiles/rails_42.gemfile
63
-
64
- - rvm: ruby-head
65
- gemfile: gemfiles/rails_61.gemfile
66
- - rvm: ruby-head
67
- gemfile: gemfiles/rails_edge.gemfile
68
-
69
- - rvm: jruby-9.2.17.0
70
- gemfile: gemfiles/rails_52.gemfile
71
- - rvm: rubinius-3
72
- gemfile: gemfiles/rails_52.gemfile
73
-
74
- allow_failures:
75
- - rvm: ruby-head
76
- - rvm: jruby-9.2.17.0
77
- - rvm: rubinius-3
78
- - gemfile: gemfiles/rails_edge.gemfile
@@ -1,16 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gem 'rails', '~> 4.1.0'
6
- gem 'nokogiri', RUBY_VERSION < '2.1' ? '~> 1.6.0' : '>= 1.7'
7
-
8
- gemspec :path => '../'
9
-
10
- platforms :ruby do
11
- gem 'sqlite3', '~> 1.3.6'
12
- end
13
-
14
- platforms :jruby do
15
- gem 'activerecord-jdbcsqlite3-adapter'
16
- end
@@ -1,16 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gem 'rails', '~> 4.2.0'
6
- gem 'nokogiri', RUBY_VERSION < '2.1' ? '~> 1.6.0' : '>= 1.7'
7
-
8
- gemspec :path => '../'
9
-
10
- platforms :ruby do
11
- gem 'sqlite3', '~> 1.3.6'
12
- end
13
-
14
- platforms :jruby do
15
- gem 'activerecord-jdbcsqlite3-adapter'
16
- end
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gem 'rails', '~> 5.0.1'
6
-
7
- gemspec :path => '../'
8
-
9
- platforms :ruby do
10
- gem 'sqlite3', '~> 1.3.6'
11
- end
12
-
13
- platforms :jruby do
14
- gem 'activerecord-jdbcsqlite3-adapter'
15
- end
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gem 'rails', '~> 5.1.0'
6
-
7
- gemspec :path => '../'
8
-
9
- platforms :ruby do
10
- gem 'sqlite3', '~> 1.3.6'
11
- end
12
-
13
- platforms :jruby do
14
- gem 'activerecord-jdbcsqlite3-adapter'
15
- end
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gem 'rails', '~> 5.2.0'
6
-
7
- gemspec :path => '../'
8
-
9
- platforms :ruby do
10
- gem 'sqlite3', '~> 1.3.6'
11
- end
12
-
13
- platforms :jruby do
14
- gem 'activerecord-jdbcsqlite3-adapter'
15
- end
@@ -1,16 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gem 'rails', '~> 6.0.0'
6
- gem 'selenium-webdriver'
7
-
8
- gemspec path: '../'
9
-
10
- platforms :ruby do
11
- gem 'sqlite3'
12
- end
13
-
14
- platforms :jruby do
15
- gem 'activerecord-jdbcsqlite3-adapter'
16
- end
@@ -1,16 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gem 'rails', '~> 6.1.0'
6
- gem 'selenium-webdriver'
7
-
8
- gemspec path: '../'
9
-
10
- platforms :ruby do
11
- gem 'sqlite3'
12
- end
13
-
14
- platforms :jruby do
15
- gem 'activerecord-jdbcsqlite3-adapter'
16
- end
@@ -1,20 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
- git_source(:github) do |repo_name|
5
- repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
6
- "https://github.com/#{repo_name}.git"
7
- end
8
-
9
- gem 'rails', github: 'rails/rails'
10
- gem 'selenium-webdriver'
11
-
12
- gemspec :path => '../'
13
-
14
- platforms :ruby do
15
- gem 'sqlite3'
16
- end
17
-
18
- platforms :jruby do
19
- gem 'activerecord-jdbcsqlite3-adapter'
20
- end