dynamoid 1.3.4 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +3 -0
  4. data/.travis.yml +32 -7
  5. data/Appraisals +7 -0
  6. data/CHANGELOG.md +69 -2
  7. data/Gemfile +2 -0
  8. data/README.md +108 -28
  9. data/Rakefile +0 -24
  10. data/docker-compose.yml +7 -0
  11. data/dynamoid.gemspec +2 -3
  12. data/gemfiles/rails_4_0.gemfile +2 -3
  13. data/gemfiles/rails_4_1.gemfile +2 -3
  14. data/gemfiles/rails_4_2.gemfile +2 -3
  15. data/gemfiles/rails_5_0.gemfile +1 -1
  16. data/gemfiles/rails_5_1.gemfile +7 -0
  17. data/lib/dynamoid.rb +31 -31
  18. data/lib/dynamoid/adapter.rb +5 -5
  19. data/lib/dynamoid/adapter_plugin/aws_sdk_v2.rb +84 -57
  20. data/lib/dynamoid/associations.rb +21 -12
  21. data/lib/dynamoid/associations/association.rb +19 -3
  22. data/lib/dynamoid/associations/belongs_to.rb +26 -16
  23. data/lib/dynamoid/associations/has_and_belongs_to_many.rb +0 -16
  24. data/lib/dynamoid/associations/has_many.rb +2 -17
  25. data/lib/dynamoid/associations/has_one.rb +0 -14
  26. data/lib/dynamoid/associations/many_association.rb +19 -6
  27. data/lib/dynamoid/associations/single_association.rb +25 -7
  28. data/lib/dynamoid/config.rb +18 -18
  29. data/lib/dynamoid/config/options.rb +1 -1
  30. data/lib/dynamoid/criteria/chain.rb +29 -21
  31. data/lib/dynamoid/dirty.rb +2 -2
  32. data/lib/dynamoid/document.rb +17 -5
  33. data/lib/dynamoid/errors.rb +4 -1
  34. data/lib/dynamoid/fields.rb +6 -6
  35. data/lib/dynamoid/finders.rb +19 -9
  36. data/lib/dynamoid/identity_map.rb +0 -1
  37. data/lib/dynamoid/indexes.rb +41 -54
  38. data/lib/dynamoid/persistence.rb +54 -24
  39. data/lib/dynamoid/railtie.rb +1 -1
  40. data/lib/dynamoid/validations.rb +4 -3
  41. data/lib/dynamoid/version.rb +1 -1
  42. metadata +14 -29
  43. data/gemfiles/rails_4_0.gemfile.lock +0 -150
  44. data/gemfiles/rails_4_1.gemfile.lock +0 -154
  45. data/gemfiles/rails_4_2.gemfile.lock +0 -175
  46. data/gemfiles/rails_5_0.gemfile.lock +0 -180
@@ -1,154 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- dynamoid (1.3.0)
5
- activemodel (>= 4)
6
- aws-sdk-resources (~> 2)
7
- concurrent-ruby (>= 1.0)
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- actionmailer (4.1.16)
13
- actionpack (= 4.1.16)
14
- actionview (= 4.1.16)
15
- mail (~> 2.5, >= 2.5.4)
16
- actionpack (4.1.16)
17
- actionview (= 4.1.16)
18
- activesupport (= 4.1.16)
19
- rack (~> 1.5.2)
20
- rack-test (~> 0.6.2)
21
- actionview (4.1.16)
22
- activesupport (= 4.1.16)
23
- builder (~> 3.1)
24
- erubis (~> 2.7.0)
25
- activemodel (4.1.16)
26
- activesupport (= 4.1.16)
27
- builder (~> 3.1)
28
- activerecord (4.1.16)
29
- activemodel (= 4.1.16)
30
- activesupport (= 4.1.16)
31
- arel (~> 5.0.0)
32
- activesupport (4.1.16)
33
- i18n (~> 0.6, >= 0.6.9)
34
- json (~> 1.7, >= 1.7.7)
35
- minitest (~> 5.1)
36
- thread_safe (~> 0.1)
37
- tzinfo (~> 1.1)
38
- appraisal (2.1.0)
39
- bundler
40
- rake
41
- thor (>= 0.14.0)
42
- arel (5.0.1.20140414130214)
43
- aws-sdk-core (2.8.11)
44
- aws-sigv4 (~> 1.0)
45
- jmespath (~> 1.0)
46
- aws-sdk-resources (2.8.11)
47
- aws-sdk-core (= 2.8.11)
48
- aws-sigv4 (1.0.0)
49
- builder (3.2.3)
50
- coderay (1.1.1)
51
- concurrent-ruby (1.0.5)
52
- coveralls (0.8.19)
53
- json (>= 1.8, < 3)
54
- simplecov (~> 0.12.0)
55
- term-ansicolor (~> 1.3)
56
- thor (~> 0.19.1)
57
- tins (~> 1.6)
58
- diff-lcs (1.3)
59
- docile (1.1.5)
60
- erubis (2.7.0)
61
- i18n (0.8.1)
62
- jmespath (1.3.1)
63
- json (1.8.6)
64
- mail (2.6.4)
65
- mime-types (>= 1.16, < 4)
66
- method_source (0.8.2)
67
- mime-types (3.1)
68
- mime-types-data (~> 3.2015)
69
- mime-types-data (3.2016.0521)
70
- mini_portile2 (2.1.0)
71
- minitest (5.10.1)
72
- nokogiri (1.6.8.1)
73
- mini_portile2 (~> 2.1.0)
74
- pry (0.10.4)
75
- coderay (~> 1.1.0)
76
- method_source (~> 0.8.1)
77
- slop (~> 3.4)
78
- rack (1.5.5)
79
- rack-test (0.6.3)
80
- rack (>= 1.0)
81
- rails (4.1.16)
82
- actionmailer (= 4.1.16)
83
- actionpack (= 4.1.16)
84
- actionview (= 4.1.16)
85
- activemodel (= 4.1.16)
86
- activerecord (= 4.1.16)
87
- activesupport (= 4.1.16)
88
- bundler (>= 1.3.0, < 2.0)
89
- railties (= 4.1.16)
90
- sprockets-rails (~> 2.0)
91
- railties (4.1.16)
92
- actionpack (= 4.1.16)
93
- activesupport (= 4.1.16)
94
- rake (>= 0.8.7)
95
- thor (>= 0.18.1, < 2.0)
96
- rake (12.0.0)
97
- rspec (3.5.0)
98
- rspec-core (~> 3.5.0)
99
- rspec-expectations (~> 3.5.0)
100
- rspec-mocks (~> 3.5.0)
101
- rspec-core (3.5.4)
102
- rspec-support (~> 3.5.0)
103
- rspec-expectations (3.5.0)
104
- diff-lcs (>= 1.2.0, < 2.0)
105
- rspec-support (~> 3.5.0)
106
- rspec-mocks (3.5.0)
107
- diff-lcs (>= 1.2.0, < 2.0)
108
- rspec-support (~> 3.5.0)
109
- rspec-retry (0.5.3)
110
- rspec-core (> 3.3, < 3.6)
111
- rspec-support (3.5.0)
112
- simplecov (0.12.0)
113
- docile (~> 1.1.0)
114
- json (>= 1.8, < 3)
115
- simplecov-html (~> 0.10.0)
116
- simplecov-html (0.10.0)
117
- slop (3.6.0)
118
- sprockets (3.7.1)
119
- concurrent-ruby (~> 1.0)
120
- rack (> 1, < 3)
121
- sprockets-rails (2.3.3)
122
- actionpack (>= 3.0)
123
- activesupport (>= 3.0)
124
- sprockets (>= 2.8, < 4.0)
125
- term-ansicolor (1.4.1)
126
- tins (~> 1.0)
127
- thor (0.19.4)
128
- thread_safe (0.3.6)
129
- tins (1.13.2)
130
- tzinfo (1.2.3)
131
- thread_safe (~> 0.1)
132
- wwtd (1.3.0)
133
- yard (0.9.8)
134
-
135
- PLATFORMS
136
- ruby
137
-
138
- DEPENDENCIES
139
- activesupport (>= 4)
140
- appraisal (~> 2.1)
141
- bundler (~> 1.14)
142
- coveralls
143
- dynamoid!
144
- nokogiri (~> 1.6.8.1)
145
- pry (~> 0.10)
146
- rails (~> 4.1.0)
147
- rake (~> 12.0)
148
- rspec (~> 3.0)
149
- rspec-retry
150
- wwtd (~> 1.3)
151
- yard
152
-
153
- BUNDLED WITH
154
- 1.14.6
@@ -1,175 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- dynamoid (1.3.0)
5
- activemodel (>= 4)
6
- aws-sdk-resources (~> 2)
7
- concurrent-ruby (>= 1.0)
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- actionmailer (4.2.8)
13
- actionpack (= 4.2.8)
14
- actionview (= 4.2.8)
15
- activejob (= 4.2.8)
16
- mail (~> 2.5, >= 2.5.4)
17
- rails-dom-testing (~> 1.0, >= 1.0.5)
18
- actionpack (4.2.8)
19
- actionview (= 4.2.8)
20
- activesupport (= 4.2.8)
21
- rack (~> 1.6)
22
- rack-test (~> 0.6.2)
23
- rails-dom-testing (~> 1.0, >= 1.0.5)
24
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
25
- actionview (4.2.8)
26
- activesupport (= 4.2.8)
27
- builder (~> 3.1)
28
- erubis (~> 2.7.0)
29
- rails-dom-testing (~> 1.0, >= 1.0.5)
30
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
31
- activejob (4.2.8)
32
- activesupport (= 4.2.8)
33
- globalid (>= 0.3.0)
34
- activemodel (4.2.8)
35
- activesupport (= 4.2.8)
36
- builder (~> 3.1)
37
- activerecord (4.2.8)
38
- activemodel (= 4.2.8)
39
- activesupport (= 4.2.8)
40
- arel (~> 6.0)
41
- activesupport (4.2.8)
42
- i18n (~> 0.7)
43
- minitest (~> 5.1)
44
- thread_safe (~> 0.3, >= 0.3.4)
45
- tzinfo (~> 1.1)
46
- appraisal (2.1.0)
47
- bundler
48
- rake
49
- thor (>= 0.14.0)
50
- arel (6.0.4)
51
- aws-sdk-core (2.8.11)
52
- aws-sigv4 (~> 1.0)
53
- jmespath (~> 1.0)
54
- aws-sdk-resources (2.8.11)
55
- aws-sdk-core (= 2.8.11)
56
- aws-sigv4 (1.0.0)
57
- builder (3.2.3)
58
- coderay (1.1.1)
59
- concurrent-ruby (1.0.5)
60
- coveralls (0.8.19)
61
- json (>= 1.8, < 3)
62
- simplecov (~> 0.12.0)
63
- term-ansicolor (~> 1.3)
64
- thor (~> 0.19.1)
65
- tins (~> 1.6)
66
- diff-lcs (1.3)
67
- docile (1.1.5)
68
- erubis (2.7.0)
69
- globalid (0.3.7)
70
- activesupport (>= 4.1.0)
71
- i18n (0.8.1)
72
- jmespath (1.3.1)
73
- json (2.0.3)
74
- loofah (2.0.3)
75
- nokogiri (>= 1.5.9)
76
- mail (2.6.4)
77
- mime-types (>= 1.16, < 4)
78
- method_source (0.8.2)
79
- mime-types (3.1)
80
- mime-types-data (~> 3.2015)
81
- mime-types-data (3.2016.0521)
82
- mini_portile2 (2.1.0)
83
- minitest (5.10.1)
84
- nokogiri (1.6.8.1)
85
- mini_portile2 (~> 2.1.0)
86
- pry (0.10.4)
87
- coderay (~> 1.1.0)
88
- method_source (~> 0.8.1)
89
- slop (~> 3.4)
90
- rack (1.6.5)
91
- rack-test (0.6.3)
92
- rack (>= 1.0)
93
- rails (4.2.8)
94
- actionmailer (= 4.2.8)
95
- actionpack (= 4.2.8)
96
- actionview (= 4.2.8)
97
- activejob (= 4.2.8)
98
- activemodel (= 4.2.8)
99
- activerecord (= 4.2.8)
100
- activesupport (= 4.2.8)
101
- bundler (>= 1.3.0, < 2.0)
102
- railties (= 4.2.8)
103
- sprockets-rails
104
- rails-deprecated_sanitizer (1.0.3)
105
- activesupport (>= 4.2.0.alpha)
106
- rails-dom-testing (1.0.8)
107
- activesupport (>= 4.2.0.beta, < 5.0)
108
- nokogiri (~> 1.6)
109
- rails-deprecated_sanitizer (>= 1.0.1)
110
- rails-html-sanitizer (1.0.3)
111
- loofah (~> 2.0)
112
- railties (4.2.8)
113
- actionpack (= 4.2.8)
114
- activesupport (= 4.2.8)
115
- rake (>= 0.8.7)
116
- thor (>= 0.18.1, < 2.0)
117
- rake (12.0.0)
118
- rspec (3.5.0)
119
- rspec-core (~> 3.5.0)
120
- rspec-expectations (~> 3.5.0)
121
- rspec-mocks (~> 3.5.0)
122
- rspec-core (3.5.4)
123
- rspec-support (~> 3.5.0)
124
- rspec-expectations (3.5.0)
125
- diff-lcs (>= 1.2.0, < 2.0)
126
- rspec-support (~> 3.5.0)
127
- rspec-mocks (3.5.0)
128
- diff-lcs (>= 1.2.0, < 2.0)
129
- rspec-support (~> 3.5.0)
130
- rspec-retry (0.5.3)
131
- rspec-core (> 3.3, < 3.6)
132
- rspec-support (3.5.0)
133
- simplecov (0.12.0)
134
- docile (~> 1.1.0)
135
- json (>= 1.8, < 3)
136
- simplecov-html (~> 0.10.0)
137
- simplecov-html (0.10.0)
138
- slop (3.6.0)
139
- sprockets (3.7.1)
140
- concurrent-ruby (~> 1.0)
141
- rack (> 1, < 3)
142
- sprockets-rails (3.2.0)
143
- actionpack (>= 4.0)
144
- activesupport (>= 4.0)
145
- sprockets (>= 3.0.0)
146
- term-ansicolor (1.4.1)
147
- tins (~> 1.0)
148
- thor (0.19.4)
149
- thread_safe (0.3.6)
150
- tins (1.13.2)
151
- tzinfo (1.2.3)
152
- thread_safe (~> 0.1)
153
- wwtd (1.3.0)
154
- yard (0.9.8)
155
-
156
- PLATFORMS
157
- ruby
158
-
159
- DEPENDENCIES
160
- activesupport (>= 4)
161
- appraisal (~> 2.1)
162
- bundler (~> 1.14)
163
- coveralls
164
- dynamoid!
165
- nokogiri (~> 1.6.8.1)
166
- pry (~> 0.10)
167
- rails (~> 4.2.0)
168
- rake (~> 12.0)
169
- rspec (~> 3.0)
170
- rspec-retry
171
- wwtd (~> 1.3)
172
- yard
173
-
174
- BUNDLED WITH
175
- 1.14.6
@@ -1,180 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- dynamoid (1.3.0)
5
- activemodel (>= 4)
6
- aws-sdk-resources (~> 2)
7
- concurrent-ruby (>= 1.0)
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- actioncable (5.0.2)
13
- actionpack (= 5.0.2)
14
- nio4r (>= 1.2, < 3.0)
15
- websocket-driver (~> 0.6.1)
16
- actionmailer (5.0.2)
17
- actionpack (= 5.0.2)
18
- actionview (= 5.0.2)
19
- activejob (= 5.0.2)
20
- mail (~> 2.5, >= 2.5.4)
21
- rails-dom-testing (~> 2.0)
22
- actionpack (5.0.2)
23
- actionview (= 5.0.2)
24
- activesupport (= 5.0.2)
25
- rack (~> 2.0)
26
- rack-test (~> 0.6.3)
27
- rails-dom-testing (~> 2.0)
28
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
29
- actionview (5.0.2)
30
- activesupport (= 5.0.2)
31
- builder (~> 3.1)
32
- erubis (~> 2.7.0)
33
- rails-dom-testing (~> 2.0)
34
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
35
- activejob (5.0.2)
36
- activesupport (= 5.0.2)
37
- globalid (>= 0.3.6)
38
- activemodel (5.0.2)
39
- activesupport (= 5.0.2)
40
- activerecord (5.0.2)
41
- activemodel (= 5.0.2)
42
- activesupport (= 5.0.2)
43
- arel (~> 7.0)
44
- activesupport (5.0.2)
45
- concurrent-ruby (~> 1.0, >= 1.0.2)
46
- i18n (~> 0.7)
47
- minitest (~> 5.1)
48
- tzinfo (~> 1.1)
49
- appraisal (2.1.0)
50
- bundler
51
- rake
52
- thor (>= 0.14.0)
53
- arel (7.1.4)
54
- aws-sdk-core (2.8.11)
55
- aws-sigv4 (~> 1.0)
56
- jmespath (~> 1.0)
57
- aws-sdk-resources (2.8.11)
58
- aws-sdk-core (= 2.8.11)
59
- aws-sigv4 (1.0.0)
60
- builder (3.2.3)
61
- coderay (1.1.1)
62
- concurrent-ruby (1.0.5)
63
- coveralls (0.8.19)
64
- json (>= 1.8, < 3)
65
- simplecov (~> 0.12.0)
66
- term-ansicolor (~> 1.3)
67
- thor (~> 0.19.1)
68
- tins (~> 1.6)
69
- diff-lcs (1.3)
70
- docile (1.1.5)
71
- erubis (2.7.0)
72
- globalid (0.3.7)
73
- activesupport (>= 4.1.0)
74
- i18n (0.8.1)
75
- jmespath (1.3.1)
76
- json (2.0.3)
77
- loofah (2.0.3)
78
- nokogiri (>= 1.5.9)
79
- mail (2.6.4)
80
- mime-types (>= 1.16, < 4)
81
- method_source (0.8.2)
82
- mime-types (3.1)
83
- mime-types-data (~> 3.2015)
84
- mime-types-data (3.2016.0521)
85
- mini_portile2 (2.1.0)
86
- minitest (5.10.1)
87
- nio4r (2.0.0)
88
- nokogiri (1.7.1)
89
- mini_portile2 (~> 2.1.0)
90
- pry (0.10.4)
91
- coderay (~> 1.1.0)
92
- method_source (~> 0.8.1)
93
- slop (~> 3.4)
94
- rack (2.0.1)
95
- rack-test (0.6.3)
96
- rack (>= 1.0)
97
- rails (5.0.2)
98
- actioncable (= 5.0.2)
99
- actionmailer (= 5.0.2)
100
- actionpack (= 5.0.2)
101
- actionview (= 5.0.2)
102
- activejob (= 5.0.2)
103
- activemodel (= 5.0.2)
104
- activerecord (= 5.0.2)
105
- activesupport (= 5.0.2)
106
- bundler (>= 1.3.0, < 2.0)
107
- railties (= 5.0.2)
108
- sprockets-rails (>= 2.0.0)
109
- rails-dom-testing (2.0.2)
110
- activesupport (>= 4.2.0, < 6.0)
111
- nokogiri (~> 1.6)
112
- rails-html-sanitizer (1.0.3)
113
- loofah (~> 2.0)
114
- railties (5.0.2)
115
- actionpack (= 5.0.2)
116
- activesupport (= 5.0.2)
117
- method_source
118
- rake (>= 0.8.7)
119
- thor (>= 0.18.1, < 2.0)
120
- rake (12.0.0)
121
- rspec (3.5.0)
122
- rspec-core (~> 3.5.0)
123
- rspec-expectations (~> 3.5.0)
124
- rspec-mocks (~> 3.5.0)
125
- rspec-core (3.5.4)
126
- rspec-support (~> 3.5.0)
127
- rspec-expectations (3.5.0)
128
- diff-lcs (>= 1.2.0, < 2.0)
129
- rspec-support (~> 3.5.0)
130
- rspec-mocks (3.5.0)
131
- diff-lcs (>= 1.2.0, < 2.0)
132
- rspec-support (~> 3.5.0)
133
- rspec-retry (0.5.3)
134
- rspec-core (> 3.3, < 3.6)
135
- rspec-support (3.5.0)
136
- simplecov (0.12.0)
137
- docile (~> 1.1.0)
138
- json (>= 1.8, < 3)
139
- simplecov-html (~> 0.10.0)
140
- simplecov-html (0.10.0)
141
- slop (3.6.0)
142
- sprockets (3.7.1)
143
- concurrent-ruby (~> 1.0)
144
- rack (> 1, < 3)
145
- sprockets-rails (3.2.0)
146
- actionpack (>= 4.0)
147
- activesupport (>= 4.0)
148
- sprockets (>= 3.0.0)
149
- term-ansicolor (1.4.1)
150
- tins (~> 1.0)
151
- thor (0.19.4)
152
- thread_safe (0.3.6)
153
- tins (1.13.2)
154
- tzinfo (1.2.3)
155
- thread_safe (~> 0.1)
156
- websocket-driver (0.6.5)
157
- websocket-extensions (>= 0.1.0)
158
- websocket-extensions (0.1.2)
159
- wwtd (1.3.0)
160
- yard (0.9.8)
161
-
162
- PLATFORMS
163
- ruby
164
-
165
- DEPENDENCIES
166
- activesupport (>= 4)
167
- appraisal (~> 2.1)
168
- bundler (~> 1.14)
169
- coveralls
170
- dynamoid!
171
- pry (~> 0.10)
172
- rails (~> 5.0.0)
173
- rake (~> 12.0)
174
- rspec (~> 3.0)
175
- rspec-retry
176
- wwtd (~> 1.3)
177
- yard
178
-
179
- BUNDLED WITH
180
- 1.14.6