webtagger 0.1.0 → 0.1.1

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.
Files changed (5) hide show
  1. data/README.rdoc +8 -5
  2. data/Rakefile +1 -1
  3. data/VERSION +1 -1
  4. data/webtagger.gemspec +60 -0
  5. metadata +5 -4
data/README.rdoc CHANGED
@@ -15,10 +15,11 @@ And it's written to support any API in the future.
15
15
  ==Usage
16
16
 
17
17
  Ok, little caveat here, you might need an API-key for some of the services, so you might want to run
18
- webtagger configure [service=token]
18
+ webtagger --configure
19
19
 
20
- To get instructions on how to get and save the API keys. Or, you can pass them in the tagging method, like this
21
- tags = WebTagger.tag(text, service="yahoo", token="YOUR-API-KEY")
20
+ To set or update your API keys
21
+ Or, you can pass them in the tagging method, like this
22
+ tags = WebTagger.tag(text, "yahoo", "YOUR-API-KEY")
22
23
 
23
24
  Besides that pickle, the standard usage is really simple:
24
25
  require 'webtagger'
@@ -29,9 +30,11 @@ Besides that pickle, the standard usage is really simple:
29
30
  #to be on the look for exceptions
30
31
  tags = WebTagger.tag(text,"yahoo")
31
32
 
32
- If something funny happens when calling an API, a `WebTaggerException` will be raised, and the instance of it will count with a `response` attribute to see what the original error response was. P.e
33
+ WebTagger uses caching so rest assured you won't be throttled by the API providers.
34
+
35
+ If something funny happens when calling an API, a +WebTaggerException+ will be raised, and the instance of it will count with a +response+ attribute to see what the original error response was.
33
36
 
34
- If a http error happens (404, 500, etc), `nil` will be returned.
37
+ If a http error happens (404, 500, etc), +nil+ will be returned.
35
38
 
36
39
 
37
40
  == Note on Patches/Pull Requests
data/Rakefile CHANGED
@@ -6,7 +6,7 @@ begin
6
6
  Jeweler::Tasks.new do |gem|
7
7
  gem.name = "webtagger"
8
8
  gem.summary = %Q{Use some popular web services to extract keywords from text}
9
- gem.description = %Q{Use webtagger to hace easy access to keyword extraction web services (tagthe.net, yahoo and alchemy)}
9
+ gem.description = %Q{Use webtagger to use keyword extraction web services (yahoo, tagthe and alchemy) to extract from a text terms suitable for tagging, summarization, query building, etc.}
10
10
  gem.email = "me@lfborjas.com"
11
11
  gem.homepage = "http://github.com/lfborjas/webtagger"
12
12
  gem.authors = ["lfborjas"]
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
data/webtagger.gemspec ADDED
@@ -0,0 +1,60 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{webtagger}
8
+ s.version = "0.1.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["lfborjas"]
12
+ s.date = %q{2010-08-28}
13
+ s.description = %q{Use webtagger to use keyword extraction web services (yahoo, tagthe and alchemy) to extract from a text terms suitable for tagging, summarization, query building, etc.}
14
+ s.email = %q{me@lfborjas.com}
15
+ s.executables = ["webtagger", "webtagger"]
16
+ s.extra_rdoc_files = [
17
+ "LICENSE",
18
+ "README.rdoc"
19
+ ]
20
+ s.files = [
21
+ ".document",
22
+ ".gitignore",
23
+ "LICENSE",
24
+ "README.rdoc",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "bin/webtagger",
28
+ "lib/httparty_icebox.rb",
29
+ "lib/webtagger.rb",
30
+ "test/helper.rb",
31
+ "test/test_webtagger.rb",
32
+ "webtagger.gemspec"
33
+ ]
34
+ s.homepage = %q{http://github.com/lfborjas/webtagger}
35
+ s.rdoc_options = ["--charset=UTF-8"]
36
+ s.require_paths = ["lib"]
37
+ s.rubygems_version = %q{1.3.7}
38
+ s.summary = %q{Use some popular web services to extract keywords from text}
39
+ s.test_files = [
40
+ "test/helper.rb",
41
+ "test/test_webtagger.rb"
42
+ ]
43
+
44
+ if s.respond_to? :specification_version then
45
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
46
+ s.specification_version = 3
47
+
48
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
49
+ s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
50
+ s.add_runtime_dependency(%q<httparty>, ["= 0.6.1"])
51
+ else
52
+ s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
53
+ s.add_dependency(%q<httparty>, ["= 0.6.1"])
54
+ end
55
+ else
56
+ s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
57
+ s.add_dependency(%q<httparty>, ["= 0.6.1"])
58
+ end
59
+ end
60
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webtagger
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - lfborjas
@@ -48,7 +48,7 @@ dependencies:
48
48
  version: 0.6.1
49
49
  type: :runtime
50
50
  version_requirements: *id002
51
- description: Use webtagger to hace easy access to keyword extraction web services (tagthe.net, yahoo and alchemy)
51
+ description: Use webtagger to use keyword extraction web services (yahoo, tagthe and alchemy) to extract from a text terms suitable for tagging, summarization, query building, etc.
52
52
  email: me@lfborjas.com
53
53
  executables:
54
54
  - webtagger
@@ -70,6 +70,7 @@ files:
70
70
  - lib/webtagger.rb
71
71
  - test/helper.rb
72
72
  - test/test_webtagger.rb
73
+ - webtagger.gemspec
73
74
  has_rdoc: true
74
75
  homepage: http://github.com/lfborjas/webtagger
75
76
  licenses: []