inertia_rails 3.1.2 → 3.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/push.yml +7 -13
- data/CHANGELOG.md +9 -0
- data/Gemfile +3 -0
- data/inertia_rails.gemspec +1 -2
- data/lib/inertia_rails/rspec.rb +1 -0
- data/lib/inertia_rails/version.rb +1 -1
- metadata +4 -24
- data/Appraisals +0 -19
- data/gemfiles/rails_5.1.gemfile +0 -7
- data/gemfiles/rails_5.2.gemfile +0 -7
- data/gemfiles/rails_6.0.gemfile +0 -7
- data/gemfiles/rails_6.1.gemfile +0 -7
- data/gemfiles/rails_7.0.gemfile +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b3768cf7f6b1a5551c999666848f0df4357d13ccb7a961025c390aac4c67756
|
4
|
+
data.tar.gz: 4f01d96c927dc9f81bcd519954681d9192ec9606fa3884d26e4860c8ea3999cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74b32a38b4e9f4bd10f6619467b60dd0b176226f5b83f5ed924ed095523bdbb61cdd6eb2679320f44b087fc286c32e594c49ffb9cf48506236127ea887e0db93
|
7
|
+
data.tar.gz: c92169d183122b11dac0d4ea6b66b22072d0c586080f424d172561c18db2c3d1a6f2939c4a22cbadab33a23346d9c4c246de67b663929ba1bd8df76177572796
|
data/.github/workflows/push.yml
CHANGED
@@ -7,17 +7,14 @@ jobs:
|
|
7
7
|
strategy:
|
8
8
|
fail-fast: false
|
9
9
|
matrix:
|
10
|
-
ruby: [
|
11
|
-
rails: ['
|
12
|
-
exclude:
|
13
|
-
- rails: '7.0'
|
14
|
-
ruby: 2.6
|
10
|
+
ruby: ['3.1', '3.2', '3.3']
|
11
|
+
rails: ['6.1', '7.0', '7.1']
|
15
12
|
|
16
13
|
runs-on: ubuntu-latest
|
17
14
|
name: Test against Ruby ${{ matrix.ruby }} / Rails ${{ matrix.rails }}
|
18
15
|
|
19
16
|
steps:
|
20
|
-
- uses: actions/checkout@
|
17
|
+
- uses: actions/checkout@v4
|
21
18
|
|
22
19
|
- name: Setup System
|
23
20
|
run: sudo apt-get install libsqlite3-dev
|
@@ -26,14 +23,11 @@ jobs:
|
|
26
23
|
uses: ruby/setup-ruby@v1
|
27
24
|
with:
|
28
25
|
ruby-version: ${{ matrix.ruby }}
|
29
|
-
|
30
|
-
- name: Install gems
|
26
|
+
bundler-cache: true
|
31
27
|
env:
|
32
|
-
|
33
|
-
run: |
|
34
|
-
export BUNDLE_GEMFILE="${GITHUB_WORKSPACE}/gemfiles/rails_${MATRIX_RAILS_VERSION}.gemfile"
|
35
|
-
gem install bundler
|
36
|
-
bundle install --jobs 4 --retry 3
|
28
|
+
RAILS_VERSION: ${{ matrix.rails }}
|
37
29
|
|
38
30
|
- name: Run tests
|
39
31
|
run: bundle exec rake
|
32
|
+
env:
|
33
|
+
RAILS_VERSION: ${{ matrix.rails }}
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## [3.1.4] - 2024-04-28
|
8
|
+
|
9
|
+
* Reset Inertia shared data after each RSpec example where `inertia: true` is used. Thanks @coreyaus!
|
10
|
+
* Update Github Actions workflows to use currently supported Ruby/Rails versions. Thanks @PedroAugustoRamalhoDuarte!
|
11
|
+
|
12
|
+
## [3.1.3] - 2023-11-03
|
13
|
+
|
14
|
+
* Depend on railties instead of rails so that applications which only use pieces of Rails can avoid a full Rails installation. Thanks @BenMorganMY!
|
15
|
+
|
7
16
|
## [3.1.2] - 2023-09-26
|
8
17
|
|
9
18
|
* Fix `have_exact_props` RSpec matcher in the situation where shared props are defined in a lambda that outputs a hash with symbolized keys
|
data/Gemfile
CHANGED
data/inertia_rails.gemspec
CHANGED
@@ -25,14 +25,13 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
26
26
|
spec.require_paths = ["lib"]
|
27
27
|
|
28
|
-
spec.add_runtime_dependency "
|
28
|
+
spec.add_runtime_dependency "railties", '>= 5'
|
29
29
|
|
30
30
|
spec.add_development_dependency "bundler", "~> 2.0"
|
31
31
|
spec.add_development_dependency "rake", "~> 13.0"
|
32
32
|
spec.add_development_dependency "rspec-rails", "~> 4.0"
|
33
33
|
spec.add_development_dependency "rails-controller-testing"
|
34
34
|
spec.add_development_dependency "sqlite3"
|
35
|
-
spec.add_development_dependency "appraisal"
|
36
35
|
spec.add_development_dependency "responders"
|
37
36
|
spec.add_development_dependency "debug"
|
38
37
|
end
|
data/lib/inertia_rails/rspec.rb
CHANGED
@@ -65,6 +65,7 @@ RSpec.configure do |config|
|
|
65
65
|
}
|
66
66
|
|
67
67
|
config.before(:each, inertia: true) do
|
68
|
+
::InertiaRails.reset!
|
68
69
|
new_renderer = InertiaRails::Renderer.method(:new)
|
69
70
|
allow(InertiaRails::Renderer).to receive(:new) do |component, controller, request, response, render, named_args|
|
70
71
|
new_renderer.call(component, controller, request, response, inertia_wrap_render(render), **named_args)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inertia_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Knoles
|
@@ -10,10 +10,10 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2024-04-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
16
|
+
name: railties
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
19
|
- - ">="
|
@@ -96,20 +96,6 @@ dependencies:
|
|
96
96
|
- - ">="
|
97
97
|
- !ruby/object:Gem::Version
|
98
98
|
version: '0'
|
99
|
-
- !ruby/object:Gem::Dependency
|
100
|
-
name: appraisal
|
101
|
-
requirement: !ruby/object:Gem::Requirement
|
102
|
-
requirements:
|
103
|
-
- - ">="
|
104
|
-
- !ruby/object:Gem::Version
|
105
|
-
version: '0'
|
106
|
-
type: :development
|
107
|
-
prerelease: false
|
108
|
-
version_requirements: !ruby/object:Gem::Requirement
|
109
|
-
requirements:
|
110
|
-
- - ">="
|
111
|
-
- !ruby/object:Gem::Version
|
112
|
-
version: '0'
|
113
99
|
- !ruby/object:Gem::Dependency
|
114
100
|
name: responders
|
115
101
|
requirement: !ruby/object:Gem::Requirement
|
@@ -150,7 +136,6 @@ files:
|
|
150
136
|
- ".github/workflows/push.yml"
|
151
137
|
- ".gitignore"
|
152
138
|
- ".rspec"
|
153
|
-
- Appraisals
|
154
139
|
- CHANGELOG.md
|
155
140
|
- CODE_OF_CONDUCT.md
|
156
141
|
- Gemfile
|
@@ -161,11 +146,6 @@ files:
|
|
161
146
|
- app/views/inertia.html.erb
|
162
147
|
- bin/console
|
163
148
|
- bin/setup
|
164
|
-
- gemfiles/rails_5.1.gemfile
|
165
|
-
- gemfiles/rails_5.2.gemfile
|
166
|
-
- gemfiles/rails_6.0.gemfile
|
167
|
-
- gemfiles/rails_6.1.gemfile
|
168
|
-
- gemfiles/rails_7.0.gemfile
|
169
149
|
- inertia_rails.gemspec
|
170
150
|
- lib/generators/inertia_rails/install/controller.rb
|
171
151
|
- lib/generators/inertia_rails/install/react/InertiaExample.jsx
|
@@ -214,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
194
|
- !ruby/object:Gem::Version
|
215
195
|
version: '0'
|
216
196
|
requirements: []
|
217
|
-
rubygems_version: 3.
|
197
|
+
rubygems_version: 3.5.3
|
218
198
|
signing_key:
|
219
199
|
specification_version: 4
|
220
200
|
summary: Inertia adapter for Rails
|
data/Appraisals
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
appraise "rails-7.0" do
|
2
|
-
gem "rails", "~> 7.0"
|
3
|
-
end
|
4
|
-
|
5
|
-
appraise "rails-6.1" do
|
6
|
-
gem "rails", "~> 6.1.0"
|
7
|
-
end
|
8
|
-
|
9
|
-
appraise "rails-6.0" do
|
10
|
-
gem "rails", "~> 6.0.3", '>= 6.0.3.2'
|
11
|
-
end
|
12
|
-
|
13
|
-
appraise "rails-5.2" do
|
14
|
-
gem "rails", "~> 5.2.4", '>= 5.2.4.3'
|
15
|
-
end
|
16
|
-
|
17
|
-
appraise "rails-5.1" do
|
18
|
-
gem "rails", "~> 5.1.7"
|
19
|
-
end
|
data/gemfiles/rails_5.1.gemfile
DELETED
data/gemfiles/rails_5.2.gemfile
DELETED
data/gemfiles/rails_6.0.gemfile
DELETED
data/gemfiles/rails_6.1.gemfile
DELETED