menu-rails 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 54995716b752ca3986bebdffa9bf21141217ce65
4
+ data.tar.gz: d53a501614e2b8650facd1f3e70b05c5f88cb749
5
+ SHA512:
6
+ metadata.gz: 43ec47cda017c386a4265dafc53f4598a24711b8292c3b390464d5f7fcd4954d14ec0c7e30c19601702747b3269ba38300b9a795c23520c94e343f1efc1194df
7
+ data.tar.gz: fe61f77f6530eadda79e447a791a2ab6cca039a5efafa36cd216cbc4cacffa4116b884c7c50bfb251e4f45c40372cd6f4d3f012ad68a6a7b023ac5bc5d9bf218
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format progress
data/Gemfile ADDED
@@ -0,0 +1,11 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in menu-rails.gemspec
4
+ gemspec
5
+
6
+ group :test do
7
+ gem 'sqlite3', '~> 1.3.8'
8
+ gem 'activerecord', '~> 4.0.1'
9
+ gem 'actionpack', '~> 4.0.1'
10
+ gem 'rspec-rails', '~> 2.14', require: false
11
+ end
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Fire-Dragon-DoL
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.
@@ -0,0 +1,29 @@
1
+ # menu-rails
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'menu-rails', '~> 0.0.1'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install menu-rails
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
@@ -0,0 +1,38 @@
1
+ require "bundler/gem_tasks"
2
+
3
+
4
+ # begin
5
+ # require "bundler/gem_tasks"
6
+ # require 'bundler/setup'
7
+ # rescue LoadError
8
+ # puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
9
+ # end
10
+
11
+ # require 'rdoc/task'
12
+
13
+ # RDoc::Task.new(:rdoc) do |rdoc|
14
+ # rdoc.rdoc_dir = 'rdoc'
15
+ # rdoc.title = 'MenuRails'
16
+ # rdoc.options << '--line-numbers'
17
+ # rdoc.rdoc_files.include('README.rdoc')
18
+ # rdoc.rdoc_files.include('lib/**/*.rb')
19
+ # end
20
+
21
+ # APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
22
+ # load 'rails/tasks/engine.rake'
23
+
24
+
25
+
26
+ # Bundler::GemHelper.install_tasks
27
+
28
+ # require 'rake/testtask'
29
+
30
+ # Rake::TestTask.new(:test) do |t|
31
+ # t.libs << 'lib'
32
+ # t.libs << 'test'
33
+ # t.pattern = 'test/**/*_test.rb'
34
+ # t.verbose = false
35
+ # end
36
+
37
+
38
+ # task default: :test
@@ -0,0 +1,59 @@
1
+ require 'activerecord-tableless'
2
+ require 'symbolize'
3
+ require 'thread'
4
+
5
+ module MenuRails
6
+
7
+ CONFIG_PATH = Rails.root.join('config', 'menu-rails.yml').freeze
8
+
9
+ class Menu < ActiveRecord::Base
10
+ include Symbolize::ActiveRecord
11
+
12
+ has_no_table
13
+
14
+ # Stands for MenuRails ID
15
+ column :mrid, :string
16
+
17
+ has_many :menu_items
18
+
19
+ symbolize :mrid
20
+
21
+ private
22
+
23
+ def build_menu_items_from_yaml_data!(menu_items_data)
24
+ menu_items_data.each do |menu_item_data|
25
+ menu_item = MenuItem.new(menu_item_data)
26
+ menu_item.menu = self
27
+ self.menu_items << menu_item
28
+ end
29
+ self.menu_items.freeze
30
+
31
+ # Chaining
32
+ self
33
+ end
34
+
35
+ class << self
36
+
37
+ SEMAPHORE = Mutex.new
38
+
39
+ def get_menu_by_mrid(identifier)
40
+ SEMAPHORE.synchronize do
41
+ if @menu_by_mrid.nil?
42
+ base_menu = YAML::load_file(CONFIG_PATH).with_indifferent_access[:menu_rails]
43
+ @menu_by_mrid = {}
44
+
45
+ base_menu.each do |menu_identifier, menu|
46
+ mid_sym = menu_identifier.to_sym
47
+ @menu_by_mrid[mid_sym] = new(mrid: mid_sym).send(:build_menu_items_from_yaml_data!, menu[:menu_items]).freeze
48
+ end
49
+ end
50
+
51
+ @menu_by_mrid[identifier.to_sym]
52
+ end
53
+ end
54
+
55
+ end
56
+
57
+ end
58
+
59
+ end
@@ -0,0 +1,22 @@
1
+ require 'activerecord-tableless'
2
+ require 'symbolize'
3
+
4
+ module MenuRails
5
+
6
+ class MenuItem < ActiveRecord::Base
7
+ include Symbolize::ActiveRecord
8
+
9
+ has_no_table
10
+
11
+ column :menu_id, :integer
12
+ # Stands for MenuRails Item ID
13
+ column :mriid, :string
14
+ column :text, :string
15
+
16
+ belongs_to :menu
17
+
18
+ symbolize :mriid
19
+
20
+ end
21
+
22
+ end
@@ -0,0 +1,7 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+
4
+ Bundler.require :default, :development
5
+
6
+ Combustion.initialize!
7
+ run Combustion::Application
@@ -0,0 +1,15 @@
1
+ require "menu-rails/version"
2
+
3
+ module MenuRails
4
+ end
5
+
6
+ # load Rails/Railtie
7
+ begin
8
+ require 'rails'
9
+ rescue LoadError
10
+ #do nothing
11
+ end
12
+
13
+ if defined? Rails
14
+ require 'menu-rails/engine'
15
+ end
@@ -0,0 +1,7 @@
1
+ require 'rails'
2
+
3
+ module MenuRails #:nodoc:
4
+ class Engine < ::Rails::Engine #:nodoc:
5
+ isolate_namespace MenuRails
6
+ end
7
+ end
@@ -0,0 +1,3 @@
1
+ module MenuRails
2
+ VERSION = "0.0.2"
3
+ end
@@ -0,0 +1,37 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'menu-rails/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "menu-rails"
8
+ spec.version = MenuRails::VERSION
9
+ spec.authors = ["Fire-Dragon-DoL"]
10
+ spec.email = ["francesco.belladonna@gmail.com"]
11
+ spec.description = %q{This gem provide a set of helpers and methods that allow to easily generate a menu and identify the currently active link item}
12
+ spec.summary = %q{Gem that helps creating menu in views and setting the currently active link item}
13
+ spec.homepage = "https://github.com/Fire-Dragon-DoL/menu-rails"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_dependency "i18n", "~> 0.6.5"
22
+ spec.add_dependency "rails", "~> 4.0.0"
23
+ spec.add_dependency "activesupport", "~> 4.0.0"
24
+ spec.add_dependency "activerecord-tableless", "~> 1.3.3"
25
+ spec.add_dependency "symbolize", "~> 4.4.1"
26
+
27
+ spec.add_development_dependency "bundler", "~> 1.3"
28
+ spec.add_development_dependency "rspec", "~> 2.14.0"
29
+ spec.add_development_dependency "combustion", "~> 0.5.1"
30
+ spec.add_development_dependency "faker", "~> 1.2.0"
31
+ spec.add_development_dependency "capybara", "~> 2.2.0"
32
+ spec.add_development_dependency "capybara-webkit", "~> 1.1.0"
33
+ spec.add_development_dependency "headless", "~> 1.0.1"
34
+ spec.add_development_dependency "factory_girl", "~> 4.3.0"
35
+ spec.add_development_dependency "pry"
36
+ spec.add_development_dependency "rake"
37
+ end
@@ -0,0 +1,19 @@
1
+ require 'menu-rails'
2
+
3
+ FactoryGirl.define do
4
+
5
+ factory :menu, class: MenuRails::Menu do
6
+ sequence(:mrid) { |n| "menu_#{ n }" }
7
+ end
8
+
9
+ factory :menu_item, class: MenuRails::MenuItem do
10
+ sequence(:mriid) { |n| "menu_item_#{ n }" }
11
+ text { Faker::Lorem.word }
12
+ # name { Faker::Name.first_name }
13
+
14
+ # factory :dummy_invalid do
15
+ # will_invalidate true
16
+ # end
17
+ end
18
+
19
+ end
@@ -0,0 +1,25 @@
1
+ require 'spec_helper'
2
+ require 'active_support/all'
3
+
4
+ def menu_rails
5
+ @menu_rails ||= YAML::load_file(MenuRails::CONFIG_PATH).with_indifferent_access[:menu_rails]
6
+ end
7
+
8
+ feature "Menu generation" do
9
+
10
+ scenario "Ensure capybara is working correctly" do
11
+ visit root_path
12
+
13
+ page.should have_content("Capybara working correctly")
14
+ end
15
+
16
+ # # scenario "Print Home menu item" do
17
+ # menu_rails.each do |menu_rails_item|
18
+ # scenario "Print #{ menu_rails_item[:text] } menu item" do
19
+ # visit root_path
20
+
21
+ # page.should have_content(menu_rails_item[:text])
22
+ # end
23
+ # end
24
+
25
+ end
@@ -0,0 +1,5 @@
1
+ class ApplicationController < ActionController::Base
2
+ # Prevent CSRF attacks by raising an exception.
3
+ # For APIs, you may want to use :null_session instead.
4
+ protect_from_forgery with: :exception
5
+ end
@@ -0,0 +1,6 @@
1
+ class PagesController < ApplicationController
2
+
3
+ def home
4
+ end
5
+
6
+ end
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Internal</title>
5
+ <%= csrf_meta_tags %>
6
+ </head>
7
+ <body>
8
+ <p class="notice"><%= notice %></p>
9
+ <p class="alert"><%= alert %></p>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
@@ -0,0 +1 @@
1
+ Capybara working correctly
@@ -0,0 +1,3 @@
1
+ test:
2
+ adapter: sqlite3
3
+ database: ":memory:"
@@ -0,0 +1,42 @@
1
+ menu_rails:
2
+ client:
3
+ menu_items:
4
+ - mriid: :home
5
+ text: Home
6
+ admin:
7
+ menu_items:
8
+ - mriid: :home
9
+ text: Home
10
+ # app_config:
11
+ # client:
12
+ # menu:
13
+ # - text: Home
14
+ # class_name: 'PagesController'
15
+ # can: :read
16
+ # url: :root_path
17
+ # - text: About
18
+ # class_name: 'PagesController'
19
+ # can: :read
20
+ # url: :root_path
21
+ # - text: Archives
22
+ # class_name: 'PagesController'
23
+ # can: :read
24
+ # url: :root_path
25
+ # - text: Dropdown
26
+ # class_name: 'PagesController'
27
+ # can: :read
28
+ # url: :root_path
29
+ # - text: Templates
30
+ # class_name: 'PagesController'
31
+ # can: :read
32
+ # url: :root_path
33
+ # - text: Contact
34
+ # class_name: 'PagesController'
35
+ # can: :read
36
+ # url: :root_path
37
+ # last: true
38
+ # admin:
39
+ # menu:
40
+ # - text: Home
41
+ # class_name: 'Admin::PagesController'
42
+ # can: :read
@@ -0,0 +1,3 @@
1
+ Rails.application.routes.draw do
2
+ root to: 'pages#home'
3
+ end
@@ -0,0 +1,3 @@
1
+ ActiveRecord::Schema.define do
2
+ #
3
+ end
@@ -0,0 +1 @@
1
+ *.log
File without changes
@@ -0,0 +1,23 @@
1
+ require 'spec_helper'
2
+
3
+ describe MenuRails::MenuItem do
4
+
5
+ it "has a valid factory" do
6
+ -> {FactoryGirl.build(:menu_item)}.should_not raise_error
7
+ end
8
+
9
+ let(:menu_item) { FactoryGirl.build(:menu_item) }
10
+
11
+ it { menu_item.should respond_to(:mriid, :text, :menu) }
12
+ it { menu_item.text.should be_an_instance_of String }
13
+ it { menu_item.mriid.should be_an_instance_of Symbol }
14
+
15
+ context "with menu :client as parent" do
16
+ let(:menu) { MenuRails::Menu.get_menu_by_mrid(:client) }
17
+ let(:menu_item) { menu.menu_items.first }
18
+
19
+ it { menu_item.menu.should be menu }
20
+
21
+ end
22
+
23
+ end
@@ -0,0 +1,27 @@
1
+ require 'spec_helper'
2
+
3
+ describe MenuRails::Menu do
4
+
5
+ it { described_class.should respond_to(:get_menu_by_mrid) }
6
+ it { described_class.get_menu_by_mrid(:client).should be_an_instance_of described_class }
7
+ it { described_class.get_menu_by_mrid(:not_exist).should be_nil }
8
+ it { described_class.get_menu_by_mrid(:client).mrid.should be :client }
9
+
10
+ it "has a valid factory" do
11
+ -> {FactoryGirl.build(:menu)}.should_not raise_error
12
+ end
13
+
14
+ it "has a mrid that is always a symbol" do
15
+ menu = FactoryGirl.build(:menu)
16
+ menu.mrid = 'test'
17
+ menu.mrid.should be_an_instance_of Symbol
18
+ end
19
+
20
+ let(:menu) { described_class.get_menu_by_mrid(:client) }
21
+
22
+ it { menu.should respond_to(:menu_items, :mrid) }
23
+ it { menu.menu_items.should respond_to(:size, :each) }
24
+ it { menu.mrid.should be_a_kind_of Symbol }
25
+ it { menu.menu_items.first.text.should match 'Home' }
26
+
27
+ end
@@ -0,0 +1,48 @@
1
+ $LOAD_PATH << File.expand_path("../../lib", __FILE__)
2
+
3
+ require 'bundler/setup'
4
+ require 'combustion'
5
+ require 'headless'
6
+ require 'capybara/rspec'
7
+
8
+ Combustion.initialize! :active_record,
9
+ :action_controller,
10
+ :action_view do
11
+ config.i18n.enforce_available_locales = false
12
+ end
13
+
14
+ Bundler.require(:default, :development, :test)
15
+
16
+ require 'rails'
17
+ require 'rails/all'
18
+ require 'rspec/rails'
19
+ require 'capybara/rails'
20
+ require 'capybara/dsl'
21
+ require 'factories'
22
+
23
+ Dir[File.expand_path("../support/**/*.rb", __FILE__)].each { |f| require f }
24
+
25
+ require 'pry'
26
+
27
+ # This file was generated by the `rspec --init` command. Conventionally, all
28
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
29
+ # Require this file using `require "spec_helper"` to ensure that it is only
30
+ # loaded once.
31
+ #
32
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
33
+ RSpec.configure do |config|
34
+ config.treat_symbols_as_metadata_keys_with_true_values = true
35
+ config.run_all_when_everything_filtered = true
36
+ config.filter_run :focus
37
+
38
+ # Run specs in random order to surface order dependencies. If you find an
39
+ # order dependency and want to debug it, you can fix the order by providing
40
+ # the seed, which is printed after each run.
41
+ # --seed 1234
42
+ config.order = 'random'
43
+
44
+ # Capybara with webkit and headless + DSL
45
+ Capybara.javascript_driver = :webkit
46
+ $HEADLESS_DISPLAY = Headless.new(display: 20).start
47
+ config.include Capybara::DSL, type: :feature
48
+ end
metadata ADDED
@@ -0,0 +1,299 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: menu-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Fire-Dragon-DoL
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-12-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: i18n
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 0.6.5
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 0.6.5
27
+ - !ruby/object:Gem::Dependency
28
+ name: rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 4.0.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 4.0.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: activesupport
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 4.0.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 4.0.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: activerecord-tableless
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 1.3.3
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: 1.3.3
69
+ - !ruby/object:Gem::Dependency
70
+ name: symbolize
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: 4.4.1
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: 4.4.1
83
+ - !ruby/object:Gem::Dependency
84
+ name: bundler
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: '1.3'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: '1.3'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ~>
102
+ - !ruby/object:Gem::Version
103
+ version: 2.14.0
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ~>
109
+ - !ruby/object:Gem::Version
110
+ version: 2.14.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: combustion
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: 0.5.1
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ~>
123
+ - !ruby/object:Gem::Version
124
+ version: 0.5.1
125
+ - !ruby/object:Gem::Dependency
126
+ name: faker
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ~>
130
+ - !ruby/object:Gem::Version
131
+ version: 1.2.0
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ~>
137
+ - !ruby/object:Gem::Version
138
+ version: 1.2.0
139
+ - !ruby/object:Gem::Dependency
140
+ name: capybara
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ~>
144
+ - !ruby/object:Gem::Version
145
+ version: 2.2.0
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ~>
151
+ - !ruby/object:Gem::Version
152
+ version: 2.2.0
153
+ - !ruby/object:Gem::Dependency
154
+ name: capybara-webkit
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ~>
158
+ - !ruby/object:Gem::Version
159
+ version: 1.1.0
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ~>
165
+ - !ruby/object:Gem::Version
166
+ version: 1.1.0
167
+ - !ruby/object:Gem::Dependency
168
+ name: headless
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ~>
172
+ - !ruby/object:Gem::Version
173
+ version: 1.0.1
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ~>
179
+ - !ruby/object:Gem::Version
180
+ version: 1.0.1
181
+ - !ruby/object:Gem::Dependency
182
+ name: factory_girl
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ~>
186
+ - !ruby/object:Gem::Version
187
+ version: 4.3.0
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ~>
193
+ - !ruby/object:Gem::Version
194
+ version: 4.3.0
195
+ - !ruby/object:Gem::Dependency
196
+ name: pry
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - '>='
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - '>='
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: rake
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - '>='
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - '>='
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ description: This gem provide a set of helpers and methods that allow to easily generate
224
+ a menu and identify the currently active link item
225
+ email:
226
+ - francesco.belladonna@gmail.com
227
+ executables: []
228
+ extensions: []
229
+ extra_rdoc_files: []
230
+ files:
231
+ - .gitignore
232
+ - .rspec
233
+ - Gemfile
234
+ - LICENSE.txt
235
+ - README.md
236
+ - Rakefile
237
+ - app/models/menu_rails/menu.rb
238
+ - app/models/menu_rails/menu_item.rb
239
+ - config.ru
240
+ - lib/menu-rails.rb
241
+ - lib/menu-rails/engine.rb
242
+ - lib/menu-rails/version.rb
243
+ - menu-rails.gemspec
244
+ - spec/factories.rb
245
+ - spec/features/pages_spec.rb
246
+ - spec/internal/app/controllers/application_controller.rb
247
+ - spec/internal/app/controllers/pages_controller.rb
248
+ - spec/internal/app/views/layouts/application.html.erb
249
+ - spec/internal/app/views/pages/home.html.erb
250
+ - spec/internal/config/database.yml
251
+ - spec/internal/config/menu-rails.yml
252
+ - spec/internal/config/routes.rb
253
+ - spec/internal/db/schema.rb
254
+ - spec/internal/log/.gitignore
255
+ - spec/internal/public/favicon.ico
256
+ - spec/models/menu_item_spec.rb
257
+ - spec/models/menu_spec.rb
258
+ - spec/spec_helper.rb
259
+ homepage: https://github.com/Fire-Dragon-DoL/menu-rails
260
+ licenses:
261
+ - MIT
262
+ metadata: {}
263
+ post_install_message:
264
+ rdoc_options: []
265
+ require_paths:
266
+ - lib
267
+ required_ruby_version: !ruby/object:Gem::Requirement
268
+ requirements:
269
+ - - '>='
270
+ - !ruby/object:Gem::Version
271
+ version: '0'
272
+ required_rubygems_version: !ruby/object:Gem::Requirement
273
+ requirements:
274
+ - - '>='
275
+ - !ruby/object:Gem::Version
276
+ version: '0'
277
+ requirements: []
278
+ rubyforge_project:
279
+ rubygems_version: 2.0.3
280
+ signing_key:
281
+ specification_version: 4
282
+ summary: Gem that helps creating menu in views and setting the currently active link
283
+ item
284
+ test_files:
285
+ - spec/factories.rb
286
+ - spec/features/pages_spec.rb
287
+ - spec/internal/app/controllers/application_controller.rb
288
+ - spec/internal/app/controllers/pages_controller.rb
289
+ - spec/internal/app/views/layouts/application.html.erb
290
+ - spec/internal/app/views/pages/home.html.erb
291
+ - spec/internal/config/database.yml
292
+ - spec/internal/config/menu-rails.yml
293
+ - spec/internal/config/routes.rb
294
+ - spec/internal/db/schema.rb
295
+ - spec/internal/log/.gitignore
296
+ - spec/internal/public/favicon.ico
297
+ - spec/models/menu_item_spec.rb
298
+ - spec/models/menu_spec.rb
299
+ - spec/spec_helper.rb