cells-rails 0.1.5 → 0.1.6

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: 4916833ae2d2693dd38e78c444121139136b2da8c4d75966d6702de6dabd0dc6
4
- data.tar.gz: e5e398a471b93a9209bf6c9c71a63ff82a10b5b6b4625f49590c10e55adb48fd
3
+ metadata.gz: 32b6bfebfdb4b377ce5808a29d990df218deb2ff12047b4c42548ce2876c1fd1
4
+ data.tar.gz: 7e6f0a3fec7e5a8ed644ac11634345e7fef663d8a11016a2e80001ade7ff54f5
5
5
  SHA512:
6
- metadata.gz: ca9dee1a60f406e65a8f98cf23e997a1bfab14a8c0c9c70fc7410f776fa55d08ae63968ee07af266e1936abe0caa02a72e4101e5b98543e411bb7b1e9e410ae1
7
- data.tar.gz: a8cc10e77263454e6f209036de44b782b4064c46d651536b6a0f1af1b56dcd5e8feb8915febd9c21324323affde7871cf89b4e3f08a1aa100cfd3597485c6726
6
+ metadata.gz: 9e8702ffeed72c003f281c00606e61e5b35feff8833f7b7d6a5e6bce96d439b33cddc5c9140b386f4c48c1f9dc92da41633f6ca4fd6733c1b54bb2a5c83d0e94
7
+ data.tar.gz: 33eb42fd51122a0f1aac48f31496a452232bcc157b065780803c9a00e67205389cabb2968d217a5d0c995f3a813f7f705d8d49cbef90cc159c30e365e95d2494
data/.gitignore CHANGED
@@ -11,4 +11,5 @@ tmp
11
11
  .DS_Store
12
12
  log/
13
13
  *.iml
14
- .idea
14
+ .idea
15
+ gemfiles/*.lock
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 2.7.5
data/Appraisals CHANGED
@@ -1,23 +1,23 @@
1
- appraise "6.0" do
2
- gem "railties", "~> 6.0"
3
- gem "activerecord", "~> 6.0"
4
- gem "my_engine", path: "test/rails6.0/engines/my_engine"
1
+ appraise "8.0" do
2
+ gem "railties", "~> 8.0.0"
5
3
  end
6
4
 
7
- appraise "5.2" do
8
- gem "railties", "~> 5.2"
9
- gem "activerecord", "~> 5.2"
10
- gem "my_engine", path: "test/rails5.2/engines/my_engine"
5
+ appraise "7.2" do
6
+ gem "railties", "~> 7.2.0"
7
+ end
8
+
9
+ appraise "7.1" do
10
+ gem "railties", "~> 7.1.0"
11
11
  end
12
12
 
13
- appraise "5.1" do
14
- gem "railties", "~> 5.1.0"
15
- gem "activerecord", "~> 5.1.0"
16
- gem "my_engine", path: "test/rails5.1/engines/my_engine"
13
+ appraise "6.1" do
14
+ gem "railties", "~> 6.1.0"
17
15
  end
18
16
 
19
- appraise "5.0" do
20
- gem "railties", "~> 5.0.0"
21
- gem "activerecord", "~> 5.0.0"
22
- gem "my_engine", path: "test/rails5.0/engines/my_engine"
17
+ appraise "6.0" do
18
+ gem "railties", "~> 6.0"
19
+ end
20
+
21
+ appraise "5.2" do
22
+ gem "railties", "~> 5.2.0"
23
23
  end
data/CHANGES.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.1.6
2
+
3
+ * Rails 8 is supported.
4
+ * Ruby 3.4.0 is supported.
5
+
1
6
  ## 0.1.5
2
7
 
3
8
  * Support for Rails 7.
data/Gemfile CHANGED
@@ -3,13 +3,11 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in cells-rails.gemspec
4
4
  gemspec
5
5
 
6
- # gem "my_engine", path: "engines/my_engine"
7
-
8
- gem 'sass-rails', "~> 6.0.0"
6
+ gem "my_engine", path: "test/dummy/engines/my_engine"
9
7
 
10
8
  group :development, :test do
11
9
  gem "minitest-spec-rails"
12
- gem "capybara_minitest_spec"
10
+ gem "capybara"
13
11
  end
14
12
 
15
13
  gem "simple_form"
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016 Nick Sutterer
3
+ Copyright (c) 2024 Nick Sutterer
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
21
+ THE SOFTWARE.
data/Rakefile CHANGED
@@ -1,13 +1,10 @@
1
1
  require "bundler/gem_tasks"
2
2
  require "rake/testtask"
3
- require 'rails'
4
-
5
- test_folder = Rails.version[0..2]
6
3
 
7
4
  Rake::TestTask.new(:test) do |t|
8
5
  t.libs << "test"
9
6
  t.libs << "lib"
10
- t.test_files = FileList["test/rails#{test_folder}/**/*_test.rb"]
7
+ t.test_files = FileList["test/dummy/**/*_test.rb"]
11
8
  end
12
9
 
13
10
  task :default => :test
data/cells-rails.gemspec CHANGED
@@ -1,31 +1,37 @@
1
- lib = File.expand_path('../lib', __FILE__)
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
2
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
5
  require 'cells/rails/version'
4
6
 
5
7
  Gem::Specification.new do |spec|
6
- spec.name = "cells-rails"
7
- spec.version = Cells::Rails::VERSION
8
- spec.authors = ["Nick Sutterer"]
9
- spec.email = ["apotonick@gmail.com"]
10
- spec.license = "MIT"
8
+ spec.name = 'cells-rails'
9
+ spec.version = Cells::Rails::VERSION
10
+ spec.authors = ['Nick Sutterer']
11
+ spec.email = ['apotonick@gmail.com']
12
+ spec.license = 'MIT'
11
13
 
12
- spec.summary = %q{Convenient Rails support for Cells.}
13
- spec.homepage = "http://trailblazer.to"
14
+ spec.summary = 'Convenient Rails support for Cells.'
15
+ spec.homepage = 'https://trailblazer.to'
14
16
 
15
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
16
- spec.bindir = "exe"
17
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
18
- spec.require_paths = ["lib"]
17
+ spec.metadata['homepage_uri'] = spec.homepage
18
+ spec.metadata['source_code_uri'] = 'https://github.com/trailblazer/cells-rails'
19
+ spec.metadata['bug_tracker_uri'] = "#{spec.metadata['source_code_uri']}/issues"
20
+ spec.metadata['changelog_uri'] = "#{spec.metadata['source_code_uri']}/blob/HEAD/CHANGES.md"
21
+ spec.metadata['documentation_uri'] = 'https://trailblazer.to/2.1/docs/cells#cells-rails'
19
22
 
20
- spec.add_dependency "cells", ">= 4.1.6", "< 5.0.0"
21
- spec.add_dependency "actionpack", ">= 5.0"
23
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|\.github)/}) }
24
+ spec.require_paths = ['lib']
22
25
 
26
+ spec.add_dependency 'actionpack', '>= 5.0'
27
+ spec.add_dependency 'cells', '>= 4.1.6', '< 5.0.0'
23
28
 
24
- spec.add_development_dependency "bundler"
25
- spec.add_development_dependency "rake"
26
- spec.add_development_dependency "minitest"
27
- spec.add_development_dependency "rails"
28
- spec.add_development_dependency "cells-erb"
29
- spec.add_development_dependency "sass-rails"
30
- spec.add_development_dependency "appraisal"
29
+ spec.add_development_dependency 'appraisal'
30
+ spec.add_development_dependency 'bundler'
31
+ spec.add_development_dependency 'cells-erb'
32
+ spec.add_development_dependency 'minitest'
33
+ spec.add_development_dependency 'rails'
34
+ spec.add_development_dependency 'rake'
35
+ spec.add_development_dependency 'sass-rails'
36
+ spec.add_development_dependency 'debug'
31
37
  end
data/gemfiles/5.2.gemfile CHANGED
@@ -2,16 +2,14 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "sass-rails", "~> 6.0.0"
5
+ gem "my_engine", path: "../test/dummy/engines/my_engine"
6
6
  gem "simple_form"
7
7
  gem "formtastic"
8
- gem "railties", "~> 5.2"
9
- gem "activerecord", "~> 5.2"
10
- gem "my_engine", path: "../test/rails5.2/engines/my_engine"
8
+ gem "railties", "~> 5.2.0"
11
9
 
12
10
  group :development, :test do
13
11
  gem "minitest-spec-rails"
14
- gem "capybara_minitest_spec"
12
+ gem "capybara"
15
13
  end
16
14
 
17
15
  gemspec path: "../"
data/gemfiles/6.0.gemfile CHANGED
@@ -2,16 +2,14 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "sass-rails", "~> 6.0.0"
5
+ gem "my_engine", path: "../test/dummy/engines/my_engine"
6
6
  gem "simple_form"
7
7
  gem "formtastic"
8
- gem "railties", "~> 6.0.0"
9
- gem "activerecord", "~> 6.0.0"
10
- gem "my_engine", path: "../test/rails6.0/engines/my_engine"
8
+ gem "railties", "~> 6.0"
11
9
 
12
10
  group :development, :test do
13
11
  gem "minitest-spec-rails"
14
- gem "capybara_minitest_spec"
12
+ gem "capybara"
15
13
  end
16
14
 
17
15
  gemspec path: "../"
@@ -2,16 +2,14 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "sass-rails", "~> 6.0"
5
+ gem "my_engine", path: "../test/dummy/engines/my_engine"
6
6
  gem "simple_form"
7
7
  gem "formtastic"
8
- gem "railties", "~> 7.0.0"
9
- gem "activerecord", "~> 7.0.0"
10
- gem "my_engine", path: "../test/rails7.0/engines/my_engine"
8
+ gem "railties", "~> 6.1.0"
11
9
 
12
10
  group :development, :test do
13
11
  gem "minitest-spec-rails"
14
- gem "capybara_minitest_spec"
12
+ gem "capybara"
15
13
  end
16
14
 
17
15
  gemspec path: "../"
@@ -2,16 +2,14 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "sass-rails", "~> 6.0.0"
5
+ gem "my_engine", path: "../test/dummy/engines/my_engine"
6
6
  gem "simple_form"
7
7
  gem "formtastic"
8
- gem "railties", "~> 5.0.0"
9
- gem "activerecord", "~> 5.0.0"
10
- gem "my_engine", path: "../test/rails5.0/engines/my_engine"
8
+ gem "railties", "~> 7.1.0"
11
9
 
12
10
  group :development, :test do
13
11
  gem "minitest-spec-rails"
14
- gem "capybara_minitest_spec"
12
+ gem "capybara"
15
13
  end
16
14
 
17
15
  gemspec path: "../"
@@ -2,16 +2,14 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "sass-rails", "~> 6.0.0"
5
+ gem "my_engine", path: "../test/dummy/engines/my_engine"
6
6
  gem "simple_form"
7
7
  gem "formtastic"
8
- gem "railties", "~> 5.1.0"
9
- gem "activerecord", "~> 5.1.0"
10
- gem "my_engine", path: "../test/rails5.1/engines/my_engine"
8
+ gem "railties", "~> 7.2.0"
11
9
 
12
10
  group :development, :test do
13
11
  gem "minitest-spec-rails"
14
- gem "capybara_minitest_spec"
12
+ gem "capybara"
15
13
  end
16
14
 
17
15
  gemspec path: "../"
@@ -0,0 +1,15 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "my_engine", path: "../test/dummy/engines/my_engine"
6
+ gem "simple_form"
7
+ gem "formtastic"
8
+ gem "railties", "~> 8.0.0"
9
+
10
+ group :development, :test do
11
+ gem "minitest-spec-rails"
12
+ gem "capybara"
13
+ end
14
+
15
+ gemspec path: "../"
@@ -2,7 +2,7 @@ module Cell
2
2
  module RailsExtensions
3
3
  # This modules overrides Cell::Testing#controller_for and provides Rails-specific logic.
4
4
  module Testing
5
- RAILS_8_0 = Gem::Version.new("8.0.0")
5
+ RAILS_9_0 = Gem::Version.new("9.0.0")
6
6
  RAILS_5_1 = Gem::Version.new("5.1.0")
7
7
  RAILS_5_0 = Gem::Version.new("5.0.0")
8
8
 
@@ -18,7 +18,7 @@ module Cell
18
18
  def action_controller_test_request(controller_class)
19
19
  version = ::Rails.gem_version
20
20
 
21
- if version >= RAILS_5_1 && version < RAILS_8_0
21
+ if version >= RAILS_5_1 && version < RAILS_9_0
22
22
  ::ActionController::TestRequest.create(controller_class)
23
23
  elsif version >= RAILS_5_0 && version < RAILS_5_1
24
24
  ::ActionController::TestRequest.create
@@ -1,5 +1,5 @@
1
1
  module Cells
2
2
  module Rails
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cells-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-12 00:00:00.000000000 Z
11
+ date: 2024-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: actionpack
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '5.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '5.0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: cells
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -31,19 +45,19 @@ dependencies:
31
45
  - !ruby/object:Gem::Version
32
46
  version: 5.0.0
33
47
  - !ruby/object:Gem::Dependency
34
- name: actionpack
48
+ name: appraisal
35
49
  requirement: !ruby/object:Gem::Requirement
36
50
  requirements:
37
51
  - - ">="
38
52
  - !ruby/object:Gem::Version
39
- version: '5.0'
40
- type: :runtime
53
+ version: '0'
54
+ type: :development
41
55
  prerelease: false
42
56
  version_requirements: !ruby/object:Gem::Requirement
43
57
  requirements:
44
58
  - - ">="
45
59
  - !ruby/object:Gem::Version
46
- version: '5.0'
60
+ version: '0'
47
61
  - !ruby/object:Gem::Dependency
48
62
  name: bundler
49
63
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +73,7 @@ dependencies:
59
73
  - !ruby/object:Gem::Version
60
74
  version: '0'
61
75
  - !ruby/object:Gem::Dependency
62
- name: rake
76
+ name: cells-erb
63
77
  requirement: !ruby/object:Gem::Requirement
64
78
  requirements:
65
79
  - - ">="
@@ -101,7 +115,7 @@ dependencies:
101
115
  - !ruby/object:Gem::Version
102
116
  version: '0'
103
117
  - !ruby/object:Gem::Dependency
104
- name: cells-erb
118
+ name: rake
105
119
  requirement: !ruby/object:Gem::Requirement
106
120
  requirements:
107
121
  - - ">="
@@ -129,7 +143,7 @@ dependencies:
129
143
  - !ruby/object:Gem::Version
130
144
  version: '0'
131
145
  - !ruby/object:Gem::Dependency
132
- name: appraisal
146
+ name: debug
133
147
  requirement: !ruby/object:Gem::Requirement
134
148
  requirements:
135
149
  - - ">="
@@ -149,8 +163,8 @@ executables: []
149
163
  extensions: []
150
164
  extra_rdoc_files: []
151
165
  files:
152
- - ".github/workflows/ci.yml"
153
166
  - ".gitignore"
167
+ - ".tool-versions"
154
168
  - Appraisals
155
169
  - CHANGES.md
156
170
  - Gemfile
@@ -158,11 +172,12 @@ files:
158
172
  - README.md
159
173
  - Rakefile
160
174
  - cells-rails.gemspec
161
- - gemfiles/5.0.gemfile
162
- - gemfiles/5.1.gemfile
163
175
  - gemfiles/5.2.gemfile
164
176
  - gemfiles/6.0.gemfile
165
- - gemfiles/7.0.gemfile
177
+ - gemfiles/6.1.gemfile
178
+ - gemfiles/7.1.gemfile
179
+ - gemfiles/7.2.gemfile
180
+ - gemfiles/8.0.gemfile
166
181
  - lib/cell/caching/notification.rb
167
182
  - lib/cell/helper/asset_helper.rb
168
183
  - lib/cell/rails.rb
@@ -189,10 +204,15 @@ files:
189
204
  - lib/rails/generators/test_unit/cell/templates/unit_test.rb.erb
190
205
  - lib/rails/generators/test_unit/concept/concept_generator.rb
191
206
  - lib/rails/generators/test_unit/concept/templates/unit_test.rb.erb
192
- homepage: http://trailblazer.to
207
+ homepage: https://trailblazer.to
193
208
  licenses:
194
209
  - MIT
195
- metadata: {}
210
+ metadata:
211
+ homepage_uri: https://trailblazer.to
212
+ source_code_uri: https://github.com/trailblazer/cells-rails
213
+ bug_tracker_uri: https://github.com/trailblazer/cells-rails/issues
214
+ changelog_uri: https://github.com/trailblazer/cells-rails/blob/HEAD/CHANGES.md
215
+ documentation_uri: https://trailblazer.to/2.1/docs/cells#cells-rails
196
216
  post_install_message:
197
217
  rdoc_options: []
198
218
  require_paths:
@@ -208,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
208
228
  - !ruby/object:Gem::Version
209
229
  version: '0'
210
230
  requirements: []
211
- rubygems_version: 3.0.3.1
231
+ rubygems_version: 3.2.3
212
232
  signing_key:
213
233
  specification_version: 4
214
234
  summary: Convenient Rails support for Cells.
@@ -1,40 +0,0 @@
1
- name: CI
2
- on: [push, pull_request]
3
- jobs:
4
- test:
5
- strategy:
6
- fail-fast: false
7
- matrix:
8
- # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
9
- ruby: [2.5, 2.6, 2.7, '3.0', 3.1, head]
10
- gemfile:
11
- - gemfiles/7.0.gemfile
12
- - gemfiles/6.0.gemfile
13
- - gemfiles/5.2.gemfile
14
- exclude:
15
- - ruby: 2.5
16
- gemfile: gemfiles/7.0.gemfile
17
- - ruby: 2.6
18
- gemfile: gemfiles/7.0.gemfile
19
- - ruby: 3.0
20
- gemfile: gemfiles/5.2.gemfile
21
- - ruby: 3.1
22
- gemfile: gemfiles/5.2.gemfile
23
- - ruby: 3.1
24
- gemfile: gemfiles/6.0.gemfile
25
- - ruby: head
26
- gemfile: gemfiles/5.2.gemfile
27
- - ruby: head
28
- gemfile: gemfiles/6.0.gemfile
29
-
30
- runs-on: ubuntu-latest
31
- env:
32
- BUNDLE_GEMFILE: ${{ matrix.gemfile }}
33
-
34
- steps:
35
- - uses: actions/checkout@v2
36
- - uses: ruby/setup-ruby@v1
37
- with:
38
- ruby-version: ${{ matrix.ruby }}
39
- bundler-cache: true # runs 'bundle install' and caches installed gems automatically
40
- - run: bundle exec rake