bootic_client 0.0.22 → 0.0.23
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 +5 -5
- data/CHANGELOG.md +4 -11
- data/lib/bootic_client/client.rb +2 -2
- data/lib/bootic_client/response_handlers.rb +2 -1
- data/lib/bootic_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 98a14f476c54dfe735ec39a74e9cc18e99e43bec
|
|
4
|
+
data.tar.gz: 80339cfa940e046dac0c6120be2038660c5cf9b8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e1473d2577f407922fe2da780b207b9622383b47c0affe0b7aceae38033aa05bd34edbcfb9c2d089fb5a84d6fa476457928f658654d4db59bcd9e669e6d4a303
|
|
7
|
+
data.tar.gz: e7ab8af34d8acf10a1e81fc26605d99dbf9ae47470b8d786e4bc1f6a4f385c3435639dcd5bd954868b2b1f69adfc4769dfbb50ad6f627a3e82d9430c9eb52358
|
data/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## [
|
|
4
|
-
|
|
5
|
-
[Full Changelog](https://github.com/bootic/bootic_client.rb/compare/v0.0.21...HEAD)
|
|
3
|
+
## [v0.0.22](https://github.com/bootic/bootic_client.rb/tree/v0.0.22) (2019-05-04)
|
|
4
|
+
[Full Changelog](https://github.com/bootic/bootic_client.rb/compare/v0.0.21...v0.0.22)
|
|
6
5
|
|
|
7
6
|
**Merged pull requests:**
|
|
8
7
|
|
|
@@ -13,10 +12,6 @@
|
|
|
13
12
|
## [v0.0.21](https://github.com/bootic/bootic_client.rb/tree/v0.0.21) (2018-08-30)
|
|
14
13
|
[Full Changelog](https://github.com/bootic/bootic_client.rb/compare/v0.0.20...v0.0.21)
|
|
15
14
|
|
|
16
|
-
**Merged pull requests:**
|
|
17
|
-
|
|
18
|
-
- Add :user\_agent option [\#13](https://github.com/bootic/bootic_client.rb/pull/13) ([ismasan](https://github.com/ismasan))
|
|
19
|
-
|
|
20
15
|
## [v0.0.20](https://github.com/bootic/bootic_client.rb/tree/v0.0.20) (2018-07-05)
|
|
21
16
|
[Full Changelog](https://github.com/bootic/bootic_client.rb/compare/v0.0.19...v0.0.20)
|
|
22
17
|
|
|
@@ -58,6 +53,7 @@
|
|
|
58
53
|
|
|
59
54
|
**Merged pull requests:**
|
|
60
55
|
|
|
56
|
+
- Add :user\_agent option [\#13](https://github.com/bootic/bootic_client.rb/pull/13) ([ismasan](https://github.com/ismasan))
|
|
61
57
|
- Base64-encode any attribute that responds to \#read [\#7](https://github.com/bootic/bootic_client.rb/pull/7) ([ismasan](https://github.com/ismasan))
|
|
62
58
|
|
|
63
59
|
## [v0.0.14](https://github.com/bootic/bootic_client.rb/tree/v0.0.14) (2016-04-26)
|
|
@@ -77,10 +73,6 @@
|
|
|
77
73
|
## [v0.0.12](https://github.com/bootic/bootic_client.rb/tree/v0.0.12) (2016-01-11)
|
|
78
74
|
[Full Changelog](https://github.com/bootic/bootic_client.rb/compare/v0.0.11...v0.0.12)
|
|
79
75
|
|
|
80
|
-
**Merged pull requests:**
|
|
81
|
-
|
|
82
|
-
- Faraday http cache 1.2.2, Vary header support. [\#4](https://github.com/bootic/bootic_client.rb/pull/4) ([ismasan](https://github.com/ismasan))
|
|
83
|
-
|
|
84
76
|
## [v0.0.11](https://github.com/bootic/bootic_client.rb/tree/v0.0.11) (2015-10-28)
|
|
85
77
|
[Full Changelog](https://github.com/bootic/bootic_client.rb/compare/v0.0.10...v0.0.11)
|
|
86
78
|
|
|
@@ -99,6 +91,7 @@
|
|
|
99
91
|
|
|
100
92
|
**Merged pull requests:**
|
|
101
93
|
|
|
94
|
+
- Faraday http cache 1.2.2, Vary header support. [\#4](https://github.com/bootic/bootic_client.rb/pull/4) ([ismasan](https://github.com/ismasan))
|
|
102
95
|
- Basic auth strategy [\#2](https://github.com/bootic/bootic_client.rb/pull/2) ([ismasan](https://github.com/ismasan))
|
|
103
96
|
|
|
104
97
|
## [v0.0.7](https://github.com/bootic/bootic_client.rb/tree/v0.0.7) (2015-03-07)
|
data/lib/bootic_client/client.rb
CHANGED
|
@@ -64,10 +64,10 @@ module BooticClient
|
|
|
64
64
|
|
|
65
65
|
def conn(&block)
|
|
66
66
|
@conn ||= Faraday.new do |f|
|
|
67
|
-
cache_options = {shared_cache: false, store: options[:cache_store]}
|
|
67
|
+
cache_options = {serializer: Marshal, shared_cache: false, store: options[:cache_store]}
|
|
68
68
|
cache_options[:logger] = options[:logger] if options[:logging]
|
|
69
69
|
|
|
70
|
-
f.use :http_cache, cache_options
|
|
70
|
+
# f.use :http_cache, cache_options
|
|
71
71
|
f.response :logger, options[:logger] if options[:logging]
|
|
72
72
|
yield f if block_given?
|
|
73
73
|
f.adapter *Array(options[:faraday_adapter])
|
|
@@ -42,7 +42,8 @@ module BooticClient
|
|
|
42
42
|
|
|
43
43
|
Hal = Proc.new do |resp, client|
|
|
44
44
|
if resp.headers[CONTENT_TYPE] =~ JSON_MIME_EXP
|
|
45
|
-
|
|
45
|
+
body = resp.body
|
|
46
|
+
data = body.strip.empty? ? {} : ::JSON.parse(body)
|
|
46
47
|
Entity.new(data, client)
|
|
47
48
|
end
|
|
48
49
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bootic_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.23
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ismael Celis
|
|
@@ -232,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
232
232
|
version: '0'
|
|
233
233
|
requirements: []
|
|
234
234
|
rubyforge_project:
|
|
235
|
-
rubygems_version: 2.
|
|
235
|
+
rubygems_version: 2.6.13
|
|
236
236
|
signing_key:
|
|
237
237
|
specification_version: 4
|
|
238
238
|
summary: Official Ruby client for the Bootic API
|