otr 0.1.1 → 0.1.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 (3) hide show
  1. data/README.rdoc +2 -0
  2. data/lib/otr.rb +4 -4
  3. metadata +4 -4
data/README.rdoc CHANGED
@@ -1,5 +1,7 @@
1
1
  = One True Repo
2
2
 
3
+ Created by {Stephen McDonald}[http://twitter.com/stephen_mcd]
4
+
3
5
  == One feed to rule them all, and in the mashup bind them.
4
6
 
5
7
  _One_ _True_ _Repo_ merges both the {GitHub}[http://github.com] and
data/lib/otr.rb CHANGED
@@ -5,7 +5,7 @@ require "json"
5
5
  require "rest_client"
6
6
 
7
7
  module OTR
8
- VERSION = "0.1.1"
8
+ VERSION = "0.1.2"
9
9
 
10
10
  def self.get_bb(username)
11
11
  repos = {}
@@ -14,11 +14,11 @@ module OTR
14
14
  Thread.new repo do |repo|
15
15
  name = repo["slug"]
16
16
  url = "https://bitbucket.org/#{username}/#{name}/descendants"
17
- html = RestClient.get(url)
17
+ html = RestClient.get(url).split("<span class=\"value\">")
18
18
  repos[name] = {
19
19
  "name" => name,
20
- "watchers" => html.split("followers-count\">")[1].to_i,
21
- "forks" => html.split("Forks/queues (")[1].to_i,
20
+ "watchers" => html[4].to_i,
21
+ "forks" => html[3].to_i,
22
22
  "fork" => repo["is_fork"],
23
23
  "urls" => ["https://bitbucket.org/#{username}/#{name}"]
24
24
  }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: otr
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Stephen McDonald
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-06-14 00:00:00 Z
18
+ date: 2012-10-27 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rest-client