activist 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activist (0.0.5)
4
+ activist (0.0.6)
5
5
  activesupport (~> 3.0)
6
6
  redis (~> 2.2)
7
7
  redis-namespace (= 0.10.0)
@@ -17,6 +17,7 @@ module Activist
17
17
  def all(options={})
18
18
  options[:offset] ||= 0
19
19
  options[:limit] ||= size
20
+ options[:offset], options[:limit] = options[:offset].to_i, options[:limit].to_i
20
21
  activities = Redis.execute.lrange(to_key, options[:offset], options[:offset] + options[:limit])
21
22
  ::ActivistStatus.where(:id => activities)
22
23
  end
@@ -1,3 +1,3 @@
1
1
  module Activist
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
@@ -49,6 +49,7 @@ describe Activist do
49
49
  20.times { |n| Note.create!(:note => "Note' #{n}", :user => @kate) }
50
50
  @kate.private_stream.all(:offset => 0, :limit => 9).size.should == 10
51
51
  @kate.private_stream.all(:offset => 10, :limit => 9).size.should == 10
52
+ @kate.private_stream.all(:offset => "10", :limit => "9").size.should == 10
52
53
  @kate.private_stream.all(:offset => 20, :limit => 9).size.should == 0
53
54
  end
54
55
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: activist
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.5
5
+ version: 0.0.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - "Adrian Duli\xC4\x87"