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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d20aed8fbca6e4d0f914135e1fe09e1d2bfb431e
4
- data.tar.gz: 6880c87f576885dcf7e3dd4bd533c4ccc2826d82
3
+ metadata.gz: 71146b486d477909b9c46a8dd9b3f5e27f49095e
4
+ data.tar.gz: e1d60721ac659456aa3413f45079fd824abc858e
5
5
  SHA512:
6
- metadata.gz: 0687d4ebc2e9a0daa8fac89c8e436218ccaac5cf506af18fa432625956aa118793246194a313c08ec77a81fbe661186585f204cb0f72274fa34aa2349d5de3ed
7
- data.tar.gz: cd13e19bdb0c01047f7b6ff63235f5586c43ee1d9d0cc3e81654217c1667fe3854c570fc294566b891fe082ff27c9d25631025aad98af0c6b3af9e06a41ecfd5
6
+ metadata.gz: a161ba164c17abc862d3c7635dec0ad9080731fee9d204f554991ed5bc9056b2a20c0bba5bcc38eae8047dcad6fa0f11dd475d367ba370b111661b36c98563e1
7
+ data.tar.gz: 59790aef4466a6217b95a6bf428656c8606e6a9ca938b5aa4e92358c7bb086c21a3e458afda36bc11a12637177da3bceaefe80f630a0b79f61501a0edc04a379
@@ -1,3 +1,4 @@
1
1
  badge_service: img.shields.io
2
2
  license_colour: blue
3
- bonus_badge_colour: ff6799
3
+ bonus_badge_colour: ff6799
4
+ bonus_badge_link: https://github.com/pikesley/badger
@@ -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)](http://img.shields.io)
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
  """
@@ -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)](http://img.shields.io)
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
  """
@@ -7,7 +7,6 @@ module Badger
7
7
  end
8
8
 
9
9
  def github_slug
10
- # @github_slug ||= /.*github\.com.(.*\/.*)(\.)?/.match(@url)[1]
11
10
  @github_slug ||= /.*github.com[:\/](.*\/[^.git]*)(?:\.git)*/.match(@url)[1]
12
11
  end
13
12
 
@@ -7,7 +7,7 @@ module Badger
7
7
  badger.length + 1,
8
8
  Config.instance.config['bonus_badge_colour']
9
9
  ]
10
- target_url = 'http://%s' % Config.instance.config['badge_service']
10
+ target_url = '%s' % Config.instance.config['bonus_badge_link']
11
11
 
12
12
  Badger.badge 'Badges', badge_url, target_url
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module Badger
2
- VERSION = "0.7.2"
2
+ VERSION = "0.7.3"
3
3
  end
@@ -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)](http://img.shields.io)"
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.2
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-01 00:00:00.000000000 Z
11
+ date: 2014-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor