resque-unique_at_runtime 2.0.3 → 2.0.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
- SHA1:
3
- metadata.gz: 220f16a02747d08f43f10ea29af60c822326c843
4
- data.tar.gz: 648b278859a21ce7c2003be5118a3dbd515a9e8a
2
+ SHA256:
3
+ metadata.gz: 8d2a39f3df5617304a84c059e96c8fc073ceb0ab4d7b0108bdd0382ab8914098
4
+ data.tar.gz: b5044b3d977f372f50f9d2186986ac64ca61c7a056ad01070b6b78e79af34dd6
5
5
  SHA512:
6
- metadata.gz: d629acacf989b15e31abc4de4f4428bdd68098b7965859415086f7c64d90454e4e72ff1c47ce6ea31330a8fedafd6fbf97ea9fba9a026dd95b43e791b0e7a1e3
7
- data.tar.gz: 51d6785a56a77a574d71bf3fe2c8a8d05cd843c98a638fbb494a9fd31327cb406030ceee3277e92aa07f1cc0db1cbf5ca1e08f963dd2fe0db5ccece0e59068a5
6
+ metadata.gz: b556a0c053fb7fb04c887e1eaf5788138a118c5e8e1b9dc6511772eea91f03fcce9d8b6b43304b884eadf443e6cd0b4afd5e2830e49eed5fe830d3b0c3503a30
7
+ data.tar.gz: 86d93234dd71c3aaa75da1956458217e422e4010c79ba876805ef52cc81f77bab02668ee57d12311a29d88dd9676f2a6ed12927215fd9c3c4335372476a7321a
@@ -0,0 +1 @@
1
+ ruby-2.5.1
@@ -1,5 +1,35 @@
1
+ env:
2
+ global:
3
+ - JRUBY_OPTS="-Xcli.debug=true --debug"
4
+ - CC_TEST_REPORTER_ID=dbf17209b125b5a7b2e492fc5cf6e439a00a5ab8f0d4c10c926fc68564813cae
5
+
6
+ before_script:
7
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
8
+ - chmod +x ./cc-test-reporter
9
+ - ./cc-test-reporter before-build
10
+
11
+ script:
12
+ - bundle exec rspec
13
+
14
+ after_script:
15
+ - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
16
+
17
+ before_install:
18
+ - gem update --system
19
+ - gem install bundler
20
+
21
+ install:
22
+ - bundle install
23
+
24
+ bundler_args: --no-deployment --jobs 3 --retry 3
25
+
26
+ cache: bundler
27
+
1
28
  language: ruby
29
+ sudo: false
30
+
2
31
  rvm:
3
- - 2.2.8
4
- - 2.3.5
5
- - 2.4.2
32
+ - 2.2.10
33
+ - 2.3.7
34
+ - 2.4.4
35
+ - 2.5.1
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at peter.boling@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile CHANGED
@@ -1,4 +1,15 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ group :test do
6
+ gem 'rubocop', '~> 0.59.0'
7
+ gem 'rubocop-rspec', '~> 1.24.0'
8
+ gem 'byebug', '~> 10', platform: :mri, require: false
9
+ gem 'pry', '~> 0', platform: :mri, require: false
10
+ gem 'pry-byebug', '~> 3', platform: :mri, require: false
11
+ gem 'simplecov', '~> 0', require: false
12
+ end
13
+
3
14
  # Specify your gem's dependencies in resque-unique_at_runtime.gemspec
4
15
  gemspec
data/LICENSE CHANGED
@@ -1,4 +1,5 @@
1
1
  Copyright (c) 2012 Jonathan R. Wallace
2
+ Copyright (c) 2017 - 2018 Peter H. Boling
2
3
 
3
4
  MIT License
4
5
 
@@ -19,4 +20,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
20
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
21
  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
22
  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,6 +1,19 @@
1
1
  # Resque::Plugins::UniqueAtRuntime
2
2
 
3
- [![Build Status](https://travis-ci.org/pboling/resque-unique_at_runtime.png)](https://travis-ci.org/pboling/resque-lonely\_job)
3
+ | Project | Resque::Plugins::UniqueAtRuntime |
4
+ |------------------------ | ----------------------- |
5
+ | gem name | [resque-unique_at_runtime](https://rubygems.org/gems/resque-unique_at_runtime) |
6
+ | license | [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT) |
7
+ | download rank | [![Downloads Today](https://img.shields.io/gem/rd/resque-unique_at_runtime.svg)](https://github.com/pboling/resque-unique_at_runtime) |
8
+ | version | [![Version](https://img.shields.io/gem/v/resque-unique_at_runtime.svg)](https://rubygems.org/gems/resque-unique_at_runtime) |
9
+ | dependencies | [![Depfu](https://badges.depfu.com/badges/99a79f37d1bc55353d0480f5138a0ce0/count.svg)](https://depfu.com/github/pboling/resque-unique_at_runtime?project_id=4349) |
10
+ | continuous integration | [![Build Status](https://travis-ci.org/pboling/resque-unique_at_runtime.svg?branch=master)](https://travis-ci.org/pboling/resque-unique_at_runtime) |
11
+ | test coverage | [![Test Coverage](https://api.codeclimate.com/v1/badges/bd4c69c621a3d7890405/test_coverage)](https://codeclimate.com/github/pboling/resque-unique_at_runtime/test_coverage) |
12
+ | maintainability | [![Maintainability](https://api.codeclimate.com/v1/badges/bd4c69c621a3d7890405/maintainability)](https://codeclimate.com/github/pboling/resque-unique_at_runtime/maintainability) |
13
+ | code triage | [![Open Source Helpers](https://www.codetriage.com/pboling/resque-unique_at_runtime/badges/users.svg)](https://www.codetriage.com/pboling/resque-unique_at_runtime) |
14
+ | homepage | [on Github.com][homepage], [on Railsbling.com][blogpage] |
15
+ | documentation | [on RDoc.info][documentation] |
16
+ | Spread ~♡ⓛⓞⓥⓔ♡~ | [🌍 🌎 🌏](https://about.me/peter.boling), [🍚](https://www.crowdrise.com/helprefugeeswithhopefortomorrowliberia/fundraiser/peterboling), [➕](https://plus.google.com/+PeterBoling/posts), [👼](https://angel.co/peter-boling), [🐛](https://www.topcoder.com/members/pboling/), [:shipit:](http://coderwall.com/pboling), [![Tweet Peter](https://img.shields.io/twitter/follow/galtzo.svg?style=social&label=Follow)](http://twitter.com/galtzo) |
4
17
 
5
18
  A [semanticaly versioned](http://semver.org/)
6
19
  [Resque](https://github.com/resque/resque) plugin which ensures for a given
@@ -189,3 +202,46 @@ in your job like so:
189
202
  3. Commit your changes (`git commit -am 'Added some feature'`)
190
203
  4. Push to the branch (`git push origin my-new-feature`)
191
204
  5. Create new Pull Request
205
+
206
+ ## Contributing
207
+
208
+ Bug reports and pull requests are welcome on GitHub at https://github.com/pboling/resque-unique_at_runtime. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
209
+
210
+ ## Code of Conduct
211
+
212
+ Everyone interacting in the Resque::Plugins::UniqueAtRuntime project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/pboling/resque-unique_at_runtime/blob/master/CODE_OF_CONDUCT.md).
213
+
214
+ ## Versioning
215
+
216
+ This library aims to adhere to [Semantic Versioning 2.0.0][semver].
217
+ Violations of this scheme should be reported as bugs. Specifically,
218
+ if a minor or patch version is released that breaks backward
219
+ compatibility, a new version should be immediately released that
220
+ restores compatibility. Breaking changes to the public API will
221
+ only be introduced with new major versions.
222
+
223
+ As a result of this policy, you can (and should) specify a
224
+ dependency on this gem using the [Pessimistic Version Constraint][pvc] with two digits of precision.
225
+
226
+ For example:
227
+
228
+ ```ruby
229
+ spec.add_dependency 'resque-unique_at_runtime', '~> 0.0'
230
+ ```
231
+
232
+
233
+ ## License
234
+
235
+ * Copyright (c) 2012 Jonathan R. Wallace
236
+ * Copyright (c) 2017 - 2018 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
237
+
238
+ [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
239
+
240
+ [license]: LICENSE
241
+ [semver]: http://semver.org/
242
+ [pvc]: http://guides.rubygems.org/patterns/#pessimistic-version-constraint
243
+ [railsbling]: http://www.railsbling.com
244
+ [peterboling]: http://www.peterboling.com
245
+ [documentation]: http://rdoc.info/github/pboling/resque-unique_at_runtime/frames
246
+ [homepage]: https://github.com/pboling/resque-unique_at_runtime/
247
+ [blogpage]: http://www.railsbling.com/tags/resque-unique_at_runtime/
@@ -1,7 +1,7 @@
1
1
  module Resque
2
2
  module Plugins
3
3
  module UniqueAtRuntime
4
- VERSION = "2.0.3"
4
+ VERSION = "2.0.4"
5
5
  end
6
6
  end
7
7
  end
@@ -4,6 +4,11 @@ require 'mock_redis'
4
4
  require 'resque'
5
5
  require 'timecop'
6
6
 
7
+ require 'byebug' if RbConfig::CONFIG['RUBY_INSTALL_NAME'] == 'ruby'
8
+
9
+ require 'simplecov'
10
+ SimpleCov.start
11
+
7
12
  # This gem
8
13
  require 'resque-unique_at_runtime'
9
14
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-unique_at_runtime
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter H. Boling
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-11-17 00:00:00.000000000 Z
12
+ date: 2018-09-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: resque
@@ -106,7 +106,9 @@ extensions: []
106
106
  extra_rdoc_files: []
107
107
  files:
108
108
  - ".gitignore"
109
+ - ".ruby-version"
109
110
  - ".travis.yml"
111
+ - CODE_OF_CONDUCT.md
110
112
  - Gemfile
111
113
  - LICENSE
112
114
  - README.md
@@ -136,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
138
  version: '0'
137
139
  requirements: []
138
140
  rubyforge_project:
139
- rubygems_version: 2.6.12
141
+ rubygems_version: 2.7.7
140
142
  signing_key:
141
143
  specification_version: 4
142
144
  summary: A resque plugin that ensures job uniqueness at runtime.