badgerbadgerbadger 0.8.0 → 0.8.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: 8ae58ef80b784589eb8a771600e24964f2b7a175
4
- data.tar.gz: 6dcc7fa5013a11f2b225db292aa084ba49b26e57
3
+ metadata.gz: 109c1451027d1ef6666265c6fc42cc1b5849308a
4
+ data.tar.gz: 857fb8e3b22048b08e4f4bf2ca476616a965818d
5
5
  SHA512:
6
- metadata.gz: cfea32ab36bebf314ccfee0807577dc7f182d5475f5d6aed023f7928f335533a8b64e356e5b776f9d04b16bb2f14f96c527c909444bbbdb3378669a021c23a68
7
- data.tar.gz: d799173f26852c63c1b3fc98711b55c1e6a286c7dd6e6a11641bd6ac98d04f29b6dcab353b51dd37a0b88593c52dd6610e48e647ed2188c715b5f8cec18fcc61
6
+ metadata.gz: c55f9a58352fc589c3e143e0d3936fc97dd876d44e95b0fd21f9fb0be668ee0358e3829460bcac13c38b82e33ca02e1db9ba90edd6989ef8686508d8295a83d3
7
+ data.tar.gz: 8e39591e4ea114f2806ad3282af6a38b8bc8773e07d252daf03959d63f940edb698eeee421b646f7ae87690239bc807313a63661b3c0b066fc4051bd0581e0c1
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
- [![Build Status](http://img.shields.io/travis/pikesley/badger.svg)](https://travis-ci.org/pikesley/badger)
2
- [![Dependency Status](http://img.shields.io/gemnasium/pikesley/badger.svg)](https://gemnasium.com/pikesley/badger)
3
- [![Coverage Status](http://img.shields.io/coveralls/pikesley/badger.svg)](https://coveralls.io/r/pikesley/badger)
4
- [![Code Climate](http://img.shields.io/codeclimate/github/pikesley/badger.svg)](https://codeclimate.com/github/pikesley/badger)
5
- [![Gem Version](http://img.shields.io/gem/v/badgerbadgerbadger.svg)](https://rubygems.org/gems/badgerbadgerbadger)
6
- [![License](http://img.shields.io/:license-mit-blue.svg)](http://pikesley.mit-license.org)
7
- [![Badges](http://img.shields.io/:badges-7/7-ff6799.svg)](http://img.shields.io)
1
+ [![Build Status](http://img.shields.io/travis/pikesley/badger.png)](https://travis-ci.org/pikesley/badger)
2
+ [![Dependency Status](http://img.shields.io/gemnasium/pikesley/badger.png)](https://gemnasium.com/pikesley/badger)
3
+ [![Coverage Status](http://img.shields.io/coveralls/pikesley/badger.png)](https://coveralls.io/r/pikesley/badger)
4
+ [![Code Climate](http://img.shields.io/codeclimate/github/pikesley/badger.png)](https://codeclimate.com/github/pikesley/badger)
5
+ [![Gem Version](http://img.shields.io/gem/v/badgerbadgerbadger.png)](https://rubygems.org/gems/badgerbadgerbadger)
6
+ [![License](http://img.shields.io/:license-mit-blue.png)](http://pikesley.mit-license.org)
7
+ [![Badges](http://img.shields.io/:badges-7/7-ff6799.png)](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
@@ -22,7 +22,7 @@ Feature: Badge robot
22
22
  [![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)
23
23
  """
24
24
 
25
- Scenario: handle a non-git-repo gracefully
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: handle a git repo without a github remote
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'
@@ -1,3 +1,3 @@
1
1
  module Badger
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.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.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - pikesley