vertebrae 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +16 -19
- data/README.rdoc +3 -1
- data/VERSION +1 -1
- data/lib/response/raise_error.rb +2 -2
- data/vertebrae.gemspec +5 -4
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 25da6e2c95fc1b3b44f030f98011a8e4a207173d
|
|
4
|
+
data.tar.gz: 270fd2d55826fa7a94097409d59055e082408928
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 44a93d7936f914b4e2343cc8841bac3e3a4d54901da07c197e7276bbb9591b5de8cc23cf3ac896635feeeb84aedb58773b88023cbdb5a58b90673f3175c733fe
|
|
7
|
+
data.tar.gz: 1837b2e48d644169eed220d76cb418fa5a0e673eddaf2679d3efd5ef3312705f9920a75979fd97ae2fc4cc301cb8306ebec33f27a3a658a0a12b2b4d0c9b8207
|
data/Gemfile.lock
CHANGED
|
@@ -7,15 +7,15 @@ GEM
|
|
|
7
7
|
multi_json (~> 1.3)
|
|
8
8
|
thread_safe (~> 0.1)
|
|
9
9
|
tzinfo (~> 0.3.37)
|
|
10
|
-
addressable (2.3.
|
|
10
|
+
addressable (2.3.6)
|
|
11
11
|
atomic (1.1.10)
|
|
12
12
|
builder (3.2.2)
|
|
13
13
|
diff-lcs (1.2.4)
|
|
14
|
-
faraday (0.8.
|
|
14
|
+
faraday (0.8.9)
|
|
15
15
|
multipart-post (~> 1.2.0)
|
|
16
16
|
faraday_middleware (0.9.0)
|
|
17
17
|
faraday (>= 0.7.4, < 0.9)
|
|
18
|
-
git (1.2.
|
|
18
|
+
git (1.2.8)
|
|
19
19
|
github_api (0.10.1)
|
|
20
20
|
addressable
|
|
21
21
|
faraday (~> 0.8.1)
|
|
@@ -23,11 +23,10 @@ GEM
|
|
|
23
23
|
multi_json (~> 1.4)
|
|
24
24
|
nokogiri (~> 1.5.2)
|
|
25
25
|
oauth2
|
|
26
|
-
hashie (2.0
|
|
27
|
-
highline (1.6.
|
|
28
|
-
httpauth (0.2.0)
|
|
26
|
+
hashie (3.2.0)
|
|
27
|
+
highline (1.6.21)
|
|
29
28
|
i18n (0.6.4)
|
|
30
|
-
jeweler (1.8.
|
|
29
|
+
jeweler (1.8.8)
|
|
31
30
|
builder
|
|
32
31
|
bundler (~> 1.0)
|
|
33
32
|
git (>= 1.2.5)
|
|
@@ -36,24 +35,22 @@ GEM
|
|
|
36
35
|
nokogiri (= 1.5.10)
|
|
37
36
|
rake
|
|
38
37
|
rdoc
|
|
39
|
-
json (1.8.
|
|
40
|
-
jwt (0.
|
|
41
|
-
multi_json (>= 1.5)
|
|
38
|
+
json (1.8.1)
|
|
39
|
+
jwt (1.0.0)
|
|
42
40
|
minitest (4.7.5)
|
|
43
|
-
multi_json (1.
|
|
44
|
-
multi_xml (0.5.
|
|
41
|
+
multi_json (1.10.1)
|
|
42
|
+
multi_xml (0.5.5)
|
|
45
43
|
multipart-post (1.2.0)
|
|
46
44
|
nokogiri (1.5.10)
|
|
47
|
-
oauth2 (0.
|
|
48
|
-
faraday (
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
multi_json (~> 1.0)
|
|
45
|
+
oauth2 (1.0.0)
|
|
46
|
+
faraday (>= 0.8, < 0.10)
|
|
47
|
+
jwt (~> 1.0)
|
|
48
|
+
multi_json (~> 1.3)
|
|
52
49
|
multi_xml (~> 0.5)
|
|
53
50
|
rack (~> 1.2)
|
|
54
51
|
rack (1.5.2)
|
|
55
|
-
rake (10.
|
|
56
|
-
rdoc (4.
|
|
52
|
+
rake (10.3.2)
|
|
53
|
+
rdoc (4.1.1)
|
|
57
54
|
json (~> 1.4)
|
|
58
55
|
rspec (2.14.1)
|
|
59
56
|
rspec-core (~> 2.14.0)
|
data/README.rdoc
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
= vertebrae
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Some basic infrastructure for writing beautiful API clients. See tijuana_client for a small example.
|
|
4
|
+
|
|
5
|
+
[](https://travis-ci.org/controlshift/vertebrae)
|
|
4
6
|
|
|
5
7
|
== Contributing to vertebrae
|
|
6
8
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.7
|
data/lib/response/raise_error.rb
CHANGED
|
@@ -5,7 +5,7 @@ module Vertebrae
|
|
|
5
5
|
def on_complete(response)
|
|
6
6
|
status_code = response[:status].to_i
|
|
7
7
|
if (400...600).include? status_code
|
|
8
|
-
raise
|
|
8
|
+
raise StandardError.new(error_message(response))
|
|
9
9
|
end
|
|
10
10
|
end
|
|
11
11
|
|
|
@@ -14,6 +14,6 @@ module Vertebrae
|
|
|
14
14
|
end
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
class NotFound <
|
|
17
|
+
class NotFound < StandardError ; end
|
|
18
18
|
end # Response::RaiseError
|
|
19
19
|
end
|
data/vertebrae.gemspec
CHANGED
|
@@ -2,14 +2,16 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
+
# stub: vertebrae 0.2.7 ruby lib
|
|
5
6
|
|
|
6
7
|
Gem::Specification.new do |s|
|
|
7
8
|
s.name = "vertebrae"
|
|
8
|
-
s.version = "0.2.
|
|
9
|
+
s.version = "0.2.7"
|
|
9
10
|
|
|
10
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
|
+
s.require_paths = ["lib"]
|
|
11
13
|
s.authors = ["Nathan Woodhull"]
|
|
12
|
-
s.date = "2014-08-
|
|
14
|
+
s.date = "2014-08-02"
|
|
13
15
|
s.description = "A set of low level infrastructure and reusable code for building API clients"
|
|
14
16
|
s.email = "nathan@controlshiftlabs.com"
|
|
15
17
|
s.extra_rdoc_files = [
|
|
@@ -52,8 +54,7 @@ Gem::Specification.new do |s|
|
|
|
52
54
|
]
|
|
53
55
|
s.homepage = "http://github.com/controlshift/vertebrae"
|
|
54
56
|
s.licenses = ["MIT"]
|
|
55
|
-
s.
|
|
56
|
-
s.rubygems_version = "2.0.14"
|
|
57
|
+
s.rubygems_version = "2.2.2"
|
|
57
58
|
s.summary = "API Client Infrastructure"
|
|
58
59
|
|
|
59
60
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vertebrae
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nathan Woodhull
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-08-
|
|
11
|
+
date: 2014-08-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
169
169
|
version: '0'
|
|
170
170
|
requirements: []
|
|
171
171
|
rubyforge_project:
|
|
172
|
-
rubygems_version: 2.
|
|
172
|
+
rubygems_version: 2.2.2
|
|
173
173
|
signing_key:
|
|
174
174
|
specification_version: 4
|
|
175
175
|
summary: API Client Infrastructure
|