bumbleworks 0.0.17 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -142,6 +142,11 @@ module Bumbleworks
142
142
  params['claimant']
143
143
  end
144
144
 
145
+ # Timestamp of last claim, nil if not currently claimed
146
+ def claimed_at
147
+ params['claimed_at']
148
+ end
149
+
145
150
  # Claim task and assign token to claimant
146
151
  def claim(token)
147
152
  set_claimant(token)
@@ -1,3 +1,3 @@
1
1
  module Bumbleworks
2
- VERSION = "0.0.17"
2
+ VERSION = "0.0.18"
3
3
  end
@@ -304,6 +304,12 @@ describe Bumbleworks::Task do
304
304
  end
305
305
  end
306
306
 
307
+ describe '#claimed_at' do
308
+ it 'returns claimed_at param' do
309
+ @task.claimed_at.should == @task.params['claimed_at']
310
+ end
311
+ end
312
+
307
313
  describe '#claimed?' do
308
314
  it 'returns true if claimed' do
309
315
  @task.claimed?.should be_true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bumbleworks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: