jsl-placemaker 0.0.1.5 → 0.0.1.6

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 (3) hide show
  1. data/README.rdoc +10 -1
  2. data/placemaker.gemspec +1 -1
  3. metadata +1 -1
data/README.rdoc CHANGED
@@ -24,7 +24,16 @@ already done so.
24
24
  p.fetch!
25
25
 
26
26
  This will make a call to the Placemaker service and populate the Placemaker::Client object with data about the places in the content that you
27
- sent to Yahoo. The information that you'll be interested in may be divided into "documents" and "meta-data".
27
+ sent to Yahoo. The information that you'll be interested in may be divided into "documents" and "meta-data."
28
+
29
+ You can also use placemaker with a document that you upload. Use +document_content+ in the configuration options instead of +document_url+, and
30
+ make sure to set the appropriate value for +document_type+. Acceptable mime types are text/plain, text/html, text/xml, text/rss, application/xml,
31
+ and application/rss+xml. The following is an example of using jsl-placemaker to encode content that you upload:
32
+
33
+ p = Placemaker::Client.new(:appid => YOUR_APP_ID, :document_content => 'railsconf was in las vegas this year', :document_type => 'text/plain')
34
+ p.fetch!
35
+
36
+ Afterwards, you have access to the same Placemaker::Client methods as if you had pointed placemaker to a +document_url+.
28
37
 
29
38
  == Documents
30
39
 
data/placemaker.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{placemaker}
5
- s.version = "0.0.1.5"
5
+ s.version = "0.0.1.6"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Justin Leitgeb"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsl-placemaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.5
4
+ version: 0.0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Leitgeb