Sha256: 37e2cda95cbfea9292b4fae1a22279fb8ad38b584930cabb29f2b32d51a80214

Contents?: true

Size: 436 Bytes

Versions: 23

Compression:

Stored size: 436 Bytes

Contents

module Badger
  class Bonus
    def self.badge badger
      badge_url  = 'http://%s/:badges-%d/%d-%s' % [
          Config.instance.config['badge_service'],
          badger.length + 1,
          badger.length + 1,
          Config.instance.config['bonus_badge_colour']
      ]
      target_url = '%s' % [
          Config.instance.config['bonus_badge_link']
      ]

      Badger.badge 'Badges', badge_url, target_url
    end
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
cvss-suite-1.0.8 vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/bonus.rb
badgerbadgerbadger-0.15.0 lib/badger/bonus.rb
cvss-suite-1.0.7 vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/bonus.rb
cvss-suite-1.0.6 vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/bonus.rb
cvss-suite-1.0.5 vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/bonus.rb
cvss-suite-1.0.4 vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/bonus.rb
cvss-suite-1.0.3 vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/bonus.rb
cvss-suite-1.0.2 vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/bonus.rb
cvss-suite-1.0.1 vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/bonus.rb
cvss-suite-1.0.0 vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/bonus.rb
badgerbadgerbadger-0.14.0 lib/badger/bonus.rb
badgerbadgerbadger-0.13.0 lib/badger/bonus.rb
badgerbadgerbadger-0.12.0 lib/badger/bonus.rb
badgerbadgerbadger-0.11.2 lib/badger/bonus.rb
badgerbadgerbadger-0.11.1 lib/badger/bonus.rb
badgerbadgerbadger-0.10.2 lib/badger/bonus.rb
badgerbadgerbadger-0.10.1 lib/badger/bonus.rb
badgerbadgerbadger-0.10.0 lib/badger/bonus.rb
badgerbadgerbadger-0.9.0 lib/badger/bonus.rb
badgerbadgerbadger-0.8.3 lib/badger/bonus.rb