badgerbadgerbadger 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/badger.rb +1 -0
- data/lib/badger/badger.rb +1 -8
- data/lib/badger/bonus.rb +15 -0
- data/lib/badger/license.rb +0 -4
- data/lib/badger/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d1a8ef3be65435d6c22bfff2d02015461bc99a0
|
4
|
+
data.tar.gz: cc2272cd4936e254831ef75809d68274c059d46a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d453186ce55ac842cd65c8015261bb11d0c6942291d1ac2e7a83c4a5a1c7e33cb22a479823433d072b2113a11280799fec34dc48918a20b38dc90aa504b00abd
|
7
|
+
data.tar.gz: 02cf16feadd95b9e953a2e6de592b9554c0fea5c1dea571b177e64ab8ea3ba691113865086aa1a3c55b8be053d139651628d0daae586b69cc612c0c585fdf93c
|
data/lib/badger.rb
CHANGED
data/lib/badger/badger.rb
CHANGED
@@ -30,14 +30,7 @@ module Badger
|
|
30
30
|
|
31
31
|
def bonus
|
32
32
|
self.uniq!
|
33
|
-
|
34
|
-
badge_url = 'http://img.shields.io/:badges-%d/%d-%s.svg' % [
|
35
|
-
self.length + 1,
|
36
|
-
self.length + 1,
|
37
|
-
Config.instance.config['bonus_badge_colour']
|
38
|
-
]
|
39
|
-
target_url = 'http://img.shields.io'
|
40
|
-
self << Badger.badge('Badges', badge_url, target_url)
|
33
|
+
self << Bonus.badge(self)
|
41
34
|
end
|
42
35
|
|
43
36
|
def to_s
|
data/lib/badger/bonus.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
module Badger
|
2
|
+
class Bonus
|
3
|
+
def self.badge badger
|
4
|
+
badge_url = 'http://%s/:badges-%d/%d-%s.svg' % [
|
5
|
+
Config.instance.config['badge_service'],
|
6
|
+
badger.length + 1,
|
7
|
+
badger.length + 1,
|
8
|
+
Config.instance.config['bonus_badge_colour']
|
9
|
+
]
|
10
|
+
target_url = 'http://%s' % Config.instance.config['badge_service']
|
11
|
+
|
12
|
+
Badger.badge 'Badges', badge_url, target_url
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/badger/license.rb
CHANGED
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.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pikesley
|
@@ -240,6 +240,7 @@ files:
|
|
240
240
|
- lib/badger.rb
|
241
241
|
- lib/badger/badge.rb
|
242
242
|
- lib/badger/badger.rb
|
243
|
+
- lib/badger/bonus.rb
|
243
244
|
- lib/badger/cli.rb
|
244
245
|
- lib/badger/config.rb
|
245
246
|
- lib/badger/helpers.rb
|