stackoverflow-rep 0.0.0 → 0.0.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.
data/README.rdoc CHANGED
@@ -1,7 +1,18 @@
1
1
  = stackoverflow-rep
2
2
 
3
+ {<img src="https://badge.fury.io/rb/stackoverflow-rep.png" alt="Gem Version" />}[http://badge.fury.io/rb/stackoverflow-rep]
4
+
3
5
  This gem used to find reputation for a given stackoverflow userid.
4
6
 
7
+ == Installation
8
+
9
+ gem install stackoverflow-rep
10
+
11
+ == Usage
12
+
13
+ 1689539.find_rep
14
+ #=> 566
15
+
5
16
  == Contributing to stackoverflow-rep
6
17
 
7
18
  * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
@@ -6,7 +6,7 @@ module Adroit
6
6
  @so_page = Nokogiri::HTML(open(@so_url))
7
7
  @reputation = 0
8
8
  @so_page.css('div.reputation span a').each do |rep|
9
- @reputation = rep.content
9
+ @reputation = rep.content.to_i
10
10
  end
11
11
  @reputation
12
12
  rescue
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stackoverflow-rep
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -119,7 +119,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
119
  version: '0'
120
120
  segments:
121
121
  - 0
122
- hash: -536953699
122
+ hash: 233085149
123
123
  required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  none: false
125
125
  requirements: