badgerbadgerbadger 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/config.yaml +2 -1
- data/features/badger.feature +1 -1
- data/features/ssh-remote.feature +1 -1
- data/lib/badger/badger.rb +0 -1
- data/lib/badger/bonus.rb +1 -1
- data/lib/badger/version.rb +1 -1
- data/spec/badger_spec.rb +6 -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: 71146b486d477909b9c46a8dd9b3f5e27f49095e
|
4
|
+
data.tar.gz: e1d60721ac659456aa3413f45079fd824abc858e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a161ba164c17abc862d3c7635dec0ad9080731fee9d204f554991ed5bc9056b2a20c0bba5bcc38eae8047dcad6fa0f11dd475d367ba370b111661b36c98563e1
|
7
|
+
data.tar.gz: 59790aef4466a6217b95a6bf428656c8606e6a9ca938b5aa4e92358c7bb086c21a3e458afda36bc11a12637177da3bceaefe80f630a0b79f61501a0edc04a379
|
data/config/config.yaml
CHANGED
data/features/badger.feature
CHANGED
@@ -14,7 +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)](
|
17
|
+
[![Badges](http://img.shields.io/:badges-7/7-ff6799.svg)](https://github.com/pikesley/badger)
|
18
18
|
"""
|
19
19
|
And the output should not contain:
|
20
20
|
"""
|
data/features/ssh-remote.feature
CHANGED
@@ -14,7 +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)](
|
17
|
+
[![Badges](http://img.shields.io/:badges-7/7-ff6799.svg)](https://github.com/pikesley/badger)
|
18
18
|
"""
|
19
19
|
And the output should not contain:
|
20
20
|
"""
|
data/lib/badger/badger.rb
CHANGED
data/lib/badger/bonus.rb
CHANGED
@@ -7,7 +7,7 @@ module Badger
|
|
7
7
|
badger.length + 1,
|
8
8
|
Config.instance.config['bonus_badge_colour']
|
9
9
|
]
|
10
|
-
target_url = '
|
10
|
+
target_url = '%s' % Config.instance.config['bonus_badge_link']
|
11
11
|
|
12
12
|
Badger.badge 'Badges', badge_url, target_url
|
13
13
|
end
|
data/lib/badger/version.rb
CHANGED
data/spec/badger_spec.rb
CHANGED
@@ -25,6 +25,11 @@ module Badger
|
|
25
25
|
@badger = Badger.new "git@github.com:doge/wow.git"
|
26
26
|
@badger.github_slug.should eql('doge/wow')
|
27
27
|
end
|
28
|
+
|
29
|
+
it 'knows that sometimes an https url has a .git suffix because REASONS' do
|
30
|
+
@badger = Badger.new "https://github.com/doge/wow.git"
|
31
|
+
@badger.github_slug.should eql('doge/wow')
|
32
|
+
end
|
28
33
|
end
|
29
34
|
|
30
35
|
context 'service badges' do
|
@@ -88,7 +93,7 @@ module Badger
|
|
88
93
|
@badger.add 'travis'
|
89
94
|
@badger.add 'coveralls'
|
90
95
|
@badger.bonus
|
91
|
-
@badger[2].should == "[![Badges](http://img.shields.io/:badges-3/3-ff6799.svg)](
|
96
|
+
@badger[2].should == "[![Badges](http://img.shields.io/:badges-3/3-ff6799.svg)](https://github.com/pikesley/badger)"
|
92
97
|
end
|
93
98
|
end
|
94
99
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: badgerbadgerbadger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pikesley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|