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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a223f6b7bf61906d27f605a848babbd2563151b0a4c4e44056a024420e20aeb9
4
- data.tar.gz: 58a69b4311c6e67462aab3a400edd4ebbd52be5f4dc19b5cd93b949ff93e04c1
3
+ metadata.gz: 5d1f9e15a11440c2c2468f74058b5149f192e4ad06ae6294611fb5338e647773
4
+ data.tar.gz: a4d57905ab58bff0f00749087204dfd310e68a3b5089c29a0848e496a1c21bd8
5
5
  SHA512:
6
- metadata.gz: 1f9285dea932b4f5923d9f0217c9880e65a9f3f6a9ee1cff3667c0507f934895158bd0aa23c0e518d38d93a219a4f3c9a10510d7e3a72a7949d7b7129abce849
7
- data.tar.gz: ff8f43301b974bc850de8eaef3fde222dd4a2874673f3fec241852e3dbc6a9bedc12cfd1f9746798e9454a43630eb95e8cb8a59bd5ab998aaac016fd46c6b7ab
6
+ metadata.gz: 6f097e0155295f4b1a8db79f355660a00f85567e01fea8b12b31ea054da73122428f79b1be4f43e7b112814251ffc1be897c143cc205f98c92bb5a8cec422922
7
+ data.tar.gz: b93b6026fc81629f532f64b52e4fbb694a553e275affb4514e336e087fee71a429325012e4bcba258a8d73f16063011a6dfcc9453b3e47dda9ab35ea96895eeb
@@ -5,4 +5,10 @@ AllCops:
5
5
  - 'test/**/*'
6
6
  - 'tmp/**/*'
7
7
  - 'vendor/**/*'
8
- TargetRubyVersion: 2.5
8
+ TargetRubyVersion: 2.6
9
+
10
+ Layout/AlignParameters:
11
+ EnforcedStyle: with_fixed_indentation
12
+
13
+ Naming/RescuedExceptionsVariableName:
14
+ PreferredName: error
@@ -1,9 +1,8 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.3.8
5
4
  - 2.4.5
6
- - 2.5.3
7
- - 2.6.0
5
+ - 2.5.5
6
+ - 2.6.3
8
7
  script:
9
8
  - bin/cibuild
@@ -1,4 +1,4 @@
1
- Version 0.2.5
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.5...HEAD
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
@@ -18,6 +18,6 @@ export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
18
18
  export CIBUILD=1
19
19
 
20
20
  ruby -v
21
- gem install bundler --conservative
21
+ gem install bundler:2.0.1 --conservative
22
22
  bin/test
23
23
  bin/lint
@@ -12,13 +12,8 @@ module Net
12
12
 
13
13
  attr_accessor :mapper, :read_timeout, :open_timeout, :logger
14
14
 
15
- def initialize(
16
- certificate: nil,
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)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Net
4
4
  module Hippie
5
- VERSION = '0.2.5'
5
+ VERSION = '0.2.6'
6
6
  end
7
7
  end
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.5
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-02-06 00:00:00.000000000 Z
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.2
132
+ rubygems_version: 3.0.3
133
133
  signing_key:
134
134
  specification_version: 4
135
135
  summary: net/http for hippies. ☮️