dynamo-store 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yaml +42 -0
- data/Changelog.md +9 -1
- data/Gemfile.lock +72 -67
- data/README.md +2 -3
- data/dynamo-store.gemspec +4 -2
- data/lib/active_support/cache/dynamo_store.rb +1 -1
- data/lib/dynamo-store/version.rb +1 -1
- metadata +37 -9
- data/.circleci/config.yml +0 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a41c0e38990bb420a8d0ba5b2c05683af84077287fbf0bf77d45dfddbffe29e
|
4
|
+
data.tar.gz: efc6d8055b7638e9074e49a841a7fe0169462c341667e31724bbb9798c618d78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca50fce5a9fb97baebfac4c7fa3e97ee4a7390d43baffaf11ff76c33d82a46c3fd190ad799f10cf0bc2dfb43d70a08626538b28ec70d4cdc2051f141fa4bc4a0
|
7
|
+
data.tar.gz: 79df7cc56c5d13fbe7e59fb3463ba2e8d1f7cd757d1c07175e4ffa931fb2c1b0c89de05c4285f85a139f588c1c290c53727ba05962b1f273ce1a756072773001
|
@@ -0,0 +1,42 @@
|
|
1
|
+
name: Test
|
2
|
+
|
3
|
+
on: push
|
4
|
+
|
5
|
+
env:
|
6
|
+
ImageOS: ubuntu18
|
7
|
+
NOKOGIRI_USE_SYSTEM_LIBRARIES: true
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
run-tests:
|
11
|
+
name: Test code
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
strategy:
|
14
|
+
fail-fast: false
|
15
|
+
matrix:
|
16
|
+
ruby:
|
17
|
+
- 3.0.2
|
18
|
+
- 2.7.4
|
19
|
+
services:
|
20
|
+
dynamodb:
|
21
|
+
image: amazon/dynamodb-local
|
22
|
+
ports:
|
23
|
+
- 8000/tcp
|
24
|
+
steps:
|
25
|
+
- uses: actions/checkout@v2
|
26
|
+
- uses: ruby/setup-ruby@v1
|
27
|
+
with:
|
28
|
+
ruby-version: ${{ matrix.ruby }}
|
29
|
+
bundler-cache: true
|
30
|
+
cache-version: ${{ matrix.ruby }}-0
|
31
|
+
- name: Run RSpec
|
32
|
+
env:
|
33
|
+
AWS_ACCESS_KEY_ID: asdf
|
34
|
+
AWS_SECRET_ACCESS_KEY: asdf
|
35
|
+
CI: true
|
36
|
+
DYNAMODB_HOST: http://localhost:${{job.services.dynamodb.ports[8000]}}/
|
37
|
+
run: bundle exec rspec
|
38
|
+
- name: Coveralls
|
39
|
+
uses: coverallsapp/github-action@v1.1.2
|
40
|
+
continue-on-error: true
|
41
|
+
with:
|
42
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
data/Changelog.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,104 +1,108 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
dynamo-store (1.0.
|
4
|
+
dynamo-store (1.0.1)
|
5
5
|
activesupport (> 5.0)
|
6
6
|
aws-sdk-dynamodb (> 1.0)
|
7
|
+
rexml
|
7
8
|
|
8
9
|
GEM
|
9
10
|
remote: https://rubygems.org/
|
10
11
|
specs:
|
11
|
-
activesupport (6.
|
12
|
+
activesupport (6.1.4.1)
|
12
13
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
13
|
-
i18n (>=
|
14
|
-
minitest (
|
15
|
-
tzinfo (~>
|
16
|
-
zeitwerk (~> 2.
|
17
|
-
appraisal (2.
|
14
|
+
i18n (>= 1.6, < 2)
|
15
|
+
minitest (>= 5.1)
|
16
|
+
tzinfo (~> 2.0)
|
17
|
+
zeitwerk (~> 2.3)
|
18
|
+
appraisal (2.4.1)
|
18
19
|
bundler
|
19
20
|
rake
|
20
21
|
thor (>= 0.14.0)
|
21
|
-
ast (2.4.
|
22
|
-
aws-eventstream (1.0
|
23
|
-
aws-partitions (1.
|
24
|
-
aws-sdk-core (3.
|
25
|
-
aws-eventstream (~> 1
|
26
|
-
aws-partitions (~> 1, >= 1.
|
22
|
+
ast (2.4.2)
|
23
|
+
aws-eventstream (1.2.0)
|
24
|
+
aws-partitions (1.531.0)
|
25
|
+
aws-sdk-core (3.122.1)
|
26
|
+
aws-eventstream (~> 1, >= 1.0.2)
|
27
|
+
aws-partitions (~> 1, >= 1.525.0)
|
27
28
|
aws-sigv4 (~> 1.1)
|
28
29
|
jmespath (~> 1.0)
|
29
|
-
aws-sdk-dynamodb (1.
|
30
|
-
aws-sdk-core (~> 3, >= 3.
|
30
|
+
aws-sdk-dynamodb (1.66.0)
|
31
|
+
aws-sdk-core (~> 3, >= 3.122.0)
|
31
32
|
aws-sigv4 (~> 1.1)
|
32
|
-
aws-sigv4 (1.
|
33
|
-
aws-eventstream (~> 1
|
34
|
-
backports (3.
|
35
|
-
binding_of_caller (0.
|
33
|
+
aws-sigv4 (1.4.0)
|
34
|
+
aws-eventstream (~> 1, >= 1.0.2)
|
35
|
+
backports (3.21.0)
|
36
|
+
binding_of_caller (1.0.0)
|
36
37
|
debug_inspector (>= 0.0.1)
|
37
|
-
coderay (1.1.
|
38
|
-
concurrent-ruby (1.1.
|
39
|
-
debug_inspector (
|
40
|
-
deep-cover (
|
41
|
-
deep-cover-core (=
|
38
|
+
coderay (1.1.3)
|
39
|
+
concurrent-ruby (1.1.9)
|
40
|
+
debug_inspector (1.1.0)
|
41
|
+
deep-cover (1.1.0)
|
42
|
+
deep-cover-core (= 1.1.0)
|
42
43
|
highline
|
43
44
|
thor (>= 0.20.3)
|
44
45
|
with_progress
|
45
|
-
deep-cover-core (
|
46
|
+
deep-cover-core (1.1.0)
|
46
47
|
backports (>= 3.11.0)
|
47
48
|
binding_of_caller
|
48
|
-
parser (
|
49
|
+
parser (>= 2.5)
|
49
50
|
pry
|
50
51
|
term-ansicolor
|
51
52
|
terminal-table
|
52
|
-
diff-lcs (1.
|
53
|
-
docile (1.
|
54
|
-
highline (2.0.
|
55
|
-
i18n (1.8.
|
53
|
+
diff-lcs (1.4.4)
|
54
|
+
docile (1.4.0)
|
55
|
+
highline (2.0.3)
|
56
|
+
i18n (1.8.11)
|
56
57
|
concurrent-ruby (~> 1.0)
|
57
58
|
jmespath (1.4.0)
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
rspec (3.
|
68
|
-
rspec-core (~> 3.
|
69
|
-
rspec-expectations (~> 3.
|
70
|
-
rspec-mocks (~> 3.
|
71
|
-
rspec-core (3.
|
72
|
-
rspec-support (~> 3.
|
73
|
-
rspec-expectations (3.
|
59
|
+
method_source (1.0.0)
|
60
|
+
minitest (5.14.4)
|
61
|
+
parser (3.0.2.0)
|
62
|
+
ast (~> 2.4.1)
|
63
|
+
pry (0.14.1)
|
64
|
+
coderay (~> 1.1)
|
65
|
+
method_source (~> 1.0)
|
66
|
+
rake (13.0.6)
|
67
|
+
rexml (3.2.5)
|
68
|
+
rspec (3.10.0)
|
69
|
+
rspec-core (~> 3.10.0)
|
70
|
+
rspec-expectations (~> 3.10.0)
|
71
|
+
rspec-mocks (~> 3.10.0)
|
72
|
+
rspec-core (3.10.1)
|
73
|
+
rspec-support (~> 3.10.0)
|
74
|
+
rspec-expectations (3.10.1)
|
74
75
|
diff-lcs (>= 1.2.0, < 2.0)
|
75
|
-
rspec-support (~> 3.
|
76
|
-
rspec-mocks (3.
|
76
|
+
rspec-support (~> 3.10.0)
|
77
|
+
rspec-mocks (3.10.2)
|
77
78
|
diff-lcs (>= 1.2.0, < 2.0)
|
78
|
-
rspec-support (~> 3.
|
79
|
-
rspec-support (3.
|
79
|
+
rspec-support (~> 3.10.0)
|
80
|
+
rspec-support (3.10.3)
|
80
81
|
rspec_junit_formatter (0.4.1)
|
81
82
|
rspec-core (>= 2, < 4, != 2.12.0)
|
82
|
-
ruby-progressbar (1.
|
83
|
-
simplecov (0.
|
83
|
+
ruby-progressbar (1.11.0)
|
84
|
+
simplecov (0.21.2)
|
84
85
|
docile (~> 1.1)
|
85
|
-
|
86
|
-
|
87
|
-
simplecov-html (0.
|
86
|
+
simplecov-html (~> 0.11)
|
87
|
+
simplecov_json_formatter (~> 0.1)
|
88
|
+
simplecov-html (0.12.3)
|
89
|
+
simplecov-lcov (0.8.0)
|
90
|
+
simplecov_json_formatter (0.1.3)
|
91
|
+
sync (0.5.0)
|
88
92
|
term-ansicolor (1.7.1)
|
89
93
|
tins (~> 1.0)
|
90
|
-
terminal-table (
|
91
|
-
unicode-display_width (
|
92
|
-
thor (1.0
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
tzinfo (
|
97
|
-
|
98
|
-
unicode-display_width (1.
|
94
|
+
terminal-table (3.0.2)
|
95
|
+
unicode-display_width (>= 1.1.1, < 3)
|
96
|
+
thor (1.1.0)
|
97
|
+
timecop (0.9.4)
|
98
|
+
tins (1.29.1)
|
99
|
+
sync
|
100
|
+
tzinfo (2.0.4)
|
101
|
+
concurrent-ruby (~> 1.0)
|
102
|
+
unicode-display_width (2.1.0)
|
99
103
|
with_progress (1.0.1)
|
100
104
|
ruby-progressbar (~> 1.4)
|
101
|
-
zeitwerk (2.
|
105
|
+
zeitwerk (2.5.1)
|
102
106
|
|
103
107
|
PLATFORMS
|
104
108
|
ruby
|
@@ -109,11 +113,12 @@ DEPENDENCIES
|
|
109
113
|
appraisal
|
110
114
|
deep-cover
|
111
115
|
dynamo-store!
|
112
|
-
rake (~>
|
116
|
+
rake (~> 13.0)
|
113
117
|
rspec (~> 3.0)
|
114
118
|
rspec_junit_formatter
|
115
119
|
simplecov
|
120
|
+
simplecov-lcov (~> 0.8.0)
|
116
121
|
timecop
|
117
122
|
|
118
123
|
BUNDLED WITH
|
119
|
-
2.
|
124
|
+
2.2.27
|
data/README.md
CHANGED
@@ -27,7 +27,7 @@ serverless key-value store offering millisecond recall and write time.
|
|
27
27
|
|
28
28
|
DynamoStore leverages to the DynamoDB TTL column to automatically remove items
|
29
29
|
as they reach expiration time, this feature should be enabled, as this adapter
|
30
|
-
|
30
|
+
does not implement any manual cleanup steps.
|
31
31
|
|
32
32
|
### Configuration
|
33
33
|
All configuration options are passed during construction of the store. You may
|
@@ -56,6 +56,5 @@ config.cache_store = :dynamo_store, {table_name: 'AppCache'}
|
|
56
56
|
```ruby
|
57
57
|
require 'dynamo-store'
|
58
58
|
|
59
|
-
cache = ActiveSupport::Cache::
|
59
|
+
cache = ActiveSupport::Cache::DynamoStore.new(table_name: 'AppCache')
|
60
60
|
```
|
61
|
-
|
data/dynamo-store.gemspec
CHANGED
@@ -40,12 +40,14 @@ Gem::Specification.new do |spec|
|
|
40
40
|
|
41
41
|
spec.add_dependency 'activesupport', '> 5.0'
|
42
42
|
spec.add_dependency 'aws-sdk-dynamodb', '> 1.0'
|
43
|
+
spec.add_dependency 'rexml'
|
43
44
|
|
44
45
|
spec.add_development_dependency 'appraisal'
|
45
46
|
spec.add_development_dependency 'deep-cover'
|
46
|
-
spec.add_development_dependency 'rake', '~>
|
47
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
47
48
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
49
|
+
spec.add_development_dependency 'rspec_junit_formatter'
|
48
50
|
spec.add_development_dependency 'simplecov'
|
51
|
+
spec.add_development_dependency 'simplecov-lcov', '~> 0.8.0'
|
49
52
|
spec.add_development_dependency 'timecop'
|
50
|
-
spec.add_development_dependency 'rspec_junit_formatter'
|
51
53
|
end
|
data/lib/dynamo-store/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynamo-store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Harkness
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-02-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -39,6 +39,20 @@ dependencies:
|
|
39
39
|
- - ">"
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '1.0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: rexml
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
type: :runtime
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
42
56
|
- !ruby/object:Gem::Dependency
|
43
57
|
name: appraisal
|
44
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,14 +87,14 @@ dependencies:
|
|
73
87
|
requirements:
|
74
88
|
- - "~>"
|
75
89
|
- !ruby/object:Gem::Version
|
76
|
-
version: '
|
90
|
+
version: '13.0'
|
77
91
|
type: :development
|
78
92
|
prerelease: false
|
79
93
|
version_requirements: !ruby/object:Gem::Requirement
|
80
94
|
requirements:
|
81
95
|
- - "~>"
|
82
96
|
- !ruby/object:Gem::Version
|
83
|
-
version: '
|
97
|
+
version: '13.0'
|
84
98
|
- !ruby/object:Gem::Dependency
|
85
99
|
name: rspec
|
86
100
|
requirement: !ruby/object:Gem::Requirement
|
@@ -96,7 +110,7 @@ dependencies:
|
|
96
110
|
- !ruby/object:Gem::Version
|
97
111
|
version: '3.0'
|
98
112
|
- !ruby/object:Gem::Dependency
|
99
|
-
name:
|
113
|
+
name: rspec_junit_formatter
|
100
114
|
requirement: !ruby/object:Gem::Requirement
|
101
115
|
requirements:
|
102
116
|
- - ">="
|
@@ -110,7 +124,7 @@ dependencies:
|
|
110
124
|
- !ruby/object:Gem::Version
|
111
125
|
version: '0'
|
112
126
|
- !ruby/object:Gem::Dependency
|
113
|
-
name:
|
127
|
+
name: simplecov
|
114
128
|
requirement: !ruby/object:Gem::Requirement
|
115
129
|
requirements:
|
116
130
|
- - ">="
|
@@ -124,7 +138,21 @@ dependencies:
|
|
124
138
|
- !ruby/object:Gem::Version
|
125
139
|
version: '0'
|
126
140
|
- !ruby/object:Gem::Dependency
|
127
|
-
name:
|
141
|
+
name: simplecov-lcov
|
142
|
+
requirement: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - "~>"
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: 0.8.0
|
147
|
+
type: :development
|
148
|
+
prerelease: false
|
149
|
+
version_requirements: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - "~>"
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: 0.8.0
|
154
|
+
- !ruby/object:Gem::Dependency
|
155
|
+
name: timecop
|
128
156
|
requirement: !ruby/object:Gem::Requirement
|
129
157
|
requirements:
|
130
158
|
- - ">="
|
@@ -145,7 +173,7 @@ executables: []
|
|
145
173
|
extensions: []
|
146
174
|
extra_rdoc_files: []
|
147
175
|
files:
|
148
|
-
- ".
|
176
|
+
- ".github/workflows/test.yaml"
|
149
177
|
- ".gitignore"
|
150
178
|
- ".rspec"
|
151
179
|
- Appraisals
|
@@ -190,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
190
218
|
- !ruby/object:Gem::Version
|
191
219
|
version: '0'
|
192
220
|
requirements: []
|
193
|
-
rubygems_version: 3.
|
221
|
+
rubygems_version: 3.1.6
|
194
222
|
signing_key:
|
195
223
|
specification_version: 4
|
196
224
|
summary: ActiveSupport Cache Store for DynamoDb
|
data/.circleci/config.yml
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
# Ruby CircleCI 2.0 configuration file
|
2
|
-
#
|
3
|
-
# Check https://circleci.com/docs/2.0/language-ruby/ for more details
|
4
|
-
#
|
5
|
-
version: 2
|
6
|
-
|
7
|
-
workflows:
|
8
|
-
version: 2
|
9
|
-
commit:
|
10
|
-
jobs:
|
11
|
-
- ruby-2.6
|
12
|
-
jobs:
|
13
|
-
"ruby-2.6":
|
14
|
-
docker:
|
15
|
-
# specify the version you desire here
|
16
|
-
- image: ruby:2.6
|
17
|
-
- image: amazon/dynamodb-local
|
18
|
-
|
19
|
-
steps:
|
20
|
-
- checkout
|
21
|
-
- run:
|
22
|
-
name: install dependencies
|
23
|
-
command: |
|
24
|
-
gem install bundler:2.1.4
|
25
|
-
bundle install --jobs=4
|
26
|
-
bundle exec appraisal install
|
27
|
-
- run:
|
28
|
-
name: run tests
|
29
|
-
command: bundle exec appraisal rspec
|
30
|
-
- store_test_results:
|
31
|
-
path: /tmp/test-results
|
32
|
-
- store_artifacts:
|
33
|
-
path: /tmp/test-results
|
34
|
-
destination: test-results
|