dynamodb_framework 1.5.1 → 1.5.2
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc49f68b676b1c89e2ca6dbb4c26d21e55b64e65
|
4
|
+
data.tar.gz: 10048c3d4ca703ed3b5b08af98c6ce82f8e9bdfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f195b4b78087f0d6b6321224dab72978b7f2acc075c4856fea9c9aa681d4a68ce9267837b3e8bf432c66a2e7bccc6f2bb8f17a0041bee4f3c3e74eaa8791570
|
7
|
+
data.tar.gz: ca6d31d38bebc5937bf70f092f261e5e6af13a96800606bf0206508f8dd85a36db0cca7f7f9698026072115c5c3a779676405a49ddb18251bef3a1c7a9c62708
|
@@ -21,12 +21,12 @@ module DynamoDbFramework
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def eq(value)
|
24
|
-
condition(expression: '
|
24
|
+
condition(expression: '=', value: value)
|
25
25
|
self
|
26
26
|
end
|
27
27
|
|
28
28
|
def not_eq(value)
|
29
|
-
condition(expression: '
|
29
|
+
condition(expression: '<>', value: value)
|
30
30
|
self
|
31
31
|
end
|
32
32
|
|
data/spec/dynamodb_query_spec.rb
CHANGED
@@ -88,6 +88,18 @@ RSpec.describe DynamoDbFramework::Query do
|
|
88
88
|
expect(count).to eq 4
|
89
89
|
end
|
90
90
|
end
|
91
|
+
context 'when using eq' do
|
92
|
+
it 'should return the right values' do
|
93
|
+
results = ExampleTable2.query(partition: 'name 1').number.eq(1).execute(store: store)
|
94
|
+
expect(results.length).to eq(1)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
context 'when using not_eq' do
|
98
|
+
it 'should return the right values' do
|
99
|
+
results = ExampleTable2.query(partition: 'name 1').number.not_eq(1).execute(store: store)
|
100
|
+
expect(results.length).to eq(3)
|
101
|
+
end
|
102
|
+
end
|
91
103
|
end
|
92
104
|
|
93
105
|
end
|
data/spec/dynamodb_table_spec.rb
CHANGED
@@ -152,6 +152,7 @@ RSpec.describe DynamoDbFramework::Table do
|
|
152
152
|
.execute(store: store)
|
153
153
|
expect(results.length).to eq 4
|
154
154
|
end
|
155
|
+
|
155
156
|
context 'when limit is specified' do
|
156
157
|
it 'should return the expected items' do
|
157
158
|
results = ExampleTable2.query(partition: 'name 1')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynamodb_framework
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vaughanbrittonsage
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|