net-hippie 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +7 -1
- data/.travis.yml +2 -3
- data/CHANGELOG.md +7 -2
- data/bin/cibuild +1 -1
- data/lib/net/hippie/client.rb +8 -7
- data/lib/net/hippie/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d1f9e15a11440c2c2468f74058b5149f192e4ad06ae6294611fb5338e647773
|
4
|
+
data.tar.gz: a4d57905ab58bff0f00749087204dfd310e68a3b5089c29a0848e496a1c21bd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f097e0155295f4b1a8db79f355660a00f85567e01fea8b12b31ea054da73122428f79b1be4f43e7b112814251ffc1be897c143cc205f98c92bb5a8cec422922
|
7
|
+
data.tar.gz: b93b6026fc81629f532f64b52e4fbb694a553e275affb4514e336e087fee71a429325012e4bcba258a8d73f16063011a6dfcc9453b3e47dda9ab35ea96895eeb
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Version 0.2.
|
1
|
+
Version 0.2.6
|
2
2
|
# Changelog
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
+
## [0.2.6] - 2019-04-30
|
11
|
+
### Added
|
12
|
+
- add support for PATCH verb.
|
13
|
+
|
10
14
|
## [0.2.5] - 2019-02-06
|
11
15
|
### Changed
|
12
16
|
- revert change introduced in 0.2.4. See [5.12][https://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html]
|
@@ -28,7 +32,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
28
32
|
- with\_retry.https://www.mokhan.ca/%F0%9F%92%8E/2018/11/10/net-hippie-0-2-0.html
|
29
33
|
- authorization header helpers
|
30
34
|
|
31
|
-
[Unreleased]: https://github.com/mokhan/net-hippie/compare/v0.2.
|
35
|
+
[Unreleased]: https://github.com/mokhan/net-hippie/compare/v0.2.6...HEAD
|
36
|
+
[0.2.6]: https://github.com/mokhan/net-hippie/compare/v0.2.5...v0.2.6
|
32
37
|
[0.2.5]: https://github.com/mokhan/net-hippie/compare/v0.2.4...v0.2.5
|
33
38
|
[0.2.4]: https://github.com/mokhan/net-hippie/compare/v0.2.3...v0.2.4
|
34
39
|
[0.2.3]: https://github.com/mokhan/net-hippie/compare/v0.2.2...v0.2.3
|
data/bin/cibuild
CHANGED
data/lib/net/hippie/client.rb
CHANGED
@@ -12,13 +12,8 @@ module Net
|
|
12
12
|
|
13
13
|
attr_accessor :mapper, :read_timeout, :open_timeout, :logger
|
14
14
|
|
15
|
-
def initialize(
|
16
|
-
|
17
|
-
headers: DEFAULT_HEADERS,
|
18
|
-
key: nil,
|
19
|
-
passphrase: nil,
|
20
|
-
verify_mode: Net::Hippie.verify_mode
|
21
|
-
)
|
15
|
+
def initialize(certificate: nil, headers: DEFAULT_HEADERS,
|
16
|
+
key: nil, passphrase: nil, verify_mode: Net::Hippie.verify_mode)
|
22
17
|
@certificate = certificate
|
23
18
|
@default_headers = headers
|
24
19
|
@key = key
|
@@ -43,6 +38,12 @@ module Net
|
|
43
38
|
execute(uri, request, &block)
|
44
39
|
end
|
45
40
|
|
41
|
+
def patch(uri, headers: {}, body: {}, &block)
|
42
|
+
type = Net::HTTP::Patch
|
43
|
+
request = request_for(type, uri, headers: headers, body: body)
|
44
|
+
execute(uri, request, &block)
|
45
|
+
end
|
46
|
+
|
46
47
|
def post(uri, headers: {}, body: {}, &block)
|
47
48
|
type = Net::HTTP::Post
|
48
49
|
request = request_for(type, uri, headers: headers, body: body)
|
data/lib/net/hippie/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: net-hippie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
129
|
- !ruby/object:Gem::Version
|
130
130
|
version: '0'
|
131
131
|
requirements: []
|
132
|
-
rubygems_version: 3.0.
|
132
|
+
rubygems_version: 3.0.3
|
133
133
|
signing_key:
|
134
134
|
specification_version: 4
|
135
135
|
summary: net/http for hippies. ☮️
|