vcs_ruby 0.8.1 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/bin/vcs.rb CHANGED
@@ -124,8 +124,6 @@ Tools::print_help optparse if ARGV.empty?
124
124
 
125
125
  optparse.parse!
126
126
 
127
- puts options.inspect
128
-
129
127
  Tools::print_help optparse if options[:help] || ARGV.empty?
130
128
 
131
129
  Tools::verbose = options[:verbose]
data/lib/defaults.yml CHANGED
@@ -6,12 +6,12 @@ main:
6
6
  quality: 95
7
7
  style:
8
8
  header:
9
- font: DejaVu-Sans-Book
9
+ font: DejaVuSans.ttf
10
10
  size: 14
11
11
  color: Black
12
12
  background: "#afcd7a"
13
13
  title:
14
- font: DejaVu-Sans-Book
14
+ font: DejaVuSans.ttf
15
15
  size: 33
16
16
  color: Black
17
17
  background: White
@@ -20,12 +20,12 @@ style:
20
20
  contact:
21
21
  background: White
22
22
  timestamp:
23
- font: DejaVu-Sans-Book
23
+ font: DejaVuSans.ttf
24
24
  size: 14
25
25
  color: White
26
26
  background: "#000000aa"
27
27
  signature:
28
- font: DejaVu-Sans-Book
28
+ font: DejaVuSans.ttf
29
29
  size: 10
30
30
  color: Black
31
31
  background: SlateGray
data/lib/font.rb CHANGED
@@ -15,7 +15,8 @@ module VCSRuby
15
15
  end
16
16
 
17
17
  def find_path
18
- '/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf'
18
+ font = `fc-list | grep #{name}`
19
+ font.split(':').first.strip
19
20
  end
20
21
 
21
22
  def line_height
data/lib/version.info CHANGED
@@ -1 +1 @@
1
- 0.8.2
1
+ 0.8.3
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vcs_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: