dynamoid_advanced_where 1.3.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/lint.yml +21 -0
  3. data/.github/workflows/test.yml +39 -0
  4. data/.rubocop-https---raw-githubusercontent-com-GetTerminus-ruby-shared-configs-master--rubocop-3-1-yml +5 -0
  5. data/.rubocop-https---raw-githubusercontent-com-GetTerminus-ruby-shared-configs-master--rubocop-yml +91 -0
  6. data/.rubocop.yml +6 -0
  7. data/.rubocop_todo.yml +42 -0
  8. data/.ruby-version +1 -1
  9. data/Appraisals +5 -4
  10. data/Gemfile +4 -3
  11. data/Gemfile.lock +70 -58
  12. data/README.md +27 -0
  13. data/Rakefile +5 -3
  14. data/dynamoid_advanced_where.gemspec +5 -2
  15. data/gemfiles/dynamoid_3.4.gemfile +6 -4
  16. data/gemfiles/dynamoid_3.5.gemfile +6 -4
  17. data/gemfiles/dynamoid_3.6.gemfile +6 -4
  18. data/gemfiles/dynamoid_latest.gemfile +6 -4
  19. data/gemfiles/dynamoid_master.gemfile +6 -4
  20. data/lib/dynamoid_advanced_where/batched_updater.rb +33 -20
  21. data/lib/dynamoid_advanced_where/filter_builder.rb +7 -7
  22. data/lib/dynamoid_advanced_where/integrations/model.rb +1 -1
  23. data/lib/dynamoid_advanced_where/nodes/and_node.rb +0 -1
  24. data/lib/dynamoid_advanced_where/nodes/array_literal_node.rb +34 -0
  25. data/lib/dynamoid_advanced_where/nodes/base_node.rb +2 -1
  26. data/lib/dynamoid_advanced_where/nodes/exists_node.rb +2 -1
  27. data/lib/dynamoid_advanced_where/nodes/field_node.rb +16 -25
  28. data/lib/dynamoid_advanced_where/nodes/greater_than_node.rb +2 -0
  29. data/lib/dynamoid_advanced_where/nodes/in_node.rb +30 -0
  30. data/lib/dynamoid_advanced_where/nodes/includes.rb +2 -0
  31. data/lib/dynamoid_advanced_where/nodes/literal_node.rb +1 -0
  32. data/lib/dynamoid_advanced_where/nodes/not.rb +0 -1
  33. data/lib/dynamoid_advanced_where/nodes/or_node.rb +2 -0
  34. data/lib/dynamoid_advanced_where/nodes/root_node.rb +1 -1
  35. data/lib/dynamoid_advanced_where/nodes.rb +3 -0
  36. data/lib/dynamoid_advanced_where/query_builder.rb +3 -1
  37. data/lib/dynamoid_advanced_where/query_materializer.rb +2 -2
  38. data/lib/dynamoid_advanced_where/version.rb +3 -1
  39. data/lib/dynamoid_advanced_where.rb +5 -3
  40. metadata +30 -10
  41. data/.circleci/config.yml +0 -129
data/.circleci/config.yml DELETED
@@ -1,129 +0,0 @@
1
- version: 2.0
2
-
3
- workflows:
4
- version: 2
5
- build:
6
- jobs:
7
- - "ruby-2.5"
8
- - "ruby-2.6"
9
- - "ruby-2.7"
10
- - "ruby-3.0"
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
-
41
- "ruby-2.5":
42
- docker:
43
- - image: ruby:2.5
44
- - image: amazon/dynamodb-local
45
- environment:
46
- MAX_HEAP_SIZE: 1024m
47
- HEAP_NEWSIZE: 512m
48
-
49
- steps:
50
- - checkout
51
- - restore_cache:
52
- keys:
53
- - v1-dependencies-{{ checksum "Gemfile.lock" }}-{{ checksum "Appraisals" }}
54
- # fallback to using the latest cache if no exact match is found
55
- - v1-dependencies-
56
-
57
- - run:
58
- name: install dependencies
59
- command: |
60
- gem update bundler
61
- bundle install
62
- bundle exec appraisal install
63
- - save_cache:
64
- paths:
65
- - ./vendor/bundle
66
- key: v1-dependencies-{{ checksum "Gemfile.lock" }}-{{ checksum "Appraisals" }}
67
- - run: bundle exec appraisal rspec --format progress
68
-
69
- "ruby-2.6":
70
- docker:
71
- - image: ruby:2.6
72
- - image: amazon/dynamodb-local
73
- environment:
74
- MAX_HEAP_SIZE: 1024m
75
- HEAP_NEWSIZE: 512m
76
-
77
- steps:
78
- - checkout
79
- - restore_cache:
80
- keys:
81
- - v1-dependencies-{{ checksum "Gemfile.lock" }}-{{ checksum "Appraisals" }}
82
- # fallback to using the latest cache if no exact match is found
83
- - v1-dependencies-
84
-
85
- - run:
86
- name: install dependencies
87
- command: |
88
- gem update bundler
89
- bundle install
90
- bundle exec appraisal install
91
- - save_cache:
92
- paths:
93
- - ./vendor/bundle
94
- key: v1-dependencies-{{ checksum "Gemfile.lock" }}-{{ checksum "Appraisals" }}
95
- - run: bundle exec appraisal rspec --format progress
96
-
97
- "ruby-2.7":
98
- docker:
99
- - image: ruby:2.7
100
- - image: amazon/dynamodb-local
101
- environment:
102
- MAX_HEAP_SIZE: 1024m
103
- HEAP_NEWSIZE: 512m
104
-
105
- steps:
106
- - checkout
107
- - restore_cache:
108
- keys:
109
- - v1-dependencies-{{ checksum "Gemfile.lock" }}-{{ checksum "Appraisals" }}
110
- # fallback to using the latest cache if no exact match is found
111
- - v1-dependencies-
112
-
113
- - run:
114
- name: install dependencies
115
- command: |
116
- gem update bundler
117
- bundle install
118
- bundle exec appraisal install
119
- - save_cache:
120
- paths:
121
- - ./vendor/bundle
122
- key: v1-dependencies-{{ checksum "Gemfile.lock" }}-{{ checksum "Appraisals" }}
123
- - run: bundle exec appraisal rspec --format progress
124
-
125
-
126
-
127
-
128
-
129
-