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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8e4ed4a455086b8c608ee5391cb83673b180733d
4
- data.tar.gz: 8fac522a75833e3211d6cd75ee3da3d48a2d1f2c
3
+ metadata.gz: ac6e37e780a90131b1d28465f423c7a3ac678e70
4
+ data.tar.gz: a42c6fc152260a29c6e0adf5aab18c38fba19c62
5
5
  SHA512:
6
- metadata.gz: 11114936725015913d855f29c40aec4e617eab962594b60537cdcaecd0a5e3af84004c3d01ee123ce918c500a883809be611c9cf0486ef2bbf3f07e2c5825c7c
7
- data.tar.gz: 00755e3ab698f2b8147f43bb3db0859e954f63250151a4dfea07d778ff65684d9bc0b7e2822538569eaeafce057f7b9c8f08f6addbf144cb0339e5b9f8441f20
6
+ metadata.gz: eaf1d09c38f66920273837ef4c17aefee880bd7860e2ae21c0714c35fa46f2c241602b86173aa1779d6c15eef70be7b050c5fba26a05e49394f54a885e9154ad
7
+ data.tar.gz: 4808dcb80692fc19024d352d0c9dc0c6cecaf6ef00b366c94d3c19fbeff16ac1512391c0592809617e630f9da85c975d209c848a9ad40a5fd6d35adb4c519d3d
data/.travis.yml CHANGED
@@ -2,3 +2,4 @@ notifications:
2
2
  email: false
3
3
  rvm:
4
4
  - 2.1.5
5
+ sudo: false
data/lib/spyke/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Spyke
2
- VERSION = '3.1.3'
2
+ VERSION = '3.1.4'
3
3
  end
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.8.0', '< 2.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
 
@@ -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.3
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-04-17 00:00:00.000000000 Z
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.8.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.8.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.2.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