inertia_rails 3.1.3 → 3.1.4

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: 73c0eee6bb3d9b70f170fe1af57d20043c907a28f6e37bb2987eecc39d2aecc8
4
- data.tar.gz: f91e31fdd2b74126315d6c2ee92fa6e7ff2ec3bb7074e9dca72a51e53c3a325a
3
+ metadata.gz: 6b3768cf7f6b1a5551c999666848f0df4357d13ccb7a961025c390aac4c67756
4
+ data.tar.gz: 4f01d96c927dc9f81bcd519954681d9192ec9606fa3884d26e4860c8ea3999cd
5
5
  SHA512:
6
- metadata.gz: bc7fe92ee4b773d360af5887bdf7ea0b445d0a7da3efa316000a5550795eecb587c76c0f36b62d4b98c74ec138fd6aab21367e9d8b7cca444cb44c37c4450460
7
- data.tar.gz: e3ded5b185819a1913ed7f4468dafcc0bc19db26778972932886084fc8a199ce85dd910ad2b1853f670c3a644f928d647ffe2f015411a8b9e52adc67ae03ffea
6
+ metadata.gz: 74b32a38b4e9f4bd10f6619467b60dd0b176226f5b83f5ed924ed095523bdbb61cdd6eb2679320f44b087fc286c32e594c49ffb9cf48506236127ea887e0db93
7
+ data.tar.gz: c92169d183122b11dac0d4ea6b66b22072d0c586080f424d172561c18db2c3d1a6f2939c4a22cbadab33a23346d9c4c246de67b663929ba1bd8df76177572796
@@ -7,17 +7,14 @@ jobs:
7
7
  strategy:
8
8
  fail-fast: false
9
9
  matrix:
10
- ruby: [2.6, 2.7]
11
- rails: ['5.1', '5.2', '6.0', '6.1', '7.0']
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@v2
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
- MATRIX_RAILS_VERSION: ${{ matrix.rails }}
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,11 @@ 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
+
7
12
  ## [3.1.3] - 2023-11-03
8
13
 
9
14
  * Depend on railties instead of rails so that applications which only use pieces of Rails can avoid a full Rails installation. Thanks @BenMorganMY!
data/Gemfile CHANGED
@@ -2,3 +2,6 @@ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in inertia-rails.gemspec
4
4
  gemspec
5
+
6
+ version = ENV["RAILS_VERSION"] || "7.1"
7
+ gem "rails", "~> #{version}.0"
@@ -32,7 +32,6 @@ Gem::Specification.new do |spec|
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
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module InertiaRails
2
- VERSION = "3.1.3"
2
+ VERSION = "3.1.4"
3
3
  end
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.3
4
+ version: 3.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Knoles
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2023-11-03 00:00:00.000000000 Z
13
+ date: 2024-04-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties
@@ -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.4.10
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
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "~> 5.1.7"
6
-
7
- gemspec path: "../"
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "~> 5.2.4", ">= 5.2.4.3"
6
-
7
- gemspec path: "../"
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "~> 6.0.3", ">= 6.0.3.2"
6
-
7
- gemspec path: "../"
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "~> 6.1.0"
6
-
7
- gemspec path: "../"
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "~> 7.0"
6
-
7
- gemspec path: "../"