solidus_product_feed 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.circleci/config.yml +35 -0
- data/.gem_release.yml +5 -0
- data/.github/stale.yml +17 -0
- data/.gitignore +10 -2
- data/.rspec +2 -1
- data/.rubocop.yml +3 -149
- data/.rubocop_todo.yml +50 -0
- data/CHANGELOG.md +63 -0
- data/Gemfile +28 -9
- data/LICENSE +2 -2
- data/README.md +71 -26
- data/Rakefile +4 -19
- data/app/decorators/controllers/solidus_product_feed/spree/products_controller_decorator.rb +25 -0
- data/app/models/spree/feed_product.rb +39 -10
- data/app/overrides/rss_link.rb +2 -0
- data/app/views/spree/products/index.rss.builder +10 -12
- data/bin/console +17 -0
- data/bin/r +13 -0
- data/bin/rails +15 -0
- data/bin/rake +7 -0
- data/bin/sandbox +84 -0
- data/bin/sandbox_rails +18 -0
- data/bin/setup +8 -0
- data/config/locales/en.yml +5 -0
- data/config/routes.rb +3 -1
- data/lib/generators/solidus_product_feed/install/install_generator.rb +6 -8
- data/lib/solidus_product_feed.rb +42 -1
- data/lib/solidus_product_feed/engine.rb +9 -10
- data/lib/solidus_product_feed/factories.rb +4 -0
- data/lib/solidus_product_feed/version.rb +3 -1
- data/lib/spree_product_feed.rb +2 -0
- data/solidus_product_feed.gemspec +36 -30
- data/spec/controllers/products_controller_spec.rb +14 -2
- data/spec/models/spree/feed_product_spec.rb +10 -1
- data/spec/spec_helper.rb +23 -13
- data/spec/support/devise.rb +5 -0
- metadata +53 -92
- data/.travis.yml +0 -21
- data/Guardfile +0 -10
- data/app/assets/javascripts/admin/solidus_product_feed.js +0 -1
- data/app/assets/javascripts/spree/backend/solidus_product_feed.js +0 -0
- data/app/assets/javascripts/spree/backend/spree_product_feed.js +0 -0
- data/app/assets/javascripts/spree/frontend/solidus_product_feed.js +0 -0
- data/app/assets/javascripts/spree/frontend/spree_product_feed.js +0 -0
- data/app/assets/javascripts/store/solidus_product_feed.js +0 -1
- data/app/assets/stylesheets/admin/solidus_product_feed.css +0 -3
- data/app/assets/stylesheets/spree/backend/solidus_product_feed.css +0 -0
- data/app/assets/stylesheets/spree/backend/spree_product_feed.css +0 -0
- data/app/assets/stylesheets/spree/frontend/solidus_product_feed.css +0 -0
- data/app/assets/stylesheets/spree/frontend/spree_product_feed.css +0 -0
- data/app/assets/stylesheets/store/solidus_product_feed.css +0 -3
- data/app/controllers/spree/products_controller_decorator.rb +0 -18
- data/script/rails +0 -7
data/.travis.yml
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
cache: bundler
|
3
|
-
language: ruby
|
4
|
-
rvm:
|
5
|
-
- 2.3.1
|
6
|
-
env:
|
7
|
-
matrix:
|
8
|
-
- SOLIDUS_BRANCH=v1.0 DB=postgres
|
9
|
-
- SOLIDUS_BRANCH=v1.1 DB=postgres
|
10
|
-
- SOLIDUS_BRANCH=v1.2 DB=postgres
|
11
|
-
- SOLIDUS_BRANCH=v1.3 DB=postgres
|
12
|
-
- SOLIDUS_BRANCH=v1.4 DB=postgres
|
13
|
-
- SOLIDUS_BRANCH=v2.0 DB=postgres
|
14
|
-
- SOLIDUS_BRANCH=master DB=postgres
|
15
|
-
- SOLIDUS_BRANCH=v1.0 DB=mysql
|
16
|
-
- SOLIDUS_BRANCH=v1.1 DB=mysql
|
17
|
-
- SOLIDUS_BRANCH=v1.2 DB=mysql
|
18
|
-
- SOLIDUS_BRANCH=v1.3 DB=mysql
|
19
|
-
- SOLIDUS_BRANCH=v1.4 DB=mysql
|
20
|
-
- SOLIDUS_BRANCH=v2.0 DB=mysql
|
21
|
-
- SOLIDUS_BRANCH=master DB=mysql
|
data/Guardfile
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
guard 'rspec', :cli => '--color --format doc' do
|
2
|
-
watch('spec/spec_helper.rb') { "spec" }
|
3
|
-
watch('config/routes.rb') { "spec/routing" }
|
4
|
-
watch('app/controllers/application_controller.rb') { "spec/controllers" }
|
5
|
-
watch(%r{^spec/.+_spec\.rb$})
|
6
|
-
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
7
|
-
watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
|
8
|
-
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
9
|
-
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
|
10
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
//= require admin/spree_core
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1 +0,0 @@
|
|
1
|
-
//= require store/spree_core
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,18 +0,0 @@
|
|
1
|
-
Spree::ProductsController.prepend(Module.new do
|
2
|
-
class << self
|
3
|
-
def prepended(klass)
|
4
|
-
klass.respond_to :rss, only: :index
|
5
|
-
end
|
6
|
-
end
|
7
|
-
|
8
|
-
def index
|
9
|
-
load_feed_products if request.format.rss?
|
10
|
-
super
|
11
|
-
end
|
12
|
-
|
13
|
-
private
|
14
|
-
|
15
|
-
def load_feed_products
|
16
|
-
@feed_products = Spree::Product.all.map(&Spree::FeedProduct.method(:new))
|
17
|
-
end
|
18
|
-
end)
|
data/script/rails
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
-
|
4
|
-
|
5
|
-
ENGINE_PATH = File.expand_path('../..', __FILE__)
|
6
|
-
load File.expand_path('../../spec/dummy/script/rails', __FILE__)
|
7
|
-
|