spree_api 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 22a48d55e6f224839c12f5fa0593dff984527b58
|
4
|
+
data.tar.gz: f630c234ab5dda95e069f8a702710508e5ede519
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 2a59355243ea784097b16848192d55d09f781a255474c06a226d03341742b5a8d4e1c320a6d40a9802d42d9e4519d94bc7fffd80805eb0d2d4769bd189ad022c
|
7
|
+
data.tar.gz: cb79c9e55cb3bcaa39f2123634cf97ea8c9bfc9d2d8a71a3b56da10f6407166275811f5b128910d7d23f17ffbca6ebd81d16952f31abb27913f87af60e4eb463
|
@@ -23,23 +23,6 @@ module Spree
|
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
26
|
-
def update
|
27
|
-
authorize! :update, StockMovement
|
28
|
-
@stock_movement = StockMovement.find(params[:id])
|
29
|
-
if @stock_movement.update_attributes(params[:stock_movement])
|
30
|
-
respond_with(@stock_movement, status: 200, default_template: :show)
|
31
|
-
else
|
32
|
-
invalid_resource!(@stock_movement)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
def destroy
|
37
|
-
authorize! :delete, StockMovement
|
38
|
-
@stock_movement = StockMovement.find(params[:id])
|
39
|
-
@stock_movement.destroy
|
40
|
-
respond_with(@stock_movement, status: 204)
|
41
|
-
end
|
42
|
-
|
43
26
|
private
|
44
27
|
|
45
28
|
def stock_location
|
@@ -60,12 +60,6 @@ module Spree
|
|
60
60
|
response.status.should == 201
|
61
61
|
json_response.should have_attributes(attributes)
|
62
62
|
end
|
63
|
-
|
64
|
-
it 'can delete a stock movement' do
|
65
|
-
api_delete :destroy, id: stock_movement.to_param
|
66
|
-
response.status.should == 204
|
67
|
-
lambda { stock_movement.reload }.should raise_error(ActiveRecord::RecordNotFound)
|
68
|
-
end
|
69
63
|
end
|
70
64
|
end
|
71
65
|
end
|
metadata
CHANGED
@@ -1,36 +1,32 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
5
|
-
prerelease:
|
4
|
+
version: 2.0.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Ryan Bigg
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-12 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: spree_core
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - '='
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: 2.0.
|
19
|
+
version: 2.0.2
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - '='
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: 2.0.
|
26
|
+
version: 2.0.2
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rabl
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - '='
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - '='
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -46,7 +41,6 @@ dependencies:
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: versioncake
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - '='
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - '='
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -234,33 +227,26 @@ files:
|
|
234
227
|
- spree_api.gemspec
|
235
228
|
homepage: ''
|
236
229
|
licenses: []
|
230
|
+
metadata: {}
|
237
231
|
post_install_message:
|
238
232
|
rdoc_options: []
|
239
233
|
require_paths:
|
240
234
|
- lib
|
241
235
|
required_ruby_version: !ruby/object:Gem::Requirement
|
242
|
-
none: false
|
243
236
|
requirements:
|
244
|
-
- -
|
237
|
+
- - '>='
|
245
238
|
- !ruby/object:Gem::Version
|
246
239
|
version: '0'
|
247
|
-
segments:
|
248
|
-
- 0
|
249
|
-
hash: -2608313359534773545
|
250
240
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
251
|
-
none: false
|
252
241
|
requirements:
|
253
|
-
- -
|
242
|
+
- - '>='
|
254
243
|
- !ruby/object:Gem::Version
|
255
244
|
version: '0'
|
256
|
-
segments:
|
257
|
-
- 0
|
258
|
-
hash: -2608313359534773545
|
259
245
|
requirements: []
|
260
246
|
rubyforge_project:
|
261
|
-
rubygems_version:
|
247
|
+
rubygems_version: 2.0.0
|
262
248
|
signing_key:
|
263
|
-
specification_version:
|
249
|
+
specification_version: 4
|
264
250
|
summary: Spree's API
|
265
251
|
test_files:
|
266
252
|
- spec/controllers/spree/api/addresses_controller_spec.rb
|