breadcrumbs_on_rails 3.0.0 → 3.0.1

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
  SHA1:
3
- metadata.gz: ee122bb4062b89a562c760486bfa006531ad8d0d
4
- data.tar.gz: 45ade515b86324c2bfe3062cc834876f7a7f5a75
3
+ metadata.gz: eb0f8f370815eeadfacee9e7c5e33db392a474ec
4
+ data.tar.gz: 31f6ec86e03356fe9305c7adb7485df856fb5740
5
5
  SHA512:
6
- metadata.gz: 70e1efd32dbc1a1f3b505763f2c577a311509faa46697661f95a1da0d1ca9234d17d06edd8d5837cf6c7e2ac63677c60134953f74b1db1f413f55b2dcac6d733
7
- data.tar.gz: 2d14d97add461e23ef06dc50c18c0a2d88bd7f78472943a75dda59e2d5a114295dcc270cb27bd919a54658f4c382184fcfe3efa39c9f6305a7a1b4deb6d600f3
6
+ metadata.gz: a92318dd7f919de822b243c48442a06279d53dc1007e0a7b52f41f8f9cb70d20a7dc884b8ec110d3254367d7be099f66e50b7a49a8020af9185ce8f1ca184601
7
+ data.tar.gz: bd0f124437491ef12cff0f58fcaac597828857dd0b0f90c325667d0da0fd3b5877a4ef681348ff36c1c690916a11e73a2682fce6e4456af8430c6769d7c596b0
@@ -19,6 +19,9 @@ matrix:
19
19
  gemfile: gemfiles/5.0.gemfile
20
20
  - rvm: 2.1
21
21
  gemfile: gemfiles/5.0.gemfile
22
+ env:
23
+ global:
24
+ - NOKOGIRI_USE_SYSTEM_LIBRARIES=true
22
25
 
23
26
  notifications:
24
27
  recipients:
@@ -1,6 +1,11 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+ #### Release 3.0.1
5
+
6
+ - FIXED: Fixed compatibility with Rails 5.0 and ActionController::API (GH-99). [Thanks @jcoyne]
7
+
8
+
4
9
  #### Release 3.0.0
5
10
 
6
11
  - FIXED: Fixed compatibility with Rails 5.0 (GH-80). [Thanks @ochko]
data/README.md CHANGED
@@ -115,7 +115,7 @@ class MyController
115
115
  end
116
116
  ```
117
117
 
118
- In this case, if `@user_name` is "<script>", it will output:
118
+ In this case, if `@user_name` is `<script>`, it will output:
119
119
 
120
120
  This is the <b>Main</b> page > &lt;script&gt; Profile
121
121
 
@@ -108,14 +108,14 @@ module BreadcrumbsOnRails
108
108
  attr_accessor :name
109
109
  # @return [String] The element/link URL.
110
110
  attr_accessor :path
111
- # @return [Hash] The element/link URL.
111
+ # @return [Hash] The element/link options.
112
112
  attr_accessor :options
113
113
 
114
114
  # Initializes the Element with given parameters.
115
115
  #
116
116
  # @param [String] name The element/link name.
117
117
  # @param [String] path The element/link URL.
118
- # @param [Hash] options The element/link URL.
118
+ # @param [Hash] options The element/link options.
119
119
  # @return [Element]
120
120
  #
121
121
  def initialize(name, path = nil, options = {})
@@ -10,7 +10,7 @@ module BreadcrumbsOnRails
10
10
 
11
11
  class Railtie < Rails::Railtie
12
12
  ActiveSupport.on_load(:action_controller) do
13
- include BreadcrumbsOnRails::ActionController
13
+ ::ActionController::Base.send(:include, BreadcrumbsOnRails::ActionController)
14
14
  end
15
15
  end
16
16
 
@@ -7,5 +7,5 @@
7
7
  #++
8
8
 
9
9
  module BreadcrumbsOnRails
10
- VERSION = "3.0.0"
10
+ VERSION = "3.0.1"
11
11
  end
@@ -39,3 +39,8 @@ class ActiveSupport::TestCase
39
39
  end
40
40
 
41
41
  end
42
+
43
+ # Trigger lazy loading and causes the load_hooks to be executed on
44
+ # ActionController::API. This is important because breacrumbs_on_rails includes
45
+ # BreadcrumbsOnRails::ActionController on any module that executes these hooks
46
+ ActionController::API rescue NameError
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: breadcrumbs_on_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simone Carletti
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-07 00:00:00.000000000 Z
11
+ date: 2016-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -162,3 +162,4 @@ test_files:
162
162
  - test/unit/element_test.rb
163
163
  - test/unit/simple_builder_test.rb
164
164
  - test/views/example/default.html.erb
165
+ has_rdoc: