relishable 0.14 → 0.15

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.
Files changed (2) hide show
  1. data/lib/relish/dynamo_helper.rb +2 -8
  2. metadata +2 -2
@@ -14,7 +14,7 @@ class Relish
14
14
  end
15
15
 
16
16
  def query_current_version(id, *attrs)
17
- response = db.query(@table_name, {:S => id}, attrs_to_get(attrs).merge(:ConsistentRead => true, :Limit => 1, :ScanIndexForward => false))
17
+ response = db.query(@table_name, {:S => id}, :ConsistentRead => true, :Limit => 1, :ScanIndexForward => false)
18
18
  if response.body['Count'] == 1
19
19
  response.body['Items'].first
20
20
  end
@@ -25,7 +25,7 @@ class Relish
25
25
  end
26
26
 
27
27
  def get_version(id, version, *attrs)
28
- response = db.get_item(@table_name, {:HashKeyElement => {:S => id}, :RangeKeyElement => {:N => version}}, attrs_to_get(attrs).merge(:ConsistentRead => true))
28
+ response = db.get_item(@table_name, {:HashKeyElement => {:S => id}, :RangeKeyElement => {:N => version}}, :ConsistentRead => true)
29
29
  response.body['Item']
30
30
  end
31
31
 
@@ -47,11 +47,5 @@ class Relish
47
47
  end
48
48
 
49
49
  alias to_s inspect
50
-
51
- protected
52
-
53
- def attrs_to_get(attrs)
54
- attrs.empty? ? {} : {:AttributesToGet => attrs}
55
- end
56
50
  end
57
51
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relishable
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.14'
4
+ version: '0.15'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-11-15 00:00:00.000000000 Z
13
+ date: 2012-11-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: fog