easybill 0.2.19 → 0.2.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/easybill.gemspec +2 -0
- data/lib/easybill/client.rb +2 -2
- data/lib/easybill/version.rb +1 -1
- data/spec/spec_helper.rb +5 -0
- metadata +30 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 341539d5c1dea32f277d36ddf5174abc6d061c03
|
4
|
+
data.tar.gz: ec3bbe27d4f6dd368d0636cc0bfeb0b46a039cc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d3b086f73d64012919bec3adaeff7696a43c76d1224411c64a85ff1bdaa4254f1953ffc231928cf012e7d5bb330b9eeb9f34b5aa6fbf62d4968d7d9224f7851
|
7
|
+
data.tar.gz: 5a100746f1ea807824b346552a3c9a3a5208d89ccd3bcc45c5fbcd7c6f92a3bd4c428ad6a032fe668c333396666cbe1b42eb3d515e8867934ab0b1ba9602548a
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.2.0
|
data/easybill.gemspec
CHANGED
@@ -23,7 +23,9 @@ Gem::Specification.new do |gem|
|
|
23
23
|
gem.add_runtime_dependency 'retryable'
|
24
24
|
|
25
25
|
gem.add_development_dependency 'pry'
|
26
|
+
gem.add_development_dependency 'rake'
|
26
27
|
gem.add_development_dependency 'rspec', '>= 3.0.0'
|
27
28
|
gem.add_development_dependency 'vcr'
|
28
29
|
gem.add_development_dependency 'webmock'
|
30
|
+
gem.add_development_dependency 'codeclimate-test-reporter'
|
29
31
|
end
|
data/lib/easybill/client.rb
CHANGED
@@ -71,8 +71,8 @@ module Easybill
|
|
71
71
|
begin
|
72
72
|
if response.body.is_a?(Hash) && response.body.key?(:fault)
|
73
73
|
# Work around issue on Easybill's side.
|
74
|
-
|
75
|
-
|
74
|
+
faultstring = response.body[:fault][:faultstring].to_s
|
75
|
+
if faultstring.start_with?('Call to undefined method StandardDocumentStorno::')
|
76
76
|
return OpenStruct.new(body: {
|
77
77
|
get_document_payments_response: { payed: false, to_pay: '0' }
|
78
78
|
})
|
data/lib/easybill/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
require 'codeclimate-test-reporter'
|
2
|
+
CodeClimate::TestReporter.start
|
3
|
+
|
1
4
|
require 'easybill'
|
2
5
|
require 'webmock'
|
3
6
|
require 'vcr'
|
@@ -52,4 +55,6 @@ VCR.configure do |c|
|
|
52
55
|
c.hook_into :webmock
|
53
56
|
c.filter_sensitive_data('easybill-api-key') { Easybill.configuration.api_key }
|
54
57
|
c.default_cassette_options = { match_requests_on: [:method, :uri, :body] }
|
58
|
+
|
59
|
+
c.ignore_hosts 'codeclimate.com'
|
55
60
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easybill
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ad2games GmbH
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sekken
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: rspec
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,6 +136,20 @@ dependencies:
|
|
122
136
|
- - ">="
|
123
137
|
- !ruby/object:Gem::Version
|
124
138
|
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: codeclimate-test-reporter
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
125
153
|
description: Create invoices with Easybill
|
126
154
|
email:
|
127
155
|
- developers@ad2games.com
|