rails-menu-manager 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -3
- data/CHANGELOG.md +4 -0
- data/gemfiles/rails50 +7 -0
- data/lib/rails_menu_manager/action_controller.rb +1 -5
- data/lib/rails_menu_manager/version.rb +1 -1
- data/rails-menu-manager.gemspec +2 -1
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91ef574e09a08bec9b01578773e8e2c09d291280
|
4
|
+
data.tar.gz: 3bf945c7c0e2d31568bca9bc39d7187a2153e35d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 167d0296ca91d32099ae506c5e1c8dddeba040d6ecff94e6e00ead47c8d940c0eb727201449a671d4770c7f3219f254e10cd70c769dd94ae70aaa546f966dbab
|
7
|
+
data.tar.gz: f07eb50756fdf4d873128ded104167da3dba81e3dc07ae6ed17d0c758701268f2fa86395b18388e872b85b78ce0b216c5506762ab5b6acfc59d1cc18a7ca9269
|
data/.travis.yml
CHANGED
@@ -1,15 +1,18 @@
|
|
1
|
+
sudo: false
|
2
|
+
|
1
3
|
language: ruby
|
2
4
|
|
3
5
|
rvm:
|
4
|
-
- 2.
|
5
|
-
- 2.
|
6
|
+
- 2.2.5
|
7
|
+
- 2.3.1
|
6
8
|
|
7
9
|
gemfile:
|
8
10
|
- gemfiles/rails40
|
9
11
|
- gemfiles/rails41
|
10
12
|
- gemfiles/rails42
|
13
|
+
- gemfiles/rails50
|
11
14
|
|
12
15
|
script: bundle exec rake spec
|
13
16
|
|
14
17
|
before_install:
|
15
|
-
- gem install bundler -v '~> 1.
|
18
|
+
- gem install bundler -v '~> 1.12'
|
data/CHANGELOG.md
CHANGED
data/gemfiles/rails50
ADDED
@@ -14,11 +14,7 @@ module RailsMenuManager
|
|
14
14
|
# @param [Array] Menu path to check
|
15
15
|
# @return [Boolean] Boolean indicating if at least one menu item is in path
|
16
16
|
def in_menu?(*args)
|
17
|
-
_menu_items.
|
18
|
-
return true if menu.in?(*args)
|
19
|
-
end
|
20
|
-
|
21
|
-
false
|
17
|
+
_menu_items.any? { |m| m.in?(*args) }
|
22
18
|
end
|
23
19
|
|
24
20
|
# Adds a menu
|
data/rails-menu-manager.gemspec
CHANGED
@@ -12,13 +12,14 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.summary = %q{Simple menu manager for Rails.}
|
13
13
|
spec.description = %q{Simple menu manager for Rails.}
|
14
14
|
spec.homepage = 'https://github.com/ydkn/rails-menu-manager'
|
15
|
+
spec.license = 'MIT'
|
15
16
|
|
16
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
18
|
spec.bindir = 'bin'
|
18
19
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
20
|
spec.require_paths = ['lib']
|
20
21
|
|
21
|
-
spec.add_dependency 'railties', '>= 4.0', '<
|
22
|
+
spec.add_dependency 'railties', '>= 4.0', '< 6.0'
|
22
23
|
|
23
24
|
spec.add_development_dependency 'bundler', '~> 1.9'
|
24
25
|
spec.add_development_dependency 'rake', '~> 10.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-menu-manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Schwab
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '4.0'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '6.0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '4.0'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '6.0'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: bundler
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -104,6 +104,7 @@ files:
|
|
104
104
|
- gemfiles/rails40
|
105
105
|
- gemfiles/rails41
|
106
106
|
- gemfiles/rails42
|
107
|
+
- gemfiles/rails50
|
107
108
|
- lib/rails-menu-manager.rb
|
108
109
|
- lib/rails_menu_manager/action_controller.rb
|
109
110
|
- lib/rails_menu_manager/menu_item.rb
|
@@ -111,7 +112,8 @@ files:
|
|
111
112
|
- lib/rails_menu_manager/version.rb
|
112
113
|
- rails-menu-manager.gemspec
|
113
114
|
homepage: https://github.com/ydkn/rails-menu-manager
|
114
|
-
licenses:
|
115
|
+
licenses:
|
116
|
+
- MIT
|
115
117
|
metadata: {}
|
116
118
|
post_install_message:
|
117
119
|
rdoc_options: []
|
@@ -129,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
131
|
version: '0'
|
130
132
|
requirements: []
|
131
133
|
rubyforge_project:
|
132
|
-
rubygems_version: 2.
|
134
|
+
rubygems_version: 2.5.1
|
133
135
|
signing_key:
|
134
136
|
specification_version: 4
|
135
137
|
summary: Simple menu manager for Rails.
|