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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88baa7d4a88c16a0c501eab1e8a7b355b11793a6
4
- data.tar.gz: a9c1423fdcaf7b39834f8a077f9cfafd25dd8807
3
+ metadata.gz: eedf3310fa58992d93019af577ddcacdd5921cd0
4
+ data.tar.gz: 958c0afae4f32ef6bbdb7e76998c0b4327e47794
5
5
  SHA512:
6
- metadata.gz: ba6a7afff78ffb73b2d9965c2b2555c5197809398c2526b42a703fabc923792f71ca5ffac07e57c0c77cb523b00876827bf499b6df8209b2eef415465065099a
7
- data.tar.gz: b4cc5072f9d58820ac99a1c8de22dee32adabebfb0b9c7eb50ea73389ff6a7d648632cc35a60a9f01bf0bc5e2e3ad6db1e12dd9d4649fa0d510258b8db0a3762
6
+ metadata.gz: 45b1fa326acebe89bfc0c1e9cc94612770e4fd10bc45a414d598d28dd1f55868a513eaf73912c6b6d79f12234238b4c24eabc08e597f47c880211c12cfa19164
7
+ data.tar.gz: bd2f5f605a5b7ac6a6724a2af23dc9e8f55734d538b4cd3e2c0732e01e5451fea4d2f6b3a3ed72f34a5414860ea1739112c9879a9770ab884af73022159e01b5
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Mygegegems
2
2
 
3
+ [![Build Status](https://travis-ci.org/melborne/mygegegems.svg?branch=master)](https://travis-ci.org/melborne/mygegegems)
4
+
3
5
  Report download numbers of you gems.
4
6
 
5
7
  ## Installation
@@ -19,8 +19,13 @@ module Mygegegems
19
19
  end
20
20
 
21
21
  def get(user_handle=nil)
22
- Gems.gems(user_handle)
23
- .inject({}) { |h, gem| h[gem['name']] = gem['downloads']; h }
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)
@@ -1,3 +1,3 @@
1
1
  module Mygegegems
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
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
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-15 00:00:00.000000000 Z
11
+ date: 2014-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gems