camaleon_spree 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +0 -0
- data/Rakefile +0 -0
- data/app/assets/javascripts/plugins/camaleon_spree/main.js +0 -0
- data/app/assets/stylesheets/plugins/camaleon_spree/custom.css.scss +0 -0
- data/app/assets/stylesheets/plugins/camaleon_spree/main.css +0 -0
- data/app/controllers/plugins/camaleon_spree/admin_controller.rb +0 -0
- data/app/helpers/plugins/camaleon_spree/camaleon_spree_private_helper.rb.zip +0 -0
- data/app/helpers/plugins/camaleon_spree/main_helper.rb +0 -0
- data/app/helpers/plugins/camaleon_spree/private_helper.rb +29 -0
- data/app/plugins/camaleon_spree/product_decorator.rb +0 -0
- data/app/views/camaleon_cms/admin/installers/welcome.html.erb +0 -0
- data/app/views/plugins/camaleon_spree/admin/_render_custom_fields_product.html.erb +0 -0
- data/app/views/plugins/camaleon_spree/admin/cama_plugin_settings.html.erb +0 -0
- data/app/views/plugins/camaleon_spree/admin/custom_field/_spree_categories.html.erb +0 -0
- data/app/views/plugins/camaleon_spree/admin/custom_field/_spree_products.html.erb +0 -0
- data/app/views/plugins/camaleon_spree/admin/settings.html.erb +0 -0
- data/app/views/plugins/camaleon_spree/examples/_layout_menus.html.erb +0 -0
- data/app/views/plugins/camaleon_spree/examples/_product_custom_fields.html.erb +0 -0
- data/app/views/plugins/camaleon_spree/examples/template_product_page.html.erb +0 -0
- data/config/camaleon_plugin.json +0 -0
- data/config/initializers/bread_crumb_onrails.rb +0 -0
- data/config/initializers/camaleon.rb +0 -0
- data/config/initializers/routes.rb +0 -0
- data/config/initializers/spree.rb +5 -5
- data/config/initializers/will_paginate.rb +0 -0
- data/config/routes.rb +0 -0
- data/db/migrate/20160831160611_add_camaleon_user_data_to_spree.rb +1 -1
- data/lib/camaleon_spree.rb +0 -0
- data/lib/camaleon_spree/engine.rb +0 -0
- data/lib/camaleon_spree/version.rb +1 -1
- data/lib/tasks/camaleon_spree_tasks.rake +0 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6fb286f950f880f201913338429bac3979e9154f
|
4
|
+
data.tar.gz: 814a8d6152a1f472a01f10c49cd27cdb09dd30f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fc379f6ca51d2093c015f63c467d04fb3565f763373791a825a921bd14fad1dc084eeed9f552c4c848ad211a914d193016bb8c254a57822af82e6dc4435d37b
|
7
|
+
data.tar.gz: 8c1adf58306d852e02b404311dc820cfe75d6013e0c00ca35f0bea69e6d4e4cb76cfc5e7c40d89a733b6548f24c29ba4994ad9fc5c22d20f7ae43ecb271d6bf8
|
data/MIT-LICENSE
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module Plugins::CamaleonSpree::PrivateHelper
|
2
|
+
# custom field of products and categories
|
3
|
+
def camaleon_spree_custom_fields(args)
|
4
|
+
args[:fields][:spree_products] = {
|
5
|
+
key: 'spree_products',
|
6
|
+
label: 'Spree Products',
|
7
|
+
render: plugin_view('admin/custom_field/spree_products.html.erb'),
|
8
|
+
options: {
|
9
|
+
required: true,
|
10
|
+
multiple: true,
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
args[:fields][:spree_categories] = {
|
15
|
+
key: 'spree_categories',
|
16
|
+
label: 'Spree Categories',
|
17
|
+
render: plugin_view('admin/custom_field/spree_categories.html.erb'),
|
18
|
+
options: {
|
19
|
+
required: true,
|
20
|
+
multiple: true,
|
21
|
+
}
|
22
|
+
}
|
23
|
+
end
|
24
|
+
|
25
|
+
# custom fields support for Spree Products
|
26
|
+
def camaleon_spree_custom_field_models(args)
|
27
|
+
args[:models] << Spree::Product
|
28
|
+
end
|
29
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/config/camaleon_plugin.json
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -56,9 +56,9 @@ Rails.application.config.to_prepare do
|
|
56
56
|
end
|
57
57
|
|
58
58
|
# redirect to cama dashboard
|
59
|
-
Spree::Admin::RootController.class_eval do
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
end
|
59
|
+
# Spree::Admin::RootController.class_eval do
|
60
|
+
# def index
|
61
|
+
# redirect_to Rails.application.routes.url_helpers.cama_admin_dashboard_path
|
62
|
+
# end
|
63
|
+
# end
|
64
64
|
end
|
File without changes
|
data/config/routes.rb
CHANGED
File without changes
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class AddCamaleonUserDataToSpree <
|
1
|
+
class AddCamaleonUserDataToSpree < CamaManager.migration_class
|
2
2
|
def change
|
3
3
|
add_column(CamaleonCms::User.table_name, :email, :string) unless column_exists?(CamaleonCms::User.table_name, :email)
|
4
4
|
add_column(CamaleonCms::User.table_name, :role, :string, default: 'client', index: true) unless column_exists?(CamaleonCms::User.table_name, :role)
|
data/lib/camaleon_spree.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: camaleon_spree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Owen Peredo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -51,7 +51,9 @@ files:
|
|
51
51
|
- app/assets/stylesheets/plugins/camaleon_spree/custom.css.scss
|
52
52
|
- app/assets/stylesheets/plugins/camaleon_spree/main.css
|
53
53
|
- app/controllers/plugins/camaleon_spree/admin_controller.rb
|
54
|
+
- app/helpers/plugins/camaleon_spree/camaleon_spree_private_helper.rb.zip
|
54
55
|
- app/helpers/plugins/camaleon_spree/main_helper.rb
|
56
|
+
- app/helpers/plugins/camaleon_spree/private_helper.rb
|
55
57
|
- app/plugins/camaleon_spree/product_decorator.rb
|
56
58
|
- app/views/camaleon_cms/admin/installers/welcome.html.erb
|
57
59
|
- app/views/plugins/camaleon_spree/admin/_render_custom_fields_product.html.erb
|
@@ -94,9 +96,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
96
|
version: '0'
|
95
97
|
requirements: []
|
96
98
|
rubyforge_project:
|
97
|
-
rubygems_version: 2.
|
99
|
+
rubygems_version: 2.6.10
|
98
100
|
signing_key:
|
99
101
|
specification_version: 4
|
100
102
|
summary: Permit to integrate Camaleon CMS + Spree Commerce
|
101
103
|
test_files: []
|
102
|
-
has_rdoc:
|