opendelivery 0.0.22 → 0.0.23
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/opendelivery/domain.rb +11 -1
- metadata +2 -2
data/lib/opendelivery/domain.rb
CHANGED
@@ -36,10 +36,20 @@ module OpenDelivery
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def get_property(domain, item_name, key, index=0)
|
39
|
+
property_value = nil
|
39
40
|
AWS::SimpleDB.consistent_reads do
|
40
41
|
item = @sdb.domains[domain].items[item_name]
|
41
|
-
|
42
|
+
if !item.nil?
|
43
|
+
attribute = item.attributes[key]
|
44
|
+
if !attribute.nil?
|
45
|
+
value = attribute.values[index]
|
46
|
+
if !value.nil?
|
47
|
+
property_value = value.chomp
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
42
51
|
end
|
52
|
+
return property_value
|
43
53
|
end
|
44
54
|
|
45
55
|
def set_property(domain, item_name, key, value)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opendelivery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.23
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-10-
|
14
|
+
date: 2013-10-22 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rspec
|