spree_core 1.1.2.rc1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. data/app/assets/javascripts/admin/admin.js.erb +3 -16
  2. data/app/assets/javascripts/admin/checkouts/edit.js +4 -2
  3. data/app/assets/javascripts/admin/spree_core.js +2 -3
  4. data/app/models/spree/order.rb +0 -4
  5. data/app/views/spree/admin/adjustments/_form.html.erb +12 -11
  6. data/app/views/spree/admin/images/_form.html.erb +17 -15
  7. data/app/views/spree/admin/mail_methods/_form.html.erb +81 -79
  8. data/app/views/spree/admin/option_types/_form.html.erb +12 -10
  9. data/app/views/spree/admin/orders/_add_product.html.erb +5 -2
  10. data/app/views/spree/admin/orders/_form.html.erb +49 -47
  11. data/app/views/spree/admin/orders/customer_details/_form.html.erb +44 -44
  12. data/app/views/spree/admin/payment_methods/_form.html.erb +46 -44
  13. data/app/views/spree/admin/payments/_form.html.erb +13 -11
  14. data/app/views/spree/admin/products/_form.html.erb +89 -87
  15. data/app/views/spree/admin/properties/_form.html.erb +2 -4
  16. data/app/views/spree/admin/prototypes/_form.html.erb +41 -39
  17. data/app/views/spree/admin/return_authorizations/_form.html.erb +67 -65
  18. data/app/views/spree/admin/shared/_head.html.erb +8 -6
  19. data/app/views/spree/admin/shipments/_form.html.erb +65 -63
  20. data/app/views/spree/admin/shipping_categories/_form.html.erb +8 -6
  21. data/app/views/spree/admin/states/_form.html.erb +10 -8
  22. data/app/views/spree/admin/tax_categories/_form.html.erb +16 -12
  23. data/app/views/spree/admin/tax_rates/_form.html.erb +21 -19
  24. data/app/views/spree/admin/taxonomies/_form.html.erb +1 -1
  25. data/app/views/spree/admin/taxons/_form.html.erb +1 -2
  26. data/app/views/spree/admin/trackers/_form.html.erb +29 -27
  27. data/app/views/spree/admin/variants/_form.html.erb +33 -31
  28. data/app/views/spree/admin/zones/_form.html.erb +27 -25
  29. data/lib/spree/core/version.rb +1 -1
  30. metadata +36 -34
  31. data/app/assets/javascripts/admin/spree.routes.js.erb +0 -30
@@ -1,40 +1,42 @@
1
- <div class="clearfix">
2
- <div class="left" data-hook="variants">
1
+ <div data-hook="admin_variant_form_fields">
2
+ <div class="clearfix">
3
+ <div class="left" data-hook="variants">
3
4
 
4
- <% @product.options.each do |option| %>
5
- <p data-hook="presentation">
6
- <%= label :new_variant, option.option_type.presentation %><br />
7
- <% if @variant.new_record? %>
8
- <%= select(:new_variant, option.option_type.presentation,
9
- option.option_type.option_values.collect {|ov| [ ov.presentation, ov.id ] },
10
- {})
11
- %>
12
- <% else %>
13
- <% opt = @variant.option_values.detect {|o| o.option_type == option.option_type }.presentation %>
14
- <%= text_field(:new_variant, option.option_type.presentation, :value => opt, :disabled => 'disabled') %>
15
- <% end %>
16
- </p>
17
- <% end %>
5
+ <% @product.options.each do |option| %>
6
+ <p data-hook="presentation">
7
+ <%= label :new_variant, option.option_type.presentation %><br />
8
+ <% if @variant.new_record? %>
9
+ <%= select(:new_variant, option.option_type.presentation,
10
+ option.option_type.option_values.collect {|ov| [ ov.presentation, ov.id ] },
11
+ {})
12
+ %>
13
+ <% else %>
14
+ <% opt = @variant.option_values.detect {|o| o.option_type == option.option_type }.presentation %>
15
+ <%= text_field(:new_variant, option.option_type.presentation, :value => opt, :disabled => 'disabled') %>
16
+ <% end %>
17
+ </p>
18
+ <% end %>
18
19
 
19
- <p data-hook="sku"><%= f.label :sku, t(:sku) %><br />
20
- <%= f.text_field :sku %></p>
20
+ <p data-hook="sku"><%= f.label :sku, t(:sku) %><br />
21
+ <%= f.text_field :sku %></p>
21
22
 
22
- <p data-hook="price"><%= f.label :price, t(:price) %>:<br />
23
- <%= f.text_field :price, :value => number_with_precision(@variant.price, :precision => 2) %></p>
23
+ <p data-hook="price"><%= f.label :price, t(:price) %>:<br />
24
+ <%= f.text_field :price, :value => number_with_precision(@variant.price, :precision => 2) %></p>
24
25
 
25
- <p data-hook="cost_price"><%= f.label :cost_price, t(:cost_price) %>:<br />
26
- <%= f.text_field :cost_price, :value => number_with_precision(@variant.cost_price, :precision => 2) %></p>
26
+ <p data-hook="cost_price"><%= f.label :cost_price, t(:cost_price) %>:<br />
27
+ <%= f.text_field :cost_price, :value => number_with_precision(@variant.cost_price, :precision => 2) %></p>
27
28
 
28
- <% if Spree::Config[:track_inventory_levels] %>
29
- <p data-hook="on_hand"><%= f.label :on_hand, t(:on_hand) %>: <br />
30
- <%= f.text_field :on_hand %></p>
31
- <% end %>
32
- </div>
33
- <div class="right">
29
+ <% if Spree::Config[:track_inventory_levels] %>
30
+ <p data-hook="on_hand"><%= f.label :on_hand, t(:on_hand) %>: <br />
31
+ <%= f.text_field :on_hand %></p>
32
+ <% end %>
33
+ </div>
34
+ <div class="right">
34
35
 
35
- <% Spree::Variant.additional_fields.select{|af| af[:only].nil? || af[:only].include?(:variant) }.each do |field| %>
36
- <%= render :partial => 'spree/admin/shared/additional_field', :locals => { :field => field, :f => f } %>
37
- <% end %>
36
+ <% Spree::Variant.additional_fields.select{|af| af[:only].nil? || af[:only].include?(:variant) }.each do |field| %>
37
+ <%= render :partial => 'spree/admin/shared/additional_field', :locals => { :field => field, :f => f } %>
38
+ <% end %>
38
39
 
40
+ </div>
39
41
  </div>
40
42
  </div>
@@ -1,29 +1,31 @@
1
- <%= zone_form.field_container :name do %>
2
- <%= zone_form.label :name, t(:name) %><br />
3
- <%= zone_form.text_field :name %>
4
- <% end %>
1
+ <div data-hook="admin_zone_form_fields">
2
+ <%= zone_form.field_container :name do %>
3
+ <%= zone_form.label :name, t(:name) %><br />
4
+ <%= zone_form.text_field :name %>
5
+ <% end %>
5
6
 
6
- <%= zone_form.field_container :description do %>
7
- <%= zone_form.label :description, t(:description) %><br />
8
- <%= zone_form.text_field :description %>
9
- <% end %>
7
+ <%= zone_form.field_container :description do %>
8
+ <%= zone_form.label :description, t(:description) %><br />
9
+ <%= zone_form.text_field :description %>
10
+ <% end %>
10
11
 
11
- <p data-hook="default">
12
- <td><%= t(:default_tax_zone) %></td>
13
- <td><%= zone_form.check_box :default_tax %></td>
14
- </p>
12
+ <p data-hook="default">
13
+ <td><%= t(:default_tax_zone) %></td>
14
+ <td><%= zone_form.check_box :default_tax %></td>
15
+ </p>
15
16
 
16
- <p data-hook="type">
17
- <%= label_tag nil, t(:type) %><br />
18
- <label class="sub">
19
- <%= zone_form.radio_button('kind', 'country', { :id => 'country_based' }) %>
20
- <%= t(:country_based) %>
21
- </label> &nbsp;
22
- <label class="sub">
23
- <%= zone_form.radio_button('kind', 'state', { :id => 'state_based' }) %>
24
- <%= t(:state_based) %>
25
- </label> &nbsp;
26
- </p>
17
+ <p data-hook="type">
18
+ <%= label_tag nil, t(:type) %><br />
19
+ <label class="sub">
20
+ <%= zone_form.radio_button('kind', 'country', { :id => 'country_based' }) %>
21
+ <%= t(:country_based) %>
22
+ </label> &nbsp;
23
+ <label class="sub">
24
+ <%= zone_form.radio_button('kind', 'state', { :id => 'state_based' }) %>
25
+ <%= t(:state_based) %>
26
+ </label> &nbsp;
27
+ </p>
27
28
 
28
- <%= render :partial => 'member_type', :locals => { :type => 'country', :zone_form => zone_form }%>
29
- <%= render :partial => 'member_type', :locals => { :type => 'state', :zone_form => zone_form } %>
29
+ <%= render :partial => 'member_type', :locals => { :type => 'country', :zone_form => zone_form }%>
30
+ <%= render :partial => 'member_type', :locals => { :type => 'state', :zone_form => zone_form } %>
31
+ </div>
@@ -1,5 +1,5 @@
1
1
  module Spree
2
2
  def self.version
3
- "1.1.2.rc1"
3
+ "1.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,19 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2.rc1
5
- prerelease: 6
4
+ version: 1.1.2
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Sean Schofield
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-25 00:00:00.000000000Z
12
+ date: 2012-07-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: acts_as_list
16
- requirement: &70099197054680 !ruby/object:Gem::Requirement
16
+ requirement: &70163167995040 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - =
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.1.4
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70099197054680
24
+ version_requirements: *70163167995040
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: nested_set
27
- requirement: &70099197053340 !ruby/object:Gem::Requirement
27
+ requirement: &70163167992340 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - =
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.7.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70099197053340
35
+ version_requirements: *70163167992340
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: jquery-rails
38
- requirement: &70099197052140 !ruby/object:Gem::Requirement
38
+ requirement: &70163167989400 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.0.0
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70099197052140
46
+ version_requirements: *70163167989400
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: highline
49
- requirement: &70099197050120 !ruby/object:Gem::Requirement
49
+ requirement: &70163168002860 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - =
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.6.11
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70099197050120
57
+ version_requirements: *70163168002860
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: state_machine
60
- requirement: &70099197048020 !ruby/object:Gem::Requirement
60
+ requirement: &70163167999340 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - =
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.1.2
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70099197048020
68
+ version_requirements: *70163167999340
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: ffaker
71
- requirement: &70099197045240 !ruby/object:Gem::Requirement
71
+ requirement: &70163167996220 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 1.12.0
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70099197045240
79
+ version_requirements: *70163167996220
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: paperclip
82
- requirement: &70099197043420 !ruby/object:Gem::Requirement
82
+ requirement: &70163168010080 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '2.7'
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70099197043420
90
+ version_requirements: *70163168010080
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: aws-sdk
93
- requirement: &70099197042100 !ruby/object:Gem::Requirement
93
+ requirement: &70163168007600 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: 1.3.4
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *70099197042100
101
+ version_requirements: *70163168007600
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: ransack
104
- requirement: &70099197040680 !ruby/object:Gem::Requirement
104
+ requirement: &70163168005980 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ~>
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: 0.6.0
110
110
  type: :runtime
111
111
  prerelease: false
112
- version_requirements: *70099197040680
112
+ version_requirements: *70163168005980
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: activemerchant
115
- requirement: &70099197039820 !ruby/object:Gem::Requirement
115
+ requirement: &70163168019780 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - =
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: 1.20.4
121
121
  type: :runtime
122
122
  prerelease: false
123
- version_requirements: *70099197039820
123
+ version_requirements: *70163168019780
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: rails
126
- requirement: &70099197039120 !ruby/object:Gem::Requirement
126
+ requirement: &70163168017400 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ~>
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: 3.2.6
132
132
  type: :runtime
133
133
  prerelease: false
134
- version_requirements: *70099197039120
134
+ version_requirements: *70163168017400
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: kaminari
137
- requirement: &70099197038300 !ruby/object:Gem::Requirement
137
+ requirement: &70163168015260 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ! '>='
@@ -142,10 +142,10 @@ dependencies:
142
142
  version: 0.13.0
143
143
  type: :runtime
144
144
  prerelease: false
145
- version_requirements: *70099197038300
145
+ version_requirements: *70163168015260
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: deface
148
- requirement: &70099197037420 !ruby/object:Gem::Requirement
148
+ requirement: &70163168013540 !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
151
151
  - - ! '>='
@@ -153,10 +153,10 @@ dependencies:
153
153
  version: 0.9.0
154
154
  type: :runtime
155
155
  prerelease: false
156
- version_requirements: *70099197037420
156
+ version_requirements: *70163168013540
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: stringex
159
- requirement: &70099197014760 !ruby/object:Gem::Requirement
159
+ requirement: &70163168012340 !ruby/object:Gem::Requirement
160
160
  none: false
161
161
  requirements:
162
162
  - - ~>
@@ -164,7 +164,7 @@ dependencies:
164
164
  version: 1.3.2
165
165
  type: :runtime
166
166
  prerelease: false
167
- version_requirements: *70099197014760
167
+ version_requirements: *70163168012340
168
168
  description: Required dependency for Spree
169
169
  email: sean@spreecommerce.com
170
170
  executables: []
@@ -299,7 +299,6 @@ files:
299
299
  - app/assets/javascripts/admin/payments/new.js
300
300
  - app/assets/javascripts/admin/products.js
301
301
  - app/assets/javascripts/admin/shipping_methods.js
302
- - app/assets/javascripts/admin/spree.routes.js.erb
303
302
  - app/assets/javascripts/admin/spree_core.js
304
303
  - app/assets/javascripts/admin/taxonomy.js
305
304
  - app/assets/javascripts/admin/underscore-min.js
@@ -968,9 +967,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
968
967
  required_rubygems_version: !ruby/object:Gem::Requirement
969
968
  none: false
970
969
  requirements:
971
- - - ! '>'
970
+ - - ! '>='
972
971
  - !ruby/object:Gem::Version
973
- version: 1.3.1
972
+ version: '0'
973
+ segments:
974
+ - 0
975
+ hash: 3949392994446669213
974
976
  requirements:
975
977
  - none
976
978
  rubyforge_project: spree_core
@@ -1,30 +0,0 @@
1
- // This object provides dynamically generated Rails routes in Javascript.
2
- // Since Rails does not provide url_helpers in js.erb files, we have to use this little neat hack.
3
- // Found via https://github.com/magiclabs/alchemy_cms
4
-
5
- <% self.class.instance_eval { include Spree::Core::Engine.routes.url_helpers } %>
6
-
7
- if (typeof(Spree) === 'undefined') {
8
- var Spree = {};
9
- }
10
-
11
- (function($) {
12
-
13
- var routes = {};
14
- $.extend(Spree, routes);
15
-
16
- Spree.routes = {
17
-
18
- admin_users_path: function(options) {
19
- if (typeof(options) === 'undefined') options = {format: 'html'};
20
- return '<%= admin_users_path %>' + '.' + options.format;
21
- },
22
-
23
- admin_products_path: function(options) {
24
- if (typeof(options) === 'undefined') options = {format: 'html'};
25
- return '<%= admin_products_path %>' + '.' + options.format;
26
- }
27
-
28
- }
29
-
30
- })(jQuery);