resque-job_history 0.0.2 → 0.0.3

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: 4014d5408bda6f84a8e9779ebc7d1fe26d7f1a31
4
- data.tar.gz: 080997bc6cb436dfd7efc0cb505ceb5d707e0f80
3
+ metadata.gz: 478ee17e82e8a2fcd742c17c56bda6b5586065d9
4
+ data.tar.gz: 259443101165e95cd9bf685159ae03ce8c266311
5
5
  SHA512:
6
- metadata.gz: f6826cd3babf4b41a3cb40d3abd32fa6eaca66b0aed7a1190c97855476e386082b7dfc5a16c77ee5455d6bb1963714153e76599191b87c22b5fc478297926a5b
7
- data.tar.gz: 5a279b25e700dcfda034517029f6b587224e6050a48e98c850778700bfd77bcbe4de87830f60a0d2707c59b03f861fb957c0a3c0b6f273263862b5a36088fd66
6
+ metadata.gz: b546a34fa89692e2794f15d2801fa89faad6771a7015d4c778565b1c0241c52a2f5e928aee9a8fc2d6d856c07854d94a334b5355522efd27ec624841c9a932ab
7
+ data.tar.gz: 883a626bd6d5b813378164c4e8ab2ec397993218e07545cdd88245d5fc7e485af7e2e7696371eb18986cd16c14219a44497e2388c9146e336254fa4a758ed43f
@@ -1,7 +1,7 @@
1
1
  module Resque
2
2
  module Plugins
3
3
  module JobHistory
4
- VERSION = "0.0.2"
4
+ VERSION = "0.0.3"
5
5
  end
6
6
  end
7
7
  end
@@ -20,7 +20,7 @@
20
20
 
21
21
  <a href="job%20history?<%= { sort: @sort_by,
22
22
  page_size: page_size,
23
- page_num: page_num - 1,
23
+ page_num: [1, page_num - 1].max,
24
24
  order: @sort_order }.to_param %>"
25
25
  class="job_history_prev_page"
26
26
  disabled="<%= page_num > 1 %>">
@@ -47,7 +47,7 @@
47
47
  <div class="job_history_next_links">
48
48
  <a href="job%20history?<%= { sort: @sort_by,
49
49
  page_size: page_size,
50
- page_num: page_num + 1,
50
+ page_num: [total_pages, page_num + 1].min,
51
51
  order: @sort_order }.to_param %>"
52
52
  class="job_history_next_page"
53
53
  disabled="<%= page_num < last_page %>">
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-job_history
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - RealNobody
@@ -66,20 +66,6 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: sqlite3
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
69
  - !ruby/object:Gem::Dependency
84
70
  name: rspec-rails
85
71
  requirement: !ruby/object:Gem::Requirement
@@ -102,7 +88,6 @@ extensions: []
102
88
  extra_rdoc_files: []
103
89
  files:
104
90
  - MIT-LICENSE
105
- - README.rdoc
106
91
  - Rakefile
107
92
  - lib/resque-job_history.rb
108
93
  - lib/resque/job_history_server.rb
data/README.rdoc DELETED
@@ -1,3 +0,0 @@
1
- = ResqueJobHistory
2
-
3
- This project rocks and uses MIT-LICENSE.