badgerbadgerbadger 0.7.4 → 0.7.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: 8d98b568c5a24105cbe6fec59d1e1ab3e916a7da
4
- data.tar.gz: 9256aaeef8bc403f6248aa7a79967cf70cb55c9c
3
+ metadata.gz: 5c69f958d3d1db2bef57ccb39b2b355d4663518f
4
+ data.tar.gz: 50004b604e1a88580500e3d2fd9dcf87a3a25ae4
5
5
  SHA512:
6
- metadata.gz: 75388f2ffd48248c7bf5db7f99cccdba3e30ccaaa48955811d491b4f90e914865b67bbc1bd0da6342b1a81020d5a64db56c4ce0630ea76ec8838b4ec0f1b3675
7
- data.tar.gz: 4ef2985c9a6cddc2b53ccd94fdd1d8c751ac20537582283339876251d31212cd905b5c66c972e23d9bae84e6210c25e66679e1bdf6a6d650e597c90b94b377ba
6
+ metadata.gz: c8a2646a748c17a58ae4cbc28a300087e15990e168839833346ab171e1ab8f1af2d82942dff6c3c34458862deb182097f82fd84b00ccd9080be753585e121434
7
+ data.tar.gz: f99828aeba35cac9a48064e41ea42dafb4ebb5a3f100d7467cbc1e78fb4c3216279560e7ae210626b5c4095acf450390e77d5589831f5988714d09c5de1281dc
data/DESC.md CHANGED
@@ -12,7 +12,7 @@ In addition, if it finds a gemspec, it will use it to generate:
12
12
 
13
13
  * A Rubygems Version Badge
14
14
 
15
- * A License Badge
15
+ * A License Badge (or Badges)
16
16
 
17
17
  And if a license file is found, a License Badge will be generated. Currently supported licenses are:
18
18
 
data/README.md CHANGED
@@ -34,7 +34,7 @@ Then
34
34
 
35
35
  ready to paste into the top of your README (with the correct URLs for your repo)
36
36
 
37
- You can read about Badger's Opinions [here](DESC.md)
37
+ You can read about Badger's Opinions in the help text [here](https://github.com/pikesley/badger/blob/master/DESC.md)
38
38
 
39
39
  If you're on a Mac, pipe the output into `pbcopy` to add the stuff directly to your clipboard:
40
40
 
@@ -7,7 +7,7 @@ module Badger
7
7
  end
8
8
 
9
9
  def github_slug
10
- @github_slug ||= /.*github.com[:\/](.*\/[^.git]*)(?:\.git)*/.match(@url)[1]
10
+ @github_slug ||= Badger.slug_extract @url
11
11
  end
12
12
 
13
13
  def owner
@@ -18,6 +18,10 @@ module Badger
18
18
  remote
19
19
  end
20
20
 
21
+ def Badger.slug_extract remote_url
22
+ remote_url.match(/.*github.com[\/:](.*)/)[1].gsub(/.git$/, '')
23
+ end
24
+
21
25
  def Badger.has_travis? dir
22
26
  ((Dir.entries dir).select { |i| '.travis.yml' == i }).any?
23
27
  end
@@ -1,3 +1,3 @@
1
1
  module Badger
2
- VERSION = "0.7.4"
2
+ VERSION = "0.7.5"
3
3
  end
@@ -109,5 +109,11 @@ module Badger
109
109
  }
110
110
  end
111
111
  end
112
+
113
+ it 'should work with a "-" in the remote name' do
114
+ @badger = Badger.new 'https://github.com/pikesley/diabetes-dashboard.git'
115
+ @badger.add 'travis'
116
+ @badger[0].should == '[![Build Status](http://img.shields.io/travis/pikesley/diabetes-dashboard.svg)](https://travis-ci.org/pikesley/diabetes-dashboard)'
117
+ end
112
118
  end
113
119
  end
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
4
+ version: 0.7.5
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-02 00:00:00.000000000 Z
11
+ date: 2014-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor