rux-rails 1.2.1 → 1.2.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: 7eab4f715bf1a690c2203a58abb43387cbf9069a351448c29d19fae7eca71e4e
4
- data.tar.gz: 569d1715c3649eec7809864fe76e29d7094eddea038618d25da220b307940d83
3
+ metadata.gz: 71cd84c42747191f92518e982abfb2f631dc2d4238dfc377e58abdd168d9bf0a
4
+ data.tar.gz: '098b4d8af3d352512a82143fae3ac3c8ac04b9d8f080906838017410c6d17324'
5
5
  SHA512:
6
- metadata.gz: 5eff94f3b29f81201639657faf5f765f61a16d35df439b53cf3bb2bad0025634fbae5aa2fcb32ecdf2fbaafd94d6a183941c16e501847fdc81e343194eef5077
7
- data.tar.gz: 92d3fec8830c2de5c7ad41b0fd011f8c6d550a855f9e8eaa47a00aaf585944f163933b6a5c6d971ff5e37fd9dbc44ae62cf320f64c0db803d7c419d9e886a29a
6
+ metadata.gz: b4a554cd0d719bbd78dc46d99aaaa801fedd83b10c8917242dae01f3e4bbe51f0aabe7f2f7eb626f25379fd0bbfce01e934c055ad98443a56d6f698af2210334
7
+ data.tar.gz: 82e1d14c6083c55bdb653147e07fdf16f4416f000d4555c094ac7700fd98db0da989723d89adcee4df4e00524926f945004bce936cb84f7fcd1ab4c2734b976b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.2.2
2
+ * Fix calling private Zeitwerk method.
3
+ * Check railties version in dummy app instead of rails.
4
+
1
5
  ## 1.2.1
2
6
  * Support newer versions of Zeitwerk (2.5 and beyond).
3
7
  * Support Rails 7.
data/Rakefile CHANGED
@@ -2,6 +2,8 @@ require 'bundler'
2
2
  require 'rspec/core/rake_task'
3
3
  require 'rubygems/package_task'
4
4
 
5
+ require 'rux-rails'
6
+
5
7
  Bundler::GemHelper.install_tasks
6
8
 
7
9
  task default: :spec
@@ -14,7 +14,7 @@ module Kernel
14
14
  # an uninitialized constant, and it's like... yeah, I _know_ it's
15
15
  # uninitialized, that's why I'm loading this file. Whatevs.
16
16
  loader = Zeitwerk::Registry.loader_for(file)
17
- parent, cname = loader.autoloads[file]
17
+ parent, cname = loader.send(:autoloads)[file]
18
18
  parent.send(:remove_const, cname)
19
19
 
20
20
  return rux_orig_load(tmpl.default_outfile, *args)
@@ -1,5 +1,8 @@
1
1
  require 'rails/railtie'
2
2
 
3
+ require 'active_support'
4
+ require 'active_support/isolated_execution_state' if ActiveSupport::VERSION::MAJOR > 6
5
+
3
6
  module RuxRails
4
7
  class Railtie < Rails::Railtie
5
8
  config.rux = ActiveSupport::OrderedOptions.new
@@ -1,3 +1,3 @@
1
1
  module RuxRails
2
- VERSION = '1.2.1'
2
+ VERSION = '1.2.2'
3
3
  end
@@ -2,7 +2,7 @@ module RuxRails
2
2
  class DummyApplication < ::Rails::Application
3
3
  if config.respond_to?(:load_defaults)
4
4
  config.load_defaults(
5
- Gem.loaded_specs['rails'].version.to_s.split('.')[0..1].join('.')
5
+ Gem.loaded_specs['railties'].version.to_s.split('.')[0..1].join('.')
6
6
  )
7
7
  end
8
8
 
@@ -146,3 +146,17 @@ Processing by HomeController#index as HTML
146
146
  Rendered home/index.html.ruxt within layouts/application (Duration: 73.8ms | Allocations: 49092)
147
147
  Rendered layout layouts/application.html.erb (Duration: 74.2ms | Allocations: 49322)
148
148
  Completed 200 OK in 88ms (Views: 81.1ms | Allocations: 56373)
149
+ Started GET "/" for 127.0.0.1 at 2023-04-25 14:13:28 -0700
150
+ Processing by HomeController#index as HTML
151
+ Rendering layout layouts/application.html.erb
152
+ Rendering home/index.html.ruxt within layouts/application
153
+ Rendered home/index.html.ruxt within layouts/application (Duration: 97.3ms | Allocations: 43182)
154
+ Rendered layout layouts/application.html.erb (Duration: 97.8ms | Allocations: 43413)
155
+ Completed 200 OK in 111ms (Views: 104.7ms | Allocations: 48899)
156
+ Started GET "/" for 127.0.0.1 at 2023-04-25 14:22:51 -0700
157
+ Processing by HomeController#index as HTML
158
+ Rendering layout layouts/application.html.erb
159
+ Rendering home/index.html.ruxt within layouts/application
160
+ Rendered home/index.html.ruxt within layouts/application (Duration: 77.5ms | Allocations: 43481)
161
+ Rendered layout layouts/application.html.erb (Duration: 78.0ms | Allocations: 43712)
162
+ Completed 200 OK in 89ms (Views: 83.2ms | Allocations: 49251)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rux-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Dutro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-15 00:00:00.000000000 Z
11
+ date: 2023-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rux
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  requirements: []
119
- rubygems_version: 3.2.22
119
+ rubygems_version: 3.4.5
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: Rux view components on Rails.