tags4free 0.1.2 → 0.1.3

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.tar.gz.sig CHANGED
Binary file
data/README.txt CHANGED
@@ -6,11 +6,10 @@ Tags4Free allows you to easily extract tags or keywords from any stringish
6
6
  content using the Yahoo! search API.
7
7
 
8
8
  == SYNOPSIS:
9
+ require 'rubygems'
10
+ require 'tags_4_free'
9
11
 
10
- require 'rubygems'
11
- require 'tags_4_free'
12
-
13
- Tags4Free.for("Tags4Free allows you to easily extract tags or keywords from any stringish content using the Yahoo! search API.") # => ["search api", "yahoo search", "yahoo"]
12
+ Tags4Free.for("Tags4Free allows you to easily extract tags or keywords from any stringish content using the Yahoo! search API.") # => ["search api", "yahoo search", "yahoo"]
14
13
 
15
14
  == REQUIREMENTS:
16
15
 
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ Hoe.new('tags4free', Tags4Free::VERSION) do |p|
13
13
  p.email = 'thorben@fetmab.net'
14
14
  p.summary = "Free tag extraction from content using Yahoo! search API."
15
15
  p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
16
- p.extra_deps << ['httparty'," >=0.1.3"]
16
+ p.extra_deps << ['httparty'," >=0.1.5"]
17
17
  end
18
18
 
19
19
  # vim: syntax=Ruby
@@ -4,7 +4,7 @@ module Tags4Free
4
4
  require 'httparty'
5
5
  include HTTParty
6
6
 
7
- VERSION = '0.1.2'
7
+ VERSION = '0.1.3'
8
8
 
9
9
  class YahooApiError < StandardError; end
10
10
 
@@ -17,13 +17,13 @@ module Tags4Free
17
17
  APPID = 'aPANO7nV34GzXKjOP9KBz8CEyH8UZp5we3NIY.305xTlOT2Pc0f.9BBLFdsTEw--'
18
18
  SERVICE_URL =
19
19
  'http://api.search.yahoo.com/ContentAnalysisService/V1/termExtraction'
20
- format :xml
21
20
 
22
21
  #
23
22
  # Generate tags for a string
24
23
  #
25
24
  # tags = Tags4Free.for('The content that should be tagged')
26
25
  def self.for(content)
26
+ format :xml
27
27
  begin
28
28
  result_set = get(SERVICE_URL, :query => {:appid => APPID, :context => content})
29
29
  rescue Net::HTTPServerException => e
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tags4free
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Thorben Schr\xC3\xB6der"
@@ -30,7 +30,7 @@ cert_chain:
30
30
  kX4sVHCM
31
31
  -----END CERTIFICATE-----
32
32
 
33
- date: 2008-10-10 00:00:00 +02:00
33
+ date: 2008-11-18 00:00:00 +01:00
34
34
  default_executable:
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
@@ -41,7 +41,7 @@ dependencies:
41
41
  requirements:
42
42
  - - ">="
43
43
  - !ruby/object:Gem::Version
44
- version: 0.1.3
44
+ version: 0.1.5
45
45
  version:
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: hoe
metadata.gz.sig CHANGED
Binary file