live-search 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -8,6 +8,8 @@
8
8
  # puts result.url
9
9
  # puts result.display_url
10
10
  # end
11
+ #
12
+ # search.total #=> Total number of results returned
11
13
 
12
14
  You can also provide options in the second parameter. Example:
13
15
 
@@ -49,6 +49,11 @@ module LiveAPI
49
49
  response.results
50
50
  end
51
51
 
52
+ # The total number of results from the request
53
+ def total
54
+ response.total
55
+ end
56
+
52
57
  def query_string
53
58
  self.class.hash_to_query(@options)
54
59
  end
@@ -1,5 +1,5 @@
1
1
  module LiveAPI
2
2
  module Search
3
- VERSION = "0.0.2" unless defined?(LiveAPI::Search::VERSION)
3
+ VERSION = "0.0.3" unless defined?(LiveAPI::Search::VERSION)
4
4
  end
5
5
  end
@@ -3,7 +3,7 @@ require File.join(File.dirname(__FILE__), "spec_helper")
3
3
  describe LiveAPI::Search do
4
4
  before do
5
5
  @search_term = "search engine optimization"
6
- LiveAPI.application_id = "797DAB5F6860C407969014FD103EA24404AD7F35" # Your app id here
6
+ LiveAPI.application_id = "" # Your app id here
7
7
  end
8
8
 
9
9
  it "should return the top 50 results for the term seo" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: live-search
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lance Carlson
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-11-15 00:00:00 -05:00
12
+ date: 2008-11-17 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency