gscraper 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ == 0.1.2 / 2007-12-22
2
+
3
+ * Fixed a bug related to extracting the correct content-rights from search
4
+ query URLs.
5
+ * Added GScraper.user_agent_aliases.
6
+
1
7
  == 0.1.1 / 2007-12-21
2
8
 
3
9
  * Forgot to include lib/gscraper/version.rb.
@@ -3,14 +3,21 @@ require 'open-uri'
3
3
 
4
4
  module GScraper
5
5
  #
6
- # Returns the GScraper user-agent
6
+ # Returns the supported GScraper User-Agent Aliases.
7
+ #
8
+ def GScraper.user_agent_aliases
9
+ WWW::Mechanize::AGENT_ALIASES
10
+ end
11
+
12
+ #
13
+ # Returns the GScraper User-Agent
7
14
  #
8
15
  def GScraper.user_agent
9
16
  @user_agent
10
17
  end
11
18
 
12
19
  #
13
- # Sets the GScraper user-agent to the specified _agent_.
20
+ # Sets the GScraper User-Agent to the specified _agent_.
14
21
  #
15
22
  def GScraper.user_agent=(agent)
16
23
  @user_agent = agent
@@ -201,7 +201,7 @@ module GScraper
201
201
  when '(cc_publicdomain|cc_attribute|cc_sharealike|cc_nonderived).-(cc_noncommercial)'
202
202
  opts[:rights] = Licenses::CC_BY_SA
203
203
  when '(cc_publicdomain|cc_attribute|cc_sharealike|cc_noncommercial).-(cc_nonderived)'
204
- opts[:rights] = Licenses::CC_BY_ND
204
+ opts[:rights] = Licenses::CC_BY_NC
205
205
  when '(cc_publicdomain|cc_attribute|cc_sharealike).-(cc_noncommercial|cc_nonderived)'
206
206
  opts[:rights] = Licenses::CC_BY
207
207
  end
@@ -1,3 +1,3 @@
1
1
  module GScraper
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: gscraper
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.1
6
+ version: 0.1.2
7
7
  date: 2007-12-21 00:00:00 -08:00
8
8
  summary: A ruby web-scraping interface to various Google Services
9
9
  require_paths: