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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca7d4b4cb8b866977579915e0e72d68cb4fe9460
4
- data.tar.gz: f0bccb9e31b045141941c2ab0e5dc97dc772d005
3
+ metadata.gz: 341539d5c1dea32f277d36ddf5174abc6d061c03
4
+ data.tar.gz: ec3bbe27d4f6dd368d0636cc0bfeb0b46a039cc2
5
5
  SHA512:
6
- metadata.gz: 9c5fa00d1dfd51119fed3f99f5606e3e2cf039b105cd9050c70281bca67d9094d6c25abe41242e75881463faaae4de469d31dd360450af77fb751940fe379a8f
7
- data.tar.gz: fa3268bbfb3f3338b539479be787b8555c64e60ccb64e663a59f56db117898f4cb91b44274a494c08030ffc31dec4b92d7527ca2eb26ecc66e3490e4c9994d0c
6
+ metadata.gz: 1d3b086f73d64012919bec3adaeff7696a43c76d1224411c64a85ff1bdaa4254f1953ffc231928cf012e7d5bb330b9eeb9f34b5aa6fbf62d4968d7d9224f7851
7
+ data.tar.gz: 5a100746f1ea807824b346552a3c9a3a5208d89ccd3bcc45c5fbcd7c6f92a3bd4c428ad6a032fe668c333396666cbe1b42eb3d515e8867934ab0b1ba9602548a
@@ -1 +1 @@
1
- 2.1.4
1
+ 2.2.0
@@ -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
@@ -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
- if response.body[:fault][:faultstring] ==
75
- 'Call to undefined method StandardDocumentStorno::isPayed()'
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
  })
@@ -1,3 +1,3 @@
1
1
  module Easybill
2
- VERSION = '0.2.19'
2
+ VERSION = '0.2.20'
3
3
  end
@@ -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.19
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-01-19 00:00:00.000000000 Z
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