badgerbadgerbadger 0.6.3 → 0.7.0

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: 960c2166ccb9788e9af1d694f3144c56a2b3415c
4
- data.tar.gz: 7d9ef2667dd72ba192a0ccc1ad70cae43de00dd1
3
+ metadata.gz: 90d42e75b8b3f5058a3cafb3355c81e87bb25964
4
+ data.tar.gz: 8a1e5247cb53af991270dc8f203864c0f2df640c
5
5
  SHA512:
6
- metadata.gz: 09d9cca1eb89bf73a84dd6979ce25582c78298a01c95941e68d30b9908a1ec9c71b1e8adb668b06eee09e5533cb6d09a9f989a9eda04d6c82274ba71bb286f04
7
- data.tar.gz: 85cf59f9b49b9b35ff923536860e82c3f52630c25ead8227176ce1af1099cbba3d3239d6c89a8de29042a1715931d7f795f9b4aa47fc5a57d970dd2fc65b0118
6
+ metadata.gz: 25168a2eef1b3218a42fbb2f19e2dc93fc150b845cb9cd329ea7fa2c9f6c3e19e487ffe0df8a993805aaa4ffcdbffa181051620488d75e4d7001b489b30acb19
7
+ data.tar.gz: 82748014fca61117b36b919b0d61bf63437c15c126cced68b6d3cc2fb0bed9076e03dddc64c98c1f20d37718e7bc398902b5e47d662e226c4fdce2f0d1b3f3ec
data/README.md CHANGED
@@ -1,9 +1,10 @@
1
1
  [![Build Status](http://img.shields.io/travis/pikesley/badger.svg)](https://travis-ci.org/pikesley/badger)
2
- [![Coverage Status](http://img.shields.io/coveralls/pikesley/badger.svg)](https://coveralls.io/r/pikesley/badger)
3
2
  [![Dependency Status](http://img.shields.io/gemnasium/pikesley/badger.svg)](https://gemnasium.com/pikesley/badger)
3
+ [![Coverage Status](http://img.shields.io/coveralls/pikesley/badger.svg)](https://coveralls.io/r/pikesley/badger)
4
4
  [![Code Climate](http://img.shields.io/codeclimate/github/pikesley/badger.svg)](https://codeclimate.com/github/pikesley/badger)
5
5
  [![Gem Version](http://img.shields.io/gem/v/badgerbadgerbadger.svg)](https://rubygems.org/gems/badgerbadgerbadger)
6
6
  [![License](http://img.shields.io/:license-mit-blue.svg)](http://pikesley.mit-license.org)
7
+ [![Badges](http://img.shields.io/:badges-7/7-ff6799.svg)](http://img.shields.io)
7
8
 
8
9
  #Badger
9
10
 
@@ -23,14 +24,15 @@ or add it to your Gemfile
23
24
  Then
24
25
 
25
26
  badger badge
26
- [![Build Status](http://img.shields.io/travis/pikesley/badger.svg)](https://travis-ci.org/pikesley/badger)
27
- [![Coverage Status](http://img.shields.io/coveralls/pikesley/badger.svg)](https://coveralls.io/r/pikesley/badger)
28
- [![Dependency Status](http://img.shields.io/gemnasium/pikesley/badger.svg)](https://gemnasium.com/pikesley/badger)
29
- [![Code Climate](http://img.shields.io/codeclimate/github/pikesley/badger.svg)](https://codeclimate.com/github/pikesley/badger)
30
- [![Gem Version](http://img.shields.io/gem/v/badgerbadgerbadger.svg)](https://rubygems.org/gems/badgerbadgerbadger)
31
- [![License](http://img.shields.io/:license-mit-blue.svg)](http://pikesley.mit-license.org)
32
-
33
- ready to paste into the top of your README (with the correct URLs for your repo (hopefully)).
27
+ [![Build Status](http://img.shields.io/travis/doge/wow.svg)](https://travis-ci.org/doge/wow)
28
+ [![Dependency Status](http://img.shields.io/gemnasium/doge/wow.svg)](https://gemnasium.com/doge/wow)
29
+ [![Coverage Status](http://img.shields.io/coveralls/doge/wow.svg)](https://coveralls.io/r/doge/wow)
30
+ [![Code Climate](http://img.shields.io/codeclimate/github/doge/wow.svg)](https://codeclimate.com/github/doge/wow)
31
+ [![Gem Version](http://img.shields.io/gem/v/suchgem.svg)](https://rubygems.org/gems/suchgem)
32
+ [![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)
33
+ [![Badges](http://img.shields.io/:badges-7/7-ff6799.svg)](http://img.shields.io)
34
+
35
+ ready to paste into the top of your README (with the correct URLs for your repo)
34
36
 
35
37
  Try
36
38
 
@@ -1,2 +1,3 @@
1
- badge_service: img.shields.io
2
- license_colour: blue
1
+ badge_service: img.shields.io
2
+ license_colour: blue
3
+ bonus_badge_colour: ff6799
@@ -14,6 +14,7 @@ Feature: Badge robot
14
14
  [![Code Climate](http://img.shields.io/codeclimate/github/doge/wow.svg)](https://codeclimate.com/github/doge/wow)
15
15
  [![Gem Version](http://img.shields.io/gem/v/suchgem.svg)](https://rubygems.org/gems/suchgem)
16
16
  [![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)
17
+ [![Badges](http://img.shields.io/:badges-7/7-ff6799.svg)](http://img.shields.io)
17
18
  """
18
19
  And the output should not contain:
19
20
  """
@@ -28,6 +28,18 @@ module Badger
28
28
  self << Rubygem.badge(name)
29
29
  end
30
30
 
31
+ def bonus
32
+ self.uniq!
33
+
34
+ badge_url = 'http://img.shields.io/:badges-%d/%d-%s.svg' % [
35
+ self.length + 1,
36
+ self.length + 1,
37
+ Config.instance.config['bonus_badge_colour']
38
+ ]
39
+ target_url = 'http://img.shields.io'
40
+ self << Badger.badge('Badges', badge_url, target_url)
41
+ end
42
+
31
43
  def to_s
32
44
  self.uniq!
33
45
 
@@ -54,6 +54,7 @@ The supported license details are in https://github.com/pikesley/badger/blob/mas
54
54
  @badger.license license_type
55
55
  end
56
56
 
57
+ @badger.bonus
57
58
  puts @badger.to_s
58
59
  end
59
60
 
@@ -1,3 +1,3 @@
1
1
  module Badger
2
- VERSION = "0.6.3"
2
+ VERSION = "0.7.0"
3
3
  end
@@ -83,6 +83,15 @@ module Badger
83
83
  end
84
84
  end
85
85
 
86
+ context 'bonus badge' do
87
+ it 'should have a badges badge' do
88
+ @badger.add 'travis'
89
+ @badger.add 'coveralls'
90
+ @badger.bonus
91
+ @badger[2].should == "[![Badges](http://img.shields.io/:badges-3/3-ff6799.svg)](http://img.shields.io)"
92
+ end
93
+ end
94
+
86
95
  context 'output' do
87
96
  it 'should produce some lines of text' do
88
97
  @badger.add 'travis'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: badgerbadgerbadger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - pikesley