spree_zoned 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +221 -0
- data/README.md +4 -2
- data/app/models/spree/zoned/product.rb +7 -0
- data/app/overrides/add_prd_country.rb +6 -0
- data/app/views/spree/admin/zoned/_prd_country.html.erb +17 -0
- data/app/views/spree/zoned/_countryselect.html.erb +2 -2
- data/db/migrate/20120611133806_create_spree_zoned_products.rb +11 -0
- data/spec/models/spree/zoned/product_spec.rb +5 -0
- data/spree_zoned-0.5.0.gem +0 -0
- data/spree_zoned.gemspec +1 -1
- metadata +9 -2
data/Gemfile.lock
ADDED
@@ -0,0 +1,221 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
spree_zoned (0.5.0)
|
5
|
+
spree_core (~> 1.1.1)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: http://rubygems.org/
|
9
|
+
specs:
|
10
|
+
actionmailer (3.2.3)
|
11
|
+
actionpack (= 3.2.3)
|
12
|
+
mail (~> 2.4.4)
|
13
|
+
actionpack (3.2.3)
|
14
|
+
activemodel (= 3.2.3)
|
15
|
+
activesupport (= 3.2.3)
|
16
|
+
builder (~> 3.0.0)
|
17
|
+
erubis (~> 2.7.0)
|
18
|
+
journey (~> 1.0.1)
|
19
|
+
rack (~> 1.4.0)
|
20
|
+
rack-cache (~> 1.2)
|
21
|
+
rack-test (~> 0.6.1)
|
22
|
+
sprockets (~> 2.1.2)
|
23
|
+
active_utils (1.0.3)
|
24
|
+
activesupport (>= 2.3.11)
|
25
|
+
i18n
|
26
|
+
activemerchant (1.20.4)
|
27
|
+
active_utils (>= 1.0.2)
|
28
|
+
activesupport (>= 2.3.11)
|
29
|
+
braintree (>= 2.0.0)
|
30
|
+
builder (>= 2.0.0)
|
31
|
+
i18n
|
32
|
+
json (>= 1.5.1)
|
33
|
+
money (<= 3.7.1)
|
34
|
+
activemodel (3.2.3)
|
35
|
+
activesupport (= 3.2.3)
|
36
|
+
builder (~> 3.0.0)
|
37
|
+
activerecord (3.2.3)
|
38
|
+
activemodel (= 3.2.3)
|
39
|
+
activesupport (= 3.2.3)
|
40
|
+
arel (~> 3.0.2)
|
41
|
+
tzinfo (~> 0.3.29)
|
42
|
+
activeresource (3.2.3)
|
43
|
+
activemodel (= 3.2.3)
|
44
|
+
activesupport (= 3.2.3)
|
45
|
+
activesupport (3.2.3)
|
46
|
+
i18n (~> 0.6)
|
47
|
+
multi_json (~> 1.0)
|
48
|
+
acts_as_list (0.1.4)
|
49
|
+
addressable (2.2.8)
|
50
|
+
archive-tar-minitar (0.5.2)
|
51
|
+
arel (3.0.2)
|
52
|
+
aws-sdk (1.3.9)
|
53
|
+
httparty (~> 0.7)
|
54
|
+
json (~> 1.4)
|
55
|
+
nokogiri (>= 1.4.4)
|
56
|
+
uuidtools (~> 2.1)
|
57
|
+
braintree (2.16.0)
|
58
|
+
builder (>= 2.0.0)
|
59
|
+
builder (3.0.0)
|
60
|
+
capybara (1.0.1)
|
61
|
+
mime-types (>= 1.16)
|
62
|
+
nokogiri (>= 1.3.3)
|
63
|
+
rack (>= 1.0.0)
|
64
|
+
rack-test (>= 0.5.4)
|
65
|
+
selenium-webdriver (~> 2.0)
|
66
|
+
xpath (~> 0.1.4)
|
67
|
+
childprocess (0.3.2)
|
68
|
+
ffi (~> 1.0.6)
|
69
|
+
cocaine (0.2.1)
|
70
|
+
columnize (0.3.6)
|
71
|
+
deface (0.9.1)
|
72
|
+
nokogiri (~> 1.5.0)
|
73
|
+
rails (~> 3.1)
|
74
|
+
diff-lcs (1.1.3)
|
75
|
+
erubis (2.7.0)
|
76
|
+
factory_girl (2.6.4)
|
77
|
+
activesupport (>= 2.3.9)
|
78
|
+
ffaker (1.12.1)
|
79
|
+
ffi (1.0.11)
|
80
|
+
highline (1.6.11)
|
81
|
+
hike (1.2.1)
|
82
|
+
httparty (0.8.3)
|
83
|
+
multi_json (~> 1.0)
|
84
|
+
multi_xml
|
85
|
+
i18n (0.6.0)
|
86
|
+
journey (1.0.3)
|
87
|
+
jquery-rails (2.0.2)
|
88
|
+
railties (>= 3.2.0, < 5.0)
|
89
|
+
thor (~> 0.14)
|
90
|
+
json (1.7.3)
|
91
|
+
kaminari (0.13.0)
|
92
|
+
actionpack (>= 3.0.0)
|
93
|
+
activesupport (>= 3.0.0)
|
94
|
+
railties (>= 3.0.0)
|
95
|
+
libwebsocket (0.1.3)
|
96
|
+
addressable
|
97
|
+
linecache19 (0.5.12)
|
98
|
+
ruby_core_source (>= 0.1.4)
|
99
|
+
mail (2.4.4)
|
100
|
+
i18n (>= 0.4.0)
|
101
|
+
mime-types (~> 1.16)
|
102
|
+
treetop (~> 1.4.8)
|
103
|
+
mime-types (1.18)
|
104
|
+
money (3.7.1)
|
105
|
+
i18n (~> 0.4)
|
106
|
+
multi_json (1.3.6)
|
107
|
+
multi_xml (0.5.1)
|
108
|
+
nested_set (1.7.0)
|
109
|
+
activerecord (>= 3.0.0)
|
110
|
+
railties (>= 3.0.0)
|
111
|
+
nokogiri (1.5.3)
|
112
|
+
paperclip (2.7.0)
|
113
|
+
activerecord (>= 2.3.0)
|
114
|
+
activesupport (>= 2.3.2)
|
115
|
+
cocaine (>= 0.0.2)
|
116
|
+
mime-types
|
117
|
+
polyamorous (0.5.0)
|
118
|
+
activerecord (~> 3.0)
|
119
|
+
polyglot (0.3.3)
|
120
|
+
rack (1.4.1)
|
121
|
+
rack-cache (1.2)
|
122
|
+
rack (>= 0.4)
|
123
|
+
rack-ssl (1.3.2)
|
124
|
+
rack
|
125
|
+
rack-test (0.6.1)
|
126
|
+
rack (>= 1.0)
|
127
|
+
rails (3.2.3)
|
128
|
+
actionmailer (= 3.2.3)
|
129
|
+
actionpack (= 3.2.3)
|
130
|
+
activerecord (= 3.2.3)
|
131
|
+
activeresource (= 3.2.3)
|
132
|
+
activesupport (= 3.2.3)
|
133
|
+
bundler (~> 1.0)
|
134
|
+
railties (= 3.2.3)
|
135
|
+
railties (3.2.3)
|
136
|
+
actionpack (= 3.2.3)
|
137
|
+
activesupport (= 3.2.3)
|
138
|
+
rack-ssl (~> 1.3.2)
|
139
|
+
rake (>= 0.8.7)
|
140
|
+
rdoc (~> 3.4)
|
141
|
+
thor (~> 0.14.6)
|
142
|
+
rake (0.9.2.2)
|
143
|
+
ransack (0.6.0)
|
144
|
+
actionpack (~> 3.0)
|
145
|
+
activerecord (~> 3.0)
|
146
|
+
polyamorous (~> 0.5.0)
|
147
|
+
rdoc (3.12)
|
148
|
+
json (~> 1.4)
|
149
|
+
rspec (2.10.0)
|
150
|
+
rspec-core (~> 2.10.0)
|
151
|
+
rspec-expectations (~> 2.10.0)
|
152
|
+
rspec-mocks (~> 2.10.0)
|
153
|
+
rspec-core (2.10.1)
|
154
|
+
rspec-expectations (2.10.0)
|
155
|
+
diff-lcs (~> 1.1.3)
|
156
|
+
rspec-mocks (2.10.1)
|
157
|
+
rspec-rails (2.10.1)
|
158
|
+
actionpack (>= 3.0)
|
159
|
+
activesupport (>= 3.0)
|
160
|
+
railties (>= 3.0)
|
161
|
+
rspec (~> 2.10.0)
|
162
|
+
ruby-debug-base19 (0.11.25)
|
163
|
+
columnize (>= 0.3.1)
|
164
|
+
linecache19 (>= 0.5.11)
|
165
|
+
ruby_core_source (>= 0.1.4)
|
166
|
+
ruby-debug19 (0.11.6)
|
167
|
+
columnize (>= 0.3.1)
|
168
|
+
linecache19 (>= 0.5.11)
|
169
|
+
ruby-debug-base19 (>= 0.11.19)
|
170
|
+
ruby_core_source (0.1.5)
|
171
|
+
archive-tar-minitar (>= 0.5.2)
|
172
|
+
rubyzip (0.9.8)
|
173
|
+
selenium-webdriver (2.22.1)
|
174
|
+
childprocess (>= 0.2.5)
|
175
|
+
ffi (~> 1.0)
|
176
|
+
libwebsocket (~> 0.1.3)
|
177
|
+
multi_json (~> 1.0)
|
178
|
+
rubyzip
|
179
|
+
spree_core (1.1.1)
|
180
|
+
activemerchant (= 1.20.4)
|
181
|
+
acts_as_list (= 0.1.4)
|
182
|
+
aws-sdk (~> 1.3.4)
|
183
|
+
deface (>= 0.8.0)
|
184
|
+
ffaker (~> 1.12.0)
|
185
|
+
highline (= 1.6.11)
|
186
|
+
jquery-rails (~> 2.0.0)
|
187
|
+
kaminari (>= 0.13.0)
|
188
|
+
nested_set (= 1.7.0)
|
189
|
+
paperclip (~> 2.7)
|
190
|
+
rails (>= 3.2.2, <= 3.2.3)
|
191
|
+
ransack (~> 0.6.0)
|
192
|
+
state_machine (= 1.1.2)
|
193
|
+
stringex (~> 1.3.2)
|
194
|
+
sprockets (2.1.3)
|
195
|
+
hike (~> 1.2)
|
196
|
+
rack (~> 1.0)
|
197
|
+
tilt (~> 1.1, != 1.3.0)
|
198
|
+
sqlite3 (1.3.6)
|
199
|
+
state_machine (1.1.2)
|
200
|
+
stringex (1.3.3)
|
201
|
+
thor (0.14.6)
|
202
|
+
tilt (1.3.3)
|
203
|
+
treetop (1.4.10)
|
204
|
+
polyglot
|
205
|
+
polyglot (>= 0.3.1)
|
206
|
+
tzinfo (0.3.33)
|
207
|
+
uuidtools (2.1.2)
|
208
|
+
xpath (0.1.4)
|
209
|
+
nokogiri (~> 1.3)
|
210
|
+
|
211
|
+
PLATFORMS
|
212
|
+
ruby
|
213
|
+
|
214
|
+
DEPENDENCIES
|
215
|
+
capybara (= 1.0.1)
|
216
|
+
factory_girl (~> 2.6.4)
|
217
|
+
ffaker
|
218
|
+
rspec-rails (~> 2.9)
|
219
|
+
ruby-debug19
|
220
|
+
spree_zoned!
|
221
|
+
sqlite3
|
data/README.md
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
A Spree extension to make your store zoned.
|
4
4
|
|
5
|
+
## *Under Development! To Be Released Soon...*
|
6
|
+
|
5
7
|
|
6
8
|
|
7
9
|
Everything you need for a zoned Spree store:
|
@@ -24,11 +26,11 @@ Set locales (semi-) automatically by zone.
|
|
24
26
|
|
25
27
|
### 5. More features.
|
26
28
|
|
27
|
-
Give [SpreeZoned](http://github.com/berndblume/spree_zoned)
|
29
|
+
Give [SpreeZoned](http://github.com/berndblume/spree_zoned) a try now!
|
28
30
|
|
29
31
|
|
30
32
|
|
31
|
-
This Spree extension is probalbly essential to you if
|
33
|
+
This Spree extension is probalbly essential to you if operating outside of the US.
|
32
34
|
|
33
35
|
|
34
36
|
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<li id="zoned-prd-country"">
|
2
|
+
<%= label_tag t('country') + ": " %>
|
3
|
+
<%= select_tag 'id',
|
4
|
+
options_for_select( # common countries have negative id
|
5
|
+
[["Kein Land ausgewählt", 0]] +
|
6
|
+
Rails.application.config.commonCountriesForSelect
|
7
|
+
0, # preselect item "No country selected"
|
8
|
+
),
|
9
|
+
:data => {
|
10
|
+
:remote => true,
|
11
|
+
:url => url_for(
|
12
|
+
:controller => "zoned",
|
13
|
+
:action => "setcountry",
|
14
|
+
),
|
15
|
+
}
|
16
|
+
%>
|
17
|
+
</li>
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<div id="zoned-countryselect" class="columns omega ten">
|
2
2
|
<%= label_tag t('country') + ": " %>
|
3
3
|
<%= select_tag 'id',
|
4
|
-
options_for_select(
|
4
|
+
options_for_select( # common countries have negative id
|
5
5
|
Rails.application.config.commonCountriesForSelect +
|
6
6
|
[["-----------------", 0]] +
|
7
7
|
countrylist.map { |country| [country.name, country.id] },
|
8
|
-
-214, # Unites States
|
8
|
+
-214, # Unites States
|
9
9
|
),
|
10
10
|
:data => {
|
11
11
|
:remote => true,
|
Binary file
|
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.
|
5
|
+
s.version = '0.5.1'
|
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.
|
4
|
+
version: 0.5.1
|
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-
|
12
|
+
date: 2012-06-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: spree_core
|
@@ -119,6 +119,7 @@ files:
|
|
119
119
|
- .gitignore
|
120
120
|
- .rspec
|
121
121
|
- Gemfile
|
122
|
+
- Gemfile.lock
|
122
123
|
- LICENSE
|
123
124
|
- README.md
|
124
125
|
- Rakefile
|
@@ -129,15 +130,20 @@ files:
|
|
129
130
|
- app/assets/stylesheets/store/spree_zoned.css
|
130
131
|
- app/controllers/spree/zoned_controller.rb
|
131
132
|
- app/helpers/spree/base_helper_decorator.rb
|
133
|
+
- app/models/spree/zoned/product.rb
|
132
134
|
- app/overrides/add_country_selectbox.rb
|
135
|
+
- app/overrides/add_prd_country.rb
|
136
|
+
- app/views/spree/admin/zoned/_prd_country.html.erb
|
133
137
|
- app/views/spree/zoned/_countryselect.html.erb
|
134
138
|
- config/initializers/zoned_init.rb
|
135
139
|
- config/locales/en.yml
|
136
140
|
- config/routes.rb
|
141
|
+
- db/migrate/20120611133806_create_spree_zoned_products.rb
|
137
142
|
- lib/generators/spree_zoned/install/install_generator.rb
|
138
143
|
- lib/spree_zoned.rb
|
139
144
|
- lib/spree_zoned/engine.rb
|
140
145
|
- script/rails
|
146
|
+
- spec/models/spree/zoned/product_spec.rb
|
141
147
|
- spec/spec_helper.rb
|
142
148
|
- spree_zoned-0.5.0.gem
|
143
149
|
- spree_zoned.gemspec
|
@@ -167,4 +173,5 @@ signing_key:
|
|
167
173
|
specification_version: 3
|
168
174
|
summary: A Spree extension to make your store zoned
|
169
175
|
test_files:
|
176
|
+
- spec/models/spree/zoned/product_spec.rb
|
170
177
|
- spec/spec_helper.rb
|