resqutils 1.2.1 → 1.3.0

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: d8a0283c75cede4be60e7aa55c5efbcc71852ab7
4
- data.tar.gz: 9529c8d5f0e94e81eb478d4cda5e69b3c2c23462
2
+ SHA256:
3
+ metadata.gz: 9934067c2b34e6207535fbce3b974cf8fc2d4fa3332e9cd570b8af8020763787
4
+ data.tar.gz: 9af9ccbc0677338fe766907fb0eb9ab1ddb8fab1f58d5e404122616364d1ac24
5
5
  SHA512:
6
- metadata.gz: dd9162d8d98c4d1a00754c505ee0e5067295cb8d3b5896a22a6c0a559ed57e3a039b78581f9e33e9f90515d47af309df4c6f2f3e577e594d2e5e0ebe331d2808
7
- data.tar.gz: bac8f74118cf78fd8e4ef5b61e9df0a78a4375ce4251888cf929f28ddd255faa5807d33ef61d196cc9fbe829909c4099a6a295c10ff569c9838b3caae32d8532
6
+ metadata.gz: 548c7d4031d8ad1e8516562a5d4f09e139057b2a0e2090e49c6fe0e397e0138bbbec401f405b7434ff6c31b33791301e714e154207c01433751a809c78ec9c61
7
+ data.tar.gz: 0f7925016e8f76856f3ca69439ca2710187418ff8583fcf09dd7164397f36b775afa5766874d65887506bca5d76bd12dab133d47fd327a50a3de444ab93a67a5
@@ -0,0 +1,96 @@
1
+ # DO NOT MODIFY - this is managed by Git Reduce in goro
2
+ #
3
+ ---
4
+ version: 2
5
+ jobs:
6
+ release:
7
+ docker:
8
+ - image: circleci/ruby:2.7.0
9
+ steps:
10
+ - checkout
11
+ - run: bundle config stitchfix01.jfrog.io $ARTIFACTORY_USER:$ARTIFACTORY_TOKEN
12
+ - run: bundle install --full-index
13
+ - run:
14
+ name: Artifactory login
15
+ command: mkdir -p ~/.gem && curl -u$ARTIFACTORY_USER:$ARTIFACTORY_TOKEN https://stitchfix01.jfrog.io/stitchfix01/api/gems/eng-gems/api/v1/api_key.yaml
16
+ > ~/.gem/credentials && chmod 0600 ~/.gem/credentials
17
+ - run:
18
+ name: Build/release gem to artifactory
19
+ command: bundle exec rake push_artifactory
20
+ ruby-2.7.0:
21
+ docker:
22
+ - image: circleci/ruby:2.7.0
23
+ working_directory: "~/resqutils"
24
+ steps:
25
+ - checkout
26
+ - run: bundle config stitchfix01.jfrog.io $ARTIFACTORY_USER:$ARTIFACTORY_TOKEN
27
+ - run: bundle install --full-index
28
+ - run: bundle exec rspec --format RspecJunitFormatter --out /tmp/test-results/rspec.xml
29
+ --format=doc
30
+ - run:
31
+ name: Run Additional CI Steps
32
+ command: if [ -e bin/additional-ci-steps ]; then bin/additional-ci-steps;
33
+ fi
34
+ - run:
35
+ name: Notify Pager Duty
36
+ command: bundle exec y-notify "#devex-alerts"
37
+ when: on_fail
38
+ - store_test_results:
39
+ path: "/tmp/test-results"
40
+ ruby-2.6.5:
41
+ docker:
42
+ - image: circleci/ruby:2.6.5
43
+ working_directory: "~/resqutils"
44
+ steps:
45
+ - checkout
46
+ - run: bundle config stitchfix01.jfrog.io $ARTIFACTORY_USER:$ARTIFACTORY_TOKEN
47
+ - run: bundle install --full-index
48
+ - run: bundle exec rspec --format RspecJunitFormatter --out /tmp/test-results/rspec.xml
49
+ --format=doc
50
+ - run:
51
+ name: Run Additional CI Steps
52
+ command: if [ -e bin/additional-ci-steps ]; then bin/additional-ci-steps;
53
+ fi
54
+ - run:
55
+ name: Notify Pager Duty
56
+ command: bundle exec y-notify "#devex-alerts"
57
+ when: on_fail
58
+ - store_test_results:
59
+ path: "/tmp/test-results"
60
+ workflows:
61
+ version: 2
62
+ on-commit:
63
+ jobs:
64
+ - release:
65
+ context: org-global
66
+ requires:
67
+ - ruby-2.7.0
68
+ - ruby-2.6.5
69
+ filters:
70
+ tags:
71
+ only: /^[0-9]+\.[0-9]+\.[0-9]+(\.?RC[-\.]?\d*)?$/
72
+ branches:
73
+ ignore: /.*/
74
+ - ruby-2.7.0:
75
+ context: org-global
76
+ filters:
77
+ tags:
78
+ only: &1 /.*/
79
+ - ruby-2.6.5:
80
+ context: org-global
81
+ filters:
82
+ tags:
83
+ only: *1
84
+ scheduled:
85
+ triggers:
86
+ - schedule:
87
+ cron: 40 17 * * 1,2,3,4,5
88
+ filters:
89
+ branches:
90
+ only:
91
+ - master
92
+ jobs:
93
+ - ruby-2.7.0:
94
+ context: org-global
95
+ - ruby-2.6.5:
96
+ context: org-global
data/.gitignore CHANGED
@@ -9,3 +9,4 @@ db
9
9
  .DS_Store
10
10
  .jhw-cache
11
11
  **.orig
12
+ Gemfile.lock
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.3.0
1
+ 2.7.0
data/.travis.yml CHANGED
@@ -1,9 +1,7 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1.0
4
- - 2.2.0
5
- - 2.0.0
6
- - 1.9.3
3
+ - 2.6
4
+ - 2.7
7
5
  - ruby-head
8
6
  before_install:
9
7
  - gem install bundler
data/Rakefile CHANGED
@@ -5,6 +5,17 @@ rescue LoadError
5
5
  end
6
6
  require 'rubygems/package_task'
7
7
  require 'rspec/core/rake_task'
8
+
9
+ # Fix for NoMethodError: undefined method `last_comment'
10
+ # Deprecated in Rake 12.x
11
+ module FixForRakeLastComment
12
+ def last_comment
13
+ last_description
14
+ end
15
+ end
16
+ Rake::Application.send :include, FixForRakeLastComment
17
+ ### end of fix
18
+
8
19
  RSpec::Core::RakeTask.new(:spec)
9
20
 
10
21
  require 'rdoc/task'
data/bin/rake ADDED
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+ #
4
+ # This file was generated by Bundler.
5
+ #
6
+ # The application 'rake' is installed as part of a gem, and
7
+ # this file is here to facilitate running it.
8
+ #
9
+
10
+ require "pathname"
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
12
+ Pathname.new(__FILE__).realpath)
13
+
14
+ require "rubygems"
15
+ require "bundler/setup"
16
+
17
+ load Gem.bin_path("rake", "rake")
data/bin/rspec ADDED
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+ #
4
+ # This file was generated by Bundler.
5
+ #
6
+ # The application 'rspec' is installed as part of a gem, and
7
+ # this file is here to facilitate running it.
8
+ #
9
+
10
+ require "pathname"
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
12
+ Pathname.new(__FILE__).realpath)
13
+
14
+ require "rubygems"
15
+ require "bundler/setup"
16
+
17
+ load Gem.bin_path("rspec-core", "rspec")
data/build-matrix.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "build_matrix": {
3
+ }
4
+ }
@@ -1,5 +1,5 @@
1
1
  PATH
2
- remote: ../
2
+ remote: ..
3
3
  specs:
4
4
  resqutils (1.2.1)
5
5
  resque
@@ -7,22 +7,24 @@ PATH
7
7
  GEM
8
8
  remote: https://www.rubygems.org/
9
9
  specs:
10
- diff-lcs (1.2.5)
11
- fakeredis (0.5.0)
12
- redis (~> 3.0)
10
+ diff-lcs (1.3)
11
+ fakeredis (0.7.0)
12
+ redis (>= 3.2, < 5.0)
13
13
  mono_logger (1.1.0)
14
- multi_json (1.12.1)
15
- rack (1.6.4)
16
- rack-protection (1.5.3)
14
+ multi_json (1.14.1)
15
+ mustermann (1.1.0)
16
+ ruby2_keywords (~> 0.0.1)
17
+ rack (2.0.8)
18
+ rack-protection (2.0.8.1)
17
19
  rack
18
- rake (10.4.2)
19
- redis (3.2.2)
20
- redis-namespace (1.5.2)
21
- redis (~> 3.0, >= 3.0.4)
22
- resque (1.26.0)
20
+ rake (13.0.1)
21
+ redis (4.1.3)
22
+ redis-namespace (1.7.0)
23
+ redis (>= 3.0.4)
24
+ resque (2.0.0)
23
25
  mono_logger (~> 1.0)
24
26
  multi_json (~> 1.0)
25
- redis-namespace (~> 1.3)
27
+ redis-namespace (~> 1.6)
26
28
  sinatra (>= 0.9.2)
27
29
  vegas (~> 0.1.2)
28
30
  rspec (2.99.0)
@@ -33,11 +35,15 @@ GEM
33
35
  rspec-expectations (2.99.2)
34
36
  diff-lcs (>= 1.1.3, < 2.0)
35
37
  rspec-mocks (2.99.4)
36
- sinatra (1.4.7)
37
- rack (~> 1.5)
38
- rack-protection (~> 1.4)
39
- tilt (>= 1.3, < 3)
40
- tilt (2.0.5)
38
+ rspec_junit_formatter (0.4.1)
39
+ rspec-core (>= 2, < 4, != 2.12.0)
40
+ ruby2_keywords (0.0.1)
41
+ sinatra (2.0.8.1)
42
+ mustermann (~> 1.0)
43
+ rack (~> 2.0)
44
+ rack-protection (= 2.0.8.1)
45
+ tilt (~> 2.0)
46
+ tilt (2.0.10)
41
47
  vegas (0.1.11)
42
48
  rack (>= 1.0.0)
43
49
 
@@ -49,6 +55,7 @@ DEPENDENCIES
49
55
  rake
50
56
  resqutils!
51
57
  rspec (~> 2)
58
+ rspec_junit_formatter
52
59
 
53
60
  BUNDLED WITH
54
- 1.12.5
61
+ 2.1.2
@@ -1,3 +1,3 @@
1
1
  module Resqutils
2
- VERSION='1.2.1'
2
+ VERSION='1.3.0'
3
3
  end
data/owners.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "owners": [
3
+ {
4
+ "team": "devex"
5
+ }
6
+ ]
7
+ }
data/resqutils.gemspec CHANGED
@@ -21,4 +21,5 @@ Gem::Specification.new do |s|
21
21
  s.add_development_dependency("rake")
22
22
  s.add_development_dependency("rspec")
23
23
  s.add_development_dependency("fakeredis")
24
+ s.add_development_dependency('rspec_junit_formatter')
24
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resqutils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stitch Fix Engineering
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-04-21 00:00:00.000000000 Z
13
+ date: 2020-01-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: resque
@@ -68,15 +68,32 @@ dependencies:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
+ - !ruby/object:Gem::Dependency
72
+ name: rspec_junit_formatter
73
+ requirement: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ type: :development
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
71
85
  description: Utilities for using Resque in a Rails app
72
86
  email:
73
87
  - opensource@stitchfix.com
74
88
  - davetron5000@gmail.com
75
89
  - simeon@simeons.net
76
- executables: []
90
+ executables:
91
+ - rake
92
+ - rspec
77
93
  extensions: []
78
94
  extra_rdoc_files: []
79
95
  files:
96
+ - ".circleci/config.yml"
80
97
  - ".gitignore"
81
98
  - ".ruby-gemset"
82
99
  - ".ruby-version"
@@ -84,10 +101,12 @@ files:
84
101
  - CODE_OF_CONDUCT.md
85
102
  - CONTRIBUTING.md
86
103
  - Gemfile
87
- - Gemfile.lock
88
104
  - LICENSE.txt
89
105
  - README.md
90
106
  - Rakefile
107
+ - bin/rake
108
+ - bin/rspec
109
+ - build-matrix.json
91
110
  - gemfiles/rspec2.gemfile
92
111
  - gemfiles/rspec2.gemfile.lock
93
112
  - lib/resqutils.rb
@@ -100,6 +119,7 @@ files:
100
119
  - lib/resqutils/version.rb
101
120
  - lib/resqutils/worker_killer_job.rb
102
121
  - lib/resqutils/worker_task.rb
122
+ - owners.json
103
123
  - resqutils.gemspec
104
124
  - spec/resque_matchers_spec.rb
105
125
  - spec/spec_helper.rb
@@ -126,8 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
146
  - !ruby/object:Gem::Version
127
147
  version: '0'
128
148
  requirements: []
129
- rubyforge_project:
130
- rubygems_version: 2.5.1
149
+ rubygems_version: 3.1.2
131
150
  signing_key:
132
151
  specification_version: 4
133
152
  summary: Utilities for using Resque in a Rails app
data/Gemfile.lock DELETED
@@ -1,59 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- resqutils (1.2.1)
5
- resque
6
-
7
- GEM
8
- remote: https://www.rubygems.org/
9
- specs:
10
- diff-lcs (1.2.5)
11
- fakeredis (0.5.0)
12
- redis (~> 3.0)
13
- mono_logger (1.1.0)
14
- multi_json (1.12.1)
15
- rack (1.6.4)
16
- rack-protection (1.5.3)
17
- rack
18
- rake (10.5.0)
19
- redis (3.2.2)
20
- redis-namespace (1.5.2)
21
- redis (~> 3.0, >= 3.0.4)
22
- resque (1.26.0)
23
- mono_logger (~> 1.0)
24
- multi_json (~> 1.0)
25
- redis-namespace (~> 1.3)
26
- sinatra (>= 0.9.2)
27
- vegas (~> 0.1.2)
28
- rspec (3.4.0)
29
- rspec-core (~> 3.4.0)
30
- rspec-expectations (~> 3.4.0)
31
- rspec-mocks (~> 3.4.0)
32
- rspec-core (3.4.3)
33
- rspec-support (~> 3.4.0)
34
- rspec-expectations (3.4.0)
35
- diff-lcs (>= 1.2.0, < 2.0)
36
- rspec-support (~> 3.4.0)
37
- rspec-mocks (3.4.1)
38
- diff-lcs (>= 1.2.0, < 2.0)
39
- rspec-support (~> 3.4.0)
40
- rspec-support (3.4.1)
41
- sinatra (1.4.7)
42
- rack (~> 1.5)
43
- rack-protection (~> 1.4)
44
- tilt (>= 1.3, < 3)
45
- tilt (2.0.5)
46
- vegas (0.1.11)
47
- rack (>= 1.0.0)
48
-
49
- PLATFORMS
50
- ruby
51
-
52
- DEPENDENCIES
53
- fakeredis
54
- rake
55
- resqutils!
56
- rspec
57
-
58
- BUNDLED WITH
59
- 1.12.5