dynamoid_advanced_where 1.1.0 → 1.2.0

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
  SHA256:
3
- metadata.gz: f806a04e8969341d1397e35cc86d7694dec55693ae90c5d34d85ccb4faa95805
4
- data.tar.gz: f2f44f2f359c679cffa89f150eb20406a8712c2fb5d22cb857e78e7aa5ecee1f
3
+ metadata.gz: 0acc4dd6fd2beb8c36ce5ee16ac0a1e2a612e9f1f835ebab56d0d445bf026bbb
4
+ data.tar.gz: 0dbe226b9e1ef5037069b6af0133f72c20a64fd2fb9049648d015a58963cc43f
5
5
  SHA512:
6
- metadata.gz: c5a692ab92a62c20d36b563f0e452aa897cc5b22eeaf527624a709fe01145566c13fa5a37789741d5dddf5c0b79eeb8c3c6e30412e139f93a40dc1a6b6f54989
7
- data.tar.gz: 39ca15de11981b84b41484042f141927b8076f718bdf449cebf193c2845cf1d7773b9653cbaf3d1efe19f75c685e07b4a7c23edb04e111c976f19de5d72a12e7
6
+ metadata.gz: bc34e3547aa649fed56dd816aea6998a70c8ca2d45a43eed56912f3215c41f7326b6e340bee29ca12b93e059cd135770d136383dd9e7e1f2be30a52a71ab1500
7
+ data.tar.gz: f58df477e8073f0792d5cc362c37dd4c3a78486aa4e4f3c3fe50ae72b62eb5f642b645308389d048dee03ed2279d29467034b938796a359dfcafea6577a08f99
@@ -7,8 +7,37 @@ workflows:
7
7
  - "ruby-2.5"
8
8
  - "ruby-2.6"
9
9
  - "ruby-2.7"
10
+ - "ruby-3.0"
10
11
 
11
12
  jobs:
13
+ "ruby-3.0":
14
+ docker:
15
+ - image: ruby:2.5
16
+ - image: amazon/dynamodb-local
17
+ environment:
18
+ MAX_HEAP_SIZE: 1024m
19
+ HEAP_NEWSIZE: 512m
20
+
21
+ steps:
22
+ - checkout
23
+ - restore_cache:
24
+ keys:
25
+ - v1-dependencies-{{ checksum "Gemfile.lock" }}-{{ checksum "Appraisals" }}
26
+ # fallback to using the latest cache if no exact match is found
27
+ - v1-dependencies-
28
+
29
+ - run:
30
+ name: install dependencies
31
+ command: |
32
+ gem update bundler
33
+ bundle install
34
+ bundle exec appraisal install
35
+ - save_cache:
36
+ paths:
37
+ - ./vendor/bundle
38
+ key: v1-dependencies-{{ checksum "Gemfile.lock" }}-{{ checksum "Appraisals" }}
39
+ - run: bundle exec appraisal rspec --format progress
40
+
12
41
  "ruby-2.5":
13
42
  docker:
14
43
  - image: ruby:2.5
@@ -1 +1 @@
1
- 2.6.3
1
+ 2.7.1
@@ -1,104 +1,104 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dynamoid_advanced_where (1.1.0)
4
+ dynamoid_advanced_where (1.2.0)
5
5
  dynamoid (>= 3.2, < 4)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activemodel (6.0.2.1)
11
- activesupport (= 6.0.2.1)
12
- activesupport (6.0.2.1)
10
+ activemodel (6.1.0)
11
+ activesupport (= 6.1.0)
12
+ activesupport (6.1.0)
13
13
  concurrent-ruby (~> 1.0, >= 1.0.2)
14
- i18n (>= 0.7, < 2)
15
- minitest (~> 5.1)
16
- tzinfo (~> 1.1)
17
- zeitwerk (~> 2.2)
18
- appraisal (2.2.0)
14
+ i18n (>= 1.6, < 2)
15
+ minitest (>= 5.1)
16
+ tzinfo (~> 2.0)
17
+ zeitwerk (~> 2.3)
18
+ appraisal (2.3.0)
19
19
  bundler
20
20
  rake
21
21
  thor (>= 0.14.0)
22
- ast (2.4.0)
23
- aws-eventstream (1.0.3)
24
- aws-partitions (1.275.0)
25
- aws-sdk-core (3.90.1)
26
- aws-eventstream (~> 1.0, >= 1.0.2)
22
+ ast (2.4.1)
23
+ aws-eventstream (1.1.0)
24
+ aws-partitions (1.408.0)
25
+ aws-sdk-core (3.110.0)
26
+ aws-eventstream (~> 1, >= 1.0.2)
27
27
  aws-partitions (~> 1, >= 1.239.0)
28
28
  aws-sigv4 (~> 1.1)
29
29
  jmespath (~> 1.0)
30
- aws-sdk-dynamodb (1.42.0)
31
- aws-sdk-core (~> 3, >= 3.71.0)
30
+ aws-sdk-dynamodb (1.58.0)
31
+ aws-sdk-core (~> 3, >= 3.109.0)
32
32
  aws-sigv4 (~> 1.1)
33
- aws-sigv4 (1.1.0)
34
- aws-eventstream (~> 1.0, >= 1.0.2)
35
- bundler-audit (0.6.1)
33
+ aws-sigv4 (1.2.2)
34
+ aws-eventstream (~> 1, >= 1.0.2)
35
+ bundler-audit (0.7.0.1)
36
36
  bundler (>= 1.2.0, < 3)
37
- thor (~> 0.18)
38
- childprocess (3.0.0)
39
- coderay (1.1.2)
37
+ thor (>= 0.18, < 2)
38
+ childprocess (4.0.0)
39
+ coderay (1.1.3)
40
40
  colorize (0.8.1)
41
- concurrent-ruby (1.1.5)
42
- diff-lcs (1.3)
43
- dynamoid (3.4.1)
41
+ concurrent-ruby (1.1.7)
42
+ diff-lcs (1.4.4)
43
+ dynamoid (3.6.0)
44
44
  activemodel (>= 4)
45
- aws-sdk-dynamodb (~> 1)
45
+ aws-sdk-dynamodb (~> 1.0)
46
46
  concurrent-ruby (>= 1.0)
47
- null-logger
48
- fasterer (0.8.2)
47
+ fasterer (0.8.3)
49
48
  colorize (~> 0.7)
50
49
  ruby_parser (>= 3.14.1)
51
- i18n (1.8.2)
50
+ i18n (1.8.5)
52
51
  concurrent-ruby (~> 1.0)
53
- iniparse (1.4.4)
54
- jaro_winkler (1.5.4)
52
+ iniparse (1.5.0)
55
53
  jmespath (1.4.0)
56
- method_source (0.9.2)
57
- minitest (5.14.0)
58
- null-logger (0.1.5)
59
- overcommit (0.52.1)
60
- childprocess (>= 0.6.3, < 4)
54
+ method_source (1.0.0)
55
+ minitest (5.14.2)
56
+ overcommit (0.57.0)
57
+ childprocess (>= 0.6.3, < 5)
61
58
  iniparse (~> 1.4)
62
- parallel (1.19.1)
63
- parser (2.7.0.2)
64
- ast (~> 2.4.0)
65
- pry (0.12.2)
66
- coderay (~> 1.1.0)
67
- method_source (~> 0.9.0)
59
+ parallel (1.20.1)
60
+ parser (2.7.2.0)
61
+ ast (~> 2.4.1)
62
+ pry (0.13.1)
63
+ coderay (~> 1.1)
64
+ method_source (~> 1.0)
68
65
  rainbow (3.0.0)
69
66
  rake (10.5.0)
67
+ regexp_parser (2.0.0)
70
68
  rexml (3.2.4)
71
- rspec (3.9.0)
72
- rspec-core (~> 3.9.0)
73
- rspec-expectations (~> 3.9.0)
74
- rspec-mocks (~> 3.9.0)
75
- rspec-core (3.9.1)
76
- rspec-support (~> 3.9.1)
77
- rspec-expectations (3.9.0)
69
+ rspec (3.10.0)
70
+ rspec-core (~> 3.10.0)
71
+ rspec-expectations (~> 3.10.0)
72
+ rspec-mocks (~> 3.10.0)
73
+ rspec-core (3.10.0)
74
+ rspec-support (~> 3.10.0)
75
+ rspec-expectations (3.10.0)
78
76
  diff-lcs (>= 1.2.0, < 2.0)
79
- rspec-support (~> 3.9.0)
80
- rspec-mocks (3.9.1)
77
+ rspec-support (~> 3.10.0)
78
+ rspec-mocks (3.10.0)
81
79
  diff-lcs (>= 1.2.0, < 2.0)
82
- rspec-support (~> 3.9.0)
83
- rspec-support (3.9.2)
84
- rubocop (0.80.0)
85
- jaro_winkler (~> 1.5.1)
80
+ rspec-support (~> 3.10.0)
81
+ rspec-support (3.10.0)
82
+ rubocop (1.6.1)
86
83
  parallel (~> 1.10)
87
- parser (>= 2.7.0.1)
84
+ parser (>= 2.7.1.5)
88
85
  rainbow (>= 2.2.2, < 4.0)
86
+ regexp_parser (>= 1.8, < 3.0)
89
87
  rexml
88
+ rubocop-ast (>= 1.2.0, < 2.0)
90
89
  ruby-progressbar (~> 1.7)
91
- unicode-display_width (>= 1.4.0, < 1.7)
90
+ unicode-display_width (>= 1.4.0, < 2.0)
91
+ rubocop-ast (1.3.0)
92
+ parser (>= 2.7.1.5)
92
93
  ruby-progressbar (1.10.1)
93
- ruby_parser (3.14.2)
94
+ ruby_parser (3.15.0)
94
95
  sexp_processor (~> 4.9)
95
- sexp_processor (4.14.0)
96
- thor (0.20.3)
97
- thread_safe (0.3.6)
98
- tzinfo (1.2.6)
99
- thread_safe (~> 0.1)
100
- unicode-display_width (1.6.1)
101
- zeitwerk (2.2.2)
96
+ sexp_processor (4.15.1)
97
+ thor (1.0.1)
98
+ tzinfo (2.0.4)
99
+ concurrent-ruby (~> 1.0)
100
+ unicode-display_width (1.7.0)
101
+ zeitwerk (2.4.2)
102
102
 
103
103
  PLATFORMS
104
104
  ruby
data/README.md CHANGED
@@ -5,8 +5,8 @@ and updating records. This is very much a work in progress and functionality is
5
5
  being added as it is needed.
6
6
 
7
7
  This gem is tested against:
8
- * MRI 2.5, 2.6, and 2.7
9
- * Dynamoid 3.4
8
+ * MRI 2.5, 2.6, 2.7, and 3.0-RC
9
+ * Dynamoid 3.4, 3.5, 3.6, and git master
10
10
 
11
11
  ## Installation
12
12
 
@@ -109,7 +109,7 @@ This operator may be used to check if:
109
109
  * A string contains another substring
110
110
  * A set of String or Integers contain a given value
111
111
 
112
- Valid on field types: `string`, or `set` of `String` / `Integer`
112
+ Valid on field types: `string`, or `set/array` of `String` / `Integer`
113
113
 
114
114
  #### Example
115
115
  `where{|r| r.foo.includes?(123) }` and `where{|r| r.foo.includes?('foo') }`
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- dynamoid-advanced-where (0.1.0)
4
+ dynamoid_advanced_where (1.2.0)
5
5
  dynamoid (>= 3.2, < 4)
6
6
 
7
7
  GEM
@@ -32,8 +32,6 @@ GEM
32
32
  aws-sigv4 (~> 1.1)
33
33
  aws-sigv4 (1.1.0)
34
34
  aws-eventstream (~> 1.0, >= 1.0.2)
35
- bundle-audit (0.1.0)
36
- bundler-audit
37
35
  bundler-audit (0.6.1)
38
36
  bundler (>= 1.2.0, < 3)
39
37
  thor (~> 0.18)
@@ -106,13 +104,16 @@ PLATFORMS
106
104
 
107
105
  DEPENDENCIES
108
106
  appraisal
109
- bundle-audit
110
107
  bundler (>= 1.16)
108
+ bundler-audit
111
109
  dynamoid (~> 3.4.0)
112
- dynamoid-advanced-where!
110
+ dynamoid_advanced_where!
113
111
  fasterer
114
112
  overcommit
115
113
  pry
116
114
  rake (~> 10.0)
117
115
  rspec (~> 3.0)
118
116
  rubocop
117
+
118
+ BUNDLED WITH
119
+ 2.1.4
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "pry"
6
+ gem "dynamoid", "~> 3.5.0"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,122 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ dynamoid_advanced_where (1.2.0)
5
+ dynamoid (>= 3.2, < 4)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activemodel (6.1.0)
11
+ activesupport (= 6.1.0)
12
+ activesupport (6.1.0)
13
+ concurrent-ruby (~> 1.0, >= 1.0.2)
14
+ i18n (>= 1.6, < 2)
15
+ minitest (>= 5.1)
16
+ tzinfo (~> 2.0)
17
+ zeitwerk (~> 2.3)
18
+ appraisal (2.3.0)
19
+ bundler
20
+ rake
21
+ thor (>= 0.14.0)
22
+ ast (2.4.1)
23
+ aws-eventstream (1.1.0)
24
+ aws-partitions (1.408.0)
25
+ aws-sdk-core (3.110.0)
26
+ aws-eventstream (~> 1, >= 1.0.2)
27
+ aws-partitions (~> 1, >= 1.239.0)
28
+ aws-sigv4 (~> 1.1)
29
+ jmespath (~> 1.0)
30
+ aws-sdk-dynamodb (1.58.0)
31
+ aws-sdk-core (~> 3, >= 3.109.0)
32
+ aws-sigv4 (~> 1.1)
33
+ aws-sigv4 (1.2.2)
34
+ aws-eventstream (~> 1, >= 1.0.2)
35
+ bundler-audit (0.7.0.1)
36
+ bundler (>= 1.2.0, < 3)
37
+ thor (>= 0.18, < 2)
38
+ childprocess (4.0.0)
39
+ coderay (1.1.3)
40
+ colorize (0.8.1)
41
+ concurrent-ruby (1.1.7)
42
+ diff-lcs (1.4.4)
43
+ dynamoid (3.5.0)
44
+ activemodel (>= 4)
45
+ aws-sdk-dynamodb (~> 1.0)
46
+ concurrent-ruby (>= 1.0)
47
+ null-logger
48
+ fasterer (0.8.3)
49
+ colorize (~> 0.7)
50
+ ruby_parser (>= 3.14.1)
51
+ i18n (1.8.5)
52
+ concurrent-ruby (~> 1.0)
53
+ iniparse (1.5.0)
54
+ jmespath (1.4.0)
55
+ method_source (1.0.0)
56
+ minitest (5.14.2)
57
+ null-logger (0.1.7)
58
+ overcommit (0.57.0)
59
+ childprocess (>= 0.6.3, < 5)
60
+ iniparse (~> 1.4)
61
+ parallel (1.20.1)
62
+ parser (2.7.2.0)
63
+ ast (~> 2.4.1)
64
+ pry (0.13.1)
65
+ coderay (~> 1.1)
66
+ method_source (~> 1.0)
67
+ rainbow (3.0.0)
68
+ rake (10.5.0)
69
+ regexp_parser (2.0.0)
70
+ rexml (3.2.4)
71
+ rspec (3.10.0)
72
+ rspec-core (~> 3.10.0)
73
+ rspec-expectations (~> 3.10.0)
74
+ rspec-mocks (~> 3.10.0)
75
+ rspec-core (3.10.0)
76
+ rspec-support (~> 3.10.0)
77
+ rspec-expectations (3.10.0)
78
+ diff-lcs (>= 1.2.0, < 2.0)
79
+ rspec-support (~> 3.10.0)
80
+ rspec-mocks (3.10.0)
81
+ diff-lcs (>= 1.2.0, < 2.0)
82
+ rspec-support (~> 3.10.0)
83
+ rspec-support (3.10.0)
84
+ rubocop (1.6.1)
85
+ parallel (~> 1.10)
86
+ parser (>= 2.7.1.5)
87
+ rainbow (>= 2.2.2, < 4.0)
88
+ regexp_parser (>= 1.8, < 3.0)
89
+ rexml
90
+ rubocop-ast (>= 1.2.0, < 2.0)
91
+ ruby-progressbar (~> 1.7)
92
+ unicode-display_width (>= 1.4.0, < 2.0)
93
+ rubocop-ast (1.3.0)
94
+ parser (>= 2.7.1.5)
95
+ ruby-progressbar (1.10.1)
96
+ ruby_parser (3.15.0)
97
+ sexp_processor (~> 4.9)
98
+ sexp_processor (4.15.1)
99
+ thor (1.0.1)
100
+ tzinfo (2.0.4)
101
+ concurrent-ruby (~> 1.0)
102
+ unicode-display_width (1.7.0)
103
+ zeitwerk (2.4.2)
104
+
105
+ PLATFORMS
106
+ ruby
107
+
108
+ DEPENDENCIES
109
+ appraisal
110
+ bundler (>= 1.16)
111
+ bundler-audit
112
+ dynamoid (~> 3.5.0)
113
+ dynamoid_advanced_where!
114
+ fasterer
115
+ overcommit
116
+ pry
117
+ rake (~> 10.0)
118
+ rspec (~> 3.0)
119
+ rubocop
120
+
121
+ BUNDLED WITH
122
+ 2.1.4
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "pry"
6
+ gem "dynamoid", "~> 3.6.0"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,120 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ dynamoid_advanced_where (1.2.0)
5
+ dynamoid (>= 3.2, < 4)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activemodel (6.1.0)
11
+ activesupport (= 6.1.0)
12
+ activesupport (6.1.0)
13
+ concurrent-ruby (~> 1.0, >= 1.0.2)
14
+ i18n (>= 1.6, < 2)
15
+ minitest (>= 5.1)
16
+ tzinfo (~> 2.0)
17
+ zeitwerk (~> 2.3)
18
+ appraisal (2.3.0)
19
+ bundler
20
+ rake
21
+ thor (>= 0.14.0)
22
+ ast (2.4.1)
23
+ aws-eventstream (1.1.0)
24
+ aws-partitions (1.408.0)
25
+ aws-sdk-core (3.110.0)
26
+ aws-eventstream (~> 1, >= 1.0.2)
27
+ aws-partitions (~> 1, >= 1.239.0)
28
+ aws-sigv4 (~> 1.1)
29
+ jmespath (~> 1.0)
30
+ aws-sdk-dynamodb (1.58.0)
31
+ aws-sdk-core (~> 3, >= 3.109.0)
32
+ aws-sigv4 (~> 1.1)
33
+ aws-sigv4 (1.2.2)
34
+ aws-eventstream (~> 1, >= 1.0.2)
35
+ bundler-audit (0.7.0.1)
36
+ bundler (>= 1.2.0, < 3)
37
+ thor (>= 0.18, < 2)
38
+ childprocess (4.0.0)
39
+ coderay (1.1.3)
40
+ colorize (0.8.1)
41
+ concurrent-ruby (1.1.7)
42
+ diff-lcs (1.4.4)
43
+ dynamoid (3.6.0)
44
+ activemodel (>= 4)
45
+ aws-sdk-dynamodb (~> 1.0)
46
+ concurrent-ruby (>= 1.0)
47
+ fasterer (0.8.3)
48
+ colorize (~> 0.7)
49
+ ruby_parser (>= 3.14.1)
50
+ i18n (1.8.5)
51
+ concurrent-ruby (~> 1.0)
52
+ iniparse (1.5.0)
53
+ jmespath (1.4.0)
54
+ method_source (1.0.0)
55
+ minitest (5.14.2)
56
+ overcommit (0.57.0)
57
+ childprocess (>= 0.6.3, < 5)
58
+ iniparse (~> 1.4)
59
+ parallel (1.20.1)
60
+ parser (2.7.2.0)
61
+ ast (~> 2.4.1)
62
+ pry (0.13.1)
63
+ coderay (~> 1.1)
64
+ method_source (~> 1.0)
65
+ rainbow (3.0.0)
66
+ rake (10.5.0)
67
+ regexp_parser (2.0.0)
68
+ rexml (3.2.4)
69
+ rspec (3.10.0)
70
+ rspec-core (~> 3.10.0)
71
+ rspec-expectations (~> 3.10.0)
72
+ rspec-mocks (~> 3.10.0)
73
+ rspec-core (3.10.0)
74
+ rspec-support (~> 3.10.0)
75
+ rspec-expectations (3.10.0)
76
+ diff-lcs (>= 1.2.0, < 2.0)
77
+ rspec-support (~> 3.10.0)
78
+ rspec-mocks (3.10.0)
79
+ diff-lcs (>= 1.2.0, < 2.0)
80
+ rspec-support (~> 3.10.0)
81
+ rspec-support (3.10.0)
82
+ rubocop (1.6.1)
83
+ parallel (~> 1.10)
84
+ parser (>= 2.7.1.5)
85
+ rainbow (>= 2.2.2, < 4.0)
86
+ regexp_parser (>= 1.8, < 3.0)
87
+ rexml
88
+ rubocop-ast (>= 1.2.0, < 2.0)
89
+ ruby-progressbar (~> 1.7)
90
+ unicode-display_width (>= 1.4.0, < 2.0)
91
+ rubocop-ast (1.3.0)
92
+ parser (>= 2.7.1.5)
93
+ ruby-progressbar (1.10.1)
94
+ ruby_parser (3.15.0)
95
+ sexp_processor (~> 4.9)
96
+ sexp_processor (4.15.1)
97
+ thor (1.0.1)
98
+ tzinfo (2.0.4)
99
+ concurrent-ruby (~> 1.0)
100
+ unicode-display_width (1.7.0)
101
+ zeitwerk (2.4.2)
102
+
103
+ PLATFORMS
104
+ ruby
105
+
106
+ DEPENDENCIES
107
+ appraisal
108
+ bundler (>= 1.16)
109
+ bundler-audit
110
+ dynamoid (~> 3.6.0)
111
+ dynamoid_advanced_where!
112
+ fasterer
113
+ overcommit
114
+ pry
115
+ rake (~> 10.0)
116
+ rspec (~> 3.0)
117
+ rubocop
118
+
119
+ BUNDLED WITH
120
+ 2.1.4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- dynamoid-advanced-where (0.1.0)
4
+ dynamoid_advanced_where (1.2.0)
5
5
  dynamoid (>= 3.2, < 4)
6
6
 
7
7
  GEM
@@ -32,8 +32,6 @@ GEM
32
32
  aws-sigv4 (~> 1.1)
33
33
  aws-sigv4 (1.1.0)
34
34
  aws-eventstream (~> 1.0, >= 1.0.2)
35
- bundle-audit (0.1.0)
36
- bundler-audit
37
35
  bundler-audit (0.6.1)
38
36
  bundler (>= 1.2.0, < 3)
39
37
  thor (~> 0.18)
@@ -106,13 +104,16 @@ PLATFORMS
106
104
 
107
105
  DEPENDENCIES
108
106
  appraisal
109
- bundle-audit
110
107
  bundler (>= 1.16)
108
+ bundler-audit
111
109
  dynamoid (~> 3.0)
112
- dynamoid-advanced-where!
110
+ dynamoid_advanced_where!
113
111
  fasterer
114
112
  overcommit
115
113
  pry
116
114
  rake (~> 10.0)
117
115
  rspec (~> 3.0)
118
116
  rubocop
117
+
118
+ BUNDLED WITH
119
+ 2.1.4
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "pry"
6
+ gem "dynamoid", git: "https://github.com/Dynamoid/dynamoid.git"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,125 @@
1
+ GIT
2
+ remote: https://github.com/Dynamoid/dynamoid.git
3
+ revision: 44ba9eddafe4eeb338a588139030ba95918ff42a
4
+ specs:
5
+ dynamoid (3.6.0)
6
+ activemodel (>= 4)
7
+ aws-sdk-dynamodb (~> 1.0)
8
+ concurrent-ruby (>= 1.0)
9
+
10
+ PATH
11
+ remote: ..
12
+ specs:
13
+ dynamoid_advanced_where (1.2.0)
14
+ dynamoid (>= 3.2, < 4)
15
+
16
+ GEM
17
+ remote: https://rubygems.org/
18
+ specs:
19
+ activemodel (6.1.0)
20
+ activesupport (= 6.1.0)
21
+ activesupport (6.1.0)
22
+ concurrent-ruby (~> 1.0, >= 1.0.2)
23
+ i18n (>= 1.6, < 2)
24
+ minitest (>= 5.1)
25
+ tzinfo (~> 2.0)
26
+ zeitwerk (~> 2.3)
27
+ appraisal (2.3.0)
28
+ bundler
29
+ rake
30
+ thor (>= 0.14.0)
31
+ ast (2.4.1)
32
+ aws-eventstream (1.1.0)
33
+ aws-partitions (1.408.0)
34
+ aws-sdk-core (3.110.0)
35
+ aws-eventstream (~> 1, >= 1.0.2)
36
+ aws-partitions (~> 1, >= 1.239.0)
37
+ aws-sigv4 (~> 1.1)
38
+ jmespath (~> 1.0)
39
+ aws-sdk-dynamodb (1.58.0)
40
+ aws-sdk-core (~> 3, >= 3.109.0)
41
+ aws-sigv4 (~> 1.1)
42
+ aws-sigv4 (1.2.2)
43
+ aws-eventstream (~> 1, >= 1.0.2)
44
+ bundler-audit (0.7.0.1)
45
+ bundler (>= 1.2.0, < 3)
46
+ thor (>= 0.18, < 2)
47
+ childprocess (4.0.0)
48
+ coderay (1.1.3)
49
+ colorize (0.8.1)
50
+ concurrent-ruby (1.1.7)
51
+ diff-lcs (1.4.4)
52
+ fasterer (0.8.3)
53
+ colorize (~> 0.7)
54
+ ruby_parser (>= 3.14.1)
55
+ i18n (1.8.5)
56
+ concurrent-ruby (~> 1.0)
57
+ iniparse (1.5.0)
58
+ jmespath (1.4.0)
59
+ method_source (1.0.0)
60
+ minitest (5.14.2)
61
+ overcommit (0.57.0)
62
+ childprocess (>= 0.6.3, < 5)
63
+ iniparse (~> 1.4)
64
+ parallel (1.20.1)
65
+ parser (2.7.2.0)
66
+ ast (~> 2.4.1)
67
+ pry (0.13.1)
68
+ coderay (~> 1.1)
69
+ method_source (~> 1.0)
70
+ rainbow (3.0.0)
71
+ rake (10.5.0)
72
+ regexp_parser (2.0.0)
73
+ rexml (3.2.4)
74
+ rspec (3.10.0)
75
+ rspec-core (~> 3.10.0)
76
+ rspec-expectations (~> 3.10.0)
77
+ rspec-mocks (~> 3.10.0)
78
+ rspec-core (3.10.0)
79
+ rspec-support (~> 3.10.0)
80
+ rspec-expectations (3.10.0)
81
+ diff-lcs (>= 1.2.0, < 2.0)
82
+ rspec-support (~> 3.10.0)
83
+ rspec-mocks (3.10.0)
84
+ diff-lcs (>= 1.2.0, < 2.0)
85
+ rspec-support (~> 3.10.0)
86
+ rspec-support (3.10.0)
87
+ rubocop (1.6.1)
88
+ parallel (~> 1.10)
89
+ parser (>= 2.7.1.5)
90
+ rainbow (>= 2.2.2, < 4.0)
91
+ regexp_parser (>= 1.8, < 3.0)
92
+ rexml
93
+ rubocop-ast (>= 1.2.0, < 2.0)
94
+ ruby-progressbar (~> 1.7)
95
+ unicode-display_width (>= 1.4.0, < 2.0)
96
+ rubocop-ast (1.3.0)
97
+ parser (>= 2.7.1.5)
98
+ ruby-progressbar (1.10.1)
99
+ ruby_parser (3.15.0)
100
+ sexp_processor (~> 4.9)
101
+ sexp_processor (4.15.1)
102
+ thor (1.0.1)
103
+ tzinfo (2.0.4)
104
+ concurrent-ruby (~> 1.0)
105
+ unicode-display_width (1.7.0)
106
+ zeitwerk (2.4.2)
107
+
108
+ PLATFORMS
109
+ ruby
110
+
111
+ DEPENDENCIES
112
+ appraisal
113
+ bundler (>= 1.16)
114
+ bundler-audit
115
+ dynamoid!
116
+ dynamoid_advanced_where!
117
+ fasterer
118
+ overcommit
119
+ pry
120
+ rake (~> 10.0)
121
+ rspec (~> 3.0)
122
+ rubocop
123
+
124
+ BUNDLED WITH
125
+ 2.1.4
@@ -130,7 +130,31 @@ module DynamoidAdvancedWhere
130
130
 
131
131
  def parse_right_hand_side(val)
132
132
  unless val.is_a?(Integer)
133
- raise ArgumentError, "unable to compare date to type #{val.class}"
133
+ raise ArgumentError, "unable to compare integer value to type #{val.class}"
134
+ end
135
+
136
+ val
137
+ end
138
+ end
139
+
140
+ class StringArrayAttributeNode < FieldNode
141
+ include Concerns::SupportsIncludes
142
+
143
+ def parse_right_hand_side(val)
144
+ unless val.is_a?(String)
145
+ raise ArgumentError, "unable to compare string to type #{val.class}"
146
+ end
147
+
148
+ val
149
+ end
150
+ end
151
+
152
+ class IntegerArrayAttributeNode < FieldNode
153
+ include Concerns::SupportsIncludes
154
+
155
+ def parse_right_hand_side(val)
156
+ unless val.is_a?(Integer)
157
+ raise ArgumentError, "unable to compare integer to type #{val.class}"
134
158
  end
135
159
 
136
160
  val
@@ -158,6 +182,7 @@ module DynamoidAdvancedWhere
158
182
  NativeBooleanAttributeNode,
159
183
  { type: :boolean, store_as_native_boolean: false } =>
160
184
  StringBooleanAttributeNode,
185
+ { type: :boolean } => NativeBooleanAttributeNode,
161
186
 
162
187
  # Datetime fields
163
188
  { type: :datetime, store_as_string: true } => nil,
@@ -173,6 +198,10 @@ module DynamoidAdvancedWhere
173
198
  { type: :set, of: :string } => StringSetAttributeNode,
174
199
  { type: :set, of: :integer } => IntegerSetAttributeNode,
175
200
 
201
+ # Array Types
202
+ { type: :array, of: :string } => StringArrayAttributeNode,
203
+ { type: :array, of: :integer } => IntegerArrayAttributeNode,
204
+
176
205
  # Map Types
177
206
  { type: :map } => MapAttributeNode,
178
207
 
@@ -1,3 +1,3 @@
1
1
  module DynamoidAdvancedWhere
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynamoid_advanced_where
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Malinconico
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-02 00:00:00.000000000 Z
11
+ date: 2020-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dynamoid
@@ -166,8 +166,14 @@ files:
166
166
  - gemfiles/.bundle/config
167
167
  - gemfiles/dynamoid_3.4.gemfile
168
168
  - gemfiles/dynamoid_3.4.gemfile.lock
169
+ - gemfiles/dynamoid_3.5.gemfile
170
+ - gemfiles/dynamoid_3.5.gemfile.lock
171
+ - gemfiles/dynamoid_3.6.gemfile
172
+ - gemfiles/dynamoid_3.6.gemfile.lock
169
173
  - gemfiles/dynamoid_latest.gemfile
170
174
  - gemfiles/dynamoid_latest.gemfile.lock
175
+ - gemfiles/dynamoid_master.gemfile
176
+ - gemfiles/dynamoid_master.gemfile.lock
171
177
  - lib/dynamoid_advanced_where.rb
172
178
  - lib/dynamoid_advanced_where/batched_updater.rb
173
179
  - lib/dynamoid_advanced_where/filter_builder.rb
@@ -209,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
215
  - !ruby/object:Gem::Version
210
216
  version: '0'
211
217
  requirements: []
212
- rubygems_version: 3.0.3
218
+ rubygems_version: 3.1.2
213
219
  signing_key:
214
220
  specification_version: 4
215
221
  summary: things