resque-history 1.7.0 → 1.7.1

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.0
1
+ 1.7.1
@@ -10,13 +10,13 @@ module Resque
10
10
  end
11
11
 
12
12
  def after_perform_history(*args)
13
- Resque.redis.rpush(HISTORY_SET_NAME, {"class"=>"#{self}",
13
+ Resque.redis.lpush(HISTORY_SET_NAME, {"class"=>"#{self}",
14
14
  "args"=>args,
15
15
  "time"=>Time.now.strftime("%Y-%m-%d %H:%M")
16
16
  }.to_json)
17
17
 
18
18
  if Resque.redis.llen(HISTORY_SET_NAME) > maximum_history_size
19
- Resque.redis.lpop(HISTORY_SET_NAME)
19
+ Resque.redis.rpop(HISTORY_SET_NAME)
20
20
  end
21
21
 
22
22
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "resque-history"
8
- s.version = "1.7.0"
8
+ s.version = "1.7.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Katzmopolitan"]
12
- s.date = "2012-04-17"
12
+ s.date = "2012-05-01"
13
13
  s.description = "Show history of recently executed jobs"
14
14
  s.email = "ilyakatz@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -70,9 +70,9 @@ describe Resque::Plugins::History do
70
70
 
71
71
  arr.count.should == 3
72
72
  arr.should == [
73
- {"class"=>"HistoryJob", "args"=>[13], "time"=>"2000-09-01 12:00"},
73
+ {"class"=>"HistoryJob", "args"=>[11], "time"=>"2000-09-01 12:00"},
74
74
  {"class"=>"HistoryJob", "args"=>[12], "time"=>"2000-09-01 12:00"},
75
- {"class"=>"HistoryJob", "args"=>[11], "time"=>"2000-09-01 12:00"}
75
+ {"class"=>"HistoryJob", "args"=>[13], "time"=>"2000-09-01 12:00"}
76
76
  ].collect(&:to_json)
77
77
  end
78
78
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-history
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-17 00:00:00.000000000 Z
12
+ date: 2012-05-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: resque-history