anyfetch 0.1.3 → 0.1.4

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
  SHA1:
3
- metadata.gz: 29264ad4fdfd44d9a845fdba58e65c5a208b5419
4
- data.tar.gz: 5de3fa9d7eb26bc116aae3da86234f2dd2a7ec99
3
+ metadata.gz: 3d583de7fd6f43d0eadb8b4a049039662498e3c5
4
+ data.tar.gz: 309874963cc3f0b929c120dc485aaccc58af18af
5
5
  SHA512:
6
- metadata.gz: 25f7793a98e193b1be087c8eabc7f6407cea71dcbe0597c2b694b56ab79de592685bfdc265793ce99fb75cb28ed3dc4c00041a291ff45cd0f58f88f066bae844
7
- data.tar.gz: f42a89850d2425adc1c9e797186ec0cc18d0d30e9bae5269e0bc403355182baa89d390ff6ce64cef96aecacae1e5e5fcc254cfab81c61fe76e4d56b53e8001e3
6
+ metadata.gz: 92321420e84c94699bc24878cc68ca7bc38c4f71be6cef7179e9d90d96f9f56dc9b8cfd5bba08f6d7ddfcad79d07cc99c5d69b032705b561dbc8dfea849b7bf6
7
+ data.tar.gz: aa204724fc61f97401a3d0316a09a77544d969e38e0129b438b60eb81c1cae616608c995606a5519a4a0288376f68da84f37e9b023e5b691896524c5e1bbaa3b
@@ -12,6 +12,12 @@ module Anyfetch
12
12
  private
13
13
 
14
14
  def setup_auth
15
+ if @uri.user
16
+ # URI-encoded user must be passed to open-uri
17
+ # Rollback URI-encoding of user here
18
+ @uri.instance_variable_set "@user", URI.decode(@uri.user)
19
+ end
20
+
15
21
  if @uri.password
16
22
  # Rollback URI-encoding of password by open-uri lib
17
23
  @uri.instance_variable_set "@password", URI.decode(@uri.password)
@@ -1,3 +1,3 @@
1
1
  module Anyfetch
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anyfetch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michał Szajbe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-30 00:00:00.000000000 Z
11
+ date: 2018-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocaine