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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1730120838a993e1eef564c0c0ea44f896e9eba3
4
- data.tar.gz: 28f3292200d9987566a04df4a0a28682de767c6d
3
+ metadata.gz: e1f3e8466722dea0874b9a4005820b3563d0e7ae
4
+ data.tar.gz: 4f88d94dae0ac74d474ac01a508592c36271ffe4
5
5
  SHA512:
6
- metadata.gz: a87f25a90d5b1517deaca534bb57270ded5e551c8885a04d8a94d2d9d78ceae2adbb343cae8ab75e7aee6daa187a65ef5d008afb85be753a3e65c7d48d6b751b
7
- data.tar.gz: ae446a6fe5c1d99e75575d45a0c10f4e84a761c74fa0c19c7e12357153dc7c91e7e887590f616420a8a606b499a56bd6a9c6c57433b8c37b98845620eec6fd8d
6
+ metadata.gz: 50d33a1a4049bee21e235ee338adf62ec6fe1a0bdeb5db1f3524b9716df75ce30b0550d4e94ca66fbe4a33a61b01e327a4f7b84b50ab24c1851893eb8b9f0e3f
7
+ data.tar.gz: 1d660b1af38eb3aa9f1955eecbf0afce29d53aed79b22d149cfaf32dabbb50fe9275286222b3646909c24d9b2c0b805e128410f75b0feeeac9e039f8bdbc1884
data/.rubocop.yml CHANGED
@@ -7,7 +7,7 @@ AllCops:
7
7
  - "vendor/**/*"
8
8
  - "db/schema.rb"
9
9
  - "bin/**/*"
10
- - "finapps.gemspec"
10
+ - "mongo_db_store.gemspec"
11
11
  UseCache: false
12
12
 
13
13
  # No space makes the method definition shorter and differentiates
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: gem install bundler -v 1.14.6
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MongoDbStore
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.4'
5
5
  end
@@ -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.3
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