mygegegems 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/mygegegems/client.rb +7 -2
- data/lib/mygegegems/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eedf3310fa58992d93019af577ddcacdd5921cd0
|
4
|
+
data.tar.gz: 958c0afae4f32ef6bbdb7e76998c0b4327e47794
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45b1fa326acebe89bfc0c1e9cc94612770e4fd10bc45a414d598d28dd1f55868a513eaf73912c6b6d79f12234238b4c24eabc08e597f47c880211c12cfa19164
|
7
|
+
data.tar.gz: bd2f5f605a5b7ac6a6724a2af23dc9e8f55734d538b4cd3e2c0732e01e5451fea4d2f6b3a3ed72f34a5414860ea1739112c9879a9770ab884af73022159e01b5
|
data/README.md
CHANGED
data/lib/mygegegems/client.rb
CHANGED
@@ -19,8 +19,13 @@ module Mygegegems
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def get(user_handle=nil)
|
22
|
-
Gems.gems(user_handle)
|
23
|
-
|
22
|
+
gems = Gems.gems(user_handle)
|
23
|
+
case gems
|
24
|
+
when Array
|
25
|
+
gems.inject({}) { |h, gem| h[gem['name']] = gem['downloads']; h }
|
26
|
+
else
|
27
|
+
{}
|
28
|
+
end
|
24
29
|
end
|
25
30
|
|
26
31
|
def load(path)
|
data/lib/mygegegems/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mygegegems
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kyoendo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gems
|