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 +4 -4
- data/lib/repo_small_badge/image.rb +6 -0
- data/lib/repo_small_badge/version.rb +1 -1
- data/repo-small-badge.gemspec +1 -1
- data/spec/repo_small_badge_spec.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a627a090f0d0b1befe5c998005f0f2032de3b14df5891a2503ddb63beee94f7
|
4
|
+
data.tar.gz: 14559f958eb1010b1adf851e38935f23d96f7e7874fd3b5a936883b01bf2fd36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/repo-small-badge.gemspec
CHANGED
@@ -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
|