inch-badge 0.1.0 → 0.1.1

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: d4afd78a2a4fa4daaf8b51eede53f73c978b2a2f
4
- data.tar.gz: 144a2d5bea028f9b9513ac7a38b55b6de168e3e6
3
+ metadata.gz: 591654afe92662eedea503fc0417d0e70858ac02
4
+ data.tar.gz: 4625c99d4d4f73b51b1a080deb98faedb66b435a
5
5
  SHA512:
6
- metadata.gz: 79222631950c6069edc8c2f00c6a3f11e9976247f2f0096a7d2031004822cfc3e80a3d3c20f584030105d49b72e6167d42f936345aa1d6930e4d41420ee542ee
7
- data.tar.gz: aa86ee54b5970e96be9c53dd49dd9b1454d6345ea8ea8be94baa5e28120e5f8f6887e5e511c56910bb77e70b58c2696e6bff6d4934beff73a4f07a1bd025abb6
6
+ metadata.gz: 677451c6bbfe6c20dc8a1746439c3301532cd8203ab64d1524368d8a4492ddd16b3199209857849d537b75aa351e94397d9230d0bc9d96f2372f83cecc44ce1f
7
+ data.tar.gz: 973dd06a0924c0713b76db26ecaa400c801a0f2994540157f3512e4eb5ab77de8bf72fa9243c2582813a98897e448af0a6cb89cc6bb46961c66e2e4668fbc3a3
data/README.md CHANGED
@@ -20,7 +20,7 @@ Or install it yourself as:
20
20
 
21
21
  ### Shell
22
22
 
23
- $ inch-badge FILENAME A B C U
23
+ $ inch-badge FILENAME U C B A
24
24
 
25
25
  Example:
26
26
 
@@ -14,6 +14,7 @@ module Inch
14
14
  end
15
15
 
16
16
  def width
17
+ return 0 if overall == 0
17
18
  ((size / overall.to_f) * section_width).round
18
19
  end
19
20
 
@@ -1,5 +1,5 @@
1
1
  module Inch
2
2
  module Badge
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inch-badge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - René Föhring
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-21 00:00:00.000000000 Z
11
+ date: 2014-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chunky_png
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  version: '0'
107
107
  requirements: []
108
108
  rubyforge_project:
109
- rubygems_version: 2.2.2
109
+ rubygems_version: 2.2.0
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: Rubygem used to generate badges for Inch