buoys 0.6.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/buoys.rb +2 -0
- data/lib/buoys/buoy.rb +3 -1
- data/lib/buoys/config.rb +2 -0
- data/lib/buoys/helper.rb +2 -0
- data/lib/buoys/link.rb +2 -0
- data/lib/buoys/loader.rb +2 -0
- data/lib/buoys/railtie.rb +2 -0
- data/lib/buoys/renderer.rb +2 -0
- data/lib/buoys/version.rb +3 -1
- data/lib/generators/buoys/install_generator.rb +2 -0
- data/lib/generators/buoys/templates/breadcrumbs.rb +2 -0
- data/test/buoys_buoy_test.rb +2 -0
- data/test/buoys_generator_test.rb +3 -1
- data/test/buoys_helper_test.rb +2 -1
- data/test/buoys_loader_test.rb +2 -0
- data/test/buoys_test.rb +2 -0
- data/test/dummy/app/controllers/application_controller.rb +2 -0
- data/test/dummy/app/controllers/items_controller.rb +2 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/item.rb +2 -0
- data/test/dummy/app/models/user.rb +2 -0
- data/test/dummy/config/application.rb +2 -0
- data/test/dummy/config/boot.rb +2 -0
- data/test/dummy/config/buoys/breadcrumb.rb +2 -0
- data/test/dummy/config/buoys/buoys.rb +2 -0
- data/test/dummy/config/environment.rb +2 -0
- data/test/dummy/config/environments/development.rb +2 -0
- data/test/dummy/config/environments/production.rb +2 -0
- data/test/dummy/config/environments/test.rb +2 -0
- data/test/dummy/config/initializers/assets.rb +2 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +2 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +2 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +2 -0
- data/test/dummy/config/initializers/inflections.rb +2 -0
- data/test/dummy/config/initializers/mime_types.rb +2 -0
- data/test/dummy/config/initializers/session_store.rb +2 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +2 -0
- data/test/dummy/config/routes.rb +2 -0
- data/test/dummy/db/migrate/20160602144150_create_items.rb +2 -0
- data/test/dummy/db/migrate/20160602144324_create_users.rb +2 -0
- data/test/dummy/db/schema.rb +1 -0
- data/test/test_helper.rb +2 -0
- metadata +14 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a95ccfad0d08b44c4e2611abad89dd6476995b3
|
4
|
+
data.tar.gz: 89391dac164282f6a28d37d3d5820ab6cf3b81e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09edff082e1bb2d36152a0a27c70b28394825cd4234599b53f9cb9270f0b36bc64393791cf1d215357564db9eed7a8798dd6ea5766cfe1b752cd3c6175cf7757
|
7
|
+
data.tar.gz: 5a20e257c36f32656eddfcfb536a91f558a7619e719ee086897fe5b7da8ffdcb28453b105b962fb481bf846b4a5dfb4a018c4ebd3591e44496ac6f6312513fa7
|
data/README.md
CHANGED
@@ -67,7 +67,7 @@ buoy :story_tasks do |story|
|
|
67
67
|
pre_buoy :story, story, {link_current: true}
|
68
68
|
end
|
69
69
|
|
70
|
-
# You can use 'pre_buoy' as parent. 'parent' is the alias of
|
70
|
+
# You can use 'pre_buoy' as parent. 'parent' is the alias of pre_buoy`.
|
71
71
|
# ex)
|
72
72
|
buoy :story_tasks do |story|
|
73
73
|
link :story_tasks, story_tasks_path
|
data/lib/buoys.rb
CHANGED
data/lib/buoys/buoy.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Buoys
|
2
4
|
class Buoy
|
3
5
|
attr_reader :previous, :context
|
@@ -22,7 +24,7 @@ module Buoys
|
|
22
24
|
def link(key, *args)
|
23
25
|
options = args.extract_options!
|
24
26
|
path = args.shift
|
25
|
-
url = path ? context.url_for(path) :
|
27
|
+
url = path ? context.url_for(path) : nil
|
26
28
|
|
27
29
|
text = I18n.t(key, scope: 'buoys.breadcrumbs', default: key)
|
28
30
|
|
data/lib/buoys/config.rb
CHANGED
data/lib/buoys/helper.rb
CHANGED
data/lib/buoys/link.rb
CHANGED
data/lib/buoys/loader.rb
CHANGED
data/lib/buoys/railtie.rb
CHANGED
data/lib/buoys/renderer.rb
CHANGED
data/lib/buoys/version.rb
CHANGED
data/test/buoys_buoy_test.rb
CHANGED
data/test/buoys_helper_test.rb
CHANGED
data/test/buoys_loader_test.rb
CHANGED
data/test/buoys_test.rb
CHANGED
data/test/dummy/config/boot.rb
CHANGED
data/test/dummy/config/routes.rb
CHANGED
data/test/dummy/db/schema.rb
CHANGED
data/test/test_helper.rb
CHANGED
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: 0.
|
4
|
+
version: 1.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: 2017-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.
|
19
|
+
version: 4.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.
|
26
|
+
version: 4.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sqlite3
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,19 +53,25 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: rubocop
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.49'
|
59
62
|
- - ">="
|
60
63
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
64
|
+
version: 0.49.1
|
62
65
|
type: :development
|
63
66
|
prerelease: false
|
64
67
|
version_requirements: !ruby/object:Gem::Requirement
|
65
68
|
requirements:
|
69
|
+
- - "~>"
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0.49'
|
66
72
|
- - ">="
|
67
73
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
74
|
+
version: 0.49.1
|
69
75
|
description: A Ruby on Rails breadcrumbs plugin.
|
70
76
|
email:
|
71
77
|
- muryoimpl@gmail.com
|
@@ -162,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
168
|
version: '0'
|
163
169
|
requirements: []
|
164
170
|
rubyforge_project:
|
165
|
-
rubygems_version: 2.
|
171
|
+
rubygems_version: 2.5.1
|
166
172
|
signing_key:
|
167
173
|
specification_version: 4
|
168
174
|
summary: A Ruby on Rails breadcrumbs plugin.
|