pjdavis-twitter 0.3.8 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,11 @@
1
+ 0.3.9 - December 19, 2008
2
+ * Added page functionality for the rpp, letting you specify which page of a query to get back.
3
+ * Fixed an error in the search specfile.
4
+
5
+ 0.3.8 - October 03, 2008
6
+ * added filter option to search, letting you specify options to filter by (i.e. links).
7
+ * fixed issue where Fetch would overwrite the @query[:q] array with a string, raising an undefined method error.
8
+
1
9
  0.3.7 - August 26, 2008
2
10
  * Fixed source param not getting through
3
11
 
@@ -64,6 +64,11 @@ module Twitter
64
64
  self
65
65
  end
66
66
 
67
+ def page(num)
68
+ @query[:page] = num
69
+ self
70
+ end
71
+
67
72
  # Only searches tweets since a given id.
68
73
  # Recommended to use this when possible.
69
74
  def since(since_id)
@@ -2,7 +2,7 @@ module Twitter #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 3
5
- TINY = 7
5
+ TINY = 9
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/spec/search_spec.rb CHANGED
@@ -38,7 +38,7 @@ describe Twitter::Search do
38
38
  end
39
39
 
40
40
  it "should be able to specify filters" do
41
- @search.filter('links').query[:q].should include ('filter:links')
41
+ @search.filter('links').query[:q].should include('filter:links')
42
42
  end
43
43
 
44
44
  it "should be able to specify hashed" do
@@ -53,6 +53,10 @@ describe Twitter::Search do
53
53
  @search.per_page(25).query[:rpp].should == 25
54
54
  end
55
55
 
56
+ it "should be able to specify the page of the returned results" do
57
+ @search.page(2).query[:page].should == 2
58
+ end
59
+
56
60
  it "should be able to specify only returning results greater than an id" do
57
61
  @search.since(1234).query[:since_id].should == 1234
58
62
  end
data/twitter.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{twitter}
3
- s.version = "0.3.8"
3
+ s.version = "0.3.9"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = ["John Nunemaker", "PJ Davis"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pjdavis-twitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker