httpdisk 0.5.0 → 0.5.1

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: fece53d7b5f7694a0f533797d119495ad2e8bc79667560f458aa23c0fb6eebf5
4
- data.tar.gz: 2cb035d54e62cb9195959797fbfb712aabab9fc78db2ddfaf59e714c1da66ba5
3
+ metadata.gz: 994e5e02b7c4cdbfbfcef40099558c8fa86a97538da74065a76321c8ee25e129
4
+ data.tar.gz: 97ae05c7a08e2c9b3bdccc01a9679d63ab35ce4fabc6307087fbfa7946fbecef
5
5
  SHA512:
6
- metadata.gz: '09ace3872dfbe2764e42eff568576f44ee5581c750dfbb5a907bd26a6581e047d1529c8928e2f430d804e3d2669eac6c8ca3307c47e34bab8674e810550a4aa8'
7
- data.tar.gz: 70ea93666f7dff7283fc1b6ef3860e52a2309828874a157e7fdd29cc48cef67f814907e2be18c87c9404c33b65b0fed2f9156b31cf747d3bb9398c60e8f11335
6
+ metadata.gz: '09d938bd3b32d743aab858883c94a760a27c40762a98d792b4135df29625995582aac5571aca0b510d0e85adc8b99436f2ede87196581544ae5759de35df9cfb'
7
+ data.tar.gz: 18c4f281814896c8d8a9e8d513416538770263b4b17dea5fbc5a5e5612af9f3b0f39d86b5e54919df6466a2e18e73f52e125ad9d167b1912c4f3acc2cb8b8a27
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- httpdisk (0.5.0)
4
+ httpdisk (0.5.1)
5
5
  content-type (~> 0.0)
6
6
  faraday (~> 1.4)
7
7
  faraday-cookie_jar (~> 0.0)
@@ -21,12 +21,14 @@ GEM
21
21
  rexml
22
22
  domain_name (0.5.20190701)
23
23
  unf (>= 0.0.5, < 1.0.0)
24
- faraday (1.4.3)
24
+ faraday (1.5.0)
25
25
  faraday-em_http (~> 1.0)
26
26
  faraday-em_synchrony (~> 1.0)
27
27
  faraday-excon (~> 1.1)
28
+ faraday-httpclient (~> 1.0.1)
28
29
  faraday-net_http (~> 1.0)
29
30
  faraday-net_http_persistent (~> 1.1)
31
+ faraday-patron (~> 1.0)
30
32
  multipart-post (>= 1.2, < 3)
31
33
  ruby2_keywords (>= 0.0.4)
32
34
  faraday-cookie_jar (0.0.7)
@@ -35,8 +37,10 @@ GEM
35
37
  faraday-em_http (1.0.0)
36
38
  faraday-em_synchrony (1.0.0)
37
39
  faraday-excon (1.1.0)
40
+ faraday-httpclient (1.0.1)
38
41
  faraday-net_http (1.0.1)
39
42
  faraday-net_http_persistent (1.1.0)
43
+ faraday-patron (1.0.0)
40
44
  faraday_middleware (1.0.0)
41
45
  faraday (~> 1.0)
42
46
  hashdiff (1.0.1)
@@ -141,10 +141,12 @@ module HTTPDisk
141
141
  end
142
142
 
143
143
  def encoding_for(content_type)
144
- begin
145
- return Encoding.find(content_type.charset) if content_type
146
- rescue ArgumentError
147
- # unknown charset
144
+ if content_type&.charset
145
+ begin
146
+ return Encoding.find(content_type.charset)
147
+ rescue ArgumentError
148
+ # unknown charset
149
+ end
148
150
  end
149
151
  Encoding::ASCII_8BIT
150
152
  end
@@ -1,3 +1,3 @@
1
1
  module HTTPDisk
2
- VERSION = '0.5.0'.freeze
2
+ VERSION = '0.5.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: httpdisk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Doppelt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-30 00:00:00.000000000 Z
11
+ date: 2021-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: content-type