inch-badge 0.3.4 → 0.3.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: c55b7c8c231b75843237d30e0ffc1e3344045bed
4
- data.tar.gz: 85b68fb1312ffbf5644381edbae35e0bf9e9b36b
3
+ metadata.gz: a2f7944ed9c074f8f6b18ff3450690b23d56d041
4
+ data.tar.gz: 7e410e067d7e666474b6b7ca13af03130bf21309
5
5
  SHA512:
6
- metadata.gz: d116859e5a8061d730a39d46a20e2f5973f5ad46e95d3c53f61edbb4ddc8fe8a61d0f22779a2c25d9b26b6144821cf55bfd16640f6ae7428c036b20a99811770
7
- data.tar.gz: 7b496215f416715e5ee12d6920f5e19fe7bcaa781df46ba7a3576d63fc4b1a23504d3d30e2a78a24def0baaebb2d1514c4f13e202f1635340e0ff029c58b6276
6
+ metadata.gz: d7625edeb3f4627e95d362d876ddcd5bf86797c9ad964dfdffdde271f61c5bcbf9ca193e326bb158711d022e05bdb14da3275d7520b32877b249ee1203c5c8e4
7
+ data.tar.gz: b4f3e1467e1a1a02b1a47ef47e650f498f9d59a7eb03695aed217291f8b74b7961a7c8e7d6f6f1a72c23206d4670d3126b25e9f8e29f647977b436d351090ed2
@@ -0,0 +1,48 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="80" height="20">
2
+ <linearGradient id="a" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient>
3
+ <rect width="80" height="20" fill="#555"/>
4
+ <rect width="80" height="20" fill="url(#a)"/>
5
+
6
+ <linearGradient id="gradA" x2="0" y2="100%">
7
+ <stop offset="0" stop-color="#46b01e" />
8
+ <stop offset=".1" stop-color="#46b01e" />
9
+ <stop offset=".5" stop-color="#46b01e" />
10
+ <stop offset=".9" stop-color="#46b01e" />
11
+ <stop offset="1" stop-color="#46b01e" />
12
+ </linearGradient>
13
+ <linearGradient id="gradB" x2="0" y2="100%">
14
+ <stop offset="0" stop-color="#87ae10" />
15
+ <stop offset=".1" stop-color="#87ae10" />
16
+ <stop offset=".5" stop-color="#87ae10" />
17
+ <stop offset=".9" stop-color="#87ae10" />
18
+ <stop offset="1" stop-color="#87ae10" />
19
+ </linearGradient>
20
+ <linearGradient id="gradC" x2="0" y2="100%">
21
+ <stop offset="0" stop-color="#c05946" />
22
+ <stop offset=".1" stop-color="#c05946" />
23
+ <stop offset=".5" stop-color="#c05946" />
24
+ <stop offset=".9" stop-color="#c05946" />
25
+ <stop offset="1" stop-color="#c05946" />
26
+ </linearGradient>
27
+ <linearGradient id="gradU" x2="0" y2="100%">
28
+ <stop offset="0" stop-color="#7a67a0" />
29
+ <stop offset=".1" stop-color="#7a67a0" />
30
+ <stop offset=".5" stop-color="#7a67a0" />
31
+ <stop offset=".9" stop-color="#7a67a0" />
32
+ <stop offset="1" stop-color="#7a67a0" />
33
+ </linearGradient>
34
+
35
+ <%
36
+ bar_x = 33 + 3
37
+ bar_x2 = 72 + 3
38
+ x = 0
39
+ %>
40
+ <% @grades.each do |grade| %>
41
+ <rect x="<%= bar_x+x %>" y="4" width="<%= grade.width %>" height="12" fill="url(#grad<%= grade.name %>)"/>
42
+ <% x += grade.width %>
43
+ <% end %>
44
+
45
+ <g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
46
+ <text x="18.5" y="14">docs</text>
47
+ </g>
48
+ </svg>
data/bin/inch-badge CHANGED
@@ -16,6 +16,8 @@ require 'inch/badge'
16
16
  style = 'default'
17
17
  if ARGV.delete('--flat')
18
18
  style = 'flat'
19
+ elsif ARGV.delete('--flat-square')
20
+ style = 'flat-square'
19
21
  end
20
22
 
21
23
  if ARGV.size != 5
@@ -1,5 +1,5 @@
1
1
  module Inch
2
2
  module Badge
3
- VERSION = "0.3.4"
3
+ VERSION = "0.3.5"
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.3.4
4
+ version: 0.3.5
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-08-05 00:00:00.000000000 Z
11
+ date: 2014-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chunky_png
@@ -68,6 +68,7 @@ files:
68
68
  - README.md
69
69
  - Rakefile
70
70
  - assets/badge-default.svg.erb
71
+ - assets/badge-flat-square.svg.erb
71
72
  - assets/badge-flat.svg.erb
72
73
  - assets/bg.png
73
74
  - assets/grade-A-begin.png