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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e581b735d3ae2594071364e8a3d4bc9e61ff41b
4
- data.tar.gz: d032d81ae6a24718579a8534f6b841e562f610a3
3
+ metadata.gz: 91ef574e09a08bec9b01578773e8e2c09d291280
4
+ data.tar.gz: 3bf945c7c0e2d31568bca9bc39d7187a2153e35d
5
5
  SHA512:
6
- metadata.gz: 34fb992a4bb146cc75543e4f34c71fb22925e508a5cc4aeadbcb21d13f6b6be54b67a0548efcebd689eb8d4d52e7a413ee6679c910f9279f67a844ef549777e2
7
- data.tar.gz: 48f8d6f2e67b154833a93f1962c3463eb386cc56bca4c2284c73658fe9e0176778fc398b1c60ae0e69485d8904283ad9c4635446c40029428394c73e3ea0cd3b
6
+ metadata.gz: 167d0296ca91d32099ae506c5e1c8dddeba040d6ecff94e6e00ead47c8d940c0eb727201449a671d4770c7f3219f254e10cd70c769dd94ae70aaa546f966dbab
7
+ data.tar.gz: f07eb50756fdf4d873128ded104167da3dba81e3dc07ae6ed17d0c758701268f2fa86395b18388e872b85b78ce0b216c5506762ab5b6acfc59d1cc18a7ca9269
@@ -1,15 +1,18 @@
1
+ sudo: false
2
+
1
3
  language: ruby
2
4
 
3
5
  rvm:
4
- - 2.1.5
5
- - 2.2.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.9'
18
+ - gem install bundler -v '~> 1.12'
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.3.0 (2016-07-07)
4
+ ### Changes
5
+ - Rails 5.0 support
6
+
3
7
  ## 0.2.0 (2015-04-20) (initial release)
4
8
  ### Changes
5
9
  - Renamed namespace from Rails::Menu::Manager to RailsMenuManager
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in rails-menu-manager.gemspec
4
+ gemspec path: '..'
5
+
6
+
7
+ gem 'railties', '~> 5.0'
@@ -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.each do |menu|
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
@@ -1,3 +1,3 @@
1
1
  module RailsMenuManager
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
3
3
  end
@@ -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', '< 5.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.2.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: 2015-04-22 00:00:00.000000000 Z
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: '5.0'
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: '5.0'
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.4.6
134
+ rubygems_version: 2.5.1
133
135
  signing_key:
134
136
  specification_version: 4
135
137
  summary: Simple menu manager for Rails.