badgerbadgerbadger 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a8dd4384f59227c411e9089d1d3898599c91d5bc
|
|
4
|
+
data.tar.gz: 55e393a0ec265ed918f516701cebfe0244a2ff2f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
+
[](https://travis-ci.org/doge/wow)
|
|
12
|
+
[](https://gemnasium.com/doge/wow)
|
|
13
|
+
[](https://coveralls.io/r/doge/wow)
|
|
14
|
+
[](https://codeclimate.com/github/doge/wow)
|
|
15
|
+
[](https://rubygems.org/gems/suchgem)
|
|
16
|
+
[](http://doge.mit-license.org)
|
|
17
|
+
[](https://github.com/badges/badgerbadgerbadger)
|
|
18
|
+
"""
|
data/lib/badger/helpers.rb
CHANGED
|
@@ -9,7 +9,12 @@ module Badger
|
|
|
9
9
|
end
|
|
10
10
|
|
|
11
11
|
def Badger.git_remote dir
|
|
12
|
-
|
|
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
|
data/lib/badger/version.rb
CHANGED
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.
|
|
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
|