spree_zoned 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -6,6 +6,7 @@
6
6
  .idea
7
7
  .project
8
8
  tmp
9
+ gemspec.old
9
10
  nbproject
10
11
  *.swp
11
12
  spec/dummy
@@ -1,3 +1 @@
1
- /*
2
- *= require admin/spree_core
3
- */
1
+ li#zoned-prd-country { text-align: right; margin-left: 1em; margin-right: 1em; vertical-align: middle; }
@@ -1,2 +1,2 @@
1
1
  div#zoned-countryselect { text-align: right; }
2
- div#zoned-countryselect label { color: #a33; }
2
+ div#zoned-countryselect label { background-color: #a33; }
@@ -0,0 +1,21 @@
1
+ module Spree
2
+
3
+ module Admin
4
+
5
+ module Zoned
6
+
7
+ class ZonedController < BaseController
8
+
9
+ def setcountry
10
+ respond_to do |format|
11
+ format.js { render :nothing => true }
12
+ end
13
+ end
14
+
15
+ end
16
+
17
+ end
18
+
19
+ end
20
+
21
+ end
@@ -1,6 +1,6 @@
1
1
  Deface::Override.new(
2
2
  :name => "add_prd_country",
3
- :virtual_path => "spree/admin/layouts/admin",
3
+ :virtual_path => "spree/admin/products/index",
4
4
  :insert_before => "li#new_product_link",
5
5
  :partial => "spree/admin/zoned/prd_country",
6
6
  )
@@ -3,7 +3,7 @@
3
3
  <%= select_tag 'id',
4
4
  options_for_select( # common countries have negative id
5
5
  [["Kein Land ausgewählt", 0]] +
6
- Rails.application.config.commonCountriesForSelect
6
+ Rails.application.config.commonCountriesForSelect,
7
7
  0, # preselect item "No country selected"
8
8
  ),
9
9
  :data => {
data/config/routes.rb CHANGED
@@ -1,3 +1,6 @@
1
1
  Spree::Core::Engine.routes.draw do
2
2
  match '/zonedcs' => "zoned#setcountry"
3
+ namespace :admin do
4
+ match '/zonedcs' => "zoned#setcountry"
5
+ end
3
6
  end
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.1'
5
+ s.version = '0.5.2'
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.1
4
+ version: 0.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -128,6 +128,7 @@ files:
128
128
  - app/assets/javascripts/store/spree_zoned.js
129
129
  - app/assets/stylesheets/admin/spree_zoned.css
130
130
  - app/assets/stylesheets/store/spree_zoned.css
131
+ - app/controllers/spree/admin/zoned_controller.rb
131
132
  - app/controllers/spree/zoned_controller.rb
132
133
  - app/helpers/spree/base_helper_decorator.rb
133
134
  - app/models/spree/zoned/product.rb
@@ -145,7 +146,6 @@ files:
145
146
  - script/rails
146
147
  - spec/models/spree/zoned/product_spec.rb
147
148
  - spec/spec_helper.rb
148
- - spree_zoned-0.5.0.gem
149
149
  - spree_zoned.gemspec
150
150
  homepage: http://www.berndblume.com
151
151
  licenses: []
Binary file