repo-small-badge 0.2 → 0.2.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
  SHA256:
3
- metadata.gz: ae616ea6029f915414c13b26e92d3c03e65a1ff390c580a256bcbfe23915fab1
4
- data.tar.gz: a630a080e0f38980f0375761cd2cfba7342a6fba228b71ff5c751d2b32a6a7b2
3
+ metadata.gz: 0a627a090f0d0b1befe5c998005f0f2032de3b14df5891a2503ddb63beee94f7
4
+ data.tar.gz: 14559f958eb1010b1adf851e38935f23d96f7e7874fd3b5a936883b01bf2fd36
5
5
  SHA512:
6
- metadata.gz: da7464fdd082baff9e40faef0c4764c3de763b23231cb9b14d322371d9a31d0d5719c5ba4f35d7ef63d39bb0993d0f88fca8dc80a01668943183bf914efb5f9d
7
- data.tar.gz: d38799b2d19a4a3856871eaad1902450ad4ffca5810e587820815500ad934338d2bc9a1de20f48e080a567174824d655d1dc5c04416647a65b2780923e265b54
6
+ metadata.gz: 4cf157b55fa2eac0d0c6853b923186735998b48579bc0b30d2f7a1555248377cffc6bdfc58f866091cdb601cc6ff40d82df4f1afa2a7b9029710f32d8b92adc0
7
+ data.tar.gz: 4b3025b6d19fa5cd4214860ec1c2fe4e7e3eaaaa1678cd57aad70cdd92eb5c14a57876b6aa3d2d8ba13322589273052fee4041e597284ff4533cdaa4b78318fc
@@ -24,6 +24,12 @@ module RepoSmallBadge
24
24
  save(filename(name))
25
25
  end
26
26
 
27
+ # Updates the configuration settings and overwrites existing ones.
28
+ # @config the hash that has to be merged.
29
+ def config_merge(config)
30
+ @config.merge(config)
31
+ end
32
+
27
33
  private
28
34
 
29
35
  def svg_header
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RepoSmallBadge
4
- VERSION = '0.2'
4
+ VERSION = '0.2.1'
5
5
  end
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
 
17
17
  s.rubyforge_project = 'repo-small-badge'
18
18
 
19
- s.add_dependency 'victor', '~> 0.2'# create the svg
19
+ s.add_dependency 'victor', '~> 0.2' # to create the svg
20
20
  s.add_development_dependency 'rake', '~> 12'
21
21
  s.add_development_dependency 'rspec', '~> 3.8'
22
22
  s.add_development_dependency 'rubocop', '~> 0.63'
@@ -26,6 +26,12 @@ describe RepoSmallBadge::Image do
26
26
  expect(subject.badge('total', 'Total', '100%')).to be_truthy
27
27
  end
28
28
  end
29
+
30
+ context '#config_merge' do
31
+ it do
32
+ expect(subject.config_merge(badge_height: 10)[:badge_height]).to eq 10
33
+ end
34
+ end
29
35
  end
30
36
  end
31
37
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repo-small-badge
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc Grimme