buoys 1.1.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +1 -1
- data/lib/buoys/version.rb +1 -1
- data/lib/generators/buoys/templates/_buoys.html.erb +1 -1
- data/lib/generators/buoys/templates/breadcrumbs.rb +1 -1
- data/test/buoys_buoy_test.rb +5 -1
- metadata +41 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 794bbfafb9438cf67c044c95d31da486127581cf918c001d088384c6338664e2
|
4
|
+
data.tar.gz: 2c8866e73ea3cb2724aca47b5e17cb20734d9b63fb99f78fad8af8acefc8e061
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
data/lib/buoys/version.rb
CHANGED
@@ -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.
|
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 %>' />
|
data/test/buoys_buoy_test.rb
CHANGED
@@ -4,7 +4,11 @@ require 'test_helper'
|
|
4
4
|
|
5
5
|
class BuoysBuoyTest < ActiveSupport::TestCase
|
6
6
|
setup do
|
7
|
-
@view_context = ActionView::Base.
|
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:
|
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:
|
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
|
-
|
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/
|
177
|
-
- test/
|
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/
|
190
|
-
- test/dummy/
|
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/
|
200
|
-
- test/dummy/config/
|
201
|
-
- test/dummy/config/
|
202
|
-
- test/dummy/config/
|
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/
|
209
|
-
- test/dummy/config/
|
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/
|
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
|