fake_dynamo 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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0f4631cc05b44fc6f658eb3a18c89ba2d4f3599b
4
+ data.tar.gz: 67d433993da543cb68b6eed85ffae822f981a085
5
+ SHA512:
6
+ metadata.gz: 9b52c4ef7c46f44efe512dfb8a7ce6ebf9f2cce713d1406d1a603226a298cb2c097b76ea0fe3993815c27f24fc5c39e99d4b84538dc14db7ca69bed8b49588a8
7
+ data.tar.gz: ee52a997e6aeccc0424313925fcf4d5524cb8d823495289de6670677e1f3046299746711455c1a00a9239e0bc83ab2987b214decf5412f4bb12d2f7b925bd03e
data/Gemfile CHANGED
@@ -2,7 +2,7 @@ source 'https://rubygems.org'
2
2
  gemspec
3
3
 
4
4
  group :development do
5
- gem 'rspec'
5
+ gem 'rspec', "~> 2.0"
6
6
  gem 'rack-test'
7
7
  gem 'pry'
8
8
  gem 'simplecov'
@@ -603,7 +603,7 @@
603
603
  ComparisonOperator:
604
604
  - :string
605
605
  - :required
606
- - :enum: [EQ, NE, LE, LT, GE, GT, NOT_NULL, NULL, CONTAINS, NOT_CONTAINS, BEGINS_WITH, IN, BETWEEN]
606
+ - :enum: [EQ, NE, LE, LT, GE, GT, NOT_NULL, "NULL", CONTAINS, NOT_CONTAINS, BEGINS_WITH, IN, BETWEEN]
607
607
  ExclusiveStartKey:
608
608
  - :structure:
609
609
  HashKeyElement:
@@ -1,3 +1,3 @@
1
1
  module FakeDynamo
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -57,6 +57,15 @@ module FakeDynamo
57
57
  end.to raise_error(ValidationException, message)
58
58
  end
59
59
  end
60
+
61
+ it 'should allow null comparison operator' do
62
+ subject.validate_payload('Scan', {
63
+ 'TableName' => 'Table1',
64
+ 'ScanFilter' => {
65
+ 'age' => { 'ComparisonOperator' => 'NULL' }
66
+ }
67
+ })
68
+ end
60
69
  end
61
70
 
62
71
  end
metadata CHANGED
@@ -1,49 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fake_dynamo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
5
- prerelease:
4
+ version: 0.1.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Anantha Kumaran
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-28 00:00:00.000000000 Z
11
+ date: 2014-07-10 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: sinatra
16
- requirement: &70261115553380 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *70261115553380
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: activesupport
27
- requirement: &70261115552620 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ! '>='
31
+ - - '>='
31
32
  - !ruby/object:Gem::Version
32
33
  version: '0'
33
34
  type: :runtime
34
35
  prerelease: false
35
- version_requirements: *70261115552620
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: json
38
- requirement: &70261115552060 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
- - - ! '>='
45
+ - - '>='
42
46
  - !ruby/object:Gem::Version
43
47
  version: '0'
44
48
  type: :runtime
45
49
  prerelease: false
46
- version_requirements: *70261115552060
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
47
55
  description:
48
56
  email:
49
57
  - ananthakumaran@gmail.com
@@ -86,27 +94,26 @@ files:
86
94
  - spec/spec_helper.rb
87
95
  homepage:
88
96
  licenses: []
97
+ metadata: {}
89
98
  post_install_message:
90
99
  rdoc_options: []
91
100
  require_paths:
92
101
  - lib
93
102
  required_ruby_version: !ruby/object:Gem::Requirement
94
- none: false
95
103
  requirements:
96
- - - ! '>='
104
+ - - '>='
97
105
  - !ruby/object:Gem::Version
98
106
  version: 1.9.0
99
107
  required_rubygems_version: !ruby/object:Gem::Requirement
100
- none: false
101
108
  requirements:
102
- - - ! '>='
109
+ - - '>='
103
110
  - !ruby/object:Gem::Version
104
111
  version: '0'
105
112
  requirements: []
106
113
  rubyforge_project:
107
- rubygems_version: 1.8.15
114
+ rubygems_version: 2.0.3
108
115
  signing_key:
109
- specification_version: 3
116
+ specification_version: 4
110
117
  summary: local hosted, inmemory fake dynamodb
111
118
  test_files:
112
119
  - spec/fake_dynamo/db_spec.rb
@@ -117,4 +124,3 @@ test_files:
117
124
  - spec/fake_dynamo/table_spec.rb
118
125
  - spec/fake_dynamo/validation_spec.rb
119
126
  - spec/spec_helper.rb
120
- has_rdoc: