spree_zone_pricing 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,3 @@
1
- # Uncomment this if you reference any of your controllers in activate
2
- # require_dependency 'application'
3
-
4
1
  class ZonePricingExtension < Spree::Extension
5
2
  version "0.1.5"
6
3
  description "Spree Zone Pricing"
@@ -42,3 +39,13 @@ class ZonePricingExtension < Spree::Extension
42
39
 
43
40
  end
44
41
  end
42
+
43
+ class ZonePricingHooks < Spree::ThemeSupport::HookListener
44
+
45
+ # Add zone pricing tab to products admin area
46
+ insert_after :admin_product_tabs, :partial => "admin/shared/zp_product_tab"
47
+
48
+ # Add zone pricing to variant edit form
49
+ insert_after :admin_variant_edit_form, :partial => 'admin/shared/zone_prices'
50
+
51
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_zone_pricing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -16,9 +16,7 @@ description: Zone Pricing is an extension to Spree that uses the predefined zone
16
16
  you to set different prices for the North American and Euro zones.
17
17
  email: henrique@creative4.it
18
18
  executables: []
19
- extensions:
20
- - zone_pricing_extension.rb
21
- - zone_pricing_hooks.rb
19
+ extensions: []
22
20
  extra_rdoc_files: []
23
21
  files:
24
22
  - app/models/zone_price.rb
@@ -30,6 +28,7 @@ files:
30
28
  - config/routes.rb
31
29
  - config/locales/en_spree.yml
32
30
  - db/seeds.rb
31
+ - lib/spree_zone_pricing.rb
33
32
  - lib/spree/zone_pricing/checkouts_controller.rb
34
33
  - lib/spree/zone_pricing/countries_controller.rb
35
34
  - lib/spree/zone_pricing/get_country.rb
@@ -42,8 +41,6 @@ files:
42
41
  - lib/tasks/zone_pricing_extension_tasks.rake
43
42
  - spec/spec.opts
44
43
  - spec/spec_helper.rb
45
- - zone_pricing_extension.rb
46
- - zone_pricing_hooks.rb
47
44
  homepage: https://github.com/henriquebf/spree-zone-pricing
48
45
  licenses: []
49
46
  post_install_message:
@@ -1,9 +0,0 @@
1
- class ZonePricingHooks < Spree::ThemeSupport::HookListener
2
-
3
- # Add zone pricing tab to products admin area
4
- insert_after :admin_product_tabs, :partial => "admin/shared/zp_product_tab"
5
-
6
- # Add zone pricing to variant edit form
7
- insert_after :admin_variant_edit_form, :partial => 'admin/shared/zone_prices'
8
-
9
- end