badgerbadgerbadger 0.11.1 → 0.11.2
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/DESC.md +0 -2
- data/README.md +9 -10
- data/config/config.yaml +4 -1
- data/config/services.yaml +13 -13
- data/features/alternative-styles.feature +7 -0
- data/lib/badger/badger.rb +5 -0
- data/lib/badger/cli.rb +2 -1
- 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: bda40099101531793bb11b4dd352cae00ee3f9ce
|
|
4
|
+
data.tar.gz: eb26b737315c9dec31a65f1025be60e6646bd361
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b4254cf8270add88255ccf324cf649982f975ac9f94c97b41ba56914aa2e8f6f352877d61e0e8b153d6462d7eca1b52afc2a4004fcb4579bb5ec33b35d0fc172
|
|
7
|
+
data.tar.gz: d530e8342c7ef47240a9821f00f3214864cb21c369c98677b0b62534880b82994d2ba17a5deba9f1f7b1468eeb10d7334421b5b6ea16b01ac348c777882a6c4c
|
data/DESC.md
CHANGED
|
@@ -25,5 +25,3 @@ And if a license file is found, a License Badge will be generated. Currently sup
|
|
|
25
25
|
* GPL-3
|
|
26
26
|
|
|
27
27
|
The supported license details are in `https://github.com/badges/badgerbadgerbadger/blob/master/config/licenses.yaml`, if you're using a different license, send a PR! And if your gemspec license conflicts with your LICENSE file, you should probably fix that.
|
|
28
|
-
|
|
29
|
-
Use the `--pulls` flag to add badges for open Github issues and pull-requests.
|
data/README.md
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
[](https://travis-ci.org/badges/badgerbadgerbadger)
|
|
2
|
-
[](https://gemnasium.com/badges/badgerbadgerbadger)
|
|
3
|
-
[](https://coveralls.io/r/badges/badgerbadgerbadger)
|
|
4
|
-
[](https://codeclimate.com/github/badges/badgerbadgerbadger)
|
|
5
|
-
[](https://github.com/badges/badgerbadgerbadger/issues)
|
|
6
|
-
[](https://github.com/badges/badgerbadgerbadger/pulls)
|
|
7
|
-
[](https://rubygems.org/gems/badgerbadgerbadger)
|
|
8
|
-
[](http://badges.mit-license.org)
|
|
9
|
-
[](https://github.com/badges/badgerbadgerbadger)
|
|
10
|
-
|
|
1
|
+
[](https://travis-ci.org/badges/badgerbadgerbadger)
|
|
2
|
+
[](https://gemnasium.com/badges/badgerbadgerbadger)
|
|
3
|
+
[](https://coveralls.io/r/badges/badgerbadgerbadger)
|
|
4
|
+
[](https://codeclimate.com/github/badges/badgerbadgerbadger)
|
|
5
|
+
[](https://github.com/badges/badgerbadgerbadger/issues)
|
|
6
|
+
[](https://github.com/badges/badgerbadgerbadger/pulls)
|
|
7
|
+
[](https://rubygems.org/gems/badgerbadgerbadger)
|
|
8
|
+
[](http://badges.mit-license.org)
|
|
9
|
+
[](https://github.com/badges/badgerbadgerbadger)
|
|
11
10
|
#Badger
|
|
12
11
|
|
|
13
12
|
Because I grow weary of copy-n-pasting the badge URLs into the README of every project, and the [img.shields.io](http://img.shields.io) API now supports all of the services I use
|
data/config/config.yaml
CHANGED
data/config/services.yaml
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
travis:
|
|
2
|
-
alt_text:
|
|
3
|
-
scheme:
|
|
4
|
-
url_path:
|
|
5
|
-
badge_slug:
|
|
2
|
+
alt_text: Build Status
|
|
3
|
+
scheme: https
|
|
4
|
+
url_path: travis-ci.org
|
|
5
|
+
badge_slug: travis
|
|
6
6
|
|
|
7
7
|
coveralls:
|
|
8
|
-
alt_text:
|
|
9
|
-
url_path:
|
|
10
|
-
badge_slug:
|
|
8
|
+
alt_text: Coverage Status
|
|
9
|
+
url_path: coveralls.io/r
|
|
10
|
+
badge_slug: coveralls
|
|
11
11
|
|
|
12
12
|
gemnasium:
|
|
13
|
-
alt_text:
|
|
14
|
-
url_path:
|
|
15
|
-
badge_slug:
|
|
13
|
+
alt_text: Dependency Status
|
|
14
|
+
url_path: gemnasium.com
|
|
15
|
+
badge_slug: gemnasium
|
|
16
16
|
|
|
17
17
|
codeclimate:
|
|
18
|
-
alt_text:
|
|
19
|
-
url_path:
|
|
20
|
-
badge_slug:
|
|
18
|
+
alt_text: Code Climate
|
|
19
|
+
url_path: codeclimate.com/github
|
|
20
|
+
badge_slug: codeclimate/github
|
|
21
21
|
|
|
22
22
|
pulls:
|
|
23
23
|
alt_text: Pending Pull-Requests
|
|
@@ -16,3 +16,10 @@ Feature: Alternative styles
|
|
|
16
16
|
[](http://doge.mit-license.org)
|
|
17
17
|
[](https://github.com/badges/badgerbadgerbadger)
|
|
18
18
|
"""
|
|
19
|
+
Scenario: Invalid style choice
|
|
20
|
+
When I run `badger badge --style fluffy /tmp/wow_repo`
|
|
21
|
+
Then the output should contain:
|
|
22
|
+
"""
|
|
23
|
+
Invalid style choice 'fluffy'
|
|
24
|
+
"""
|
|
25
|
+
And the exit status should be 3
|
data/lib/badger/badger.rb
CHANGED
data/lib/badger/cli.rb
CHANGED
|
@@ -14,12 +14,13 @@ module Badger
|
|
|
14
14
|
long_desc File.read File.join File.dirname( __FILE__), '..', '..', 'DESC.md'
|
|
15
15
|
method_option :png, :type => :boolean, :default => false, :desc => 'Generate PNG badges instead of the default SVG (because sometimes Github does caching things)'
|
|
16
16
|
method_option :pulls, :type => :boolean, :default => false, :desc => 'Generate Github pull-request and issue-count badges'
|
|
17
|
-
method_option :style, :type => :string, :default => nil, :desc => "Choose a different badge style (currently supported: '
|
|
17
|
+
method_option :style, :type => :string, :default => nil, :desc => "Choose a different badge style (currently supported: #{Config.instance.config['valid_styles'].join ', '})"
|
|
18
18
|
|
|
19
19
|
def badge dir = '.'
|
|
20
20
|
@badger = Badger.new Badger.git_remote dir
|
|
21
21
|
|
|
22
22
|
@badger.badge_type 'png' if options[:png]
|
|
23
|
+
|
|
23
24
|
@badger.style options[:style] if options[:style]
|
|
24
25
|
|
|
25
26
|
@badger.add 'travis' if Badger.has_travis? dir
|
data/lib/badger/version.rb
CHANGED