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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90d42e75b8b3f5058a3cafb3355c81e87bb25964
4
- data.tar.gz: 8a1e5247cb53af991270dc8f203864c0f2df640c
3
+ metadata.gz: 1d1a8ef3be65435d6c22bfff2d02015461bc99a0
4
+ data.tar.gz: cc2272cd4936e254831ef75809d68274c059d46a
5
5
  SHA512:
6
- metadata.gz: 25168a2eef1b3218a42fbb2f19e2dc93fc150b845cb9cd329ea7fa2c9f6c3e19e487ffe0df8a993805aaa4ffcdbffa181051620488d75e4d7001b489b30acb19
7
- data.tar.gz: 82748014fca61117b36b919b0d61bf63437c15c126cced68b6d3cc2fb0bed9076e03dddc64c98c1f20d37718e7bc398902b5e47d662e226c4fdce2f0d1b3f3ec
6
+ metadata.gz: d453186ce55ac842cd65c8015261bb11d0c6942291d1ac2e7a83c4a5a1c7e33cb22a479823433d072b2113a11280799fec34dc48918a20b38dc90aa504b00abd
7
+ data.tar.gz: 02cf16feadd95b9e953a2e6de592b9554c0fea5c1dea571b177e64ab8ea3ba691113865086aa1a3c55b8be053d139651628d0daae586b69cc612c0c585fdf93c
data/lib/badger.rb CHANGED
@@ -9,4 +9,5 @@ require 'badger/license'
9
9
  require 'badger/rubygem'
10
10
  require 'badger/helpers'
11
11
  require 'badger/badge'
12
+ require 'badger/bonus'
12
13
 
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
@@ -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
@@ -18,9 +18,5 @@ module Badger
18
18
 
19
19
  Badger.badge 'License', badge_url, target_url
20
20
  end
21
-
22
- # def self.licenses
23
- # @@licenses
24
- # end
25
21
  end
26
22
  end
@@ -1,3 +1,3 @@
1
1
  module Badger
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.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.7.0
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