buoys 1.1.0 → 2.0.0

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
- SHA1:
3
- metadata.gz: 36271005ba0ba04593d62e6d6f0d2c0cc0156c91
4
- data.tar.gz: 62c723569c8a8ffb962b1204914209291efc0dca
2
+ SHA256:
3
+ metadata.gz: 794bbfafb9438cf67c044c95d31da486127581cf918c001d088384c6338664e2
4
+ data.tar.gz: 2c8866e73ea3cb2724aca47b5e17cb20734d9b63fb99f78fad8af8acefc8e061
5
5
  SHA512:
6
- metadata.gz: df714e7c87349f56c64a60a99b7f5d8c94c34e9f572ce28bc60d3f5bbedf696b248eb4f7ded73d0c4cc4aeb7135df4f029cadd9774811c7ae1b23b88957d13af
7
- data.tar.gz: 4b1d8c37a805d8f23e4246caaebc788ff7e962cc71e74084023ef89c04467c607656ace7f5c29f9bf05ae90d13ce92a054e0b9b7227ba7e30d69e75ae5b3ba09
6
+ metadata.gz: e3095a0333e1a86bc9891f126c08811caf63711e8610c3b4a7727054c1babec3a92ed1eb6373b986483e413ec7138106a446436d44092dbebf96e54a0f23569e
7
+ data.tar.gz: 32f88478a4a8a17cb1e01ea68e9dd3cebea0a7d0d34978c3ce68d2054f2b1abf5c671f718c2f81d59ec3cae6bb8370ec71d7479ee99550da457732d9b8383f20
data/README.md CHANGED
@@ -60,7 +60,7 @@ buoy :story do |story|
60
60
  # same as `link I18n.t('story', scope: 'buoys.breadcrumbs', default: 'story'), story_path(story)`
61
61
  end
62
62
 
63
- # You can alse override Buoys configuration
63
+ # You can also override Buoys configuration
64
64
  # ex)
65
65
  buoy :story_tasks do |story|
66
66
  link :story_tasks, story_tasks_path
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Buoys
4
- VERSION = '1.1.0'.freeze
4
+ VERSION = '2.0.0'.freeze
5
5
  end
@@ -7,7 +7,7 @@
7
7
  <span itemprop='name'><%= link.text %></span>
8
8
  <meta itemprop='position' content='<%= i %>' />
9
9
  <% else %>
10
- <%= link_to link.text, link.url, link.options.merge(itemprop: :item) do %>
10
+ <%= link_to link.url, link.options.merge(itemprop: :item) do %>
11
11
  <span itemprop='name'><%= link.text %></span>
12
12
  <% end %>
13
13
  <meta itemprop='position' content='<%= i %>' />
@@ -23,7 +23,7 @@ end
23
23
  # # same as `link I18n.t(:story, scope: 'buoys.breadcrumbs', default: story), story_path(story)`
24
24
  # end
25
25
 
26
- # You can alse override Buoys configuration
26
+ # You can also override Buoys configuration
27
27
  #
28
28
  # ex)
29
29
  # buoy :story_tasks do |story|
@@ -4,7 +4,11 @@ require 'test_helper'
4
4
 
5
5
  class BuoysBuoyTest < ActiveSupport::TestCase
6
6
  setup do
7
- @view_context = ActionView::Base.new
7
+ @view_context = if ActionView::Base.respond_to?(:empty)
8
+ ActionView::Base.empty
9
+ else
10
+ ActionView::Base.new # Rails 5.2 or lower
11
+ end
8
12
  Buoys::Loader.load_buoys_files
9
13
  end
10
14
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buoys
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - muryoimpl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-15 00:00:00.000000000 Z
11
+ date: 2019-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -161,60 +161,59 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  - !ruby/object:Gem::Version
162
162
  version: '0'
163
163
  requirements: []
164
- rubyforge_project:
165
- rubygems_version: 2.6.13
164
+ rubygems_version: 3.0.3
166
165
  signing_key:
167
166
  specification_version: 4
168
167
  summary: A Ruby on Rails breadcrumbs plugin.
169
168
  test_files:
170
- - test/buoys_generator_test.rb
171
- - test/buoys_buoy_test.rb
172
- - test/buoys_test.rb
173
- - test/buoys_loader_test.rb
174
- - test/buoys_helper_test.rb
175
169
  - test/test_helper.rb
176
- - test/dummy/app/assets/javascripts/application.js
177
- - test/dummy/app/assets/stylesheets/application.css
178
- - test/dummy/app/models/item.rb
179
- - test/dummy/app/models/user.rb
180
- - test/dummy/app/views/breadcrumbs/_buoys.erb
181
- - test/dummy/app/views/layouts/application.html.erb
182
- - test/dummy/app/controllers/application_controller.rb
183
- - test/dummy/app/controllers/items_controller.rb
184
- - test/dummy/app/helpers/application_helper.rb
170
+ - test/buoys_test.rb
171
+ - test/buoys_buoy_test.rb
185
172
  - test/dummy/bin/setup
186
- - test/dummy/bin/rails
187
- - test/dummy/bin/rake
188
173
  - test/dummy/bin/bundle
189
- - test/dummy/db/migrate/20160602144324_create_users.rb
190
- - test/dummy/db/migrate/20160602144150_create_items.rb
191
- - test/dummy/db/test.sqlite3
192
- - test/dummy/db/schema.rb
193
- - test/dummy/public/422.html
194
- - test/dummy/public/404.html
195
- - test/dummy/public/500.html
196
- - test/dummy/public/favicon.ico
197
- - test/dummy/Rakefile
174
+ - test/dummy/bin/rake
175
+ - test/dummy/bin/rails
198
176
  - test/dummy/log/test.log
199
- - test/dummy/config/database.yml
200
- - test/dummy/config/initializers/assets.rb
201
- - test/dummy/config/initializers/cookies_serializer.rb
202
- - test/dummy/config/initializers/inflections.rb
177
+ - test/dummy/Rakefile
178
+ - test/dummy/config/application.rb
179
+ - test/dummy/config/environment.rb
180
+ - test/dummy/config/buoys/breadcrumb.rb
181
+ - test/dummy/config/buoys/buoys.rb
182
+ - test/dummy/config/initializers/filter_parameter_logging.rb
203
183
  - test/dummy/config/initializers/session_store.rb
204
184
  - test/dummy/config/initializers/backtrace_silencers.rb
205
- - test/dummy/config/initializers/filter_parameter_logging.rb
206
- - test/dummy/config/initializers/mime_types.rb
207
185
  - test/dummy/config/initializers/wrap_parameters.rb
208
- - test/dummy/config/secrets.yml
209
- - test/dummy/config/application.rb
186
+ - test/dummy/config/initializers/assets.rb
187
+ - test/dummy/config/initializers/inflections.rb
188
+ - test/dummy/config/initializers/mime_types.rb
189
+ - test/dummy/config/initializers/cookies_serializer.rb
190
+ - test/dummy/config/database.yml
210
191
  - test/dummy/config/boot.rb
211
- - test/dummy/config/buoys/breadcrumb.rb
212
- - test/dummy/config/buoys/buoys.rb
213
- - test/dummy/config/routes.rb
214
192
  - test/dummy/config/locales/en.yml
215
193
  - test/dummy/config/environments/test.rb
216
- - test/dummy/config/environments/development.rb
217
194
  - test/dummy/config/environments/production.rb
218
- - test/dummy/config/environment.rb
195
+ - test/dummy/config/environments/development.rb
196
+ - test/dummy/config/secrets.yml
197
+ - test/dummy/config/routes.rb
198
+ - test/dummy/app/views/layouts/application.html.erb
199
+ - test/dummy/app/views/breadcrumbs/_buoys.erb
200
+ - test/dummy/app/assets/javascripts/application.js
201
+ - test/dummy/app/assets/stylesheets/application.css
202
+ - test/dummy/app/controllers/application_controller.rb
203
+ - test/dummy/app/controllers/items_controller.rb
204
+ - test/dummy/app/helpers/application_helper.rb
205
+ - test/dummy/app/models/item.rb
206
+ - test/dummy/app/models/user.rb
219
207
  - test/dummy/README.rdoc
220
208
  - test/dummy/config.ru
209
+ - test/dummy/public/404.html
210
+ - test/dummy/public/500.html
211
+ - test/dummy/public/422.html
212
+ - test/dummy/public/favicon.ico
213
+ - test/dummy/db/test.sqlite3
214
+ - test/dummy/db/schema.rb
215
+ - test/dummy/db/migrate/20160602144150_create_items.rb
216
+ - test/dummy/db/migrate/20160602144324_create_users.rb
217
+ - test/buoys_generator_test.rb
218
+ - test/buoys_loader_test.rb
219
+ - test/buoys_helper_test.rb