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.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +0 -0
  3. data/Rakefile +0 -0
  4. data/app/assets/javascripts/plugins/camaleon_spree/main.js +0 -0
  5. data/app/assets/stylesheets/plugins/camaleon_spree/custom.css.scss +0 -0
  6. data/app/assets/stylesheets/plugins/camaleon_spree/main.css +0 -0
  7. data/app/controllers/plugins/camaleon_spree/admin_controller.rb +0 -0
  8. data/app/helpers/plugins/camaleon_spree/camaleon_spree_private_helper.rb.zip +0 -0
  9. data/app/helpers/plugins/camaleon_spree/main_helper.rb +0 -0
  10. data/app/helpers/plugins/camaleon_spree/private_helper.rb +29 -0
  11. data/app/plugins/camaleon_spree/product_decorator.rb +0 -0
  12. data/app/views/camaleon_cms/admin/installers/welcome.html.erb +0 -0
  13. data/app/views/plugins/camaleon_spree/admin/_render_custom_fields_product.html.erb +0 -0
  14. data/app/views/plugins/camaleon_spree/admin/cama_plugin_settings.html.erb +0 -0
  15. data/app/views/plugins/camaleon_spree/admin/custom_field/_spree_categories.html.erb +0 -0
  16. data/app/views/plugins/camaleon_spree/admin/custom_field/_spree_products.html.erb +0 -0
  17. data/app/views/plugins/camaleon_spree/admin/settings.html.erb +0 -0
  18. data/app/views/plugins/camaleon_spree/examples/_layout_menus.html.erb +0 -0
  19. data/app/views/plugins/camaleon_spree/examples/_product_custom_fields.html.erb +0 -0
  20. data/app/views/plugins/camaleon_spree/examples/template_product_page.html.erb +0 -0
  21. data/config/camaleon_plugin.json +0 -0
  22. data/config/initializers/bread_crumb_onrails.rb +0 -0
  23. data/config/initializers/camaleon.rb +0 -0
  24. data/config/initializers/routes.rb +0 -0
  25. data/config/initializers/spree.rb +5 -5
  26. data/config/initializers/will_paginate.rb +0 -0
  27. data/config/routes.rb +0 -0
  28. data/db/migrate/20160831160611_add_camaleon_user_data_to_spree.rb +1 -1
  29. data/lib/camaleon_spree.rb +0 -0
  30. data/lib/camaleon_spree/engine.rb +0 -0
  31. data/lib/camaleon_spree/version.rb +1 -1
  32. data/lib/tasks/camaleon_spree_tasks.rake +0 -0
  33. metadata +5 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0dfaf8971a7a688eb8494173bd9831aa327c1839
4
- data.tar.gz: adbead18ce9160dc0f24c46e97d016efb0465cfd
3
+ metadata.gz: 6fb286f950f880f201913338429bac3979e9154f
4
+ data.tar.gz: 814a8d6152a1f472a01f10c49cd27cdb09dd30f8
5
5
  SHA512:
6
- metadata.gz: 28adadb28f2699ada78c886923a2b50313f038f6cba3ed1cb63d4ed54aa63d463cf8283edd644efa631f1517d6d6ace6226f2677e3894565075481a2ebe5b62b
7
- data.tar.gz: 2af69f1cafd2c4b523ad602c83611d33dbda58d0db3675f84231a64ca31486ef7727dd4b6a79e3377c43caaf3f141955e45089024b9d152151b0fcdb0aeee240
6
+ metadata.gz: 3fc379f6ca51d2093c015f63c467d04fb3565f763373791a825a921bd14fad1dc084eeed9f552c4c848ad211a914d193016bb8c254a57822af82e6dc4435d37b
7
+ data.tar.gz: 8c1adf58306d852e02b404311dc820cfe75d6013e0c00ca35f0bea69e6d4e4cb76cfc5e7c40d89a733b6548f24c29ba4994ad9fc5c22d20f7ae43ecb271d6bf8
File without changes
data/Rakefile CHANGED
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
@@ -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
- def index
61
- redirect_to Rails.application.routes.url_helpers.cama_admin_dashboard_path
62
- end
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
File without changes
@@ -1,4 +1,4 @@
1
- class AddCamaleonUserDataToSpree < ActiveRecord::Migration
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)
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module CamaleonSpree
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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.2
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-01-08 00:00:00.000000000 Z
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.4.8
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: