easybill-api 0.7.3 → 0.7.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d313b1b589635a884cdd4485bdd9288d704357a0
4
- data.tar.gz: 49089e0728f600694e9714d0671d248dbea65a8c
2
+ SHA256:
3
+ metadata.gz: 7371a0758e848bd1b0ff4120c4bca1b1ada0ed97c9af92cb5655a3f78d30a6a1
4
+ data.tar.gz: 7f8e32345dc1a91fab78e9dcfc45d5fddbe19a5c6e818fbec09f183671440fff
5
5
  SHA512:
6
- metadata.gz: 23e9366bf430a4d7a7b43c08474f841d74a794a677b188511914c7d1b675c4331eec253c93ac63428c5b3a8804deaa850850136d4671cc5479d0f50c119cbbd9
7
- data.tar.gz: 64476f6b154bbf25735fa5a11e7237c24d26cb8d11aa866c14d724bd679183d139e483afa41544f017be6f5c21e7c7a1d9e49d853a8ef31499a47dad03955233
6
+ metadata.gz: 1bc03424d5ee9735b16f61115dfffdfebfd703099384943c6fbf845639964eb5573a4c23fb68cac15361ae39bd217c8866d5a530571e8fcf772e6caa0102727f
7
+ data.tar.gz: '09f2b7f8b936a52ae9da56ab4943aba5a0ab3d0e9f0b4a6e9cc0c7cd0693073b5cbe4a9178c77a0b209265a35307ed292b1f37d302c4f9f7ddfc8108dce3aa15'
@@ -0,0 +1,26 @@
1
+ version: 2
2
+ jobs:
3
+ build:
4
+ docker:
5
+ - image: circleci/ruby:2.5.1
6
+ steps:
7
+ - checkout
8
+ - run:
9
+ name: Which bundler?
10
+ command: bundle -v
11
+ - restore_cache:
12
+ keys:
13
+ - cache-{{ checksum "Gemfile.lock" }}
14
+ - cache-
15
+ - run:
16
+ name: Bundle Install
17
+ command: bundle check || bundle install
18
+ - save_cache:
19
+ key: cache-{{ checksum "Gemfile.lock" }}
20
+ paths:
21
+ - vendor/bundle
22
+ - run:
23
+ name: Run cop and rspec
24
+ command: |
25
+ bundle exec rake
26
+
@@ -1,21 +1,24 @@
1
- The MIT License (MIT)
1
+ This is free and unencumbered software released into the public domain.
2
2
 
3
- Copyright (c) 2016 Patrick Schnetger
3
+ Anyone is free to copy, modify, publish, use, compile, sell, or
4
+ distribute this software, either in source code form or as a compiled
5
+ binary, for any purpose, commercial or non-commercial, and by any
6
+ means.
4
7
 
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
8
+ In jurisdictions that recognize copyright laws, the author or authors
9
+ of this software dedicate any and all copyright interest in the
10
+ software to the public domain. We make this dedication for the benefit
11
+ of the public at large and to the detriment of our heirs and
12
+ successors. We intend this dedication to be an overt act of
13
+ relinquishment in perpetuity of all present and future rights to this
14
+ software under copyright law.
11
15
 
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
14
23
 
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
24
+ For more information, please refer to <http://unlicense.org/>
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![CircleCI](https://circleci.com/gh/schnika/easybill.svg?style=svg)](https://circleci.com/gh/schnika/easybill)
2
+
1
3
  # Easybill::Api
2
4
 
3
5
  This is the ruby wrapper for the easybill REST Api.
@@ -83,7 +85,6 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
83
85
 
84
86
  Bug reports and pull requests are welcome on GitHub at https://github.com/schnika/easybill-api. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
85
87
 
86
-
87
88
  ## License
88
89
 
89
90
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
7
7
  spec.name = "easybill-api"
8
8
  spec.version = Easybill::Api::VERSION
9
9
  spec.authors = ["Patrick Schnetger"]
10
- spec.email = ["patrick.schnetger@gmail.com"]
10
+ spec.email = ["mail@patrick-schnetger.com"]
11
11
 
12
12
  spec.summary = %q{Wrapper for the easybill REST api}
13
13
  spec.homepage = "https://www.github.com/schnika/easybill"
@@ -26,10 +26,9 @@ Gem::Specification.new do |spec|
26
26
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
27
  spec.require_paths = ["lib"]
28
28
 
29
- spec.add_development_dependency "bundler", "~> 1.11"
30
- spec.add_development_dependency "rake", "~> 10.0"
31
- spec.add_development_dependency "rspec", "~> 3.0"
32
- spec.add_development_dependency "webmock", "~> 1.24"
29
+ spec.add_development_dependency "rake", "~> 12.3.2"
30
+ spec.add_development_dependency "rspec", "~> 3.8"
31
+ spec.add_development_dependency "webmock", "~> 3.5"
33
32
 
34
- spec.add_runtime_dependency "httparty", "~> 0.13", '>= 0.13.7'
33
+ spec.add_runtime_dependency "httparty", "~> 0.16.3"
35
34
  end
@@ -91,12 +91,13 @@ module Easybill
91
91
 
92
92
  protected
93
93
 
94
- def custom(method:, path:, query: {}, data: {}, headers: {})
94
+ def custom(method:, path:, query: {}, data: {}, headers: {}, format: :json)
95
95
  request_options = {}
96
96
 
97
97
  request_options[:body] = data.to_json unless data.empty?
98
98
  request_options[:query] = query unless query.empty?
99
99
  request_options[:headers] = headers unless headers.empty?
100
+ request_options[:format] = format
100
101
 
101
102
  handle(public_send method, path, request_options)
102
103
  end
@@ -15,7 +15,15 @@ module Easybill
15
15
  end
16
16
 
17
17
  def pdf(id)
18
- custom method: :get, path: "#{resource_path}/#{id}/pdf", headers: {"Content-Type" => "application/pdf"}
18
+ custom(
19
+ method: :get,
20
+ path: "#{resource_path}/#{id}/pdf",
21
+ headers: {
22
+ "Content-Type" => "application/pdf",
23
+ "Accept" => "application/pdf"
24
+ },
25
+ format: :pdf
26
+ )
19
27
  end
20
28
  end
21
29
  end
@@ -1,5 +1,5 @@
1
1
  module Easybill
2
2
  module Api
3
- VERSION = "0.7.3"
3
+ VERSION = "0.7.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,98 +1,79 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easybill-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Schnetger
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-21 00:00:00.000000000 Z
11
+ date: 2019-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.11'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '1.11'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rake
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
17
  - - "~>"
32
18
  - !ruby/object:Gem::Version
33
- version: '10.0'
19
+ version: 12.3.2
34
20
  type: :development
35
21
  prerelease: false
36
22
  version_requirements: !ruby/object:Gem::Requirement
37
23
  requirements:
38
24
  - - "~>"
39
25
  - !ruby/object:Gem::Version
40
- version: '10.0'
26
+ version: 12.3.2
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: rspec
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
31
  - - "~>"
46
32
  - !ruby/object:Gem::Version
47
- version: '3.0'
33
+ version: '3.8'
48
34
  type: :development
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
38
  - - "~>"
53
39
  - !ruby/object:Gem::Version
54
- version: '3.0'
40
+ version: '3.8'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: webmock
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
45
  - - "~>"
60
46
  - !ruby/object:Gem::Version
61
- version: '1.24'
47
+ version: '3.5'
62
48
  type: :development
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
52
  - - "~>"
67
53
  - !ruby/object:Gem::Version
68
- version: '1.24'
54
+ version: '3.5'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: httparty
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
59
  - - "~>"
74
60
  - !ruby/object:Gem::Version
75
- version: '0.13'
76
- - - ">="
77
- - !ruby/object:Gem::Version
78
- version: 0.13.7
61
+ version: 0.16.3
79
62
  type: :runtime
80
63
  prerelease: false
81
64
  version_requirements: !ruby/object:Gem::Requirement
82
65
  requirements:
83
66
  - - "~>"
84
67
  - !ruby/object:Gem::Version
85
- version: '0.13'
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- version: 0.13.7
68
+ version: 0.16.3
89
69
  description:
90
70
  email:
91
- - patrick.schnetger@gmail.com
71
+ - mail@patrick-schnetger.com
92
72
  executables: []
93
73
  extensions: []
94
74
  extra_rdoc_files: []
95
75
  files:
76
+ - ".circleci/config.yml"
96
77
  - ".gitignore"
97
78
  - ".rspec"
98
79
  - ".travis.yml"
@@ -143,10 +124,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
124
  - !ruby/object:Gem::Version
144
125
  version: '0'
145
126
  requirements: []
146
- rubyforge_project:
147
- rubygems_version: 2.5.1
127
+ rubygems_version: 3.0.2
148
128
  signing_key:
149
129
  specification_version: 4
150
130
  summary: Wrapper for the easybill REST api
151
131
  test_files: []
152
- has_rdoc: