spree_zoned 0.5.10 → 0.5.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,26 +1,22 @@
1
- module Spree
2
- module Admin
3
- ProductsController.class_eval do
4
-
5
- def deletefc
6
- inorout(@product.method :delfrom)
7
- end
8
-
9
- def backtocountry
10
- inorout(@product.method :backtocountry)
11
- end
12
-
13
- protected
1
+ Spree::Admin::ProductsController.class_eval do
2
+
3
+ def deletefc
4
+ inorout(@product.method :delfrom)
5
+ end
6
+
7
+ def backtocountry
8
+ inorout(@product.method :backtocountry)
9
+ end
14
10
 
15
- def inorout(m)
16
- country = session[:zoned] && session[:zoned][:prd_country]
17
- m.call(country.to_i) if country
18
- respond_to do |format|
19
- format.html { redirect_to collection_url }
20
- format.js { render nothing: true }
21
- end
22
- end
11
+ protected
23
12
 
13
+ def inorout(m)
14
+ country = session[:zoned] && session[:zoned][:prd_country]
15
+ m.call(country.to_i) if country
16
+ respond_to do |format|
17
+ format.html { redirect_to collection_url }
18
+ format.js { render nothing: true }
24
19
  end
25
20
  end
21
+
26
22
  end
@@ -2,7 +2,7 @@ module Spree
2
2
  module Zoned
3
3
  class Engine < Rails::Engine
4
4
  engine_name 'spree_zoned'
5
- isolate_namespace Spree::Zoned
5
+ isolate_namespace Spree
6
6
 
7
7
  config.autoload_paths += %W(#{config.root}/lib)
8
8
 
data/spree_zoned.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.platform = Gem::Platform::RUBY
4
4
  s.name = 'spree_zoned'
5
- s.version = '0.5.10'
5
+ s.version = '0.5.11'
6
6
  s.summary = 'A Spree extension to make your store zoned'
7
7
  s.description = "Everything you need for a zoned Spree store: zoned pricing, zoned products, zoned product ordering, zoned locales, ...\nProbalbly essential to you if you operate outside of the US."
8
8
  s.required_ruby_version = '>= 1.9.2'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_zoned
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.10
4
+ version: 0.5.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-20 00:00:00.000000000 Z
12
+ date: 2012-06-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: spree_core