savage-fontgen 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ecc612f989d52d5f1cc4ea53d678f468a7a49b72
4
- data.tar.gz: 40192fd4acea770530e13165d2e68a15af6e3212
3
+ metadata.gz: d5b16815df2b5d494a57bebb2bcf15821518706e
4
+ data.tar.gz: ec5b447531a5c8e40f4e6b783b840dd3c7f3c69c
5
5
  SHA512:
6
- metadata.gz: 280f541aff40e5706850e39d15fa5a383a63f807dc5abedf821e3b2806c627f2837c953f624b62ad6ec2710c1e49344cd96ba6cc46fd1964176e081f7afa1cd0
7
- data.tar.gz: aef47213ca798b6345048f337559f560c72eb3c0ae59ba70416b7b6116ac4098467531f0001050529b3930e8ff0671a29fa16fe5f4cf40196878a915ba9d539f
6
+ metadata.gz: 7bca9a4f69eca8f7af23fe82fcded2845f42600d0442d83f2dc16230d1686bd2193e307312e7eb4bb778d9ef27c7336994c1d125875b4fcd3c0050095cbbda9e
7
+ data.tar.gz: 6d83fc6c0eec0ea23ab3ec50236112d548038e46e14575d44ddcf37acd37076672852e17e3c219616eba5412a37428f22e70feebffb3ce28324060cd579c81db
data/bin/savage-fontgen CHANGED
@@ -6,7 +6,7 @@ require 'colorize'
6
6
  require 'erubis'
7
7
  require 'yaml'
8
8
 
9
- VERSION = '0.1.0'
9
+ VERSION = '0.1.1'
10
10
 
11
11
  options = {}
12
12
  OptionParser.new do |opts|
@@ -47,6 +47,7 @@ OptionParser.new do |opts|
47
47
 
48
48
  end.parse!
49
49
 
50
+
50
51
  # abort "Usage: savage-fontgen source_dir [-o out_path] [options]" if options.empty? and ARGV[0].nil?
51
52
 
52
53
  @options = options
@@ -54,11 +55,12 @@ def puts(*args)
54
55
  super(*args) unless @options[:quiet]
55
56
  end
56
57
 
58
+ @r_path = File.join(File.dirname(__FILE__), '..')
57
59
  @source_path = ARGV[0]
58
60
  @dest_path = options[:dest_path] || './out'
59
- @conf_path = 'savage-conf'
61
+ @conf_path = File.join @r_path, 'savage-conf'
60
62
 
61
- `python lib/generate.py #{@source_path} #{@dest_path} #{File.join(@conf_path, 'config.yaml')}`
63
+ `#{File.join(@r_path, 'lib/generate')} #{@source_path} #{@dest_path} #{File.join(@conf_path, 'config.yaml')}`
62
64
 
63
65
  conf = YAML.load_file File.join(@conf_path, 'config.yaml')
64
66
  glyphs = YAML.load_file File.join(@dest_path, 'glyphs.yaml')
@@ -1,3 +1,6 @@
1
+ #!/usr/bin/env python
2
+ # encoding: utf-8
3
+
1
4
  import fontforge, os, os.path, yaml, sys
2
5
 
3
6
  stream = open(sys.argv.pop(), "r")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: savage-fontgen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Clink
@@ -47,7 +47,7 @@ extensions: []
47
47
  extra_rdoc_files: []
48
48
  files:
49
49
  - bin/savage-fontgen
50
- - lib/generate.py
50
+ - lib/generate
51
51
  - savage-conf/config.yaml
52
52
  - savage-conf/templates/preview.html.erb
53
53
  - savage-conf/templates/style.css.erb