actionview-component 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0552c91192357398456b81be3efd02cfa663581acf91a07ff0cebff2b8f55a62
4
- data.tar.gz: f945914f027bc27c0ee5397bad3a4d7ea0c1882c95500d7de67076d96f8159de
3
+ metadata.gz: 84c85d88f1ceefc7d3a0c97affcaa2465120a4513f0f445863a068715cb55f88
4
+ data.tar.gz: ad3ae8d04886ee3c22f79b73998e6d3d0156f9ef8e84cd64468139a6bd9b282a
5
5
  SHA512:
6
- metadata.gz: 24b6e98091a0af3b3f2a0db50310d5ab6c60a59cc4bba80fdee57a6e6d34bd8535a99c9ec6183032426fdb2ddd7d41743eb9356d0552f371ca127885d906249a
7
- data.tar.gz: aff611c2259676d8d6690e897983180c23da45b231853e0be8de61d2c0b4d2bb08340e46fa03274d2bee12366d2098721b6259205de0b4f2377365b0c37a7373
6
+ metadata.gz: fd41865d44d1b450f9772ff3da1dac80b5873c809bb4cc598c93be37e15c074fb5fdbf5186350af13a8da65d7c8502dcccfd069e7e71ef86e4b87b19891f4bcd
7
+ data.tar.gz: c44f9d1129c3597553abf20510ec50a9f490b707bc121fd0bee8f7046ae257a6cf0a6517e91bdfa14391e1028b88565f14eda017224c79577700741ef85560c1
@@ -1,3 +1,9 @@
1
+ # v1.5.1
2
+
3
+ * Update railties class to work with Rails 6.
4
+
5
+ *Juan Manuel Ramallo*
6
+
1
7
  # v1.5.0
2
8
 
3
9
  Note: `actionview-component` is now loaded by requiring `actionview/component`, not `actionview/component/base`.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- actionview-component (1.5.0)
4
+ actionview-component (1.5.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -27,6 +27,14 @@ module ActionView
27
27
  end
28
28
  end
29
29
 
30
+ initializer "action_view_component.set_autoload_paths" do |app|
31
+ options = app.config.action_view_component
32
+
33
+ if options.show_previews && options.preview_path
34
+ ActiveSupport::Dependencies.autoload_paths << options.preview_path
35
+ end
36
+ end
37
+
30
38
  initializer "action_view_component.compile_config_methods" do
31
39
  ActiveSupport.on_load(:action_view_component) do
32
40
  config.compile_methods! if config.respond_to?(:compile_methods!)
@@ -44,13 +52,9 @@ module ActionView
44
52
 
45
53
  if options.show_previews
46
54
  app.routes.prepend do
47
- get "/rails/components" => "rails/components#index", :internal => true
55
+ get "/rails/components" => "rails/components#index", :internal => true
48
56
  get "/rails/components/*path" => "rails/components#previews", :internal => true
49
57
  end
50
-
51
- if options.preview_path
52
- ActiveSupport::Dependencies.autoload_paths << options.preview_path
53
- end
54
58
  end
55
59
  end
56
60
  end
@@ -5,7 +5,7 @@ module ActionView
5
5
  module VERSION
6
6
  MAJOR = 1
7
7
  MINOR = 5
8
- PATCH = 0
8
+ PATCH = 1
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH].join(".")
11
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionview-component
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub Open Source