spree_api 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -67,7 +67,7 @@ module Spree
67
67
  end
68
68
 
69
69
  def error_during_processing(exception)
70
- render :text => { exception: exception.message }.to_json,
70
+ render :text => { :exception => exception.message }.to_json,
71
71
  :status => 422 and return
72
72
  end
73
73
 
@@ -4,8 +4,10 @@ module Spree
4
4
  respond_to :json
5
5
 
6
6
  def index
7
- @countries = Country.ransack(params[:q]).result.includes(:states).order('name ASC')
8
- .page(params[:page]).per(params[:per_page])
7
+ @countries = Country.ransack(params[:q]).result.
8
+ includes(:states).order('name ASC').
9
+ page(params[:page]).per(params[:per_page])
10
+
9
11
  respond_with(@countries)
10
12
  end
11
13
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,44 +9,59 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-19 00:00:00.000000000 Z
12
+ date: 2013-01-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: spree_core
16
- requirement: &70207172321420 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - =
19
+ - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.3.0
21
+ version: 1.3.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70207172321420
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - '='
28
+ - !ruby/object:Gem::Version
29
+ version: 1.3.1
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: versioncake
27
- requirement: &70207172351120 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
- - - =
35
+ - - '='
31
36
  - !ruby/object:Gem::Version
32
37
  version: 0.4.0
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *70207172351120
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - '='
44
+ - !ruby/object:Gem::Version
45
+ version: 0.4.0
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: rspec-rails
38
- requirement: &70207172427480 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
- - - =
51
+ - - '='
42
52
  - !ruby/object:Gem::Version
43
53
  version: 2.9.0
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *70207172427480
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 2.9.0
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: database_cleaner
49
- requirement: &70207172454620 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ! '>='
@@ -54,7 +69,12 @@ dependencies:
54
69
  version: '0'
55
70
  type: :development
56
71
  prerelease: false
57
- version_requirements: *70207172454620
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
58
78
  description: Spree's API
59
79
  email:
60
80
  - ryan@spreecommerce.com
@@ -201,7 +221,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
201
221
  version: '0'
202
222
  segments:
203
223
  - 0
204
- hash: -509046748065310414
224
+ hash: -4546587640053475121
205
225
  required_rubygems_version: !ruby/object:Gem::Requirement
206
226
  none: false
207
227
  requirements:
@@ -210,10 +230,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
230
  version: '0'
211
231
  segments:
212
232
  - 0
213
- hash: -509046748065310414
233
+ hash: -4546587640053475121
214
234
  requirements: []
215
235
  rubyforge_project:
216
- rubygems_version: 1.8.10
236
+ rubygems_version: 1.8.23
217
237
  signing_key:
218
238
  specification_version: 3
219
239
  summary: Spree's API