fog-k5 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
  SHA256:
3
- metadata.gz: e5ccec7dc892cbf7510dbca1a4096c4ada8e3d4f20b2f97e6d7e1ba5224b9f8a
4
- data.tar.gz: b2e5a3137dcf344270d1e5997df65e5532240d85dc57a4c607870d70fe46c9c1
3
+ metadata.gz: d0e1489fde3fe66ba6983e25cc5420bb3c090ed0687172b8fb213903e7a510c6
4
+ data.tar.gz: 7cd1567c218473b30fb15f004bbadc2cbfe17a7e57b9ee7ffb67d325bb83c367
5
5
  SHA512:
6
- metadata.gz: 4b62b8d17c5786ad924c0cff07a39ee42d56a3514d121200d98a9253cc5357fb74cf929ff30180a1a2f541d35d95c2e5a78653f71d2121ea0962873c00eb6018
7
- data.tar.gz: f826134c7f01e0ac60c2dbd2c15601aa0f533c9c167f509d31192b507b8ee1426c49c64456380546a422e7b4aae6fdb98d9b27237c81dd3b272718940107ff7b
6
+ metadata.gz: 8ad2f8cbd15e07adaf3898b846b04a9a8328c760cf3d91e2f86ef55aef9071814008b43d51b95e8b07b0e70508523a3ceee5c6eea763a1c8d64087f50fd5cd1c
7
+ data.tar.gz: '08f709d4ca0eeb6cf70bc0fad35da67a190c810960522ec5b6641b0d44f242e8d9b79c996f87f50d9ab35987a124be3d41a6b62c3abb9167325434b345f5e86b'
data/CHANGELOG.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Change Log
2
2
 
3
- ## [v0.1.2](https://github.com/blooper05/fog-k5/tree/v0.1.2) (2018-05-23)
4
- [Full Changelog](https://github.com/blooper05/fog-k5/compare/v0.1.1...v0.1.2)
3
+ ## [v0.1.3](https://github.com/blooper05/fog-k5/tree/v0.1.3) (2018-05-24)
4
+ [Full Changelog](https://github.com/blooper05/fog-k5/compare/v0.1.2...v0.1.3)
5
5
 
6
6
  **Fixed bugs:**
7
7
 
@@ -9,6 +9,13 @@
9
9
 
10
10
  **Merged pull requests:**
11
11
 
12
+ - 🐛 Update the authentication token this time for sure [\#11](https://github.com/blooper05/fog-k5/pull/11) ([blooper05](https://github.com/blooper05))
13
+
14
+ ## [v0.1.2](https://github.com/blooper05/fog-k5/tree/v0.1.2) (2018-05-23)
15
+ [Full Changelog](https://github.com/blooper05/fog-k5/compare/v0.1.1...v0.1.2)
16
+
17
+ **Merged pull requests:**
18
+
12
19
  - 🐛 Use instance variables instead of Fog.credentials [\#10](https://github.com/blooper05/fog-k5/pull/10) ([blooper05](https://github.com/blooper05))
13
20
 
14
21
  ## [v0.1.1](https://github.com/blooper05/fog-k5/tree/v0.1.1) (2018-05-17)
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module K5
3
- VERSION = '0.1.3'.freeze
3
+ VERSION = '0.1.4'.freeze
4
4
  end
5
5
  end
@@ -20,13 +20,14 @@ module Fog
20
20
  def public_url
21
21
  requires :directory, :key
22
22
 
23
- region = service.k5_region
24
- project_id = service.k5_project_id
25
- version = K5_STORAGE_URL_VERSION
26
- url = build_url(url_type: K5_STORAGE_URL_TYPE, region: region)
27
- container = directory.key
28
-
29
- "#{url}/#{version}/AUTH_#{project_id}/#{container}/#{key}"
23
+ region = service.k5_region
24
+ project_id = service.k5_project_id
25
+ version = K5_STORAGE_URL_VERSION
26
+ url = build_url(url_type: K5_STORAGE_URL_TYPE, region: region)
27
+ container = directory.key
28
+ escaped_key = Excon::Utils.escape_uri(key)
29
+
30
+ "#{url}/#{version}/AUTH_#{project_id}/#{container}/#{escaped_key}"
30
31
  end
31
32
 
32
33
  def save
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-k5
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
  - blooper05
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-24 00:00:00.000000000 Z
11
+ date: 2018-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-core