makandra-navy 0.5.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +22 -0
- data/lib/navy/section_container.rb +5 -7
- data/lib/navy/section_parser.rb +0 -3
- data/lib/navy/version.rb +1 -1
- data/navy.gemspec +1 -0
- metadata +36 -57
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 042a20d0c59984e62efe693961036f2d1c423066
|
4
|
+
data.tar.gz: a0087236f413976189fcb476ee5bf07649dc6d1b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: fec0da5f8f3f17cd025fe95260a2fe0467bddf2c5d11c65047283d4af07fdceb1fa81825f3510dbaf6e584af63686734ed778dd2c6bb0d25c967ed0dedf2cb24
|
7
|
+
data.tar.gz: d74929409cfbb95dfb033b14dfde6ec1299ce83611e48c50a7a4022b109811eb42602262f03f03e542f685f835987a8e39bab8b14de5f5fe3d1148206177f103
|
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2012 makandra GmbH
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -6,13 +6,11 @@ module Navy
|
|
6
6
|
attr_accessor :block_args
|
7
7
|
|
8
8
|
def sections(context)
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
[]
|
15
|
-
end
|
9
|
+
if children?
|
10
|
+
SectionParser.new(context).parse(block_args || [], &@children).sections
|
11
|
+
else
|
12
|
+
[]
|
13
|
+
end
|
16
14
|
end
|
17
15
|
|
18
16
|
def children?
|
data/lib/navy/section_parser.rb
CHANGED
@@ -17,9 +17,6 @@ module Navy
|
|
17
17
|
|
18
18
|
def section(name, label, url = nil, link_to_options = {}, &children)
|
19
19
|
section = Navy::Section.new(name, label, url, link_to_options, @context.section_active?(name), &children)
|
20
|
-
if url.nil?
|
21
|
-
section.url = section.sections(@context).first.url
|
22
|
-
end
|
23
20
|
sections << section
|
24
21
|
end
|
25
22
|
|
data/lib/navy/version.rb
CHANGED
data/navy.gemspec
CHANGED
metadata
CHANGED
@@ -1,50 +1,40 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: makandra-navy
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 5
|
9
|
-
- 1
|
10
|
-
version: 0.5.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.6.0
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Tobias Kraze
|
14
8
|
- Henning Koch
|
15
9
|
autorequire:
|
16
10
|
bindir: bin
|
17
11
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
dependencies:
|
22
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2017-03-07 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
23
15
|
name: actionpack
|
24
|
-
|
25
|
-
|
26
|
-
none: false
|
27
|
-
requirements:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
28
18
|
- - ">="
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
|
31
|
-
segments:
|
32
|
-
- 0
|
33
|
-
version: "0"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '0'
|
34
21
|
type: :runtime
|
35
|
-
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '0'
|
36
28
|
description: Comprehensive solution for multi-level horizontal navigation bars.
|
37
|
-
email:
|
29
|
+
email:
|
38
30
|
- tobias@kraze.eu
|
39
31
|
executables: []
|
40
|
-
|
41
32
|
extensions: []
|
42
|
-
|
43
33
|
extra_rdoc_files: []
|
44
|
-
|
45
|
-
|
46
|
-
- .gitignore
|
34
|
+
files:
|
35
|
+
- ".gitignore"
|
47
36
|
- Gemfile
|
37
|
+
- LICENSE
|
48
38
|
- README.markdown
|
49
39
|
- Rakefile
|
50
40
|
- assets/cucumber/navy_steps.rb
|
@@ -61,39 +51,28 @@ files:
|
|
61
51
|
- lib/navy/section_parser.rb
|
62
52
|
- lib/navy/version.rb
|
63
53
|
- navy.gemspec
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
54
|
+
homepage: ''
|
55
|
+
licenses:
|
56
|
+
- MIT
|
57
|
+
metadata: {}
|
68
58
|
post_install_message:
|
69
59
|
rdoc_options: []
|
70
|
-
|
71
|
-
require_paths:
|
60
|
+
require_paths:
|
72
61
|
- lib
|
73
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
74
|
-
|
75
|
-
requirements:
|
62
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
76
64
|
- - ">="
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
version: "0"
|
82
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
84
|
-
requirements:
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
67
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
85
69
|
- - ">="
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
|
88
|
-
segments:
|
89
|
-
- 0
|
90
|
-
version: "0"
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0'
|
91
72
|
requirements: []
|
92
|
-
|
93
73
|
rubyforge_project: navy
|
94
|
-
rubygems_version:
|
74
|
+
rubygems_version: 2.6.6
|
95
75
|
signing_key:
|
96
|
-
specification_version:
|
76
|
+
specification_version: 4
|
97
77
|
summary: Comprehensive solution for multi-level horizontal navigation bars.
|
98
78
|
test_files: []
|
99
|
-
|