otr 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -0
- data/lib/otr.rb +4 -4
- metadata +4 -4
data/README.rdoc
CHANGED
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.
|
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
|
21
|
-
"forks" => html
|
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:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.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-
|
18
|
+
date: 2012-10-27 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rest-client
|