api_recipes 0.5.0 → 0.6.0

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
2
  SHA256:
3
- metadata.gz: b41bc13cab8b381a030b1ddb3c7d5303e6f3fa2fea6b2e81731666d14dfbe1c6
4
- data.tar.gz: 547f5c2aee809434f49b6f421ae8da7e99094f66b8e33fbd412f26ead62f661b
3
+ metadata.gz: 265fba1c89068507ade75fab2ea20832df8ba56f80fe01dab130bba8568316e9
4
+ data.tar.gz: e274bda1782776e2eeed051bd55941db566829c96e8534b8c70d162fc85ba0fa
5
5
  SHA512:
6
- metadata.gz: 203165b29b7f6d2b12f3be7f400c5fd1dc17c8e0df5146007e5fc9238d1a9db34e38b9e9f30c63658e5b7bf207a1bc7ba8303b27d924cd26075ec27e81f115d2
7
- data.tar.gz: 36e58f2699754319ec9fefb70658e2bdd1932dcab40e199045e04a40b7445019b431178715ebbc5534d26e67497adcd5b979656b2d645de5da074c24e59dddc0
6
+ metadata.gz: 48937113000d9b7b5749fd2d6adba76dbbc62ff9cf7fd4323da8205b8c9bcfc95efbdffefca9e6b32d483f89b221d7f2c74ab57d33817c3c8a98b9cfd9e17fad
7
+ data.tar.gz: c1c636d39733bb3d99f3644879164467e87d09db8f2ef013b93110159bcde21ec0d8c65c03a5cc2dbc528ef5cf59b3d9f05d7cb9a128ff69b4945255a738b014
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
- ## Version 0.5.0 Better Exceptions
1
+ ## Version 0.6.0 - Default to HTTPS
2
+
3
+ **POSSIBLE BREAKING CHANGES**
4
+
5
+ Requests now default to HTTPS. If you still want to use (unsecure) HTTP you have to specify it in your configs through the dedicated `protocol` option e.g.
6
+
7
+ ```yaml
8
+ github:
9
+ protocol: http
10
+ host: api.github.com
11
+ ```
12
+
13
+ ## Version 0.5.0 - Better Exceptions
2
14
 
3
15
  Exceptions now include attributes that can be accessed during the `rescue` phase in order to execute specific actions
@@ -1,5 +1,5 @@
1
1
  github:
2
- protocol: https # Optional, defaults to: 'http'
2
+ protocol: https # Optional, defaults to: 'https'
3
3
  host: api.github.com # Optional, defaults to: 'localhost'
4
4
  port: 443 # Optional, defaults to: 80 for http and 443 for https
5
5
  base_path: # Optional, defaults to: ''
@@ -4,7 +4,7 @@ module ApiRecipes
4
4
  FAIL_OPTIONS = [:return, :raise, :return_false]
5
5
 
6
6
  DEFAULT = {
7
- protocol: 'http',
7
+ protocol: 'https',
8
8
  host: 'localhost',
9
9
  port: nil,
10
10
  base_path: '',
@@ -1,3 +1,3 @@
1
1
  module ApiRecipes
2
- VERSION = '0.5.0'
2
+ VERSION = '0.6.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Verlato
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-14 00:00:00.000000000 Z
11
+ date: 2018-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj