badgerbadgerbadger 0.10.0 → 0.10.1

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: bbd62a6fc57354d6db0b17d6a13558b59775b511
4
- data.tar.gz: 725aefc31743191a02d1d194ca47c110b08a28f4
3
+ metadata.gz: a8dd4384f59227c411e9089d1d3898599c91d5bc
4
+ data.tar.gz: 55e393a0ec265ed918f516701cebfe0244a2ff2f
5
5
  SHA512:
6
- metadata.gz: 9e5f8424ccbd01385669ceeb1f76d61975cc429b42cff377bf5a8d431e12fe5fa43964e0b9f3af63e33f0083d8149e6dec29cf4f07813bae478c9e868e22f7cc
7
- data.tar.gz: 1fefd4d697d24ba60f6536d2f3cb177fab180d287b65d54796f5cb88a27e37960dd5a77e5b210a01782ebf34930d88383dddd0a66678a340cbad89de7553404b
6
+ metadata.gz: 1a40e998932b4a84c8906999544906c1dd37ecb1cf5a9922d775af34570f00938fb1dc6edfef0e9e9e1dd285d33ced21d1a7dd4390827bad878d36e25c0c5cab
7
+ data.tar.gz: 60f7d8b2d085aed5ddfbfcd7cd0297bc2fa8563837311f73c1fa22e6484c4d6daef4548f39c2fea1596b178e19f7dc43b6eb20ca322132c6e12ae86c5e09ffe3
@@ -0,0 +1,18 @@
1
+ Feature: Badge robot
2
+
3
+ Background:
4
+ Given git remote "something" points to "https://github.com/doge/wow"
5
+
6
+ @travis @gemnasium @coveralls @gemspec @mit
7
+ Scenario: One with everything
8
+ When I successfully run `badger badge /tmp/wow_repo`
9
+ Then the output should contain:
10
+ """
11
+ [![Build Status](http://img.shields.io/travis/doge/wow.svg)](https://travis-ci.org/doge/wow)
12
+ [![Dependency Status](http://img.shields.io/gemnasium/doge/wow.svg)](https://gemnasium.com/doge/wow)
13
+ [![Coverage Status](http://img.shields.io/coveralls/doge/wow.svg)](https://coveralls.io/r/doge/wow)
14
+ [![Code Climate](http://img.shields.io/codeclimate/github/doge/wow.svg)](https://codeclimate.com/github/doge/wow)
15
+ [![Gem Version](http://img.shields.io/gem/v/suchgem.svg)](https://rubygems.org/gems/suchgem)
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)](https://github.com/badges/badgerbadgerbadger)
18
+ """
@@ -3,3 +3,9 @@ Given(/^git remote is "(.*?)"$/) do |url|
3
3
  g = Git.init d
4
4
  g.add_remote 'origin', url
5
5
  end
6
+
7
+ Given(/^git remote "(.*?)" points to "(.*?)"$/) do |name, url|
8
+ d = $temp_repo
9
+ g = Git.init d
10
+ g.add_remote name, url
11
+ end
@@ -13,4 +13,3 @@ end
13
13
  After '@no-remote' do
14
14
  FileUtils.remove_dir '/tmp/not_wow', :force => true
15
15
  end
16
-
@@ -9,7 +9,12 @@ module Badger
9
9
  end
10
10
 
11
11
  def Badger.git_remote dir
12
- remote = is_repo?(dir).remote.url
12
+ begin
13
+ remote = is_repo?(dir).remotes.first.url
14
+ rescue NoMethodError
15
+ puts 'This repo does not appear to have a github remote'
16
+ exit 2
17
+ end
13
18
  if remote.nil?
14
19
  puts 'This repo does not appear to have a github remote'
15
20
  exit 2
@@ -81,4 +86,4 @@ module Badger
81
86
 
82
87
  params || nil
83
88
  end
84
- end
89
+ end
@@ -1,3 +1,3 @@
1
1
  module Badger
2
- VERSION = "0.10.0"
2
+ VERSION = "0.10.1"
3
3
  end
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.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - pikesley
@@ -218,6 +218,7 @@ files:
218
218
  - features/licenses.feature
219
219
  - features/png.feature
220
220
  - features/pulls-and-issues.feature
221
+ - features/remote-with-different-name.feature
221
222
  - features/rubygems.feature
222
223
  - features/services.feature
223
224
  - features/ssh-remote.feature
@@ -275,6 +276,7 @@ test_files:
275
276
  - features/licenses.feature
276
277
  - features/png.feature
277
278
  - features/pulls-and-issues.feature
279
+ - features/remote-with-different-name.feature
278
280
  - features/rubygems.feature
279
281
  - features/services.feature
280
282
  - features/ssh-remote.feature