jnunemaker-twitter 0.6.1 → 0.6.2

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/History CHANGED
@@ -1,3 +1,7 @@
1
+ 0.6.2 - April 14, 2009
2
+ * 1 minor addition
3
+ * added max to search so you can set the max id that should be used
4
+
1
5
  0.6.1 - April 12, 2009
2
6
  * 1 minor fix
3
7
  * Had two friend_ids functions. Renamed one of them to follower_ids.
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 6
4
- :patch: 1
4
+ :patch: 2
@@ -75,6 +75,11 @@ module Twitter
75
75
  self
76
76
  end
77
77
 
78
+ def max(id)
79
+ @query[:max_id] = id
80
+ self
81
+ end
82
+
78
83
  # Clears all the query filters to make a new search
79
84
  def clear
80
85
  @fetch = nil
@@ -72,6 +72,12 @@ class SearchTest < Test::Unit::TestCase
72
72
  @search.fetch()
73
73
  end
74
74
 
75
+ should "should be able to specify max id" do
76
+ @search.max(1234)
77
+ @search.class.expects(:get).with('http://search.twitter.com/search.json', :query => {:max_id => 1234, :q => ''}, :format => :json).returns({'foo' => 'bar'})
78
+ @search.fetch()
79
+ end
80
+
75
81
  should "should be able to clear the filters set" do
76
82
  @search.from('jnunemaker').to('oaknd1')
77
83
  @search.clear.query.should == {:q => []}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jnunemaker-twitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-12 00:00:00 -07:00
12
+ date: 2009-04-14 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency