espago 0.0.6 → 0.0.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: de8b8e55693c7ee06cacae9fdee82f050bff5220
4
+ data.tar.gz: 193136c199576fb87cee0704785a47b6018f64d0
5
+ SHA512:
6
+ metadata.gz: 0f20d84b3a51b22138745c1154e0c4ed3047a2ee636aa2a6aabec2d3dbc1329f28662f0d8120935110d5141330d1168733f5af69c31be62286ed53f751a6336a
7
+ data.tar.gz: 31f1a209a0283eb47548b40a13761a59dd4cf27715003a5b0228184c73f90b3c4b3e89b720ac2e3b448499b445ac17bde88931103736284cae3dc41fe37703af
data/.gitignore CHANGED
@@ -3,6 +3,9 @@
3
3
  .sass-cache
4
4
  capybara-*.html
5
5
  .rspec
6
+ .ruby-version
7
+ .ruby-gemset
8
+ *.gem
6
9
  /.bundle
7
10
  /vendor/bundle
8
11
  /log/*
@@ -14,4 +17,4 @@ capybara-*.html
14
17
  **.orig
15
18
  rerun.txt
16
19
  pickle-email-*.html
17
- pkg/*
20
+ pkg/*
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- espago (0.0.6)
4
+ espago (0.0.7)
5
5
  facets
6
6
  faraday
7
7
 
@@ -6,8 +6,8 @@ require 'espago/version'
6
6
  Gem::Specification.new do |gem|
7
7
  gem.name = "espago"
8
8
  gem.version = Espago::VERSION
9
- gem.authors = ["Piotrek"]
10
- gem.email = ["pkurek90@gmail.com"]
9
+ gem.authors = ["Piotrek", "Szymon Fiedler"]
10
+ gem.email = ["developers@espago.com"]
11
11
  gem.description = %q{Espago api wrapper}
12
12
  gem.summary = %q{Espago api wrapper}
13
13
  gem.homepage = ""
@@ -2,8 +2,11 @@ require "faraday"
2
2
  require "json"
3
3
  require "forwardable"
4
4
  require "espago/router"
5
+ require "espago/error"
6
+ require "espago/response"
5
7
  require "facets/kernel/require_all"
6
8
 
9
+ require_all "error/*"
7
10
  require_all "api_connection/*"
8
11
 
9
12
  module Espago
@@ -11,9 +14,6 @@ module Espago
11
14
  extend Forwardable
12
15
  def_delegator :@connection, :basic_auth, :authenticate
13
16
 
14
- Error = Class.new(StandardError)
15
- AuthenticationError = Class.new(StandardError)
16
-
17
17
  def initialize(enviroment)
18
18
  @connection = Faraday.new(enviroment)
19
19
  @router = Router
@@ -30,23 +30,29 @@ module Espago
30
30
 
31
31
  def handle_response(response)
32
32
  case response.status
33
- when 200
34
- return parse(response.body)
35
- when 202
36
- return true
37
- when 400
38
- raise Error, { error_message: 'bad request', status: 400 }
33
+ when 200, 201, 204
34
+ return Response.new(response)
35
+ when 400, 404, 422
36
+ raise invalid_request_error(response)
39
37
  when 401
40
- raise AuthenticationError, { error_message: 'not authenticated', status: 401 }
41
- when 404
42
- raise Error, { error_message: 'not found', status: 404 }
43
- when 407
44
- raise Error, { error_message: 'proxy authentication required', status: 407 }
38
+ raise authentication_error(response)
45
39
  else
46
- raise Error, { error_message: 'unknown error', status: response.status }
40
+ raise api_error(response.status, response.body)
47
41
  end
48
42
  end
49
43
 
44
+ def invalid_request_error(response)
45
+ InvalidRequestError.new(response)
46
+ end
47
+
48
+ def authentication_error(response)
49
+ AuthenticationError.new(response)
50
+ end
51
+
52
+ def api_error(response)
53
+ ApiError.new(response)
54
+ end
55
+
50
56
  def parse(body)
51
57
  JSON.parse body
52
58
  end
@@ -0,0 +1,13 @@
1
+ module Espago
2
+ class ApiConnection
3
+ class DeleteInvoiceItems
4
+ def initialize(connection)
5
+ @connection = connection
6
+ end
7
+
8
+ def request(params = {})
9
+ @connection.delete "invoice_items/#{params[:invoice_item_id]}"
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ module Espago
2
+ class ApiConnection
3
+ class DeletePlans
4
+ def initialize(connection)
5
+ @connection = connection
6
+ end
7
+
8
+ def request(params = {})
9
+ @connection.delete "plans/#{params[:plan_id]}"
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ module Espago
2
+ class ApiConnection
3
+ class DeleteSubscriptions
4
+ def initialize(connection)
5
+ @connection = connection
6
+ end
7
+
8
+ def request(params = {})
9
+ @connection.delete "subscriptions/#{params[:subscription_id]}"
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ module Espago
2
+ class ApiConnection
3
+ class GetInvoiceItems
4
+ def initialize(connection)
5
+ @connection = connection
6
+ end
7
+
8
+ def request(params = {})
9
+ @connection.get "invoice_items/#{params[:invoice_item_id]}"
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,17 @@
1
+ module Espago
2
+ class ApiConnection
3
+ class GetInvoices
4
+ def initialize(connection)
5
+ @connection = connection
6
+ end
7
+
8
+ def request(params = {})
9
+ if params[:invoice_id]
10
+ @connection.get "invoices/#{params[:invoice_id]}"
11
+ else
12
+ @connection.get "invoices", params
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ module Espago
2
+ class ApiConnection
3
+ class GetPlans
4
+ def initialize(connection)
5
+ @connection = connection
6
+ end
7
+
8
+ def request(params = {})
9
+ if params[:plan_id]
10
+ @connection.get "plans/#{params[:plan_id]}"
11
+ else
12
+ @connection.get "plans", params
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ module Espago
2
+ class ApiConnection
3
+ class GetSubscriptions
4
+ def initialize(connection)
5
+ @connection = connection
6
+ end
7
+
8
+ def request(params = {})
9
+ if params[:subscription_id]
10
+ @connection.get "subscriptions/#{params[:subscription_id]}"
11
+ else
12
+ @connection.get "subscriptions", params
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,13 @@
1
+ module Espago
2
+ class ApiConnection
3
+ class PostInvoiceItems
4
+ def initialize(connection)
5
+ @connection = connection
6
+ end
7
+
8
+ def request(params = {})
9
+ @connection.post "invoice_items", params
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ module Espago
2
+ class ApiConnection
3
+ class PostPlans
4
+ def initialize(connection)
5
+ @connection = connection
6
+ end
7
+
8
+ def request(params = {})
9
+ @connection.post "plans", params
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ module Espago
2
+ class ApiConnection
3
+ class PostSubscriptions
4
+ def initialize(connection)
5
+ @connection = connection
6
+ end
7
+
8
+ def request(params = {})
9
+ @connection.post "subscriptions", params
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ module Espago
2
+ class ApiConnection
3
+ class PutPlans
4
+ def initialize(connection)
5
+ @connection = connection
6
+ end
7
+
8
+ def request(params = {})
9
+ @connection.put "plans/#{params[:plan_id]}", params
10
+ end
11
+ end
12
+ end
13
+ end
@@ -21,7 +21,7 @@ module Espago
21
21
  def parse_response(request)
22
22
  Response.new(request)
23
23
  end
24
-
24
+
25
25
  private
26
26
  def enviroment
27
27
  production ? "https://secure.espago.com/api" : "https://sandbox.espago.com/api"
@@ -0,0 +1,11 @@
1
+ module Espago
2
+ class Error < StandardError
3
+ attr_reader :status
4
+ attr_reader :body
5
+
6
+ def initialize(response)
7
+ @status = response.status
8
+ @body = response.body
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,4 @@
1
+ module Espago
2
+ class ApiError < Error
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module Espago
2
+ class AuthenticationError < Error
3
+ end
4
+ end
@@ -0,0 +1,16 @@
1
+ module Espago
2
+ class InvalidRequestError < Error
3
+ def initialize(response)
4
+ @status = response.status
5
+ @body = parse(response.body)
6
+ end
7
+
8
+ private
9
+
10
+ def parse(body)
11
+ JSON.parse body
12
+ rescue
13
+ body
14
+ end
15
+ end
16
+ end
@@ -3,38 +3,16 @@ require "time"
3
3
 
4
4
  module Espago
5
5
  class Response
6
+ attr_reader :status
6
7
  attr_reader :body
7
-
8
+
8
9
  def initialize(response)
9
- @body = parse(response)
10
- end
11
-
12
- def response_id
13
- body["id"]
14
- end
15
-
16
- def description
17
- body["description"]
18
- end
19
-
20
- def amount
21
- body["amount"]
22
- end
23
-
24
- def currency
25
- body["currency"]
26
- end
27
-
28
- def state
29
- body["state"]
30
- end
31
-
32
- def client
33
- body["client"]
10
+ @body = parse(response.body)
11
+ @status = response.status
34
12
  end
35
13
 
36
- def created_at
37
- body["client"]
14
+ def method_missing(attribute_name)
15
+ body[attribute_name.to_s]
38
16
  end
39
17
 
40
18
  def card
@@ -42,14 +20,16 @@ module Espago
42
20
  end
43
21
 
44
22
  def created_at
45
- Time.parse body["created_at"]
23
+ Time.at(body["created_at"]) rescue nil
46
24
  end
47
-
25
+
48
26
  private
49
-
27
+
50
28
  def parse(body)
51
29
  JSON.parse body
30
+ rescue
31
+ body
52
32
  end
53
- end
33
+ end
54
34
  end
55
-
35
+
@@ -1,3 +1,3 @@
1
1
  module Espago
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -2,13 +2,22 @@ require "spec_helper"
2
2
  require "espago/api_connection"
3
3
  require "json"
4
4
 
5
- class StubbedResponse < Struct.new(:body); end
5
+ class StubbedResponse < Struct.new(:body, :status); end
6
6
 
7
7
  class Espago::ApiConnection::StubbedPath
8
8
  def initialize(connection); end
9
9
 
10
10
  def request(params = {})
11
- StubbedResponse.new("{\"data\":\"returned api data\"}")
11
+ StubbedResponse.new("{\"data\":\"returned api data\"}", 200)
12
+ end
13
+ end
14
+
15
+ class Espago::ApiConnection::UnauthorizedPath
16
+ def initialize(connection)
17
+ end
18
+
19
+ def request(params = {})
20
+ StubbedResponse.new(nil, 401)
12
21
  end
13
22
  end
14
23
 
@@ -16,8 +25,11 @@ describe Espago::ApiConnection do
16
25
  subject { Espago::ApiConnection.new("http://some.api.example.com") }
17
26
 
18
27
  context "#create" do
19
- it "should return response body in json format" do
20
- subject.create(:path, :stubbed).should eq(JSON.parse("{\"data\":\"returned api data\"}"))
28
+ it "returns response" do
29
+ subject.create(:path, :stubbed).should be_a_kind_of Espago::Response
30
+ end
31
+ it "raises auth error" do
32
+ expect { subject.create(:path, :unauthorized) }.to raise_error Espago::AuthenticationError
21
33
  end
22
34
  end
23
35
  end
@@ -1,5 +1,6 @@
1
1
  require 'spec_helper'
2
2
  require 'espago/client'
3
+ require "helpers/fake_response"
3
4
 
4
5
  class StubbedApiConnection
5
6
  def initialize(enviroment); end
@@ -12,7 +13,7 @@ end
12
13
  describe Espago::Client do
13
14
  subject { Espago::Client.new( app_id: 'App12345', app_password: 'secret', connection: stubbed_api_connection) }
14
15
  let(:stubbed_api_connection) { StubbedApiConnection }
15
- let(:response) { {id: 1, status: "2012"}.to_json }
16
+ let(:response) { FakeResponse.new(200, {id: 1, status: "2012"}.to_json) }
16
17
 
17
18
  it { subject.should respond_to :app_id }
18
19
  it { subject.should respond_to :app_password }
@@ -38,12 +39,12 @@ describe Espago::Client do
38
39
 
39
40
  context "#parse_response" do
40
41
  subject { Espago::Client.new }
41
-
42
+
42
43
  it "should delegate work to parser" do
43
44
  Espago::Response.should_receive(:new).with(response)
44
45
  subject.parse_response(response)
45
46
  end
46
-
47
+
47
48
  it "should parse response into object" do
48
49
  subject.parse_response(response).class.should eq(Espago::Response)
49
50
  end
@@ -0,0 +1,16 @@
1
+ require "spec_helper"
2
+ require "espago/error"
3
+ require "json"
4
+ require "helpers/fake_response"
5
+
6
+ describe Espago::Error do
7
+ subject { Espago::Error.new(response) }
8
+ response_body = 'body'
9
+
10
+ let(:response) {
11
+ FakeResponse.new(422, response_body)
12
+ }
13
+
14
+ its(:body) { should eq('body') }
15
+ its(:status) { should eq(422) }
16
+ end
@@ -1,17 +1,18 @@
1
1
  require 'spec_helper'
2
2
  require 'espago/response'
3
-
3
+ require 'helpers/fake_response'
4
+
4
5
  describe Espago::Response do
5
6
  subject { Espago::Response.new(response)}
6
7
  let(:response) {
7
- {
8
+ FakeResponse.new(200, {
8
9
  id: "pay_hViT20SOWaUL_w",
9
10
  description: "Zakupy z example.com",
10
11
  amount: "49.99",
11
12
  currency: "pln",
12
13
  state: "executed",
13
14
  client: "cli_wm7dGQltAqIfH8",
14
- created_at: "20130222161633",
15
+ created_at: 1372408274,
15
16
  card:{
16
17
  company: "VI",
17
18
  last4: "4242",
@@ -20,17 +21,18 @@ describe Espago::Response do
20
21
  first_name: "Piotr",
21
22
  last_name: "Nowak",
22
23
  authorized: true,
23
- created_at: "20130222153946"
24
+ created_at: 1372408274
24
25
  }
25
- }.to_json
26
+ }.to_json)
26
27
  }
27
-
28
- its(:response_id) { should eq("pay_hViT20SOWaUL_w") }
28
+
29
+ its(:id) { should eq("pay_hViT20SOWaUL_w") }
29
30
  its(:description) { should eq("Zakupy z example.com") }
30
31
  its(:amount) { should eq("49.99") }
31
32
  its(:currency) { should eq("pln") }
32
33
  its(:state) { should eq("executed") }
33
34
  its(:client) { should eq("cli_wm7dGQltAqIfH8") }
34
- its(:created_at) { should eq(Time.parse("20130222161633")) }
35
-
36
- end
35
+ its(:created_at) { should eq(Time.parse("2013-06-28 10:31:14 +0200")) }
36
+ its(:imaginated_attribute) { should be_nil }
37
+
38
+ end
@@ -0,0 +1,2 @@
1
+ class FakeResponse < Struct.new(:status, :body)
2
+ end
metadata CHANGED
@@ -1,148 +1,131 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: espago
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
5
- prerelease:
4
+ version: 0.0.7
6
5
  platform: ruby
7
6
  authors:
8
7
  - Piotrek
8
+ - Szymon Fiedler
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-28 00:00:00.000000000 Z
12
+ date: 2013-09-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
16
16
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
17
  requirements:
19
- - - ! '>='
18
+ - - '>='
20
19
  - !ruby/object:Gem::Version
21
20
  version: '0'
22
21
  type: :runtime
23
22
  prerelease: false
24
23
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
24
  requirements:
27
- - - ! '>='
25
+ - - '>='
28
26
  - !ruby/object:Gem::Version
29
27
  version: '0'
30
28
  - !ruby/object:Gem::Dependency
31
29
  name: facets
32
30
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
31
  requirements:
35
- - - ! '>='
32
+ - - '>='
36
33
  - !ruby/object:Gem::Version
37
34
  version: '0'
38
35
  type: :runtime
39
36
  prerelease: false
40
37
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
38
  requirements:
43
- - - ! '>='
39
+ - - '>='
44
40
  - !ruby/object:Gem::Version
45
41
  version: '0'
46
42
  - !ruby/object:Gem::Dependency
47
43
  name: rspec
48
44
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
45
  requirements:
51
- - - ! '>='
46
+ - - '>='
52
47
  - !ruby/object:Gem::Version
53
48
  version: '0'
54
49
  type: :development
55
50
  prerelease: false
56
51
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
52
  requirements:
59
- - - ! '>='
53
+ - - '>='
60
54
  - !ruby/object:Gem::Version
61
55
  version: '0'
62
56
  - !ruby/object:Gem::Dependency
63
57
  name: pry
64
58
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
59
  requirements:
67
- - - ! '>='
60
+ - - '>='
68
61
  - !ruby/object:Gem::Version
69
62
  version: '0'
70
63
  type: :development
71
64
  prerelease: false
72
65
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
66
  requirements:
75
- - - ! '>='
67
+ - - '>='
76
68
  - !ruby/object:Gem::Version
77
69
  version: '0'
78
70
  - !ruby/object:Gem::Dependency
79
71
  name: guard-rspec
80
72
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
73
  requirements:
83
- - - ! '>='
74
+ - - '>='
84
75
  - !ruby/object:Gem::Version
85
76
  version: '0'
86
77
  type: :development
87
78
  prerelease: false
88
79
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
80
  requirements:
91
- - - ! '>='
81
+ - - '>='
92
82
  - !ruby/object:Gem::Version
93
83
  version: '0'
94
84
  - !ruby/object:Gem::Dependency
95
85
  name: simplecov
96
86
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
87
  requirements:
99
- - - ! '>='
88
+ - - '>='
100
89
  - !ruby/object:Gem::Version
101
90
  version: '0'
102
91
  type: :development
103
92
  prerelease: false
104
93
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
94
  requirements:
107
- - - ! '>='
95
+ - - '>='
108
96
  - !ruby/object:Gem::Version
109
97
  version: '0'
110
98
  - !ruby/object:Gem::Dependency
111
99
  name: fuubar
112
100
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
101
  requirements:
115
- - - ! '>='
102
+ - - '>='
116
103
  - !ruby/object:Gem::Version
117
104
  version: '0'
118
105
  type: :development
119
106
  prerelease: false
120
107
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
108
  requirements:
123
- - - ! '>='
109
+ - - '>='
124
110
  - !ruby/object:Gem::Version
125
111
  version: '0'
126
112
  - !ruby/object:Gem::Dependency
127
113
  name: rake
128
114
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
115
  requirements:
131
- - - ! '>='
116
+ - - '>='
132
117
  - !ruby/object:Gem::Version
133
118
  version: '0'
134
119
  type: :development
135
120
  prerelease: false
136
121
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
122
  requirements:
139
- - - ! '>='
123
+ - - '>='
140
124
  - !ruby/object:Gem::Version
141
125
  version: '0'
142
126
  - !ruby/object:Gem::Dependency
143
127
  name: rb-fsevent
144
128
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
129
  requirements:
147
130
  - - ~>
148
131
  - !ruby/object:Gem::Version
@@ -150,14 +133,13 @@ dependencies:
150
133
  type: :development
151
134
  prerelease: false
152
135
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
136
  requirements:
155
137
  - - ~>
156
138
  - !ruby/object:Gem::Version
157
139
  version: 0.9.1
158
140
  description: Espago api wrapper
159
141
  email:
160
- - pkurek90@gmail.com
142
+ - developers@espago.com
161
143
  executables: []
162
144
  extensions: []
163
145
  extra_rdoc_files: []
@@ -175,58 +157,70 @@ files:
175
157
  - lib/espago/api_connection.rb
176
158
  - lib/espago/api_connection/delete_charges.rb
177
159
  - lib/espago/api_connection/delete_clients.rb
160
+ - lib/espago/api_connection/delete_invoice_items.rb
161
+ - lib/espago/api_connection/delete_plans.rb
162
+ - lib/espago/api_connection/delete_subscriptions.rb
178
163
  - lib/espago/api_connection/get_charges.rb
179
164
  - lib/espago/api_connection/get_clients.rb
165
+ - lib/espago/api_connection/get_invoice_items.rb
166
+ - lib/espago/api_connection/get_invoices.rb
167
+ - lib/espago/api_connection/get_plans.rb
168
+ - lib/espago/api_connection/get_subscriptions.rb
180
169
  - lib/espago/api_connection/get_tokens.rb
181
170
  - lib/espago/api_connection/post_charges.rb
182
171
  - lib/espago/api_connection/post_charges_refund.rb
183
172
  - lib/espago/api_connection/post_clients.rb
184
173
  - lib/espago/api_connection/post_clients_authorize.rb
185
174
  - lib/espago/api_connection/post_complete.rb
175
+ - lib/espago/api_connection/post_invoice_items.rb
176
+ - lib/espago/api_connection/post_plans.rb
177
+ - lib/espago/api_connection/post_subscriptions.rb
186
178
  - lib/espago/api_connection/post_tokens.rb
187
179
  - lib/espago/api_connection/put_clients.rb
180
+ - lib/espago/api_connection/put_plans.rb
188
181
  - lib/espago/client.rb
182
+ - lib/espago/error.rb
183
+ - lib/espago/error/api_error.rb
184
+ - lib/espago/error/authentication_error.rb
185
+ - lib/espago/error/invalid_request_error.rb
189
186
  - lib/espago/response.rb
190
187
  - lib/espago/router.rb
191
188
  - lib/espago/version.rb
192
189
  - spec/espago/api_connection_spec.rb
193
190
  - spec/espago/client_spec.rb
191
+ - spec/espago/error_spec.rb
194
192
  - spec/espago/response_spec.rb
195
193
  - spec/espago/router_spec.rb
194
+ - spec/helpers/fake_response.rb
196
195
  - spec/spec_helper.rb
197
196
  homepage: ''
198
197
  licenses: []
198
+ metadata: {}
199
199
  post_install_message:
200
200
  rdoc_options: []
201
201
  require_paths:
202
202
  - lib
203
203
  required_ruby_version: !ruby/object:Gem::Requirement
204
- none: false
205
204
  requirements:
206
- - - ! '>='
205
+ - - '>='
207
206
  - !ruby/object:Gem::Version
208
207
  version: '0'
209
- segments:
210
- - 0
211
- hash: 3240784563550690140
212
208
  required_rubygems_version: !ruby/object:Gem::Requirement
213
- none: false
214
209
  requirements:
215
- - - ! '>='
210
+ - - '>='
216
211
  - !ruby/object:Gem::Version
217
212
  version: '0'
218
- segments:
219
- - 0
220
- hash: 3240784563550690140
221
213
  requirements: []
222
214
  rubyforge_project:
223
- rubygems_version: 1.8.24
215
+ rubygems_version: 2.0.3
224
216
  signing_key:
225
- specification_version: 3
217
+ specification_version: 4
226
218
  summary: Espago api wrapper
227
219
  test_files:
228
220
  - spec/espago/api_connection_spec.rb
229
221
  - spec/espago/client_spec.rb
222
+ - spec/espago/error_spec.rb
230
223
  - spec/espago/response_spec.rb
231
224
  - spec/espago/router_spec.rb
225
+ - spec/helpers/fake_response.rb
232
226
  - spec/spec_helper.rb