spyke 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -5
  3. data/lib/spyke/version.rb +1 -1
  4. data/spyke.gemspec +5 -5
  5. metadata +34 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22e34d4a8e27855f8532e9f079990487350e0ecf
4
- data.tar.gz: 93c623d72dd7699be86e9bfa8f3f0c09911a748f
3
+ metadata.gz: 568f2c2a6a67bcd64fd33bc1b4e06f4135e6da50
4
+ data.tar.gz: d676467ed8eef8d1b24401c0e52ddff9f9886570
5
5
  SHA512:
6
- metadata.gz: a294370b263e09eb49836d5c338835388e9a8c5471633b4565afdf1c3c3c902b9f3a867d05fc356814e488638aee7b94b73eeee2767d9e8b8a4cbc06d78d757d
7
- data.tar.gz: 9e8aa1d7d557d57877e0e87177ef75069e87988a059097015f73d97e631fa484e981112d5dcd4e9a00b6198374cd9dfbd90274042b9c61955cf633fae64ce8fc
6
+ metadata.gz: edc4cffb4685b3811db353441e6a6889ea6acd3221da4b6adc9a8618c4069acd8a18c342a40bbc907b68f27d3e33add09acc0ef981bce6896af82606f6365319
7
+ data.tar.gz: 14349fc853de9b6e9c411d13ab373d2f6ceadaf201eb6a5317aeb6cf3901a5019a0e04021ab71e216d89a5d826d76d045d9dcbe6a13651141e625e27b3a66415
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Spyke allows you to interact with remote REST services in an ActiveRecord-like manner.
4
4
 
5
- It basically ~~rips off~~ takes inspiration from :innocent: [Her](https://github.com/remiprev/her), a gem which we sadly had to abandon as it showed significant performance problems and maintenance seemed to had gone stale.
5
+ It basically ~~rips off~~ takes inspiration :innocent: from [Her](https://github.com/remiprev/her), a gem which we sadly had to abandon as it showed significant performance problems and maintenance seemed to had gone stale.
6
6
 
7
7
  We therefore made Spyke which adds a few fixes/features that we needed for our projects:
8
8
 
@@ -15,12 +15,14 @@ We therefore made Spyke which adds a few fixes/features that we needed for our p
15
15
 
16
16
  Add this line to your application's Gemfile:
17
17
 
18
- gem 'spyke'
18
+ ```ruby
19
+ gem 'spyke'
20
+ ```
19
21
 
20
- Like Her, Spyke uses Faraday to handle requests and expects a hash in the following format:
22
+ Like Her, Spyke uses Faraday to handle requests and expects it to return a hash in the following format:
21
23
 
22
24
  ```ruby
23
- { result: { id: 1, name: 'Bob' }, metadata: {} }
25
+ { data: { id: 1, name: 'Bob' }, metadata: {} }
24
26
  ```
25
27
 
26
28
  The simplest possible configuration that can work is something like this:
@@ -81,4 +83,4 @@ Post.find(4) # => GET http://api.com/posts/4
81
83
  ## Contributing
82
84
 
83
85
  If possible please take a look at the tests marked "wishlisted"!
84
- These are features/fixes we want to implement but haven't gotten around to doing yet :)
86
+ These are features/fixes we want to implement but haven't gotten around to doing yet :)
@@ -1,3 +1,3 @@
1
1
  module Spyke
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["jens@balvig.com"]
11
11
  spec.summary = %q{Interact with REST services in an ActiveRecord-like manner}
12
12
  spec.description = %q{Interact with REST services in an ActiveRecord-like manner}
13
- spec.homepage = ""
13
+ spec.homepage = "https://github.com/balvig/spyke"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
@@ -18,10 +18,10 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "activesupport"
22
- spec.add_dependency "activemodel"
23
- spec.add_dependency "faraday"
24
- spec.add_dependency "uri_template"
21
+ spec.add_dependency 'activesupport', '>= 3.0.0', '< 5.0'
22
+ spec.add_dependency 'activemodel', '>= 3.0.0', '< 5.0'
23
+ spec.add_dependency 'faraday', '>= 0.8.0', '< 2.0'
24
+ spec.add_dependency 'uri_template', '>= 0.7.0', '< 2.0'
25
25
 
26
26
  spec.add_development_dependency "bundler", "~> 1.6"
27
27
  spec.add_development_dependency "faraday_middleware"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spyke
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Balvig
@@ -16,56 +16,80 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 3.0.0
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - ">="
25
28
  - !ruby/object:Gem::Version
26
- version: '0'
29
+ version: 3.0.0
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '5.0'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: activemodel
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - ">="
32
38
  - !ruby/object:Gem::Version
33
- version: '0'
39
+ version: 3.0.0
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '5.0'
34
43
  type: :runtime
35
44
  prerelease: false
36
45
  version_requirements: !ruby/object:Gem::Requirement
37
46
  requirements:
38
47
  - - ">="
39
48
  - !ruby/object:Gem::Version
40
- version: '0'
49
+ version: 3.0.0
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '5.0'
41
53
  - !ruby/object:Gem::Dependency
42
54
  name: faraday
43
55
  requirement: !ruby/object:Gem::Requirement
44
56
  requirements:
45
57
  - - ">="
46
58
  - !ruby/object:Gem::Version
47
- version: '0'
59
+ version: 0.8.0
60
+ - - "<"
61
+ - !ruby/object:Gem::Version
62
+ version: '2.0'
48
63
  type: :runtime
49
64
  prerelease: false
50
65
  version_requirements: !ruby/object:Gem::Requirement
51
66
  requirements:
52
67
  - - ">="
53
68
  - !ruby/object:Gem::Version
54
- version: '0'
69
+ version: 0.8.0
70
+ - - "<"
71
+ - !ruby/object:Gem::Version
72
+ version: '2.0'
55
73
  - !ruby/object:Gem::Dependency
56
74
  name: uri_template
57
75
  requirement: !ruby/object:Gem::Requirement
58
76
  requirements:
59
77
  - - ">="
60
78
  - !ruby/object:Gem::Version
61
- version: '0'
79
+ version: 0.7.0
80
+ - - "<"
81
+ - !ruby/object:Gem::Version
82
+ version: '2.0'
62
83
  type: :runtime
63
84
  prerelease: false
64
85
  version_requirements: !ruby/object:Gem::Requirement
65
86
  requirements:
66
87
  - - ">="
67
88
  - !ruby/object:Gem::Version
68
- version: '0'
89
+ version: 0.7.0
90
+ - - "<"
91
+ - !ruby/object:Gem::Version
92
+ version: '2.0'
69
93
  - !ruby/object:Gem::Dependency
70
94
  name: bundler
71
95
  requirement: !ruby/object:Gem::Requirement
@@ -249,7 +273,7 @@ files:
249
273
  - test/support/fixtures.rb
250
274
  - test/support/webmock.rb
251
275
  - test/test_helper.rb
252
- homepage: ''
276
+ homepage: https://github.com/balvig/spyke
253
277
  licenses:
254
278
  - MIT
255
279
  metadata: {}