spyke 3.1.3 → 3.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/lib/spyke/version.rb +1 -1
- data/spyke.gemspec +1 -1
- data/test/custom_request_test.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac6e37e780a90131b1d28465f423c7a3ac678e70
|
4
|
+
data.tar.gz: a42c6fc152260a29c6e0adf5aab18c38fba19c62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eaf1d09c38f66920273837ef4c17aefee880bd7860e2ae21c0714c35fa46f2c241602b86173aa1779d6c15eef70be7b050c5fba26a05e49394f54a885e9154ad
|
7
|
+
data.tar.gz: 4808dcb80692fc19024d352d0c9dc0c6cecaf6ef00b366c94d3c19fbeff16ac1512391c0592809617e630f9da85c975d209c848a9ad40a5fd6d35adb4c519d3d
|
data/.travis.yml
CHANGED
data/lib/spyke/version.rb
CHANGED
data/spyke.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_dependency 'activesupport', '>= 3.0.0', '< 5.0'
|
22
22
|
spec.add_dependency 'activemodel', '>= 3.0.0', '< 5.0'
|
23
|
-
spec.add_dependency 'faraday', '>= 0.
|
23
|
+
spec.add_dependency 'faraday', '>= 0.9.0', '< 2.0'
|
24
24
|
spec.add_dependency 'faraday_middleware', '>= 0.9.1', '< 2.0'
|
25
25
|
spec.add_dependency 'uri_template', '>= 0.7.0', '< 2.0'
|
26
26
|
|
data/test/custom_request_test.rb
CHANGED
@@ -40,9 +40,9 @@ module Spyke
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def test_custom_put_request_from_instance
|
43
|
-
endpoint = stub_request(:put, 'http://sushi.com/recipes/1/publish').to_return_json(result: { id: 1, status: 'published' })
|
43
|
+
endpoint = stub_request(:put, 'http://sushi.com/recipes/1/publish').with(body: { time: '11:00' }).to_return_json(result: { id: 1, status: 'published' })
|
44
44
|
recipe = Recipe.new(id: 1, status: 'unpublished')
|
45
|
-
recipe.put('/recipes/:id/publish')
|
45
|
+
recipe.put('/recipes/:id/publish', time: '11:00')
|
46
46
|
|
47
47
|
assert_equal 'published', recipe.status
|
48
48
|
assert_requested endpoint
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spyke
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Balvig
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -56,7 +56,7 @@ dependencies:
|
|
56
56
|
requirements:
|
57
57
|
- - ">="
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version: 0.
|
59
|
+
version: 0.9.0
|
60
60
|
- - "<"
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '2.0'
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
requirements:
|
67
67
|
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 0.
|
69
|
+
version: 0.9.0
|
70
70
|
- - "<"
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '2.0'
|
@@ -319,7 +319,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
319
319
|
version: '0'
|
320
320
|
requirements: []
|
321
321
|
rubyforge_project:
|
322
|
-
rubygems_version: 2.
|
322
|
+
rubygems_version: 2.4.5
|
323
323
|
signing_key:
|
324
324
|
specification_version: 4
|
325
325
|
summary: Interact with REST services in an ActiveRecord-like manner
|