badgerbadgerbadger 0.8.0 → 0.8.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 +4 -4
- data/README.md +8 -8
- data/features/badger.feature +10 -3
- data/lib/badger/cli.rb +7 -0
- data/lib/badger/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 109c1451027d1ef6666265c6fc42cc1b5849308a
|
4
|
+
data.tar.gz: 857fb8e3b22048b08e4f4bf2ca476616a965818d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c55f9a58352fc589c3e143e0d3936fc97dd876d44e95b0fd21f9fb0be668ee0358e3829460bcac13c38b82e33ca02e1db9ba90edd6989ef8686508d8295a83d3
|
7
|
+
data.tar.gz: 8e39591e4ea114f2806ad3282af6a38b8bc8773e07d252daf03959d63f940edb698eeee421b646f7ae87690239bc807313a63661b3c0b066fc4051bd0581e0c1
|
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
[](https://travis-ci.org/pikesley/badger)
|
2
|
+
[](https://gemnasium.com/pikesley/badger)
|
3
|
+
[](https://coveralls.io/r/pikesley/badger)
|
4
|
+
[](https://codeclimate.com/github/pikesley/badger)
|
5
|
+
[](https://rubygems.org/gems/badgerbadgerbadger)
|
6
|
+
[](http://pikesley.mit-license.org)
|
7
|
+
[](https://github.com/pikesley/badger)
|
8
8
|
|
9
9
|
#Badger
|
10
10
|
|
@@ -45,4 +45,4 @@ If you're on a Mac, pipe the output into `pbcopy` to add the stuff directly to y
|
|
45
45
|
git clone https://github.com/pikesley/badger
|
46
46
|
cd badger
|
47
47
|
bundle
|
48
|
-
rake
|
48
|
+
rake
|
data/features/badger.feature
CHANGED
@@ -22,7 +22,7 @@ Feature: Badge robot
|
|
22
22
|
[](http://doge.mit-license.org)
|
23
23
|
"""
|
24
24
|
|
25
|
-
Scenario:
|
25
|
+
Scenario: Handle a non-git-repo gracefully
|
26
26
|
When I run `badger badge /tmp`
|
27
27
|
Then the output should contain:
|
28
28
|
"""
|
@@ -31,10 +31,17 @@ Run this from inside a git repo
|
|
31
31
|
And the exit status should be 1
|
32
32
|
|
33
33
|
@no-remote
|
34
|
-
Scenario:
|
34
|
+
Scenario: Handle a git repo without a github remote
|
35
35
|
When I run `badger badge /tmp/not_wow`
|
36
36
|
Then the output should contain:
|
37
37
|
"""
|
38
38
|
This repo does not appear to have a github remote
|
39
39
|
"""
|
40
|
-
And the exit status should be 2
|
40
|
+
And the exit status should be 2
|
41
|
+
|
42
|
+
Scenario:Get a sensible version string
|
43
|
+
When I successfully run `badger -v`
|
44
|
+
Then the output should contain:
|
45
|
+
"""
|
46
|
+
badger version
|
47
|
+
"""
|
data/lib/badger/cli.rb
CHANGED
@@ -2,6 +2,13 @@ require 'badger'
|
|
2
2
|
|
3
3
|
module Badger
|
4
4
|
class CLI < Thor
|
5
|
+
desc 'version', 'Print badger version'
|
6
|
+
def version
|
7
|
+
puts "badger version %s" % [
|
8
|
+
VERSION
|
9
|
+
]
|
10
|
+
end
|
11
|
+
map %w(-v --version) => :version
|
5
12
|
|
6
13
|
desc 'badge', 'Generate badge markdown'
|
7
14
|
long_desc File.read File.join File.dirname( __FILE__), '..', '..', 'DESC.md'
|
data/lib/badger/version.rb
CHANGED