resque-approve 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +30 -0
  4. data/lib/resque-approve.rb +10 -0
  5. data/lib/resque/approve_server.rb +232 -0
  6. data/lib/resque/plugins/approve.rb +77 -0
  7. data/lib/resque/plugins/approve/approval_key_list.rb +100 -0
  8. data/lib/resque/plugins/approve/cleaner.rb +44 -0
  9. data/lib/resque/plugins/approve/pending_job.rb +187 -0
  10. data/lib/resque/plugins/approve/pending_job_queue.rb +128 -0
  11. data/lib/resque/plugins/approve/redis_access.rb +16 -0
  12. data/lib/resque/plugins/version.rb +9 -0
  13. data/lib/resque/server/public/approve.css +56 -0
  14. data/lib/resque/server/views/_approval_key_list_pagination.erb +67 -0
  15. data/lib/resque/server/views/_approval_key_rows.erb +18 -0
  16. data/lib/resque/server/views/_job_list_table.erb +30 -0
  17. data/lib/resque/server/views/_job_pagination.erb +67 -0
  18. data/lib/resque/server/views/approval_keys.erb +66 -0
  19. data/lib/resque/server/views/job_details.erb +82 -0
  20. data/lib/resque/server/views/job_list.erb +58 -0
  21. data/lib/tasks/resque-approve_tasks.rake +6 -0
  22. data/spec/approve/approval_key_list_spec.rb +289 -0
  23. data/spec/approve/cleaner_spec.rb +96 -0
  24. data/spec/approve/pending_job_queue_spec.rb +219 -0
  25. data/spec/approve/pending_job_spec.rb +326 -0
  26. data/spec/approve_spec.rb +188 -0
  27. data/spec/examples.txt +135 -0
  28. data/spec/rails_helper.rb +35 -0
  29. data/spec/server/public/approve.css_spec.rb +18 -0
  30. data/spec/server/views/approval_keys.erb_spec.rb +105 -0
  31. data/spec/server/views/job_details.erb_spec.rb +133 -0
  32. data/spec/server/views/job_list.erb_spec.rb +108 -0
  33. data/spec/spec_helper.rb +101 -0
  34. data/spec/support/config/redis-auth.yml +12 -0
  35. data/spec/support/jobs/01_basic_job.rb +13 -0
  36. data/spec/support/jobs/auto_delete_approval_key_job.rb +5 -0
  37. data/spec/support/purge_all.rb +15 -0
  38. metadata +292 -0
@@ -0,0 +1,133 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rails_helper"
4
+
5
+ RSpec.describe "job_details.erb" do
6
+ let(:key) { Faker::Lorem.sentence }
7
+ let(:key_list) { Resque::Plugins::Approve::ApprovalKeyList.new }
8
+ let(:test_args) do
9
+ rand_args = []
10
+ rand_args << Faker::Lorem.sentence
11
+ rand_args << Faker::Lorem.paragraph
12
+ rand_args << SecureRandom.uuid.to_s
13
+ rand_args << rand(0..1_000_000_000_000_000_000_000_000).to_s
14
+ rand_args << rand(0..1_000_000_000_000).seconds.ago.to_s
15
+ rand_args << rand(0..1_000_000_000_000).seconds.from_now.to_s
16
+ rand_args << Array.new(rand(1..5)) { Faker::Lorem.word }
17
+ rand_args << Array.new(rand(1..5)).each_with_object({}) do |_nil_value, sub_hash|
18
+ sub_hash[Faker::Lorem.word] = Faker::Lorem.word
19
+ end
20
+
21
+ rand_args = rand_args.sample(rand(3..rand_args.length))
22
+
23
+ if [true, false].sample
24
+ options_hash = {}
25
+ options_hash[Faker::Lorem.word] = Faker::Lorem.sentence
26
+ options_hash[Faker::Lorem.word] = Faker::Lorem.paragraph
27
+ options_hash[Faker::Lorem.word] = SecureRandom.uuid.to_s
28
+ options_hash[Faker::Lorem.word] = rand(0..1_000_000_000_000_000_000_000_000).to_s
29
+ options_hash[Faker::Lorem.word] = rand(0..1_000_000_000_000).seconds.ago.to_s
30
+ options_hash[Faker::Lorem.word] = rand(0..1_000_000_000_000).seconds.from_now.to_s
31
+ options_hash[Faker::Lorem.word] = Array.new(rand(1..5)) { Faker::Lorem.word }
32
+ options_hash[Faker::Lorem.word] = Array.new(rand(1..5)).
33
+ each_with_object({}) do |_nil_value, sub_hash|
34
+ sub_hash[Faker::Lorem.word] = Faker::Lorem.word
35
+ end
36
+
37
+ rand_args << options_hash.slice(*options_hash.keys.sample(rand(5..options_hash.keys.length))).merge(approval_key: key)
38
+ else
39
+ rand_args << { approval_key: key }
40
+ end
41
+
42
+ rand_args
43
+ end
44
+ let(:job_id) { SecureRandom.uuid }
45
+ let(:job) do
46
+ new_job = Resque::Plugins::Approve::PendingJob.new(job_id, class_name: BasicJob, args: test_args)
47
+
48
+ key_list.add_job(new_job)
49
+
50
+ new_job
51
+ end
52
+
53
+ include Rack::Test::Methods
54
+
55
+ def app
56
+ @app ||= Resque::Server.new
57
+ end
58
+
59
+ before(:each) do
60
+ allow(Resque).to receive(:enqueue_to).and_call_original
61
+ end
62
+
63
+ it "should respond to /approve/delete_job" do
64
+ post "/approve/delete_job?job_id=#{job.id}"
65
+
66
+ expect(last_response).to be_redirect
67
+ expect(last_response.header["Location"]).to match(%r{approve/job_list\?#{{ approval_key: key }.to_param.gsub("+", "\\\\+")}})
68
+
69
+ expect(Resque::Plugins::Approve::PendingJob.new(job.id).class_name).to be_blank
70
+ expect(Resque::Plugins::Approve::PendingJobQueue.new(key).num_jobs).to be_zero
71
+ expect(Resque).not_to have_received(:enqueue_to)
72
+ end
73
+
74
+ it "should respond to /approve/approve_job" do
75
+ post "/approve/approve_job?job_id=#{job.id}"
76
+
77
+ expect(last_response).to be_redirect
78
+ expect(last_response.header["Location"]).to match(%r{approve/job_list\?#{{ approval_key: key }.to_param.gsub("+", "\\\\+")}})
79
+
80
+ expect(Resque::Plugins::Approve::PendingJob.new(job.id).class_name).to be_blank
81
+ expect(Resque::Plugins::Approve::PendingJobQueue.new(key).num_jobs).to be_zero
82
+ expect(Resque).to have_received(:enqueue_to)
83
+ end
84
+
85
+ it "should respond to /approve/job_details" do
86
+ get "/approve/job_details?job_id=#{job.id}"
87
+
88
+ expect(last_response).to be_ok
89
+
90
+ expect(last_response.body).to be_include(key)
91
+
92
+ expect(last_response.body).to match %r{Approval Keys(\n *)?</a>}
93
+ expect(last_response.body).to match %r{#{key}(\n *)?</a>}
94
+
95
+ expect(last_response.body).to match %r{action="/approve/delete_job\?#{{ job_id: job_id }.to_param}"}
96
+ expect(last_response.body).to match %r{action="/approve/approve_job\?#{{ job_id: job_id }.to_param}"}
97
+
98
+ expect(last_response.body).to match(%r{Enqueued(\n *)</td>})
99
+ expect(last_response.body).to match(%r{Class(\n *)</td>})
100
+ expect(last_response.body).to match(%r{Params(\n *)</td>})
101
+ expect(last_response.body).to match(%r{Queue(\n *)</td>})
102
+ expect(last_response.body).not_to match(%r{Enqueue After(\n *)</td>})
103
+
104
+ expect(last_response.body).to be_include("approve/job_list?#{{ approval_key: key }.to_param}\"")
105
+ expect(last_response.body).to be_include("approve\"")
106
+ end
107
+
108
+ it "includes the enqueue after value" do
109
+ test_args.last[:approval_at] = 2.hours.from_now
110
+
111
+ get "/approve/job_details?job_id=#{job.id}"
112
+
113
+ expect(last_response).to be_ok
114
+ expect(last_response.body).to match(%r{Enqueue After(\n *)</td>})
115
+ end
116
+
117
+ it "does not includes the enqueue after value if it is old" do
118
+ test_args.last[:approval_at] = 2.hours.ago
119
+
120
+ get "/approve/job_details?job_id=#{job.id}"
121
+
122
+ expect(last_response).to be_ok
123
+ expect(last_response.body).not_to match(%r{Enqueue After(\n *)</td>})
124
+ end
125
+
126
+ it "shows the parameters for the jobs" do
127
+ get "/approve/job_details?job_id=#{job.id}"
128
+
129
+ expect(last_response).to be_ok
130
+
131
+ expect(last_response.body).to be_include("".html_safe + job.args.to_yaml)
132
+ end
133
+ end
@@ -0,0 +1,108 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rails_helper"
4
+
5
+ RSpec.describe "approval_keys.erb" do
6
+ let(:key_list) { Resque::Plugins::Approve::ApprovalKeyList.new }
7
+ let(:key) { Faker::Lorem.sentence }
8
+ let(:queue) { Resque::Plugins::Approve::PendingJobQueue.new(key) }
9
+ let!(:jobs) do
10
+ Array.new(5) do
11
+ job = Resque::Plugins::Approve::PendingJob.new(SecureRandom.uuid, class_name: BasicJob, args: [approval_key: key])
12
+
13
+ key_list.add_job(job)
14
+
15
+ job
16
+ end
17
+ end
18
+
19
+ include Rack::Test::Methods
20
+
21
+ def app
22
+ @app ||= Resque::Server.new
23
+ end
24
+
25
+ before(:each) do
26
+ allow(Resque).to receive(:enqueue_to).and_call_original
27
+ end
28
+
29
+ context "actions" do
30
+ before(:each) do
31
+ allow(Resque::Plugins::Approve::PendingJobQueue).to receive(:new).and_return queue
32
+ end
33
+
34
+ it "should respond to /approve/delete_queue" do
35
+ expect(queue).to receive(:delete).and_call_original
36
+
37
+ post "/approve/delete_queue?#{{ approval_key: key }.to_param}"
38
+
39
+ expect(last_response).to be_redirect
40
+ expect(last_response.header["Location"]).to match(/approve$/)
41
+ expect(Resque).not_to have_received(:enqueue_to)
42
+ end
43
+
44
+ it "should respond to /approve/delete_one_queue" do
45
+ expect(queue).to receive(:remove_one).and_call_original
46
+
47
+ post "/approve/delete_one_queue?#{{ approval_key: key }.to_param}"
48
+
49
+ expect(last_response).to be_redirect
50
+ expect(last_response.header["Location"]).to match(%r{approve/job_list\?#{{ approval_key: key }.to_param.gsub("+", "\\\\+")}$})
51
+ expect(Resque).not_to have_received(:enqueue_to)
52
+ end
53
+
54
+ it "should respond to /approve/approve_queue" do
55
+ expect(queue).to receive(:approve_all).and_call_original
56
+
57
+ post "/approve/approve_queue?#{{ approval_key: key }.to_param}"
58
+
59
+ expect(last_response).to be_redirect
60
+ expect(last_response.header["Location"]).to match(%r{approve/job_list\?#{{ approval_key: key }.to_param.gsub("+", "\\\\+")}$})
61
+ expect(Resque).to have_received(:enqueue_to).exactly(jobs.flatten.count).times
62
+ end
63
+
64
+ it "should respond to /approve/approve_one_queue" do
65
+ expect(queue).to receive(:approve_one).and_call_original
66
+
67
+ post "/approve/approve_one_queue?#{{ approval_key: key }.to_param}"
68
+
69
+ expect(last_response).to be_redirect
70
+ expect(last_response.header["Location"]).to match(%r{approve/job_list\?#{{ approval_key: key }.to_param.gsub("+", "\\\\+")}$})
71
+ expect(Resque).to have_received(:enqueue_to)
72
+ end
73
+ end
74
+
75
+ it "should respond to /approve/job_list" do
76
+ get "/approve/job_list?#{{ approval_key: key }.to_param}"
77
+
78
+ expect(last_response).to be_ok
79
+
80
+ expect(last_response.body).to be_include(key)
81
+
82
+ expect(last_response.body).to match %r{Approval Keys(\n *)?</a>}
83
+
84
+ expect(last_response.body).to match %r{action="/approve/delete_queue\?#{{ approval_key: key }.to_param.gsub("+", "\\\\+")}"}
85
+ expect(last_response.body).to match %r{action="/approve/delete_one_queue\?#{{ approval_key: key }.to_param.gsub("+", "\\\\+")}"}
86
+ expect(last_response.body).to match %r{action="/approve/approve_queue\?#{{ approval_key: key }.to_param.gsub("+", "\\\\+")}"}
87
+ expect(last_response.body).to match %r{action="/approve/approve_one_queue\?#{{ approval_key: key }.to_param.gsub("+", "\\\\+")}"}
88
+
89
+ expect(last_response.body).to match %r{Class</th>}
90
+ expect(last_response.body).to match %r{Enqueued</th>}
91
+ expect(last_response.body).to match %r{Parameters</th>}
92
+ expect(last_response.body).to match %r{Options</th>}
93
+
94
+ jobs.each do |job|
95
+ expect(last_response.body).to match %r{/job_details\?#{{ job_id: job.id }.to_param}}
96
+ end
97
+ end
98
+
99
+ it "pages jobs" do
100
+ get "/approve/job_list?#{{ approval_key: key }.to_param}&page_size=2"
101
+
102
+ expect(last_response).to be_ok
103
+
104
+ expect(last_response.body).to match(%r{href="/approve/job_list?.*page_num=2})
105
+ expect(last_response.body).to match(%r{href="/approve/job_list?.*page_num=3})
106
+ expect(last_response.body).not_to match(%r{href="/approve/job_list?.*page_num=4})
107
+ end
108
+ end
@@ -0,0 +1,101 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file was generated by the `rspec --init` command. Conventionally, all
4
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
5
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
6
+ # this file to always be loaded, without a need to explicitly require it in any
7
+ # files.
8
+ #
9
+ # Given that it is always loaded, you are encouraged to keep this file as
10
+ # light-weight as possible. Requiring heavyweight dependencies from this file
11
+ # will add to the boot time of your test suite on EVERY test run, even for an
12
+ # individual file that may not need all of that loaded. Instead, consider making
13
+ # a separate helper file that requires the additional dependencies and performs
14
+ # the additional setup, and require it from the spec files that actually need
15
+ # it.
16
+ #
17
+ # The `.rspec` file also contains a few flags that are not defaults but that
18
+ # users commonly want.
19
+ #
20
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
21
+ RSpec.configure do |config|
22
+ # rspec-expectations config goes here. You can use an alternate
23
+ # assertion/expectation library such as wrong or the stdlib/minitest
24
+ # assertions if you prefer.
25
+ config.expect_with :rspec do |expectations|
26
+ # This option will default to `true` in RSpec 4. It makes the `description`
27
+ # and `failure_message` of custom matchers include text for helper methods
28
+ # defined using `chain`, e.g.:
29
+ # be_bigger_than(2).and_smaller_than(4).description
30
+ # # => "be bigger than 2 and smaller than 4"
31
+ # ...rather than:
32
+ # # => "be bigger than 2"
33
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
34
+ end
35
+
36
+ # rspec-mocks config goes here. You can use an alternate test double
37
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
38
+ config.mock_with :rspec do |mocks|
39
+ # Prevents you from mocking or stubbing a method that does not exist on
40
+ # a real object. This is generally recommended, and will default to
41
+ # `true` in RSpec 4.
42
+ mocks.verify_partial_doubles = true
43
+ end
44
+
45
+ # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
46
+ # have no way to turn it off -- the option exists only for backwards
47
+ # compatibility in RSpec 3). It causes shared context metadata to be
48
+ # inherited by the metadata hash of host groups and examples, rather than
49
+ # triggering implicit auto-inclusion in groups with matching metadata.
50
+ config.shared_context_metadata_behavior = :apply_to_host_groups
51
+
52
+ # This allows you to limit a spec run to individual examples or groups
53
+ # you care about by tagging them with `:focus` metadata. When nothing
54
+ # is tagged with `:focus`, all examples get run. RSpec also provides
55
+ # aliases for `it`, `describe`, and `context` that include `:focus`
56
+ # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
57
+ config.filter_run_when_matching :focus
58
+
59
+ # Allows RSpec to persist some state between runs in order to support
60
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
61
+ # you configure your source control system to ignore this file.
62
+ config.example_status_persistence_file_path = "spec/examples.txt"
63
+
64
+ # Limits the available syntax to the non-monkey patched syntax that is
65
+ # recommended. For more details, see:
66
+ # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
67
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
68
+ # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
69
+ config.disable_monkey_patching!
70
+
71
+ # This setting enables warnings. It's recommended, but in some cases may
72
+ # be too noisy due to issues in dependencies.
73
+ config.warnings = true
74
+
75
+ # Many RSpec users commonly either run the entire suite or an individual
76
+ # file, and it's useful to allow more verbose output when running an
77
+ # individual spec file.
78
+ if config.files_to_run.one?
79
+ # Use the documentation formatter for detailed output,
80
+ # unless a formatter has already been configured
81
+ # (e.g. via a command-line flag).
82
+ config.default_formatter = "doc"
83
+ end
84
+
85
+ # Print the 10 slowest examples and example groups at the
86
+ # end of the spec run, to help surface which specs are running
87
+ # particularly slow.
88
+ config.profile_examples = 10
89
+
90
+ # Run specs in random order to surface order dependencies. If you find an
91
+ # order dependency and want to debug it, you can fix the order by providing
92
+ # the seed, which is printed after each run.
93
+ # --seed 1234
94
+ config.order = :random
95
+
96
+ # Seed global randomization in this process using the `--seed` CLI option.
97
+ # Setting this allows you to use `--seed` to deterministically reproduce
98
+ # test failures related to randomization by passing the same `--seed` value
99
+ # as the one that triggered the failure.
100
+ Kernel.srand config.seed
101
+ end
@@ -0,0 +1,12 @@
1
+ ########################################################################################################################
2
+ # WARNING - Never check this into the repository (.erb OK).
3
+ ########################################################################################################################
4
+
5
+ # Using a local Redis server (install with 'brew install redis')
6
+ host: 127.0.0.1
7
+ port: 6379
8
+ db: 1
9
+
10
+ # Using RedisToGo (don't use it on your dev station, it's only to be used on staging), otherwise we'll
11
+ # run out of clients quickly (cap is at 10 currently)
12
+ #url: "redis://redistogo:your_id_here@greeneye.redistogo.com:port/"
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ class BasicJob
4
+ include Resque::Plugins::Approve
5
+
6
+ def self.queue
7
+ "Some_Queue"
8
+ end
9
+
10
+ def self.perform(*args)
11
+ Resque.logger.warn "Args:\n#{Resque.encode(args)}"
12
+ end
13
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AutoDeleteApprovalKeyJob < BasicJob
4
+ @auto_delete_approval_key = true
5
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ RSpec.configure do |configuration|
4
+ configuration.before(:each) do
5
+ Resque::Plugins::Approve::Cleaner.purge_all
6
+
7
+ Resque.redis.redis.flushdb
8
+ end
9
+
10
+ configuration.after(:each) do
11
+ Resque::Plugins::Approve::Cleaner.purge_all
12
+
13
+ Resque.redis.redis.flushdb
14
+ end
15
+ end
metadata ADDED
@@ -0,0 +1,292 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: resque-approve
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - RealNobody
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-03-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: redis
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: redis-namespace
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: resque
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.25'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.25'
55
+ - !ruby/object:Gem::Dependency
56
+ name: activesupport
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: cornucopia
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: faker
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: gem-release
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rack-test
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: resque-scheduler
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rspec-rails
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rubocop
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: simplecov
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: sinatra
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '1.4'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '1.4'
195
+ - !ruby/object:Gem::Dependency
196
+ name: timecop
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ description: Keeps a list of jobs which require approval to run.
210
+ email:
211
+ - RealNobody1@cox.net
212
+ executables: []
213
+ extensions: []
214
+ extra_rdoc_files: []
215
+ files:
216
+ - MIT-LICENSE
217
+ - Rakefile
218
+ - lib/resque-approve.rb
219
+ - lib/resque/approve_server.rb
220
+ - lib/resque/plugins/approve.rb
221
+ - lib/resque/plugins/approve/approval_key_list.rb
222
+ - lib/resque/plugins/approve/cleaner.rb
223
+ - lib/resque/plugins/approve/pending_job.rb
224
+ - lib/resque/plugins/approve/pending_job_queue.rb
225
+ - lib/resque/plugins/approve/redis_access.rb
226
+ - lib/resque/plugins/version.rb
227
+ - lib/resque/server/public/approve.css
228
+ - lib/resque/server/views/_approval_key_list_pagination.erb
229
+ - lib/resque/server/views/_approval_key_rows.erb
230
+ - lib/resque/server/views/_job_list_table.erb
231
+ - lib/resque/server/views/_job_pagination.erb
232
+ - lib/resque/server/views/approval_keys.erb
233
+ - lib/resque/server/views/job_details.erb
234
+ - lib/resque/server/views/job_list.erb
235
+ - lib/tasks/resque-approve_tasks.rake
236
+ - spec/approve/approval_key_list_spec.rb
237
+ - spec/approve/cleaner_spec.rb
238
+ - spec/approve/pending_job_queue_spec.rb
239
+ - spec/approve/pending_job_spec.rb
240
+ - spec/approve_spec.rb
241
+ - spec/examples.txt
242
+ - spec/rails_helper.rb
243
+ - spec/server/public/approve.css_spec.rb
244
+ - spec/server/views/approval_keys.erb_spec.rb
245
+ - spec/server/views/job_details.erb_spec.rb
246
+ - spec/server/views/job_list.erb_spec.rb
247
+ - spec/spec_helper.rb
248
+ - spec/support/config/redis-auth.yml
249
+ - spec/support/jobs/01_basic_job.rb
250
+ - spec/support/jobs/auto_delete_approval_key_job.rb
251
+ - spec/support/purge_all.rb
252
+ homepage: https://github.com/RealNobody
253
+ licenses:
254
+ - MIT
255
+ metadata: {}
256
+ post_install_message:
257
+ rdoc_options: []
258
+ require_paths:
259
+ - lib
260
+ required_ruby_version: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - ">="
263
+ - !ruby/object:Gem::Version
264
+ version: '0'
265
+ required_rubygems_version: !ruby/object:Gem::Requirement
266
+ requirements:
267
+ - - ">="
268
+ - !ruby/object:Gem::Version
269
+ version: '0'
270
+ requirements: []
271
+ rubyforge_project:
272
+ rubygems_version: 2.5.1
273
+ signing_key:
274
+ specification_version: 4
275
+ summary: Keeps a list of jobs which require approval to run.
276
+ test_files:
277
+ - spec/spec_helper.rb
278
+ - spec/examples.txt
279
+ - spec/server/public/approve.css_spec.rb
280
+ - spec/server/views/job_details.erb_spec.rb
281
+ - spec/server/views/approval_keys.erb_spec.rb
282
+ - spec/server/views/job_list.erb_spec.rb
283
+ - spec/approve/pending_job_spec.rb
284
+ - spec/approve/approval_key_list_spec.rb
285
+ - spec/approve/pending_job_queue_spec.rb
286
+ - spec/approve/cleaner_spec.rb
287
+ - spec/approve_spec.rb
288
+ - spec/support/config/redis-auth.yml
289
+ - spec/support/jobs/01_basic_job.rb
290
+ - spec/support/jobs/auto_delete_approval_key_job.rb
291
+ - spec/support/purge_all.rb
292
+ - spec/rails_helper.rb