mongo_db_store 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 +4 -4
- data/.rubocop.yml +1 -1
- data/.travis.yml +13 -1
- data/README.md +3 -1
- data/lib/active_support/cache/mongo_db_store.rb +2 -2
- data/lib/mongo_db_store/version.rb +1 -1
- data/mongo_db_store.gemspec +3 -0
- metadata +61 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1f3e8466722dea0874b9a4005820b3563d0e7ae
|
4
|
+
data.tar.gz: 4f88d94dae0ac74d474ac01a508592c36271ffe4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50d33a1a4049bee21e235ee338adf62ec6fe1a0bdeb5db1f3524b9716df75ce30b0550d4e94ca66fbe4a33a61b01e327a4f7b84b50ab24c1851893eb8b9f0e3f
|
7
|
+
data.tar.gz: 1d660b1af38eb3aa9f1955eecbf0afce29d53aed79b22d149cfaf32dabbb50fe9275286222b3646909c24d9b2c0b805e128410f75b0feeeac9e039f8bdbc1884
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
@@ -2,4 +2,16 @@ sudo: false
|
|
2
2
|
language: ruby
|
3
3
|
rvm:
|
4
4
|
- 2.4.1
|
5
|
-
before_install:
|
5
|
+
before_install:
|
6
|
+
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
|
7
|
+
- gem update --system
|
8
|
+
- gem install bundler -v 1.14.6
|
9
|
+
script:
|
10
|
+
- bundle exec rspec
|
11
|
+
notifications:
|
12
|
+
email: false
|
13
|
+
addons:
|
14
|
+
code_climate:
|
15
|
+
repo_token: 2f734d5c1a287119c53e838b48209990edb58544a3854874be0032f0465397e6
|
16
|
+
after_success:
|
17
|
+
- bundle exec codeclimate-test-reporter
|
data/README.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
# MongoDbStore
|
2
|
-
---------------
|
3
2
|
|
4
3
|
[![Gem Version](https://badge.fury.io/rb/mongo_db_store.svg)](https://badge.fury.io/rb/mongo_db_store)
|
4
|
+
[![Build Status](https://travis-ci.org/qbantek/mongo_db_store.svg?branch=master)](https://travis-ci.org/qbantek/mongo_db_store)
|
5
|
+
[![Code Climate](https://codeclimate.com/github/qbantek/mongo_db_store/badges/gpa.svg)](https://codeclimate.com/github/qbantek/mongo_db_store)
|
6
|
+
[![Test Coverage](https://codeclimate.com/github/qbantek/mongo_db_store/badges/coverage.svg)](https://codeclimate.com/github/qbantek/mongo_db_store/coverage)
|
5
7
|
[![Dependency Status](https://gemnasium.com/badges/github.com/qbantek/mongo_db_store.svg)](https://gemnasium.com/github.com/qbantek/mongo_db_store)
|
6
8
|
[![License](http://img.shields.io/:license-mit-blue.svg?style=flat-square)](http://mongo_db_store.mit-license.org)
|
7
9
|
|
@@ -20,7 +20,7 @@ module ActiveSupport
|
|
20
20
|
collection.find.delete_many
|
21
21
|
end
|
22
22
|
|
23
|
-
def cleanup
|
23
|
+
def cleanup(_)
|
24
24
|
collection.find(expires_at: {'$lt' => Time.now.utc.to_i}).delete_many
|
25
25
|
end
|
26
26
|
|
@@ -31,7 +31,7 @@ module ActiveSupport
|
|
31
31
|
collection.find(_id: key_matcher(matcher, options)).delete_many
|
32
32
|
end
|
33
33
|
|
34
|
-
def delete_entry(key)
|
34
|
+
def delete_entry(key, _)
|
35
35
|
collection.find(_id: key).delete_one
|
36
36
|
end
|
37
37
|
|
data/mongo_db_store.gemspec
CHANGED
@@ -28,4 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_development_dependency 'bundler', '~> 1.14', '>= 1.14.6'
|
29
29
|
spec.add_development_dependency 'rake', '~> 12.0'
|
30
30
|
spec.add_development_dependency 'rspec', '~> 3.6'
|
31
|
+
spec.add_development_dependency 'simplecov', '~> 0.11', '>= 0.11.2'
|
32
|
+
spec.add_development_dependency 'codeclimate-test-reporter', '~> 1.0', '>= 1.0.5'
|
33
|
+
spec.add_development_dependency 'rubocop', '~> 0.48', '>= 0.48.1'
|
31
34
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongo_db_store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erich Quintero
|
@@ -86,6 +86,66 @@ dependencies:
|
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '3.6'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: simplecov
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0.11'
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: 0.11.2
|
99
|
+
type: :development
|
100
|
+
prerelease: false
|
101
|
+
version_requirements: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - "~>"
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '0.11'
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: 0.11.2
|
109
|
+
- !ruby/object:Gem::Dependency
|
110
|
+
name: codeclimate-test-reporter
|
111
|
+
requirement: !ruby/object:Gem::Requirement
|
112
|
+
requirements:
|
113
|
+
- - "~>"
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: '1.0'
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: 1.0.5
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - "~>"
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '1.0'
|
126
|
+
- - ">="
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: 1.0.5
|
129
|
+
- !ruby/object:Gem::Dependency
|
130
|
+
name: rubocop
|
131
|
+
requirement: !ruby/object:Gem::Requirement
|
132
|
+
requirements:
|
133
|
+
- - "~>"
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '0.48'
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.48.1
|
139
|
+
type: :development
|
140
|
+
prerelease: false
|
141
|
+
version_requirements: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0.48'
|
146
|
+
- - ">="
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: 0.48.1
|
89
149
|
description:
|
90
150
|
email:
|
91
151
|
- qbantek@gmail.com
|