Comparing changes
v0.2.5
→
v0.2.6
11 commits
6 files changed
Commits
Changed files (6)
bin/cibuild
@@ -18,6 +18,6 @@ export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
export CIBUILD=1
ruby -v
-gem install bundler --conservative
+gem install bundler:2.0.1 --conservative
bin/test
bin/lint
lib/net/hippie/client.rb
@@ -12,13 +12,8 @@ module Net
attr_accessor :mapper, :read_timeout, :open_timeout, :logger
- def initialize(
- certificate: nil,
- headers: DEFAULT_HEADERS,
- key: nil,
- passphrase: nil,
- verify_mode: Net::Hippie.verify_mode
- )
+ def initialize(certificate: nil, headers: DEFAULT_HEADERS,
+ key: nil, passphrase: nil, verify_mode: Net::Hippie.verify_mode)
@certificate = certificate
@default_headers = headers
@key = key
@@ -43,6 +38,12 @@ module Net
execute(uri, request, &block)
end
+ def patch(uri, headers: {}, body: {}, &block)
+ type = Net::HTTP::Patch
+ request = request_for(type, uri, headers: headers, body: body)
+ execute(uri, request, &block)
+ end
+
def post(uri, headers: {}, body: {}, &block)
type = Net::HTTP::Post
request = request_for(type, uri, headers: headers, body: body)
lib/net/hippie/version.rb
@@ -2,6 +2,6 @@
module Net
module Hippie
- VERSION = '0.2.5'
+ VERSION = '0.2.6'
end
end
.rubocop.yml
@@ -5,4 +5,10 @@ AllCops:
- 'test/**/*'
- 'tmp/**/*'
- 'vendor/**/*'
- TargetRubyVersion: 2.5
+ TargetRubyVersion: 2.6
+
+Layout/AlignParameters:
+ EnforcedStyle: with_fixed_indentation
+
+Naming/RescuedExceptionsVariableName:
+ PreferredName: error
.travis.yml
@@ -1,9 +1,8 @@
sudo: false
language: ruby
rvm:
- - 2.3.8
- 2.4.5
- - 2.5.3
- - 2.6.0
+ - 2.5.5
+ - 2.6.3
script:
- bin/cibuild
CHANGELOG.md
@@ -1,4 +1,4 @@
-Version 0.2.5
+Version 0.2.6
# Changelog
All notable changes to this project will be documented in this file.
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+## [0.2.6] - 2019-04-30
+### Added
+- add support for PATCH verb.
+
## [0.2.5] - 2019-02-06
### Changed
- 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
- with\_retry.https://www.mokhan.ca/%F0%9F%92%8E/2018/11/10/net-hippie-0-2-0.html
- authorization header helpers
-[Unreleased]: https://github.com/mokhan/net-hippie/compare/v0.2.5...HEAD
+[Unreleased]: https://github.com/mokhan/net-hippie/compare/v0.2.6...HEAD
+[0.2.6]: https://github.com/mokhan/net-hippie/compare/v0.2.5...v0.2.6
[0.2.5]: https://github.com/mokhan/net-hippie/compare/v0.2.4...v0.2.5
[0.2.4]: https://github.com/mokhan/net-hippie/compare/v0.2.3...v0.2.4
[0.2.3]: https://github.com/mokhan/net-hippie/compare/v0.2.2...v0.2.3