resque-state 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 56b1a83d2e91b7ac03c1c7acb4070eccb33075c2
4
- data.tar.gz: c144dda6b15b35f88e78f23a08d02b0da589ee81
3
+ metadata.gz: def5514d96c48b47f9f04cb7c6531c475fdacc71
4
+ data.tar.gz: 55d4f6107656c9bf627c9a863cf767df92db2cad
5
5
  SHA512:
6
- metadata.gz: b8dd4139d3dabd4804f95a1f1d156515f2a5aaebfaa76ccb3c13afc39a79bfb00ae85b3731fdd1637663919ba553abd0ed6c8e0081bd1558d9f550e10093c11e
7
- data.tar.gz: ea5e97309395a4ed38eecec4e7bc41c4b61043a1668fd0f320d81fdc721c03f97e8ba2832404fb28622ea6c0d6aff651eb5f559496b039517ce43d1cb2a22b00
6
+ metadata.gz: 98191a7d19376ed31345aebee07d699743a24ab64c32e0ed872eae7a97fc02dd0e51cf5a952362d908871232960ec6c1f4e73c0803df25a74070002b273ba4ba
7
+ data.tar.gz: 69795a7d0a60b5a9ac19e8894c36b2d384848ad1f424e6b3a1a42fc1a90a503c37e6254a99c783dc6b28fd83877aa589b20ff6d39a5ea44b1fc794b497a39ca6
data/.travis.yml CHANGED
@@ -1,4 +1,20 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.2
4
- - jruby
4
+ - 2.3.4
5
+ - 2.4.1
6
+ - ruby-head
7
+ - jruby-9.1.0.0
8
+
9
+ matrix:
10
+ fast_finish: true
11
+ exclude:
12
+ - rvm: 2.0
13
+ allow_failures:
14
+ - rvm: ruby-head
15
+
16
+ script: bundle exec rake
17
+
18
+ before_install:
19
+ - gem update --system
20
+ - gem update jar-dependencies
data/README.rdoc CHANGED
@@ -22,7 +22,7 @@ and allowing the job instances to report their state from within their iteration
22
22
 
23
23
  == Installation
24
24
 
25
- Ruby 1.9.3 and up are supported.
25
+ Ruby 2.0+ and JRuby 9.0+ are supported.
26
26
 
27
27
  resque-state <b>requires Redis >= 1.1</b> (though I recommend getting the latest stable version).
28
28
  You can download Redis here: http://redis.io/ or install it
@@ -30,7 +30,7 @@ module Resque
30
30
  # end we update the status telling anyone listening to this job that its
31
31
  # complete.
32
32
  module State
33
- VERSION = '1.0.3'.freeze
33
+ VERSION = '1.0.4'.freeze
34
34
 
35
35
  STATUS_QUEUED = 'queued'.freeze
36
36
  STATUS_WORKING = 'working'.freeze
@@ -3,13 +3,13 @@
3
3
  <h1 class='wi'>Statuses</h1>
4
4
 
5
5
  <%unless @statuses.empty?%>
6
- <form method="POST" action="<%= u(:statuses) %>/clear" class='clear-failed'>
6
+ <form method="POST" action="<%= u(:state) %>/clear" class='clear-failed'>
7
7
  <input type='submit' name='' value='Clear Statuses' onclick='return confirm("Are you absolutely sure? This cannot be undone.");' />
8
8
  </form>
9
- <form method="POST" action="<%= u(:statuses) %>/clear/completed" class='clear-failed'>
9
+ <form method="POST" action="<%= u(:state) %>/clear/completed" class='clear-failed'>
10
10
  <input type='submit' name='' value='Clear Completed Statuses' onclick='return confirm("Are you absolutely sure? This cannot be undone.");' />
11
11
  </form>
12
- <form method="POST" action="<%= u(:statuses) %>/clear/failed" class='clear-failed'>
12
+ <form method="POST" action="<%= u(:state) %>/clear/failed" class='clear-failed'>
13
13
  <input type='submit' name='' value='Clear Failed Statuses' onclick='return confirm("Are you absolutely sure? This cannot be undone.");' />
14
14
  </form>
15
15
  <%end%>
@@ -28,7 +28,7 @@
28
28
  <% unless @statuses.empty? %>
29
29
  <% @statuses.each do |status| %>
30
30
  <tr>
31
- <td><a href="<%= u(:statuses) %>/<%= status.uuid %>"><%= status.uuid %></a></td>
31
+ <td><a href="<%= u(:state) %>/<%= status.uuid %>"><%= status.uuid %></a></td>
32
32
  <td><%= status.name %></td>
33
33
  <td class="status status-<%= status.status %>"><%= status.status %></td>
34
34
  <td class="time"><%= status.time.strftime("%Y/%m/%d %H:%M:%S %z") %></td>
@@ -37,7 +37,7 @@
37
37
  <div class="progress-pct"><%= status.pct_complete ? "#{status.pct_complete}%" : '' %></div>
38
38
  </td>
39
39
  <td><%= status.message %></td>
40
- <td><% if status.killable? %><a href="<%= u(:statuses) %>/<%= status.uuid %>/kill" class="kill">Kill</a><% end %></td>
40
+ <td><% if status.killable? %><a href="<%= u(:state) %>/<%= status.uuid %>/kill" class="kill">Kill</a><% end %></td>
41
41
  </tr>
42
42
  <% end %>
43
43
  <% else %>
@@ -24,27 +24,27 @@ module Resque
24
24
 
25
25
  app.get '/state/:id' do
26
26
  @status = Resque::Plugins::State::Hash.get(params[:id])
27
- status_view(:status)
27
+ status_view(:state)
28
28
  end
29
29
 
30
30
  app.post '/state/:id/kill' do
31
31
  Resque::Plugins::State::Hash.kill(params[:id])
32
- redirect u(:statuses)
32
+ redirect u(:state)
33
33
  end
34
34
 
35
35
  app.post '/state/clear' do
36
36
  Resque::Plugins::State::Hash.clear
37
- redirect u(:statuses)
37
+ redirect u(:state)
38
38
  end
39
39
 
40
40
  app.post '/state/clear/completed' do
41
41
  Resque::Plugins::State::Hash.clear_completed
42
- redirect u(:statuses)
42
+ redirect u(:state)
43
43
  end
44
44
 
45
45
  app.post '/state/clear/failed' do
46
46
  Resque::Plugins::State::Hash.clear_failed
47
- redirect u(:statuses)
47
+ redirect u(:state)
48
48
  end
49
49
 
50
50
  app.get '/state.poll' do
data/resque-state.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: resque-state 1.0.3 ruby lib
5
+ # stub: resque-state 1.0.4 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "resque-state".freeze
9
- s.version = "1.0.3"
9
+ s.version = "1.0.4"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Aaron Quint".freeze, "Nathan V".freeze]
14
- s.date = "2017-04-21"
14
+ s.date = "2017-05-04"
15
15
  s.description = "resque-state is an extension to the resque queue system that provides simple trackable jobs. It provides a Resque::Plugins::State::Hash class which can set/get the statuses of jobs and a Resque::Plugins::State class that, when included, provides easily trackable/killable/pausable jobs.".freeze
16
16
  s.email = "nathan.v@gmail.com".freeze
17
17
  s.extra_rdoc_files = [
@@ -44,7 +44,7 @@ Gem::Specification.new do |s|
44
44
  s.homepage = "http://github.com/nathan-v/resque-state".freeze
45
45
  s.licenses = ["MIT".freeze]
46
46
  s.rubyforge_project = "nathan-v".freeze
47
- s.rubygems_version = "2.6.10".freeze
47
+ s.rubygems_version = "2.6.11".freeze
48
48
  s.summary = "resque-state is an extension to the resque queue system that provides simple trackable jobs.".freeze
49
49
 
50
50
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-state
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Quint
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-04-21 00:00:00.000000000 Z
12
+ date: 2017-05-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: resque
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  requirements: []
93
93
  rubyforge_project: nathan-v
94
- rubygems_version: 2.6.10
94
+ rubygems_version: 2.6.11
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: resque-state is an extension to the resque queue system that provides simple