duracloud-client 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/duracloud/properties.rb +1 -7
- data/lib/duracloud/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e127a8f69c5e52bb5a1f415b62584dcdd503ff42
|
4
|
+
data.tar.gz: 82277fd18f38a035671fc5be8f2321021acf5470
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25ba1e478886dfb3266e2b600e1d8f956830e76a3dfd4ade3aa0f03d2375c63d40fca4459bf6724281410a9a53dbc979ccd6fa4486798a266caf25680575d85e
|
7
|
+
data.tar.gz: 3c0f307f2b77aac5afe1a7b7eddb64307bc1ff6554774455aa5b1c7d0cf938edb3a45b2b90eb76457236f4cd2ff182c89b677dc0e90c8485253e384f2398d518
|
data/lib/duracloud/properties.rb
CHANGED
@@ -9,13 +9,12 @@ module Duracloud
|
|
9
9
|
class Properties < Hashie::Mash
|
10
10
|
|
11
11
|
PREFIX = "x-dura-meta-".freeze
|
12
|
-
PREFIX_RE = /\A#{PREFIX}/i
|
13
12
|
|
14
13
|
# Is the property name valid?
|
15
14
|
# @param prop [String] the property name
|
16
15
|
# @return [Boolean]
|
17
16
|
def self.property?(prop)
|
18
|
-
|
17
|
+
prop.to_s.start_with?(PREFIX)
|
19
18
|
end
|
20
19
|
|
21
20
|
def initialize(source = nil, default = nil, &block)
|
@@ -27,11 +26,6 @@ module Duracloud
|
|
27
26
|
self.class.property?(prop)
|
28
27
|
end
|
29
28
|
|
30
|
-
# @api private
|
31
|
-
def convert_key(key)
|
32
|
-
force_ascii(key)
|
33
|
-
end
|
34
|
-
|
35
29
|
# @api private
|
36
30
|
def convert_value(value, _ = nil)
|
37
31
|
case value
|
data/lib/duracloud/version.rb
CHANGED