capgun 0.0.1 → 0.0.3

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.
Files changed (57) hide show
  1. data/.gitignore +1 -0
  2. data/.rspec +3 -0
  3. data/Gemfile +1 -8
  4. data/Gemfile.lock +32 -0
  5. data/HISTORY.md +14 -3
  6. data/LICENSE.md +26 -0
  7. data/README.md +306 -4
  8. data/Rakefile +10 -2
  9. data/capgun.gemspec +27 -16
  10. data/examples/hubot/capgun.coffee +68 -0
  11. data/lib/capgun.rb +29 -1
  12. data/lib/capgun/account.rb +13 -0
  13. data/lib/capgun/base.rb +48 -0
  14. data/lib/capgun/client.rb +82 -0
  15. data/lib/capgun/config.rb +73 -0
  16. data/lib/capgun/connection.rb +36 -0
  17. data/lib/capgun/core_ext/hash.rb +19 -0
  18. data/lib/capgun/creatable.rb +21 -0
  19. data/lib/capgun/error.rb +17 -0
  20. data/lib/capgun/error/bad_gateway.rb +7 -0
  21. data/lib/capgun/error/bad_request.rb +7 -0
  22. data/lib/capgun/error/client_error.rb +7 -0
  23. data/lib/capgun/error/forbidden.rb +7 -0
  24. data/lib/capgun/error/internal_server_error.rb +7 -0
  25. data/lib/capgun/error/not_acceptable.rb +7 -0
  26. data/lib/capgun/error/not_found.rb +7 -0
  27. data/lib/capgun/error/server_error.rb +7 -0
  28. data/lib/capgun/error/service_unavailable.rb +7 -0
  29. data/lib/capgun/error/unauthorized.rb +7 -0
  30. data/lib/capgun/estimate.rb +11 -0
  31. data/lib/capgun/job.rb +13 -0
  32. data/lib/capgun/order.rb +13 -0
  33. data/lib/capgun/request.rb +33 -0
  34. data/lib/capgun/request/gateway.rb +20 -0
  35. data/lib/capgun/response/parse_json.rb +28 -0
  36. data/lib/capgun/response/raise_client_error.rb +48 -0
  37. data/lib/capgun/response/raise_server_error.rb +23 -0
  38. data/lib/capgun/version.rb +27 -7
  39. data/spec/capgun/account_spec.rb +45 -0
  40. data/spec/capgun/base_spec.rb +29 -0
  41. data/spec/capgun/client_spec.rb +181 -0
  42. data/spec/capgun/config_spec.rb +43 -0
  43. data/spec/capgun/estimate_spec.rb +7 -0
  44. data/spec/capgun/job_spec.rb +45 -0
  45. data/spec/capgun/order_spec.rb +45 -0
  46. data/spec/capgun/version_spec.rb +11 -0
  47. data/spec/capgun_spec.rb +17 -0
  48. data/spec/faraday/response_spec.rb +68 -0
  49. data/spec/fixtures/account.json +9 -0
  50. data/spec/fixtures/completed-order.json +46 -0
  51. data/spec/fixtures/estimate.json +34 -0
  52. data/spec/fixtures/job.json +9 -0
  53. data/spec/fixtures/notfound.json +1 -0
  54. data/spec/fixtures/order.json +43 -0
  55. data/spec/fixtures/unauthorized.json +1 -0
  56. data/spec/spec_helper.rb +27 -0
  57. metadata +218 -10
@@ -0,0 +1,43 @@
1
+ require 'spec_helper'
2
+
3
+ describe Capgun::Config do
4
+
5
+ subject do
6
+ Capgun
7
+ end
8
+
9
+ describe '#configure' do
10
+ specify "yields self to be configured" do
11
+ subject.configure do |config|
12
+ config.endpoint = 'http://example.com/api'
13
+ end
14
+ subject.endpoint.should == 'http://example.com/api'
15
+ end
16
+ end
17
+
18
+ describe '.options' do
19
+ specify "returns a hash of default capgun options" do
20
+ subject.options.should == {
21
+ :adapter => :net_http,
22
+ :auth_token => "",
23
+ :connection_options => {},
24
+ :endpoint => "http://example.com/api",
25
+ :gateway => nil,
26
+ :proxy => nil,
27
+ :user_agent => "Capgun.io Ruby Gem 0.0.3"
28
+ }
29
+ end
30
+ end
31
+
32
+ describe '.reset' do
33
+ specify "resets to the default capgun options" do
34
+ subject.configure do |config|
35
+ config.endpoint = 'http://example.com/api'
36
+ end
37
+ subject.endpoint.should == 'http://example.com/api'
38
+ subject.reset
39
+ subject.endpoint.should == 'https://api.capgun.io'
40
+ end
41
+ end
42
+
43
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe Capgun::Estimate do
4
+
5
+ specify "fill up some specs for Capgun::Estimate in #{__FILE__}"
6
+
7
+ end
@@ -0,0 +1,45 @@
1
+ require 'spec_helper'
2
+
3
+ describe Capgun::Job do
4
+
5
+ describe "#==" do
6
+ it "should return true when ids and classes are equal" do
7
+ user = Capgun::Job.new('id' => 1)
8
+ other = Capgun::Job.new('id' => 1)
9
+ (user == other).should be_true
10
+ end
11
+ it "should return false when classes are not equal" do
12
+ user = Capgun::Job.new('id' => 1)
13
+ other = Capgun::Order.new('id' => 1)
14
+ (user == other).should be_false
15
+ end
16
+ it "should return false when ids are not equal" do
17
+ user = Capgun::Job.new('id' => 1)
18
+ other = Capgun::Job.new('id' => 2)
19
+ (user == other).should be_false
20
+ end
21
+ end
22
+
23
+ describe "#created_at" do
24
+ it "should return a Time when created_at is set" do
25
+ user = Capgun::Job.new('created_at' => "Mon Jul 16 12:59:01 +0000 2007")
26
+ user.created_at.should be_a Time
27
+ end
28
+ it "should return nil when created_at is not set" do
29
+ user = Capgun::Job.new
30
+ user.created_at.should be_nil
31
+ end
32
+ end
33
+
34
+ describe "#updated_at" do
35
+ it "should return a Time when updated_at is set" do
36
+ user = Capgun::Job.new('updated_at' => "Mon Jul 16 12:59:01 +0000 2007")
37
+ user.updated_at.should be_a Time
38
+ end
39
+ it "should return nil when updated_at is not set" do
40
+ user = Capgun::Job.new
41
+ user.updated_at.should be_nil
42
+ end
43
+ end
44
+
45
+ end
@@ -0,0 +1,45 @@
1
+ require 'spec_helper'
2
+
3
+ describe Capgun::Order do
4
+
5
+ describe "#==" do
6
+ it "should return true when ids and classes are equal" do
7
+ user = Capgun::Order.new('id' => 1)
8
+ other = Capgun::Order.new('id' => 1)
9
+ (user == other).should be_true
10
+ end
11
+ it "should return false when classes are not equal" do
12
+ user = Capgun::Order.new('id' => 1)
13
+ other = Capgun::Job.new('id' => 1)
14
+ (user == other).should be_false
15
+ end
16
+ it "should return false when ids are not equal" do
17
+ user = Capgun::Order.new('id' => 1)
18
+ other = Capgun::Order.new('id' => 2)
19
+ (user == other).should be_false
20
+ end
21
+ end
22
+
23
+ describe "#created_at" do
24
+ it "should return a Time when created_at is set" do
25
+ user = Capgun::Order.new('created_at' => "Mon Jul 16 12:59:01 +0000 2007")
26
+ user.created_at.should be_a Time
27
+ end
28
+ it "should return nil when created_at is not set" do
29
+ user = Capgun::Order.new
30
+ user.created_at.should be_nil
31
+ end
32
+ end
33
+
34
+ describe "#updated_at" do
35
+ it "should return a Time when updated_at is set" do
36
+ user = Capgun::Order.new('updated_at' => "Mon Jul 16 12:59:01 +0000 2007")
37
+ user.updated_at.should be_a Time
38
+ end
39
+ it "should return nil when updated_at is not set" do
40
+ user = Capgun::Order.new
41
+ user.updated_at.should be_nil
42
+ end
43
+ end
44
+
45
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe "Capgun::Version" do
4
+
5
+ describe '.to_s' do
6
+ specify "represents current library version" do
7
+ Capgun::Version.to_s.should == "0.0.3"
8
+ end
9
+ end
10
+
11
+ end
@@ -0,0 +1,17 @@
1
+ require 'spec_helper'
2
+
3
+ describe Capgun do
4
+
5
+ describe '.respond_to?' do
6
+ it "should take an optional argument" do
7
+ Capgun.respond_to?(:new, true).should be_true
8
+ end
9
+ end
10
+
11
+ describe ".new" do
12
+ it "should return a Capgun::Client" do
13
+ Capgun.new.should be_a Capgun::Client
14
+ end
15
+ end
16
+
17
+ end
@@ -0,0 +1,68 @@
1
+ require 'spec_helper'
2
+
3
+ describe Faraday::Response do
4
+ before do
5
+ @client = Capgun::Client.new
6
+ end
7
+
8
+ {
9
+ 400 => Capgun::Error::BadRequest,
10
+ 401 => Capgun::Error::Unauthorized,
11
+ 403 => Capgun::Error::Forbidden,
12
+ 404 => Capgun::Error::NotFound,
13
+ 406 => Capgun::Error::NotAcceptable,
14
+ 500 => Capgun::Error::InternalServerError,
15
+ 502 => Capgun::Error::BadGateway,
16
+ 503 => Capgun::Error::ServiceUnavailable,
17
+ }.each do |status, exception|
18
+ if (status >= 500)
19
+ context "when HTTP status is #{status}" do
20
+ before do
21
+ stub_request(:get, "https://api.capgun.io/v1/jobs/abc123.json").
22
+ with(:headers => {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Authorization'=>'', 'User-Agent'=>'Capgun.io Ruby Gem 0.0.3'}).
23
+ to_return(:status => status, :body => "", :headers => {})
24
+ end
25
+
26
+ it "should raise #{exception.name} error" do
27
+ lambda do
28
+ @client.status('abc123')
29
+ end.should raise_error(exception)
30
+ end
31
+ end
32
+ else
33
+ [nil, "message", "error", "errors"].each do |body|
34
+ context "when HTTP status is #{status} and body is #{body||='nil'}" do
35
+ before do
36
+ body_message = '{"'+body+'":"test"}' unless body.nil?
37
+ stub_request(:get, "https://api.capgun.io/v1/jobs/abc123.json").
38
+ with(:headers => {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Authorization'=>'', 'User-Agent'=>'Capgun.io Ruby Gem 0.0.3'}).
39
+ to_return(:status => status, :body => body_message, :headers => {})
40
+ end
41
+
42
+ it "should raise #{exception.name} error" do
43
+ lambda do
44
+ @client.status('abc123')
45
+ end.should raise_error(exception)
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+
52
+ context "when response status is 404 from lookup" do
53
+
54
+ before do
55
+
56
+ stub_request(:get, "https://api.capgun.io/v1/jobs/abc123.json").
57
+ with(:headers => {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Authorization'=>'', 'User-Agent'=>'Capgun.io Ruby Gem 0.0.3'}).
58
+ to_return(:status => 404, :body => fixture('notfound.json'), :headers => {})
59
+ end
60
+
61
+ it "should raise Capgun::Error::NotFound" do
62
+ lambda do
63
+ @client.status('abc123')
64
+ end.should raise_error(Capgun::Error::NotFound)
65
+ end
66
+
67
+ end
68
+ end
@@ -0,0 +1,9 @@
1
+ {
2
+ "account": {
3
+ "id": "4fd193db88f5600472000001",
4
+ "name": "Acme Co.",
5
+ "balance": 200,
6
+ "created_at": "2012-06-08T05:55:39+00:00",
7
+ "updated_at": "2012-06-08T05:55:39+00:00"
8
+ }
9
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "order": {
3
+ "id": "4fd20a1288f560177600000a",
4
+ "created_at": "2012-06-08T14:20:02+00:00",
5
+ "updated_at": "2012-06-08T14:20:02+00:00",
6
+ "url": "http://example.com:4567/",
7
+ "notify": null,
8
+ "cost": 1,
9
+ "viewport": "1024x768+0+0",
10
+ "images": [
11
+ "640x480"
12
+ ],
13
+ "asset_urls": {
14
+ "640x480": "https://api.capgun.local/v1/orders/4fd20a1288f560177600000a/640x480.png"
15
+ },
16
+ "packages": [
17
+ "base"
18
+ ],
19
+ "options": [
20
+ {
21
+ "package": "base"
22
+ },
23
+ {
24
+ "url": "http://example.com:4567/"
25
+ },
26
+ {
27
+ "timeout": "5000"
28
+ },
29
+ {
30
+ "delay": "0"
31
+ },
32
+ {
33
+ "viewport": "1024x768+0+0"
34
+ },
35
+ {
36
+ "image": "640x480"
37
+ }
38
+ ],
39
+ "job": {
40
+ "id": "4fd20a1288f5601776000012",
41
+ "state": "completed",
42
+ "created_at": "2012-06-08T14:20:02+00:00",
43
+ "updated_at": "2012-06-08T14:20:08+00:00"
44
+ }
45
+ }
46
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "order": {
3
+ "url": "http://example.com:4567/",
4
+ "notify": null,
5
+ "cost": 1,
6
+ "viewport": "1024x768+0+0",
7
+ "images": [
8
+ "640x480"
9
+ ],
10
+ "packages": [
11
+ "base"
12
+ ],
13
+ "options": [
14
+ {
15
+ "package": "base"
16
+ },
17
+ {
18
+ "url": "http://example.com:4567/"
19
+ },
20
+ {
21
+ "timeout": "5000"
22
+ },
23
+ {
24
+ "delay": "0"
25
+ },
26
+ {
27
+ "viewport": "1024x768+0+0"
28
+ },
29
+ {
30
+ "image": "640x480"
31
+ }
32
+ ]
33
+ }
34
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "job": {
3
+ "id": "4fd20a1288f5601776000012",
4
+ "state": "initialized",
5
+ "created_at": "2012-06-08T14:20:02+00:00",
6
+ "updated_at": "2012-06-08T14:20:08+00:00",
7
+ "object_id": "4fd20a1288f560177600000a"
8
+ }
9
+ }
@@ -0,0 +1 @@
1
+ {"message":"Not Found"}
@@ -0,0 +1,43 @@
1
+ {
2
+ "order": {
3
+ "id": "4fd20a1288f560177600000a",
4
+ "created_at": "2012-06-08T14:20:02+00:00",
5
+ "updated_at": "2012-06-08T14:20:02+00:00",
6
+ "url": "http://example.com:4567/",
7
+ "notify": null,
8
+ "cost": 1,
9
+ "viewport": "1024x768+0+0",
10
+ "images": [
11
+ "640x480"
12
+ ],
13
+ "packages": [
14
+ "base"
15
+ ],
16
+ "options": [
17
+ {
18
+ "package": "base"
19
+ },
20
+ {
21
+ "url": "http://example.com:4567/"
22
+ },
23
+ {
24
+ "timeout": "5000"
25
+ },
26
+ {
27
+ "delay": "0"
28
+ },
29
+ {
30
+ "viewport": "1024x768+0+0"
31
+ },
32
+ {
33
+ "image": "640x480"
34
+ }
35
+ ],
36
+ "job": {
37
+ "id": "4fd20a1288f5601776000012",
38
+ "state": "initialized",
39
+ "created_at": "2012-06-08T14:20:02+00:00",
40
+ "updated_at": "2012-06-08T14:20:08+00:00"
41
+ }
42
+ }
43
+ }
@@ -0,0 +1 @@
1
+ {"message":"Unauthorized"}
@@ -0,0 +1,27 @@
1
+ #FIXME
2
+ #unless ENV['CI']
3
+ # require 'simplecov'
4
+ # SimpleCov.start do
5
+ # add_filter 'spec'
6
+ # end
7
+ #end
8
+
9
+ require 'capgun'
10
+ require 'rspec'
11
+ require 'webmock/rspec'
12
+
13
+ def stub_get(path, endpoint=Capgun.endpoint)
14
+ stub_request(:get, endpoint + path)
15
+ end
16
+
17
+ def stub_post(path, endpoint=Capgun.endpoint)
18
+ stub_request(:post, endpoint + path)
19
+ end
20
+
21
+ def fixture_path
22
+ File.expand_path("../fixtures", __FILE__)
23
+ end
24
+
25
+ def fixture(file)
26
+ File.new(fixture_path + '/' + file)
27
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capgun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,81 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-12 00:00:00.000000000 Z
12
+ date: 2013-04-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: rspect
16
- requirement: &16589440 !ruby/object:Gem::Requirement
15
+ name: activesupport
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 2.3.9
22
+ - - <
23
+ - !ruby/object:Gem::Version
24
+ version: '4'
25
+ type: :runtime
26
+ prerelease: false
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: 2.3.9
33
+ - - <
34
+ - !ruby/object:Gem::Version
35
+ version: '4'
36
+ - !ruby/object:Gem::Dependency
37
+ name: faraday
38
+ requirement: !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: '0.8'
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: !ruby/object:Gem::Requirement
47
+ none: false
48
+ requirements:
49
+ - - ~>
50
+ - !ruby/object:Gem::Version
51
+ version: '0.8'
52
+ - !ruby/object:Gem::Dependency
53
+ name: json
54
+ requirement: !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ~>
58
+ - !ruby/object:Gem::Version
59
+ version: 1.6.6
60
+ type: :runtime
61
+ prerelease: false
62
+ version_requirements: !ruby/object:Gem::Requirement
63
+ none: false
64
+ requirements:
65
+ - - ~>
66
+ - !ruby/object:Gem::Version
67
+ version: 1.6.6
68
+ - !ruby/object:Gem::Dependency
69
+ name: multi_json
70
+ requirement: !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '1.3'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ none: false
80
+ requirements:
81
+ - - ~>
82
+ - !ruby/object:Gem::Version
83
+ version: '1.3'
84
+ - !ruby/object:Gem::Dependency
85
+ name: rake
86
+ requirement: !ruby/object:Gem::Requirement
17
87
  none: false
18
88
  requirements:
19
89
  - - ! '>='
@@ -21,8 +91,77 @@ dependencies:
21
91
  version: '0'
22
92
  type: :development
23
93
  prerelease: false
24
- version_requirements: *16589440
25
- description: Ruby API to capgun.io web thumb service
94
+ version_requirements: !ruby/object:Gem::Requirement
95
+ none: false
96
+ requirements:
97
+ - - ! '>='
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ - !ruby/object:Gem::Dependency
101
+ name: rspec
102
+ requirement: !ruby/object:Gem::Requirement
103
+ none: false
104
+ requirements:
105
+ - - ! '>='
106
+ - !ruby/object:Gem::Version
107
+ version: '0'
108
+ type: :development
109
+ prerelease: false
110
+ version_requirements: !ruby/object:Gem::Requirement
111
+ none: false
112
+ requirements:
113
+ - - ! '>='
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
116
+ - !ruby/object:Gem::Dependency
117
+ name: simplecov
118
+ requirement: !ruby/object:Gem::Requirement
119
+ none: false
120
+ requirements:
121
+ - - ! '>='
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ - !ruby/object:Gem::Dependency
133
+ name: webmock
134
+ requirement: !ruby/object:Gem::Requirement
135
+ none: false
136
+ requirements:
137
+ - - ! '>='
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ type: :development
141
+ prerelease: false
142
+ version_requirements: !ruby/object:Gem::Requirement
143
+ none: false
144
+ requirements:
145
+ - - ! '>='
146
+ - !ruby/object:Gem::Version
147
+ version: '0'
148
+ - !ruby/object:Gem::Dependency
149
+ name: yard
150
+ requirement: !ruby/object:Gem::Requirement
151
+ none: false
152
+ requirements:
153
+ - - ! '>='
154
+ - !ruby/object:Gem::Version
155
+ version: '0'
156
+ type: :development
157
+ prerelease: false
158
+ version_requirements: !ruby/object:Gem::Requirement
159
+ none: false
160
+ requirements:
161
+ - - ! '>='
162
+ - !ruby/object:Gem::Version
163
+ version: '0'
164
+ description: Ruby wrapper for the capgun.io web thumb service API
26
165
  email:
27
166
  - mikemondragon@gmail.com
28
167
  executables: []
@@ -30,14 +169,61 @@ extensions: []
30
169
  extra_rdoc_files: []
31
170
  files:
32
171
  - .gitignore
172
+ - .rspec
33
173
  - Gemfile
34
174
  - Gemfile.lock
35
175
  - HISTORY.md
176
+ - LICENSE.md
36
177
  - README.md
37
178
  - Rakefile
38
179
  - capgun.gemspec
180
+ - examples/hubot/capgun.coffee
39
181
  - lib/capgun.rb
182
+ - lib/capgun/account.rb
183
+ - lib/capgun/base.rb
184
+ - lib/capgun/client.rb
185
+ - lib/capgun/config.rb
186
+ - lib/capgun/connection.rb
187
+ - lib/capgun/core_ext/hash.rb
188
+ - lib/capgun/creatable.rb
189
+ - lib/capgun/error.rb
190
+ - lib/capgun/error/bad_gateway.rb
191
+ - lib/capgun/error/bad_request.rb
192
+ - lib/capgun/error/client_error.rb
193
+ - lib/capgun/error/forbidden.rb
194
+ - lib/capgun/error/internal_server_error.rb
195
+ - lib/capgun/error/not_acceptable.rb
196
+ - lib/capgun/error/not_found.rb
197
+ - lib/capgun/error/server_error.rb
198
+ - lib/capgun/error/service_unavailable.rb
199
+ - lib/capgun/error/unauthorized.rb
200
+ - lib/capgun/estimate.rb
201
+ - lib/capgun/job.rb
202
+ - lib/capgun/order.rb
203
+ - lib/capgun/request.rb
204
+ - lib/capgun/request/gateway.rb
205
+ - lib/capgun/response/parse_json.rb
206
+ - lib/capgun/response/raise_client_error.rb
207
+ - lib/capgun/response/raise_server_error.rb
40
208
  - lib/capgun/version.rb
209
+ - spec/capgun/account_spec.rb
210
+ - spec/capgun/base_spec.rb
211
+ - spec/capgun/client_spec.rb
212
+ - spec/capgun/config_spec.rb
213
+ - spec/capgun/estimate_spec.rb
214
+ - spec/capgun/job_spec.rb
215
+ - spec/capgun/order_spec.rb
216
+ - spec/capgun/version_spec.rb
217
+ - spec/capgun_spec.rb
218
+ - spec/faraday/response_spec.rb
219
+ - spec/fixtures/account.json
220
+ - spec/fixtures/completed-order.json
221
+ - spec/fixtures/estimate.json
222
+ - spec/fixtures/job.json
223
+ - spec/fixtures/notfound.json
224
+ - spec/fixtures/order.json
225
+ - spec/fixtures/unauthorized.json
226
+ - spec/spec_helper.rb
41
227
  homepage: http://capgun.io/
42
228
  licenses: []
43
229
  post_install_message:
@@ -52,17 +238,39 @@ required_ruby_version: !ruby/object:Gem::Requirement
52
238
  version: '0'
53
239
  segments:
54
240
  - 0
55
- hash: -1174164635801482498
241
+ hash: 3936620781114249947
56
242
  required_rubygems_version: !ruby/object:Gem::Requirement
57
243
  none: false
58
244
  requirements:
59
245
  - - ! '>='
60
246
  - !ruby/object:Gem::Version
61
247
  version: '0'
248
+ segments:
249
+ - 0
250
+ hash: 3936620781114249947
62
251
  requirements: []
63
252
  rubyforge_project: capgun
64
- rubygems_version: 1.8.10
253
+ rubygems_version: 1.8.23
65
254
  signing_key:
66
255
  specification_version: 3
67
- summary: Ruby API to capgun.io web thumb service
68
- test_files: []
256
+ summary: capgun.io API wrapper
257
+ test_files:
258
+ - spec/capgun/account_spec.rb
259
+ - spec/capgun/base_spec.rb
260
+ - spec/capgun/client_spec.rb
261
+ - spec/capgun/config_spec.rb
262
+ - spec/capgun/estimate_spec.rb
263
+ - spec/capgun/job_spec.rb
264
+ - spec/capgun/order_spec.rb
265
+ - spec/capgun/version_spec.rb
266
+ - spec/capgun_spec.rb
267
+ - spec/faraday/response_spec.rb
268
+ - spec/fixtures/account.json
269
+ - spec/fixtures/completed-order.json
270
+ - spec/fixtures/estimate.json
271
+ - spec/fixtures/job.json
272
+ - spec/fixtures/notfound.json
273
+ - spec/fixtures/order.json
274
+ - spec/fixtures/unauthorized.json
275
+ - spec/spec_helper.rb
276
+ has_rdoc: