kloutbg 1.2.1 → 1.2.2

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 +11 -3
  2. data/Rakefile +1 -1
  3. data/klout.gemspec +1 -1
  4. data/lib/klout.rb +1 -3
  5. metadata +3 -3
data/README CHANGED
@@ -9,9 +9,17 @@ sudo gem install kloutbg
9
9
  Usage and Example
10
10
 
11
11
  >> require 'rubygems'
12
- >> require 'kloutbg'
13
- >> Kloutbg.base_host = "http://api.klout.com"
14
- >> Kloutbg.api_key = "yourkloutapikey"
12
+ >> require 'klout'
13
+
14
+ >> klout_client = Kloutbg.new("yourkloutapikey")
15
+ => #<Kloutbg:0x100c4e4>
16
+
17
+ >> response = klout_client.klout("jasontorres")
18
+ => #<HTTParty::Response:0x531dd0 @parsed_response={"users"=>[{"kscore"=>19.74, "twitter_screen_name"=>"jasontorres"}], "status"=>200}, @response=#<Net::HTTPOK 200 OK readbody=true>, @headers={"x-powered-by"=>["PHP/5.3.2-1ubuntu4.5"], "connection"=>["close"], "content-type"=>["application/json"], "x-mashery-responder"=>["proxyworker-i-5366f33a.mashery.com"], "server"=>["Apache/2.2.14 (Ubuntu)"], "date"=>["Thu, 04 Nov 2010 21:07:41 GMT"], "content-length"=>["77"], "vary"=>["Accept-Encoding,User-Agent"], "accept-ranges"=>["bytes"]}>
19
+
20
+ >>puts response.parsed_response["users"][0]["kscore"]
21
+ =>19.74
22
+
15
23
 
16
24
 
17
25
  Not supported in this Gem:
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ require 'httparty'
4
4
  require 'fileutils'
5
5
  require './lib/klout'
6
6
 
7
- Echoe.new 'kloutbg', '1.2.1' do |p|
7
+ Echoe.new 'kloutbg', '1.2.2' do |p|
8
8
  p.author = 'Brad Gilreath'
9
9
  p.email = 'bwgilreath@gmail.com'
10
10
  p.url = 'http://github.com/bgilreath/klout'
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{kloutbg}
5
- s.version = "1.2.1"
5
+ s.version = "1.2.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Jason Torres", "Brad Gilreath", "Eddy Parris"]
@@ -7,8 +7,7 @@ $:.unshift(File.dirname(__FILE__)) unless
7
7
 
8
8
  class Kloutbg
9
9
  include HTTParty
10
- VERSION = '1.2.1'
11
- class << self
10
+ VERSION = '1.2.2'
12
11
 
13
12
  @@base_host = "http://api.klout.com"
14
13
  @@api_version = "1"
@@ -89,5 +88,4 @@ class Kloutbg
89
88
  #Topic method: /verify
90
89
  #Not supported here yet
91
90
 
92
- end
93
91
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kloutbg
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 1
10
- version: 1.2.1
9
+ - 2
10
+ version: 1.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jason Torres