spree_core 0.70.4 → 0.70.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -165,7 +165,8 @@ module Admin::BaseHelper
165
165
  def product_picker_field(name, value)
166
166
  products = Product.with_ids(value)
167
167
  product_names_hash = products.inject({}){|memo,item| memo[item.id] = item.name; memo}
168
- %(<input type="text" name="#{name}" value="#{value}" class="tokeninput products" data-names='#{product_names_hash.to_json}' />).html_safe
168
+ product_rules = products.collect{|p|{:id=>p.id,:name=>p.name}}
169
+ %(<input type="text" name="#{name}" value="#{value}" class="tokeninput products" data-names='#{product_names_hash.to_json}' data-pre='#{product_rules.to_json}'/>).html_safe
169
170
  end
170
171
 
171
172
  # renders set of hidden fields and button to add new record using nested_attributes
@@ -1,5 +1,5 @@
1
1
  module Spree
2
2
  def self.version
3
- "0.70.4"
3
+ "0.70.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,277 +1,190 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: spree_core
3
- version: !ruby/object:Gem::Version
4
- hash: 271
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.70.5
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 70
9
- - 4
10
- version: 0.70.4
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Sean Schofield
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-03-04 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- version_requirements: &id001 !ruby/object:Gem::Requirement
12
+ date: 2012-03-12 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: acts_as_list
16
+ requirement: &70367143666360 !ruby/object:Gem::Requirement
22
17
  none: false
23
- requirements:
24
- - - "="
25
- - !ruby/object:Gem::Version
26
- hash: 19
27
- segments:
28
- - 0
29
- - 1
30
- - 4
18
+ requirements:
19
+ - - =
20
+ - !ruby/object:Gem::Version
31
21
  version: 0.1.4
32
- requirement: *id001
33
22
  type: :runtime
34
23
  prerelease: false
35
- name: acts_as_list
36
- - !ruby/object:Gem::Dependency
37
- version_requirements: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70367143666360
25
+ - !ruby/object:Gem::Dependency
26
+ name: nested_set
27
+ requirement: &70367143738880 !ruby/object:Gem::Requirement
38
28
  none: false
39
- requirements:
40
- - - "="
41
- - !ruby/object:Gem::Version
42
- hash: 31
43
- segments:
44
- - 1
45
- - 6
46
- - 8
29
+ requirements:
30
+ - - =
31
+ - !ruby/object:Gem::Version
47
32
  version: 1.6.8
48
- requirement: *id002
49
33
  type: :runtime
50
34
  prerelease: false
51
- name: nested_set
52
- - !ruby/object:Gem::Dependency
53
- version_requirements: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *70367143738880
36
+ - !ruby/object:Gem::Dependency
37
+ name: rd_find_by_param
38
+ requirement: &70367143737900 !ruby/object:Gem::Requirement
54
39
  none: false
55
- requirements:
56
- - - "="
57
- - !ruby/object:Gem::Version
58
- hash: 25
59
- segments:
60
- - 0
61
- - 1
62
- - 1
40
+ requirements:
41
+ - - =
42
+ - !ruby/object:Gem::Version
63
43
  version: 0.1.1
64
- requirement: *id003
65
44
  type: :runtime
66
45
  prerelease: false
67
- name: rd_find_by_param
68
- - !ruby/object:Gem::Dependency
69
- version_requirements: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *70367143737900
47
+ - !ruby/object:Gem::Dependency
48
+ name: jquery-rails
49
+ requirement: &70367143736620 !ruby/object:Gem::Requirement
70
50
  none: false
71
- requirements:
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- hash: 11
75
- segments:
76
- - 1
77
- - 0
78
- - 14
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
79
54
  version: 1.0.14
80
- requirement: *id004
81
55
  type: :runtime
82
56
  prerelease: false
83
- name: jquery-rails
84
- - !ruby/object:Gem::Dependency
85
- version_requirements: &id005 !ruby/object:Gem::Requirement
57
+ version_requirements: *70367143736620
58
+ - !ruby/object:Gem::Dependency
59
+ name: highline
60
+ requirement: &70367143735040 !ruby/object:Gem::Requirement
86
61
  none: false
87
- requirements:
88
- - - "="
89
- - !ruby/object:Gem::Version
90
- hash: 11
91
- segments:
92
- - 1
93
- - 6
94
- - 2
62
+ requirements:
63
+ - - =
64
+ - !ruby/object:Gem::Version
95
65
  version: 1.6.2
96
- requirement: *id005
97
66
  type: :runtime
98
67
  prerelease: false
99
- name: highline
100
- - !ruby/object:Gem::Dependency
101
- version_requirements: &id006 !ruby/object:Gem::Requirement
68
+ version_requirements: *70367143735040
69
+ - !ruby/object:Gem::Dependency
70
+ name: stringex
71
+ requirement: &70367143733400 !ruby/object:Gem::Requirement
102
72
  none: false
103
- requirements:
104
- - - "="
105
- - !ruby/object:Gem::Version
106
- hash: 27
107
- segments:
108
- - 1
109
- - 3
110
- - 0
73
+ requirements:
74
+ - - =
75
+ - !ruby/object:Gem::Version
111
76
  version: 1.3.0
112
- requirement: *id006
113
77
  type: :runtime
114
78
  prerelease: false
115
- name: stringex
116
- - !ruby/object:Gem::Dependency
117
- version_requirements: &id007 !ruby/object:Gem::Requirement
79
+ version_requirements: *70367143733400
80
+ - !ruby/object:Gem::Dependency
81
+ name: state_machine
82
+ requirement: &70367143757160 !ruby/object:Gem::Requirement
118
83
  none: false
119
- requirements:
120
- - - "="
121
- - !ruby/object:Gem::Version
122
- hash: 21
123
- segments:
124
- - 1
125
- - 0
126
- - 1
84
+ requirements:
85
+ - - =
86
+ - !ruby/object:Gem::Version
127
87
  version: 1.0.1
128
- requirement: *id007
129
88
  type: :runtime
130
89
  prerelease: false
131
- name: state_machine
132
- - !ruby/object:Gem::Dependency
133
- version_requirements: &id008 !ruby/object:Gem::Requirement
90
+ version_requirements: *70367143757160
91
+ - !ruby/object:Gem::Dependency
92
+ name: faker
93
+ requirement: &70367143754240 !ruby/object:Gem::Requirement
134
94
  none: false
135
- requirements:
136
- - - "="
137
- - !ruby/object:Gem::Version
138
- hash: 23
139
- segments:
140
- - 1
141
- - 0
142
- - 0
95
+ requirements:
96
+ - - =
97
+ - !ruby/object:Gem::Version
143
98
  version: 1.0.0
144
- requirement: *id008
145
99
  type: :runtime
146
100
  prerelease: false
147
- name: faker
148
- - !ruby/object:Gem::Dependency
149
- version_requirements: &id009 !ruby/object:Gem::Requirement
101
+ version_requirements: *70367143754240
102
+ - !ruby/object:Gem::Dependency
103
+ name: paperclip
104
+ requirement: &70367143752740 !ruby/object:Gem::Requirement
150
105
  none: false
151
- requirements:
152
- - - "="
153
- - !ruby/object:Gem::Version
154
- hash: 27
155
- segments:
156
- - 2
157
- - 5
158
- - 0
106
+ requirements:
107
+ - - =
108
+ - !ruby/object:Gem::Version
159
109
  version: 2.5.0
160
- requirement: *id009
161
110
  type: :runtime
162
111
  prerelease: false
163
- name: paperclip
164
- - !ruby/object:Gem::Dependency
165
- version_requirements: &id010 !ruby/object:Gem::Requirement
112
+ version_requirements: *70367143752740
113
+ - !ruby/object:Gem::Dependency
114
+ name: rd_resource_controller
115
+ requirement: &70367143750960 !ruby/object:Gem::Requirement
166
116
  none: false
167
- requirements:
168
- - - ">="
169
- - !ruby/object:Gem::Version
170
- hash: 3
171
- segments:
172
- - 0
173
- version: "0"
174
- requirement: *id010
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
175
121
  type: :runtime
176
122
  prerelease: false
177
- name: rd_resource_controller
178
- - !ruby/object:Gem::Dependency
179
- version_requirements: &id011 !ruby/object:Gem::Requirement
123
+ version_requirements: *70367143750960
124
+ - !ruby/object:Gem::Dependency
125
+ name: meta_search
126
+ requirement: &70367143774920 !ruby/object:Gem::Requirement
180
127
  none: false
181
- requirements:
182
- - - "="
183
- - !ruby/object:Gem::Version
184
- hash: 17
185
- segments:
186
- - 1
187
- - 1
188
- - 1
128
+ requirements:
129
+ - - =
130
+ - !ruby/object:Gem::Version
189
131
  version: 1.1.1
190
- requirement: *id011
191
132
  type: :runtime
192
133
  prerelease: false
193
- name: meta_search
194
- - !ruby/object:Gem::Dependency
195
- version_requirements: &id012 !ruby/object:Gem::Requirement
134
+ version_requirements: *70367143774920
135
+ - !ruby/object:Gem::Dependency
136
+ name: activemerchant
137
+ requirement: &70367143773260 !ruby/object:Gem::Requirement
196
138
  none: false
197
- requirements:
198
- - - "="
199
- - !ruby/object:Gem::Version
200
- hash: 83
201
- segments:
202
- - 1
203
- - 17
204
- - 0
139
+ requirements:
140
+ - - =
141
+ - !ruby/object:Gem::Version
205
142
  version: 1.17.0
206
- requirement: *id012
207
143
  type: :runtime
208
144
  prerelease: false
209
- name: activemerchant
210
- - !ruby/object:Gem::Dependency
211
- version_requirements: &id013 !ruby/object:Gem::Requirement
145
+ version_requirements: *70367143773260
146
+ - !ruby/object:Gem::Dependency
147
+ name: rails
148
+ requirement: &70367143772420 !ruby/object:Gem::Requirement
212
149
  none: false
213
- requirements:
214
- - - ">="
215
- - !ruby/object:Gem::Version
216
- hash: 1
217
- segments:
218
- - 3
219
- - 1
220
- - 1
150
+ requirements:
151
+ - - ! '>='
152
+ - !ruby/object:Gem::Version
221
153
  version: 3.1.1
222
154
  - - <=
223
- - !ruby/object:Gem::Version
224
- hash: 11
225
- segments:
226
- - 3
227
- - 1
228
- - 4
155
+ - !ruby/object:Gem::Version
229
156
  version: 3.1.4
230
- requirement: *id013
231
157
  type: :runtime
232
158
  prerelease: false
233
- name: rails
234
- - !ruby/object:Gem::Dependency
235
- version_requirements: &id014 !ruby/object:Gem::Requirement
159
+ version_requirements: *70367143772420
160
+ - !ruby/object:Gem::Dependency
161
+ name: kaminari
162
+ requirement: &70367143770960 !ruby/object:Gem::Requirement
236
163
  none: false
237
- requirements:
238
- - - ">="
239
- - !ruby/object:Gem::Version
240
- hash: 39
241
- segments:
242
- - 0
243
- - 12
244
- - 4
164
+ requirements:
165
+ - - ! '>='
166
+ - !ruby/object:Gem::Version
245
167
  version: 0.12.4
246
- requirement: *id014
247
168
  type: :runtime
248
169
  prerelease: false
249
- name: kaminari
250
- - !ruby/object:Gem::Dependency
251
- version_requirements: &id015 !ruby/object:Gem::Requirement
170
+ version_requirements: *70367143770960
171
+ - !ruby/object:Gem::Dependency
172
+ name: deface
173
+ requirement: &70367143769780 !ruby/object:Gem::Requirement
252
174
  none: false
253
- requirements:
254
- - - ">="
255
- - !ruby/object:Gem::Version
256
- hash: 3
257
- segments:
258
- - 0
259
- - 7
260
- - 0
175
+ requirements:
176
+ - - ! '>='
177
+ - !ruby/object:Gem::Version
261
178
  version: 0.7.0
262
- requirement: *id015
263
179
  type: :runtime
264
180
  prerelease: false
265
- name: deface
181
+ version_requirements: *70367143769780
266
182
  description: Required dependency for Spree
267
183
  email: sean@railsdog.com
268
184
  executables: []
269
-
270
185
  extensions: []
271
-
272
186
  extra_rdoc_files: []
273
-
274
- files:
187
+ files:
275
188
  - LICENSE
276
189
  - README.md
277
190
  - app/assets/images/admin/bg/active-tab.png
@@ -1024,33 +937,26 @@ files:
1024
937
  - vendor/assets/stylesheets/jquery-ui.datepicker.css.erb
1025
938
  homepage: http://spreecommerce.com
1026
939
  licenses: []
1027
-
1028
940
  post_install_message:
1029
941
  rdoc_options: []
1030
-
1031
- require_paths:
942
+ require_paths:
1032
943
  - lib
1033
- required_ruby_version: !ruby/object:Gem::Requirement
944
+ required_ruby_version: !ruby/object:Gem::Requirement
1034
945
  none: false
1035
- requirements:
1036
- - - ">="
1037
- - !ruby/object:Gem::Version
1038
- hash: 57
1039
- segments:
1040
- - 1
1041
- - 8
1042
- - 7
946
+ requirements:
947
+ - - ! '>='
948
+ - !ruby/object:Gem::Version
1043
949
  version: 1.8.7
1044
- required_rubygems_version: !ruby/object:Gem::Requirement
950
+ required_rubygems_version: !ruby/object:Gem::Requirement
1045
951
  none: false
1046
- requirements:
1047
- - - ">="
1048
- - !ruby/object:Gem::Version
1049
- hash: 3
1050
- segments:
952
+ requirements:
953
+ - - ! '>='
954
+ - !ruby/object:Gem::Version
955
+ version: '0'
956
+ segments:
1051
957
  - 0
1052
- version: "0"
1053
- requirements:
958
+ hash: -1049287416961651904
959
+ requirements:
1054
960
  - none
1055
961
  rubyforge_project: spree_core
1056
962
  rubygems_version: 1.8.10
@@ -1058,4 +964,3 @@ signing_key:
1058
964
  specification_version: 3
1059
965
  summary: Core e-commerce functionality for the Spree project.
1060
966
  test_files: []
1061
-