spree_taxonomy_purpose_menu 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ \#*
2
+ *~
3
+ .#*
4
+ .DS_Store
5
+ .idea
6
+ .project
7
+ tmp
8
+ nbproject
9
+ *.swp
10
+ spec/dummy
11
+ *.gem
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --colour
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source 'http://rubygems.org'
2
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,212 @@
1
+ GIT
2
+ remote: git://github.com/robertoles/spree_taxonomy_purpose.git
3
+ revision: 34884c0c1b0b424f6880616de026543362a5e8bd
4
+ specs:
5
+ spree_taxonomy_purpose (1.1.3)
6
+ spree_core (~> 1.1.3)
7
+
8
+ PATH
9
+ remote: .
10
+ specs:
11
+ spree_taxonomy_purpose_menu (1.1.3)
12
+ spree_core (~> 1.1.3)
13
+
14
+ GEM
15
+ remote: http://rubygems.org/
16
+ specs:
17
+ actionmailer (3.2.8)
18
+ actionpack (= 3.2.8)
19
+ mail (~> 2.4.4)
20
+ actionpack (3.2.8)
21
+ activemodel (= 3.2.8)
22
+ activesupport (= 3.2.8)
23
+ builder (~> 3.0.0)
24
+ erubis (~> 2.7.0)
25
+ journey (~> 1.0.4)
26
+ rack (~> 1.4.0)
27
+ rack-cache (~> 1.2)
28
+ rack-test (~> 0.6.1)
29
+ sprockets (~> 2.1.3)
30
+ active_utils (1.0.4)
31
+ activesupport (>= 2.3.11)
32
+ i18n
33
+ activemerchant (1.20.4)
34
+ active_utils (>= 1.0.2)
35
+ activesupport (>= 2.3.11)
36
+ braintree (>= 2.0.0)
37
+ builder (>= 2.0.0)
38
+ i18n
39
+ json (>= 1.5.1)
40
+ money (<= 3.7.1)
41
+ activemodel (3.2.8)
42
+ activesupport (= 3.2.8)
43
+ builder (~> 3.0.0)
44
+ activerecord (3.2.8)
45
+ activemodel (= 3.2.8)
46
+ activesupport (= 3.2.8)
47
+ arel (~> 3.0.2)
48
+ tzinfo (~> 0.3.29)
49
+ activeresource (3.2.8)
50
+ activemodel (= 3.2.8)
51
+ activesupport (= 3.2.8)
52
+ activesupport (3.2.8)
53
+ i18n (~> 0.6)
54
+ multi_json (~> 1.0)
55
+ acts_as_list (0.1.4)
56
+ addressable (2.3.2)
57
+ arel (3.0.2)
58
+ aws-sdk (1.3.9)
59
+ httparty (~> 0.7)
60
+ json (~> 1.4)
61
+ nokogiri (>= 1.4.4)
62
+ uuidtools (~> 2.1)
63
+ braintree (2.16.0)
64
+ builder (>= 2.0.0)
65
+ builder (3.0.0)
66
+ capybara (1.0.1)
67
+ mime-types (>= 1.16)
68
+ nokogiri (>= 1.3.3)
69
+ rack (>= 1.0.0)
70
+ rack-test (>= 0.5.4)
71
+ selenium-webdriver (~> 2.0)
72
+ xpath (~> 0.1.4)
73
+ childprocess (0.3.5)
74
+ ffi (~> 1.0, >= 1.0.6)
75
+ cocaine (0.3.0)
76
+ deface (0.9.1)
77
+ nokogiri (~> 1.5.0)
78
+ rails (~> 3.1)
79
+ diff-lcs (1.1.3)
80
+ erubis (2.7.0)
81
+ factory_girl (2.6.4)
82
+ activesupport (>= 2.3.9)
83
+ ffaker (1.12.1)
84
+ ffi (1.1.5)
85
+ highline (1.6.11)
86
+ hike (1.2.1)
87
+ httparty (0.8.3)
88
+ multi_json (~> 1.0)
89
+ multi_xml
90
+ i18n (0.6.1)
91
+ journey (1.0.4)
92
+ jquery-rails (2.0.3)
93
+ railties (>= 3.1.0, < 5.0)
94
+ thor (~> 0.14)
95
+ json (1.7.5)
96
+ kaminari (0.14.0)
97
+ actionpack (>= 3.0.0)
98
+ activesupport (>= 3.0.0)
99
+ libwebsocket (0.1.5)
100
+ addressable
101
+ mail (2.4.4)
102
+ i18n (>= 0.4.0)
103
+ mime-types (~> 1.16)
104
+ treetop (~> 1.4.8)
105
+ mime-types (1.19)
106
+ money (3.7.1)
107
+ i18n (~> 0.4)
108
+ multi_json (1.3.6)
109
+ multi_xml (0.5.1)
110
+ nested_set (1.7.0)
111
+ activerecord (>= 3.0.0)
112
+ railties (>= 3.0.0)
113
+ nokogiri (1.5.5)
114
+ paperclip (2.7.0)
115
+ activerecord (>= 2.3.0)
116
+ activesupport (>= 2.3.2)
117
+ cocaine (>= 0.0.2)
118
+ mime-types
119
+ polyamorous (0.5.0)
120
+ activerecord (~> 3.0)
121
+ polyglot (0.3.3)
122
+ rack (1.4.1)
123
+ rack-cache (1.2)
124
+ rack (>= 0.4)
125
+ rack-ssl (1.3.2)
126
+ rack
127
+ rack-test (0.6.1)
128
+ rack (>= 1.0)
129
+ rails (3.2.8)
130
+ actionmailer (= 3.2.8)
131
+ actionpack (= 3.2.8)
132
+ activerecord (= 3.2.8)
133
+ activeresource (= 3.2.8)
134
+ activesupport (= 3.2.8)
135
+ bundler (~> 1.0)
136
+ railties (= 3.2.8)
137
+ railties (3.2.8)
138
+ actionpack (= 3.2.8)
139
+ activesupport (= 3.2.8)
140
+ rack-ssl (~> 1.3.2)
141
+ rake (>= 0.8.7)
142
+ rdoc (~> 3.4)
143
+ thor (>= 0.14.6, < 2.0)
144
+ rake (0.9.2.2)
145
+ ransack (0.6.0)
146
+ actionpack (~> 3.0)
147
+ activerecord (~> 3.0)
148
+ polyamorous (~> 0.5.0)
149
+ rdoc (3.12)
150
+ json (~> 1.4)
151
+ rspec (2.11.0)
152
+ rspec-core (~> 2.11.0)
153
+ rspec-expectations (~> 2.11.0)
154
+ rspec-mocks (~> 2.11.0)
155
+ rspec-core (2.11.1)
156
+ rspec-expectations (2.11.2)
157
+ diff-lcs (~> 1.1.3)
158
+ rspec-mocks (2.11.2)
159
+ rspec-rails (2.11.0)
160
+ actionpack (>= 3.0)
161
+ activesupport (>= 3.0)
162
+ railties (>= 3.0)
163
+ rspec (~> 2.11.0)
164
+ rubyzip (0.9.9)
165
+ selenium-webdriver (2.25.0)
166
+ childprocess (>= 0.2.5)
167
+ libwebsocket (~> 0.1.3)
168
+ multi_json (~> 1.0)
169
+ rubyzip
170
+ spree_core (1.1.3)
171
+ activemerchant (= 1.20.4)
172
+ acts_as_list (= 0.1.4)
173
+ aws-sdk (~> 1.3.4)
174
+ deface (>= 0.9.0)
175
+ ffaker (~> 1.12.0)
176
+ highline (= 1.6.11)
177
+ jquery-rails (~> 2.0.0)
178
+ kaminari (>= 0.13.0)
179
+ nested_set (= 1.7.0)
180
+ paperclip (~> 2.7)
181
+ rails (~> 3.2.6)
182
+ ransack (~> 0.6.0)
183
+ state_machine (= 1.1.2)
184
+ stringex (~> 1.3.2)
185
+ sprockets (2.1.3)
186
+ hike (~> 1.2)
187
+ rack (~> 1.0)
188
+ tilt (~> 1.1, != 1.3.0)
189
+ sqlite3 (1.3.6)
190
+ state_machine (1.1.2)
191
+ stringex (1.3.3)
192
+ thor (0.16.0)
193
+ tilt (1.3.3)
194
+ treetop (1.4.10)
195
+ polyglot
196
+ polyglot (>= 0.3.1)
197
+ tzinfo (0.3.33)
198
+ uuidtools (2.1.3)
199
+ xpath (0.1.4)
200
+ nokogiri (~> 1.3)
201
+
202
+ PLATFORMS
203
+ ruby
204
+
205
+ DEPENDENCIES
206
+ capybara (= 1.0.1)
207
+ factory_girl (~> 2.6.4)
208
+ ffaker
209
+ rspec-rails (~> 2.9)
210
+ spree_taxonomy_purpose!
211
+ spree_taxonomy_purpose_menu!
212
+ sqlite3
data/LICENSE ADDED
@@ -0,0 +1,26 @@
1
+ Copyright (c) 2012 [name of plugin creator]
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without modification,
5
+ are permitted provided that the following conditions are met:
6
+
7
+ * Redistributions of source code must retain the above copyright notice,
8
+ this list of conditions and the following disclaimer.
9
+ * Redistributions in binary form must reproduce the above copyright notice,
10
+ this list of conditions and the following disclaimer in the documentation
11
+ and/or other materials provided with the distribution.
12
+ * Neither the name Spree nor the names of its contributors may be used to
13
+ endorse or promote products derived from this software without specific
14
+ prior written permission.
15
+
16
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
20
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
21
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
22
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
23
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
data/README.md ADDED
@@ -0,0 +1,21 @@
1
+ SpreeTaxonomyPurposeMenu
2
+ ========================
3
+
4
+ Introduction goes here.
5
+
6
+
7
+ Example
8
+ =======
9
+
10
+ Example goes here.
11
+
12
+ Testing
13
+ -------
14
+
15
+ Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.
16
+
17
+ $ bundle
18
+ $ bundle exec rake test_app
19
+ $ bundle exec rspec spec
20
+
21
+ Copyright (c) 2012 [name of extension creator], released under the New BSD License
data/Rakefile ADDED
@@ -0,0 +1,29 @@
1
+ require 'rake'
2
+ require 'rake/testtask'
3
+ require 'rake/packagetask'
4
+ require 'rubygems/package_task'
5
+ require 'rspec/core/rake_task'
6
+ require 'spree/core/testing_support/common_rake'
7
+
8
+ RSpec::Core::RakeTask.new
9
+
10
+ task :default => [:spec]
11
+
12
+ spec = eval(File.read('spree_taxonomy_purpose_menu.gemspec'))
13
+
14
+ Gem::PackageTask.new(spec) do |p|
15
+ p.gem_spec = spec
16
+ end
17
+
18
+ desc 'Release to gemcutter'
19
+ task :release => :package do
20
+ require 'rake/gemcutter'
21
+ Rake::Gemcutter::Tasks.new(spec).define
22
+ Rake::Task['gem:push'].invoke
23
+ end
24
+
25
+ desc 'Generates a dummy app for testing'
26
+ task :test_app do
27
+ ENV['LIB_NAME'] = 'spree_taxonomy_purpose_menu'
28
+ Rake::Task['common:test_app'].invoke
29
+ end
data/Versionfile ADDED
@@ -0,0 +1,11 @@
1
+ # This file is used to designate compatibilty with different versions of Spree
2
+ # Please see http://spreecommerce.com/documentation/extensions.html#versionfile for details
3
+
4
+ # Examples
5
+ #
6
+ # '1.2.x' => { :branch => 'master' }
7
+ # '1.1.x' => { :branch => '1-1-stable' }
8
+ # '1.0.x' => { :branch => '1-0-stable' }
9
+ # '0.70.x' => { :branch => '0-70-stable' }
10
+ # '0.40.x' => { :tag => 'v1.0.0', :version => '1.0.0' }
11
+
@@ -0,0 +1 @@
1
+ //= require admin/spree_core
@@ -0,0 +1 @@
1
+ //= require store/spree_core
@@ -0,0 +1,3 @@
1
+ /*
2
+ *= require admin/spree_core
3
+ */
@@ -0,0 +1,90 @@
1
+ /*
2
+ *= require store/spree_core
3
+ */
4
+
5
+ #categories {
6
+ position: relative;
7
+ }
8
+
9
+ .nav-item {
10
+ float: left;
11
+ width: 75px;
12
+ text-align: center;
13
+ height: 20px;
14
+ }
15
+
16
+ .nav-item .nav-button a {
17
+ display: block;
18
+ }
19
+ .nav-button {
20
+ position: relative;
21
+ }
22
+
23
+ .nav-item .arrow-up {
24
+ width: 0;
25
+ height: 0;
26
+ border-left: 5px solid transparent;
27
+ border-right: 5px solid transparent;
28
+ border-bottom: 5px solid #333;
29
+ display: none;
30
+ position: absolute;
31
+ bottom: -5px;
32
+ left: 49%;
33
+ z-index: 20000;
34
+ }
35
+
36
+ .nav-item:hover > .nav-button .arrow-up {
37
+ display: block;
38
+ }
39
+
40
+ .nav-view {
41
+ position: absolute;
42
+ top: 23px;
43
+ left: 0px;
44
+ width: 960px;
45
+ z-index: 10000;
46
+ text-align: left;
47
+ display: none;
48
+ background-color: #333;
49
+ }
50
+
51
+ .nav-view .section-row {
52
+ width: 960px;
53
+ }
54
+
55
+ .nav-view .section-wrapper {
56
+ width: 25%;
57
+ float: left;
58
+ }
59
+
60
+ .nav-item:hover > .nav-view {
61
+ display: block;
62
+ }
63
+
64
+ .nav-view .section {
65
+ text-align: left;
66
+ margin: 20px;
67
+ }
68
+
69
+ .nav-view .section-title a {
70
+ color: #7dcc3f;
71
+ text-transform: capitalize;
72
+ font-weight: bold;
73
+ font-size: 14px;
74
+ }
75
+
76
+ .nav-view .section-title {
77
+ padding: 5px 0px;
78
+ }
79
+
80
+ .nav-view .section-items a {
81
+ color: white;
82
+ text-transform: capitalize;
83
+ font-weight: bold;
84
+ font-size: 12px;
85
+ display: block;
86
+ }
87
+
88
+ .nav-view .section-items {
89
+ padding: 5px 0px;
90
+ }
@@ -0,0 +1,14 @@
1
+ Spree::Taxon.class_eval do
2
+ attr_accessible(:hide_from_menu)
3
+ end
4
+
5
+ Spree::Taxon.instance_eval do
6
+ def menu
7
+ Spree::Taxonomy.menu.root
8
+ end
9
+
10
+ def menu_items
11
+ return [] unless Spree::Taxonomy.menu
12
+ Spree::Taxonomy.menu.root.children.where('hide_from_menu = ? OR hide_from_menu IS NULL', false)
13
+ end
14
+ end
@@ -0,0 +1,6 @@
1
+ Spree::Taxonomy.purposes << 'menu'
2
+ Spree::Taxonomy.instance_eval do
3
+ def menu
4
+ Spree::Taxonomy.order(:id).where('purpose = ?', 'menu').first
5
+ end
6
+ end
@@ -0,0 +1,4 @@
1
+ Deface::Override.new(virtual_path: "spree/layouts/spree_application",
2
+ name: "add_categories_menu",
3
+ insert_after: "#top-nav-bar",
4
+ partial: 'spree/taxonomies/menu')
@@ -0,0 +1,5 @@
1
+ Deface::Override.new(
2
+ virtual_path: "spree/admin/taxons/_form",
3
+ partial: 'spree/admin/taxons/hide_from_menu_field',
4
+ insert_bottom: "[data-hook='admin_taxon_form_fields']",
5
+ name: 'add_taxon_hide_from_menu')
@@ -0,0 +1,5 @@
1
+ <%= f.field_container :hide_from_menu do %>
2
+ <%= f.label :hide_from_menu, t(:hide_from_menu) %><br />
3
+ <%= error_message_on :taxon, :hide_from_menu, :class => 'fullwidth title' %>
4
+ <%= f.check_box :hide_from_menu %>
5
+ <% end %>
@@ -0,0 +1,32 @@
1
+ <div id="categories" class="row">
2
+ <% Spree::Taxon.menu_items.each do |category| %>
3
+ <div class="category nav-item <%= category.style %>">
4
+ <div class="nav-button">
5
+ <%= link_to(category.name, seo_url(category)) %>
6
+ <div class="arrow-up"></div>
7
+ </div>
8
+ <div class="nav-view">
9
+ <% category.children.in_groups_of(4) do |group| %>
10
+ <div class="section-row row">
11
+ <% group.each do |child| %>
12
+ <div class="section-wrapper">
13
+ <div class="section">
14
+ <% if child %>
15
+ <div class="section-title">
16
+ <%= link_to(child.name, seo_url(child)) %>
17
+ </div>
18
+ <div class="section-items">
19
+ <% child.children.each do |grandchild| %>
20
+ <%= link_to(grandchild.name, seo_url(grandchild)) %>
21
+ <% end %>
22
+ </div>
23
+ <% end %>
24
+ </div>
25
+ </div>
26
+ <% end %>
27
+ </div>
28
+ <% end %>
29
+ </div>
30
+ </div>
31
+ <% end %>
32
+ </div>
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
data/config/routes.rb ADDED
@@ -0,0 +1,3 @@
1
+ Spree::Core::Engine.routes.draw do
2
+ # Add your extension routes here
3
+ end
@@ -0,0 +1,5 @@
1
+ class AddHideFromMenuToSpreeTaxons < ActiveRecord::Migration
2
+ def change
3
+ add_column :spree_taxons, :hide_from_menu, :boolean
4
+ end
5
+ end
@@ -0,0 +1,29 @@
1
+ module SpreeTaxonomyPurposeMenu
2
+ module Generators
3
+ class InstallGenerator < Rails::Generators::Base
4
+
5
+ def add_javascripts
6
+ append_file 'app/assets/javascripts/store/all.js', "//= require store/spree_taxonomy_purpose_menu\n"
7
+ append_file 'app/assets/javascripts/admin/all.js', "//= require admin/spree_taxonomy_purpose_menu\n"
8
+ end
9
+
10
+ def add_stylesheets
11
+ inject_into_file 'app/assets/stylesheets/store/all.css', " *= require store/spree_taxonomy_purpose_menu\n", :before => /\*\//, :verbose => true
12
+ inject_into_file 'app/assets/stylesheets/admin/all.css', " *= require admin/spree_taxonomy_purpose_menu\n", :before => /\*\//, :verbose => true
13
+ end
14
+
15
+ def add_migrations
16
+ run 'bundle exec rake railties:install:migrations FROM=spree_taxonomy_purpose_menu'
17
+ end
18
+
19
+ def run_migrations
20
+ res = ask 'Would you like to run the migrations now? [Y/n]'
21
+ if res == '' || res.downcase == 'y'
22
+ run 'bundle exec rake db:migrate'
23
+ else
24
+ puts 'Skipping rake db:migrate, don\'t forget to run it!'
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,2 @@
1
+ require 'spree_core'
2
+ require 'spree_taxonomy_purpose_menu/engine'
@@ -0,0 +1,22 @@
1
+ module SpreeTaxonomyPurposeMenu
2
+ class Engine < Rails::Engine
3
+ require 'spree/core'
4
+ isolate_namespace Spree
5
+ engine_name 'spree_taxonomy_purpose_menu'
6
+
7
+ config.autoload_paths += %W(#{config.root}/lib)
8
+
9
+ # use rspec for tests
10
+ config.generators do |g|
11
+ g.test_framework :rspec
12
+ end
13
+
14
+ def self.activate
15
+ Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')) do |c|
16
+ Rails.configuration.cache_classes ? require(c) : load(c)
17
+ end
18
+ end
19
+
20
+ config.to_prepare &method(:activate).to_proc
21
+ end
22
+ end
data/script/rails ADDED
@@ -0,0 +1,7 @@
1
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
2
+
3
+ ENGINE_ROOT = File.expand_path('../..', __FILE__)
4
+ ENGINE_PATH = File.expand_path('../../lib/spree_taxonomy_purpose_menu/engine', __FILE__)
5
+
6
+ require 'rails/all'
7
+ require 'rails/engine/commands'
@@ -0,0 +1,44 @@
1
+ # Configure Rails Environment
2
+ ENV['RAILS_ENV'] = 'test'
3
+
4
+ require File.expand_path('../dummy/config/environment.rb', __FILE__)
5
+
6
+ require 'rspec/rails'
7
+ require 'ffaker'
8
+
9
+ # Requires supporting ruby files with custom matchers and macros, etc,
10
+ # in spec/support/ and its subdirectories.
11
+ Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f }
12
+
13
+ # Requires factories defined in spree_core
14
+ require 'spree/core/testing_support/factories'
15
+ require 'spree/core/url_helpers'
16
+
17
+ RSpec.configure do |config|
18
+ config.include FactoryGirl::Syntax::Methods
19
+
20
+ # == URL Helpers
21
+ #
22
+ # Allows access to Spree's routes in specs:
23
+ #
24
+ # visit spree.admin_path
25
+ # current_path.should eql(spree.products_path)
26
+ config.include Spree::Core::UrlHelpers
27
+
28
+ # == Mock Framework
29
+ #
30
+ # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
31
+ #
32
+ # config.mock_with :mocha
33
+ # config.mock_with :flexmock
34
+ # config.mock_with :rr
35
+ config.mock_with :rspec
36
+
37
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
38
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
39
+
40
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
41
+ # examples within a transaction, remove the following line or assign false
42
+ # instead of true.
43
+ config.use_transactional_fixtures = true
44
+ end
@@ -0,0 +1,26 @@
1
+ # encoding: UTF-8
2
+ Gem::Specification.new do |s|
3
+ s.platform = Gem::Platform::RUBY
4
+ s.name = 'spree_taxonomy_purpose_menu'
5
+ s.version = '1.1.3'
6
+ s.summary = 'Allows a taxonomy to be used as a single horizontal menu'
7
+ s.description = 'Creates a mega menu based on a single taxonomy taxon structure'
8
+ s.required_ruby_version = '>= 1.9.2'
9
+
10
+ s.author = 'Robert Oles'
11
+ s.email = 'robertoles@me.com'
12
+ s.homepage = 'http://www.lockside.co.uk'
13
+
14
+ s.files = `git ls-files`.split("\n")
15
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
+ s.require_paths = ["lib"]
18
+
19
+ s.add_dependency 'spree_core', '~> 1.1.3'
20
+ s.add_dependency 'spree_spree_taxonomy_purpose', '~> 1.1.3'
21
+ s.add_development_dependency 'capybara', '1.0.1'
22
+ s.add_development_dependency 'factory_girl', '~> 2.6.4'
23
+ s.add_development_dependency 'ffaker'
24
+ s.add_development_dependency 'rspec-rails', '~> 2.9'
25
+ s.add_development_dependency 'sqlite3'
26
+ end
metadata ADDED
@@ -0,0 +1,149 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: spree_taxonomy_purpose_menu
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.3
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Robert Oles
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-09-04 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: spree_core
16
+ requirement: &70286480523040 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 1.1.3
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70286480523040
25
+ - !ruby/object:Gem::Dependency
26
+ name: spree_spree_taxonomy_purpose
27
+ requirement: &70286480522140 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: 1.1.3
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *70286480522140
36
+ - !ruby/object:Gem::Dependency
37
+ name: capybara
38
+ requirement: &70286480521000 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - =
42
+ - !ruby/object:Gem::Version
43
+ version: 1.0.1
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *70286480521000
47
+ - !ruby/object:Gem::Dependency
48
+ name: factory_girl
49
+ requirement: &70286480520180 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 2.6.4
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *70286480520180
58
+ - !ruby/object:Gem::Dependency
59
+ name: ffaker
60
+ requirement: &70286480519280 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: *70286480519280
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec-rails
71
+ requirement: &70286480517960 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ~>
75
+ - !ruby/object:Gem::Version
76
+ version: '2.9'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: *70286480517960
80
+ - !ruby/object:Gem::Dependency
81
+ name: sqlite3
82
+ requirement: &70286480517520 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: *70286480517520
91
+ description: Creates a mega menu based on a single taxonomy taxon structure
92
+ email: robertoles@me.com
93
+ executables: []
94
+ extensions: []
95
+ extra_rdoc_files: []
96
+ files:
97
+ - .gitignore
98
+ - .rspec
99
+ - Gemfile
100
+ - Gemfile.lock
101
+ - LICENSE
102
+ - README.md
103
+ - Rakefile
104
+ - Versionfile
105
+ - app/assets/javascripts/admin/spree_taxonomy_purpose_menu.js
106
+ - app/assets/javascripts/store/spree_taxonomy_purpose_menu.js
107
+ - app/assets/stylesheets/admin/spree_taxonomy_purpose_menu.css
108
+ - app/assets/stylesheets/store/spree_taxonomy_purpose_menu.css
109
+ - app/models/taxon_decorator.rb
110
+ - app/models/taxonomy_decorator.rb
111
+ - app/overrides/add_menu_to_layout.rb
112
+ - app/overrides/admin/add_hide_from_menu_checkbox_to_taxon_form.rb
113
+ - app/views/spree/admin/taxons/_hide_from_menu_field.erb
114
+ - app/views/spree/taxonomies/_menu.erb
115
+ - config/locales/en.yml
116
+ - config/routes.rb
117
+ - db/migrate/20120903132811_add_hide_from_menu_to_spree_taxons.rb
118
+ - lib/generators/spree_taxonomy_purpose_menu/install/install_generator.rb
119
+ - lib/spree_taxonomy_purpose_menu.rb
120
+ - lib/spree_taxonomy_purpose_menu/engine.rb
121
+ - script/rails
122
+ - spec/spec_helper.rb
123
+ - spree_taxonomy_purpose_menu.gemspec
124
+ homepage: http://www.lockside.co.uk
125
+ licenses: []
126
+ post_install_message:
127
+ rdoc_options: []
128
+ require_paths:
129
+ - lib
130
+ required_ruby_version: !ruby/object:Gem::Requirement
131
+ none: false
132
+ requirements:
133
+ - - ! '>='
134
+ - !ruby/object:Gem::Version
135
+ version: 1.9.2
136
+ required_rubygems_version: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ requirements: []
143
+ rubyforge_project:
144
+ rubygems_version: 1.8.11
145
+ signing_key:
146
+ specification_version: 3
147
+ summary: Allows a taxonomy to be used as a single horizontal menu
148
+ test_files:
149
+ - spec/spec_helper.rb