spree_grid_feed 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,10 @@
1
+ \#*
2
+ *~
3
+ .#*
4
+ .DS_Store
5
+ .idea
6
+ .project
7
+ tmp
8
+ nbproject
9
+ *.swp
10
+ spec/dummy
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --colour
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'http://rubygems.org'
2
+
3
+ if RUBY_VERSION < '1.9'
4
+ gem 'ruby-debug'
5
+ else
6
+ gem 'ruby-debug19'
7
+ end
8
+
9
+ gemspec
@@ -0,0 +1,221 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ spree_grid_feed (1.1.1)
5
+ spree_core (~> 1.1.1)
6
+
7
+ GEM
8
+ remote: http://rubygems.org/
9
+ specs:
10
+ actionmailer (3.2.3)
11
+ actionpack (= 3.2.3)
12
+ mail (~> 2.4.4)
13
+ actionpack (3.2.3)
14
+ activemodel (= 3.2.3)
15
+ activesupport (= 3.2.3)
16
+ builder (~> 3.0.0)
17
+ erubis (~> 2.7.0)
18
+ journey (~> 1.0.1)
19
+ rack (~> 1.4.0)
20
+ rack-cache (~> 1.2)
21
+ rack-test (~> 0.6.1)
22
+ sprockets (~> 2.1.2)
23
+ active_utils (1.0.3)
24
+ activesupport (>= 2.3.11)
25
+ i18n
26
+ activemerchant (1.20.4)
27
+ active_utils (>= 1.0.2)
28
+ activesupport (>= 2.3.11)
29
+ braintree (>= 2.0.0)
30
+ builder (>= 2.0.0)
31
+ i18n
32
+ json (>= 1.5.1)
33
+ money (<= 3.7.1)
34
+ activemodel (3.2.3)
35
+ activesupport (= 3.2.3)
36
+ builder (~> 3.0.0)
37
+ activerecord (3.2.3)
38
+ activemodel (= 3.2.3)
39
+ activesupport (= 3.2.3)
40
+ arel (~> 3.0.2)
41
+ tzinfo (~> 0.3.29)
42
+ activeresource (3.2.3)
43
+ activemodel (= 3.2.3)
44
+ activesupport (= 3.2.3)
45
+ activesupport (3.2.3)
46
+ i18n (~> 0.6)
47
+ multi_json (~> 1.0)
48
+ acts_as_list (0.1.4)
49
+ addressable (2.2.8)
50
+ archive-tar-minitar (0.5.2)
51
+ arel (3.0.2)
52
+ aws-sdk (1.3.9)
53
+ httparty (~> 0.7)
54
+ json (~> 1.4)
55
+ nokogiri (>= 1.4.4)
56
+ uuidtools (~> 2.1)
57
+ braintree (2.16.0)
58
+ builder (>= 2.0.0)
59
+ builder (3.0.0)
60
+ capybara (1.0.1)
61
+ mime-types (>= 1.16)
62
+ nokogiri (>= 1.3.3)
63
+ rack (>= 1.0.0)
64
+ rack-test (>= 0.5.4)
65
+ selenium-webdriver (~> 2.0)
66
+ xpath (~> 0.1.4)
67
+ childprocess (0.3.2)
68
+ ffi (~> 1.0.6)
69
+ cocaine (0.2.1)
70
+ columnize (0.3.6)
71
+ deface (0.9.1)
72
+ nokogiri (~> 1.5.0)
73
+ rails (~> 3.1)
74
+ diff-lcs (1.1.3)
75
+ erubis (2.7.0)
76
+ factory_girl (2.6.4)
77
+ activesupport (>= 2.3.9)
78
+ ffaker (1.12.1)
79
+ ffi (1.0.11)
80
+ highline (1.6.11)
81
+ hike (1.2.1)
82
+ httparty (0.8.3)
83
+ multi_json (~> 1.0)
84
+ multi_xml
85
+ i18n (0.6.0)
86
+ journey (1.0.4)
87
+ jquery-rails (2.0.2)
88
+ railties (>= 3.2.0, < 5.0)
89
+ thor (~> 0.14)
90
+ json (1.7.3)
91
+ kaminari (0.13.0)
92
+ actionpack (>= 3.0.0)
93
+ activesupport (>= 3.0.0)
94
+ railties (>= 3.0.0)
95
+ libwebsocket (0.1.3)
96
+ addressable
97
+ linecache19 (0.5.12)
98
+ ruby_core_source (>= 0.1.4)
99
+ mail (2.4.4)
100
+ i18n (>= 0.4.0)
101
+ mime-types (~> 1.16)
102
+ treetop (~> 1.4.8)
103
+ mime-types (1.18)
104
+ money (3.7.1)
105
+ i18n (~> 0.4)
106
+ multi_json (1.3.6)
107
+ multi_xml (0.5.1)
108
+ nested_set (1.7.0)
109
+ activerecord (>= 3.0.0)
110
+ railties (>= 3.0.0)
111
+ nokogiri (1.5.4)
112
+ paperclip (2.7.0)
113
+ activerecord (>= 2.3.0)
114
+ activesupport (>= 2.3.2)
115
+ cocaine (>= 0.0.2)
116
+ mime-types
117
+ polyamorous (0.5.0)
118
+ activerecord (~> 3.0)
119
+ polyglot (0.3.3)
120
+ rack (1.4.1)
121
+ rack-cache (1.2)
122
+ rack (>= 0.4)
123
+ rack-ssl (1.3.2)
124
+ rack
125
+ rack-test (0.6.1)
126
+ rack (>= 1.0)
127
+ rails (3.2.3)
128
+ actionmailer (= 3.2.3)
129
+ actionpack (= 3.2.3)
130
+ activerecord (= 3.2.3)
131
+ activeresource (= 3.2.3)
132
+ activesupport (= 3.2.3)
133
+ bundler (~> 1.0)
134
+ railties (= 3.2.3)
135
+ railties (3.2.3)
136
+ actionpack (= 3.2.3)
137
+ activesupport (= 3.2.3)
138
+ rack-ssl (~> 1.3.2)
139
+ rake (>= 0.8.7)
140
+ rdoc (~> 3.4)
141
+ thor (~> 0.14.6)
142
+ rake (0.9.2.2)
143
+ ransack (0.6.0)
144
+ actionpack (~> 3.0)
145
+ activerecord (~> 3.0)
146
+ polyamorous (~> 0.5.0)
147
+ rdoc (3.12)
148
+ json (~> 1.4)
149
+ rspec (2.10.0)
150
+ rspec-core (~> 2.10.0)
151
+ rspec-expectations (~> 2.10.0)
152
+ rspec-mocks (~> 2.10.0)
153
+ rspec-core (2.10.1)
154
+ rspec-expectations (2.10.0)
155
+ diff-lcs (~> 1.1.3)
156
+ rspec-mocks (2.10.1)
157
+ rspec-rails (2.10.1)
158
+ actionpack (>= 3.0)
159
+ activesupport (>= 3.0)
160
+ railties (>= 3.0)
161
+ rspec (~> 2.10.0)
162
+ ruby-debug-base19 (0.11.25)
163
+ columnize (>= 0.3.1)
164
+ linecache19 (>= 0.5.11)
165
+ ruby_core_source (>= 0.1.4)
166
+ ruby-debug19 (0.11.6)
167
+ columnize (>= 0.3.1)
168
+ linecache19 (>= 0.5.11)
169
+ ruby-debug-base19 (>= 0.11.19)
170
+ ruby_core_source (0.1.5)
171
+ archive-tar-minitar (>= 0.5.2)
172
+ rubyzip (0.9.9)
173
+ selenium-webdriver (2.22.2)
174
+ childprocess (>= 0.2.5)
175
+ ffi (~> 1.0)
176
+ libwebsocket (~> 0.1.3)
177
+ multi_json (~> 1.0)
178
+ rubyzip
179
+ spree_core (1.1.1)
180
+ activemerchant (= 1.20.4)
181
+ acts_as_list (= 0.1.4)
182
+ aws-sdk (~> 1.3.4)
183
+ deface (>= 0.8.0)
184
+ ffaker (~> 1.12.0)
185
+ highline (= 1.6.11)
186
+ jquery-rails (~> 2.0.0)
187
+ kaminari (>= 0.13.0)
188
+ nested_set (= 1.7.0)
189
+ paperclip (~> 2.7)
190
+ rails (>= 3.2.2, <= 3.2.3)
191
+ ransack (~> 0.6.0)
192
+ state_machine (= 1.1.2)
193
+ stringex (~> 1.3.2)
194
+ sprockets (2.1.3)
195
+ hike (~> 1.2)
196
+ rack (~> 1.0)
197
+ tilt (~> 1.1, != 1.3.0)
198
+ sqlite3 (1.3.6)
199
+ state_machine (1.1.2)
200
+ stringex (1.3.3)
201
+ thor (0.14.6)
202
+ tilt (1.3.3)
203
+ treetop (1.4.10)
204
+ polyglot
205
+ polyglot (>= 0.3.1)
206
+ tzinfo (0.3.33)
207
+ uuidtools (2.1.2)
208
+ xpath (0.1.4)
209
+ nokogiri (~> 1.3)
210
+
211
+ PLATFORMS
212
+ ruby
213
+
214
+ DEPENDENCIES
215
+ capybara (= 1.0.1)
216
+ factory_girl (~> 2.6.4)
217
+ ffaker
218
+ rspec-rails (~> 2.9)
219
+ ruby-debug19
220
+ spree_grid_feed!
221
+ 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.
@@ -0,0 +1,25 @@
1
+ SpreeGridFeed
2
+ =============
3
+
4
+ I would NOT use this yet while I am tweaking. Adds /products.xml and /t/taxon.xml feeds. Warning, it was designed for [Alarm Grid] (http://www.alarmgrid.com), so I make no guarantees it will work for your store.
5
+
6
+ Example
7
+ =======
8
+
9
+ Pretty easy, just add it to your gemfile:
10
+
11
+ gem 'spree_grid_feed', :git => 'git://github.com/ehoch/spree_grid_feed.git'
12
+
13
+ Bundle install and done.
14
+
15
+
16
+ Testing
17
+ -------
18
+
19
+ Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.
20
+
21
+ $ bundle
22
+ $ bundle exec rake test_app
23
+ $ bundle exec rspec spec
24
+
25
+ Copyright (c) 2012 Eric Hochberger, released under the New BSD License
@@ -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_grid_feed.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_grid_feed'
28
+ Rake::Task['common:test_app'].invoke
29
+ end
@@ -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,3 @@
1
+ /*
2
+ *= require store/spree_core
3
+ */
@@ -0,0 +1,3 @@
1
+ Spree::ProductsController.class_eval do
2
+ respond_to :xml, :only => [:index]
3
+ end
@@ -0,0 +1,3 @@
1
+ Spree::TaxonsController.class_eval do
2
+ respond_to :xml, :only => [:show]
3
+ end
@@ -0,0 +1,4 @@
1
+ Deface::Override.new(:virtual_path => 'spree/layouts/spree_application',
2
+ :name => 'feed_rss_link',
3
+ :insert_bottom => "[data-hook='inside_head']",
4
+ :partial => 'shared/rss_feeds')
@@ -0,0 +1,5 @@
1
+ <% if @taxon.present? %>
2
+ <%= auto_discovery_link_tag(:rss, spree.nested_taxons_path(:id => @taxon.permalink, :format => :xml), {:title => "#{@taxon.name} Products Feed"}) %>
3
+ <% else %>
4
+ <%= auto_discovery_link_tag(:rss, spree.products_path(:format => :xml), {:title => "Products Feed" }) %>
5
+ <% end %>
@@ -0,0 +1,30 @@
1
+ xml.instruct! :xml, :version => "1.0"
2
+ xml.rss(:version=>"2.0", "xmlns:g" => "http://base.google.com/ns/1.0", "xmlns:c" => "http://base.google.com/cns/1.0") do
3
+ xml.channel do
4
+ xml.title("#{Spree::Config[:site_name]}")
5
+ xml.link(products_url)
6
+ xml.description("The latest products offered by #{Spree::Config[:site_name]}")
7
+ xml.language('en-us')
8
+ @products.each do |product|
9
+ xml.item do
10
+ xml.title(product.name)
11
+ xml.description(simple_format(product.description))
12
+ xml.author(Spree::Config[:site_url])
13
+ xml.pubDate((product.available_on || product.created_at).strftime("%a, %d %b %Y %H:%M:%S %z"))
14
+ xml.link(product_url(product))
15
+ xml.guid(product.id)
16
+
17
+ if product.images.count > 0
18
+ xml.tag!('g:image_link', product.images.first.attachment.url(:product))
19
+ end
20
+
21
+ xml.tag!('g:price', product.price)
22
+ xml.tag!('g:condition', 'new')
23
+ xml.tag!('g:id', product.id)
24
+ xml.tag!('g:brand', 'Honeywell') # Hard code for now... add in manufacturer
25
+ # xml.tag!('g:availability', product.count_on_hand > 0 ? 'in stock' : 'out of stock')
26
+ xml.tag!('g:availability', 'in stock')
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,30 @@
1
+ xml.instruct! :xml, :version=>"1.0"
2
+ xml.rss(:version=>"2.0", "xmlns:g" => "http://base.google.com/ns/1.0", "xmlns:c" => "http://base.google.com/cns/1.0"){
3
+ xml.channel{
4
+ xml.title("#{@taxon.name} Product Feed")
5
+ xml.link(spree.nested_taxons_url(:id => @taxon.permalink))
6
+ xml.description("The latest products offered by #{Spree::Config[:site_name]} in the #{@taxon.name} category.")
7
+ xml.language('en-us')
8
+ @products.each do |product|
9
+ xml.item do
10
+ xml.title(product.name)
11
+ xml.description(simple_format(product.description))
12
+ xml.author(Spree::Config[:site_url])
13
+ xml.pubDate((product.available_on || product.created_at).strftime("%a, %d %b %Y %H:%M:%S %z"))
14
+ xml.link(product_url(product))
15
+ xml.guid(product.id)
16
+
17
+ if product.images.count > 0
18
+ xml.tag!('g:image_link', product.images.first.attachment.url(:product))
19
+ end
20
+
21
+ xml.tag!('g:price', product.price)
22
+ xml.tag!('g:condition', 'new')
23
+ xml.tag!('g:id', product.id)
24
+ xml.tag!('g:brand', 'Honeywell') # Hard code for now... add in manufacturer
25
+ # xml.tag!('g:availability', product.count_on_hand > 0 ? 'in stock' : 'out of stock')
26
+ xml.tag!('g:availability', 'in stock')
27
+ end
28
+ end
29
+ }
30
+ }
@@ -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"
@@ -0,0 +1,3 @@
1
+ Spree::Core::Engine.routes.draw do
2
+ # Add your extension routes here
3
+ end
@@ -0,0 +1,29 @@
1
+ module SpreeGridFeed
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_grid_feed\n"
7
+ append_file 'app/assets/javascripts/admin/all.js', "//= require admin/spree_grid_feed\n"
8
+ end
9
+
10
+ def add_stylesheets
11
+ inject_into_file 'app/assets/stylesheets/store/all.css', " *= require store/spree_grid_feed\n", :before => /\*\//, :verbose => true
12
+ inject_into_file 'app/assets/stylesheets/admin/all.css', " *= require admin/spree_grid_feed\n", :before => /\*\//, :verbose => true
13
+ end
14
+
15
+ def add_migrations
16
+ run 'bundle exec rake railties:install:migrations FROM=spree_grid_feed'
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 'Skiping 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_grid_feed/engine'
@@ -0,0 +1,21 @@
1
+ module SpreeGridFeed
2
+ class Engine < Rails::Engine
3
+ engine_name 'spree_grid_feed'
4
+ isolate_namespace Spree
5
+
6
+ config.autoload_paths += %W(#{config.root}/lib)
7
+
8
+ # use rspec for tests
9
+ config.generators do |g|
10
+ g.test_framework :rspec
11
+ end
12
+
13
+ def self.activate
14
+ Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')) do |c|
15
+ Rails.configuration.cache_classes ? require(c) : load(c)
16
+ end
17
+ end
18
+
19
+ config.to_prepare &method(:activate).to_proc
20
+ end
21
+ end
@@ -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_grid_feed/engine', __FILE__)
5
+
6
+ require 'rails/all'
7
+ require 'rails/engine/commands'
@@ -0,0 +1,13 @@
1
+ require 'spec_helper'
2
+
3
+ describe "Products Feed" do
4
+ # before (:each) do
5
+ # @products = (0..11).collect { |i| FactoryGirl.create(:product) }
6
+ # end
7
+
8
+ it "should display 10 most recent products" do
9
+ visit spree.products_path(:format => :xml)
10
+ save_and_open_page
11
+ end
12
+
13
+ end
@@ -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_grid_feed'
5
+ s.version = '1.1.3'
6
+ s.summary = 'Add a Google Base-optimized product rss to a spree store'
7
+ s.description = 'Adds both /products.xml and /t/taxon.xml product feeds'
8
+ s.required_ruby_version = '>= 1.8.7'
9
+
10
+ s.author = 'Eric Hochberger'
11
+ s.email = 'eric@alarmgrid.com'
12
+ s.homepage = 'http://www.alarmgrid.com'
13
+
14
+ s.files = `git ls-files`.split("\n")
15
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
+ s.require_path = 'lib'
17
+ s.requirements << 'none'
18
+
19
+ s.add_dependency 'spree_core', '~> 1.1.1'
20
+
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 CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_grid_feed
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-06-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: spree_core
16
- requirement: &70253291935400 !ruby/object:Gem::Requirement
16
+ requirement: &70295814224400 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.1.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70253291935400
24
+ version_requirements: *70295814224400
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: capybara
27
- requirement: &70253291934640 !ruby/object:Gem::Requirement
27
+ requirement: &70295814223820 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - =
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.0.1
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70253291934640
35
+ version_requirements: *70295814223820
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: factory_girl
38
- requirement: &70253291934040 !ruby/object:Gem::Requirement
38
+ requirement: &70295814223220 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.6.4
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70253291934040
46
+ version_requirements: *70295814223220
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: ffaker
49
- requirement: &70253291933600 !ruby/object:Gem::Requirement
49
+ requirement: &70295814222720 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70253291933600
57
+ version_requirements: *70295814222720
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rspec-rails
60
- requirement: &70253291932940 !ruby/object:Gem::Requirement
60
+ requirement: &70295814221800 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '2.9'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70253291932940
68
+ version_requirements: *70295814221800
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: sqlite3
71
- requirement: &70253291932340 !ruby/object:Gem::Requirement
71
+ requirement: &70295814237180 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,13 +76,40 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70253291932340
79
+ version_requirements: *70295814237180
80
80
  description: Adds both /products.xml and /t/taxon.xml product feeds
81
81
  email: eric@alarmgrid.com
82
82
  executables: []
83
83
  extensions: []
84
84
  extra_rdoc_files: []
85
- files: []
85
+ files:
86
+ - .gitignore
87
+ - .rspec
88
+ - Gemfile
89
+ - Gemfile.lock
90
+ - LICENSE
91
+ - README.md
92
+ - Rakefile
93
+ - Versionfile
94
+ - app/assets/javascripts/admin/spree_grid_feed.js
95
+ - app/assets/javascripts/store/spree_grid_feed.js
96
+ - app/assets/stylesheets/admin/spree_grid_feed.css
97
+ - app/assets/stylesheets/store/spree_grid_feed.css
98
+ - app/controllers/products_controller_decorator.rb
99
+ - app/controllers/taxons_controller_decorator.rb
100
+ - app/overrides/feed_rss_link.rb
101
+ - app/views/shared/_rss_feeds.html.erb
102
+ - app/views/spree/products/index.xml.builder
103
+ - app/views/spree/taxons/show.xml.builder
104
+ - config/locales/en.yml
105
+ - config/routes.rb
106
+ - lib/generators/spree_grid_feed/install/install_generator.rb
107
+ - lib/spree_grid_feed.rb
108
+ - lib/spree_grid_feed/engine.rb
109
+ - script/rails
110
+ - spec/requests/products_feed_spec.rb
111
+ - spec/spec_helper.rb
112
+ - spree_grid_feed.gemspec
86
113
  homepage: http://www.alarmgrid.com
87
114
  licenses: []
88
115
  post_install_message:
@@ -108,4 +135,6 @@ rubygems_version: 1.8.17
108
135
  signing_key:
109
136
  specification_version: 3
110
137
  summary: Add a Google Base-optimized product rss to a spree store
111
- test_files: []
138
+ test_files:
139
+ - spec/requests/products_feed_spec.rb
140
+ - spec/spec_helper.rb