fontcustom 1.2.0 → 1.3.0.beta
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 +7 -0
- data/CHANGELOG.md +16 -0
- data/CONTRIBUTING.md +35 -15
- data/TODO.md +20 -0
- data/lib/fontcustom.rb +11 -24
- data/lib/fontcustom/base.rb +56 -0
- data/lib/fontcustom/cli.rb +13 -12
- data/lib/fontcustom/generator/font.rb +63 -65
- data/lib/fontcustom/generator/template.rb +81 -52
- data/lib/fontcustom/manifest.rb +42 -0
- data/lib/fontcustom/options.rb +93 -80
- data/lib/fontcustom/scripts/generate.py +116 -127
- data/lib/fontcustom/templates/_fontcustom-rails.scss +13 -18
- data/lib/fontcustom/templates/_fontcustom.scss +10 -18
- data/lib/fontcustom/templates/fontcustom-preview.html +17 -24
- data/lib/fontcustom/templates/fontcustom.css +10 -18
- data/lib/fontcustom/templates/fontcustom.yml +3 -3
- data/lib/fontcustom/utility.rb +145 -0
- data/lib/fontcustom/version.rb +1 -1
- data/lib/fontcustom/watcher.rb +1 -1
- data/spec/fixtures/generators/.fontcustom-manifest-corrupted.json +12 -5
- data/spec/fixtures/generators/.fontcustom-manifest-empty.json +0 -0
- data/spec/fixtures/generators/.fontcustom-manifest.json +49 -14
- data/spec/fixtures/generators/mixed-output/fontcustom_82a59e769bc60192484f2620570bbb59.eot +0 -0
- data/spec/fixtures/generators/mixed-output/fontcustom_82a59e769bc60192484f2620570bbb59.svg +56 -0
- data/spec/fixtures/generators/mixed-output/fontcustom_82a59e769bc60192484f2620570bbb59.ttf +0 -0
- data/spec/fixtures/generators/mixed-output/fontcustom_82a59e769bc60192484f2620570bbb59.woff +0 -0
- data/spec/fixtures/sandbox/.gitkeep +0 -0
- data/spec/fontcustom/base_spec.rb +58 -0
- data/spec/fontcustom/cli_spec.rb +15 -0
- data/spec/fontcustom/generator/font_spec.rb +50 -220
- data/spec/fontcustom/generator/template_spec.rb +30 -194
- data/spec/fontcustom/generator/template_spec.rb.off +215 -0
- data/spec/fontcustom/manifest_spec.rb +16 -0
- data/spec/fontcustom/options_spec.rb +206 -208
- data/spec/fontcustom/utility_spec.rb +163 -0
- data/spec/fontcustom/{watcher_spec.rb → watcher_spec.rb.off} +0 -0
- data/spec/spec_helper.rb +77 -19
- metadata +44 -54
- data/lib/fontcustom/templates/_fontcustom-bootstrap-ie7.scss +0 -22
- data/lib/fontcustom/templates/_fontcustom-bootstrap.scss +0 -63
- data/lib/fontcustom/templates/fontcustom-bootstrap-ie7.css +0 -22
- data/lib/fontcustom/templates/fontcustom-bootstrap.css +0 -63
- data/lib/fontcustom/util.rb +0 -62
- data/spec/fixtures/generators/mixed-output/fontcustom_cc5ce52f2ae4f9ce2e7ee8131bbfee1e.eot +0 -0
- data/spec/fixtures/generators/mixed-output/fontcustom_cc5ce52f2ae4f9ce2e7ee8131bbfee1e.svg +0 -102
- data/spec/fixtures/generators/mixed-output/fontcustom_cc5ce52f2ae4f9ce2e7ee8131bbfee1e.ttf +0 -0
- data/spec/fixtures/generators/mixed-output/fontcustom_cc5ce52f2ae4f9ce2e7ee8131bbfee1e.woff +0 -0
- data/spec/fontcustom/util_spec.rb +0 -82
@@ -0,0 +1,163 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe Fontcustom::Utility do
|
4
|
+
class Generator
|
5
|
+
include Fontcustom::Utility
|
6
|
+
attr_accessor :options
|
7
|
+
|
8
|
+
def initialize
|
9
|
+
@options = { :project_root => fixture, :quiet => false }
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
it "should include Thor::Action methods" do
|
14
|
+
gen = Generator.new
|
15
|
+
%w|template add_file remove_file|.each do |method|
|
16
|
+
gen.should respond_to(method.to_sym)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
context "#symbolize_hash" do
|
21
|
+
it "should turn string keys into symbols" do
|
22
|
+
gen = Generator.new
|
23
|
+
hash = gen.symbolize_hash "foo" => "bar"
|
24
|
+
hash.should == { :foo => "bar" }
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
context "#methodize_hash" do
|
29
|
+
it "should define getter method" do
|
30
|
+
gen = Generator.new
|
31
|
+
hash = gen.methodize_hash :foo => "bar"
|
32
|
+
hash.foo.should == "bar"
|
33
|
+
end
|
34
|
+
|
35
|
+
it "should define setter method" do
|
36
|
+
gen = Generator.new
|
37
|
+
hash = gen.methodize_hash :foo => "bar"
|
38
|
+
hash.foo = "baz"
|
39
|
+
hash.foo.should == "baz"
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
context "#expand_path" do
|
44
|
+
it "should leave absolute paths alone" do
|
45
|
+
gen = Generator.new
|
46
|
+
path = gen.expand_path "/absolute/path"
|
47
|
+
path.should == "/absolute/path"
|
48
|
+
end
|
49
|
+
|
50
|
+
it "should prepend paths with :project_root" do
|
51
|
+
gen = Generator.new
|
52
|
+
path = gen.expand_path "generators"
|
53
|
+
path.should == fixture("generators")
|
54
|
+
end
|
55
|
+
|
56
|
+
it "should follow parent (../../) relative paths" do
|
57
|
+
gen = Generator.new
|
58
|
+
gen.options[:project_root] = fixture "shared/vectors"
|
59
|
+
path = gen.expand_path "../../generators"
|
60
|
+
path.should == fixture("generators")
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
context "#write_file" do
|
65
|
+
it "should replace the contents of a file" do
|
66
|
+
gen = Generator.new
|
67
|
+
file = double "file"
|
68
|
+
File.should_receive(:open).with(fixture("shared/test"), "w").and_yield file
|
69
|
+
file.should_receive(:write).with("testing")
|
70
|
+
gen.write_file fixture("shared/test"), "testing"
|
71
|
+
end
|
72
|
+
|
73
|
+
#it "should output a message"
|
74
|
+
end
|
75
|
+
|
76
|
+
#context "#garbage_collect" do
|
77
|
+
#it "should delete files from passed array"
|
78
|
+
#it "should update the manifest after completion"
|
79
|
+
#end
|
80
|
+
|
81
|
+
context "#get_manifest" do
|
82
|
+
it "should return a manifest hash" do
|
83
|
+
gen = Generator.new
|
84
|
+
options = { :project_root => fixture("generators"), :manifest => fixture("generators/.fontcustom-manifest.json") }
|
85
|
+
gen.instance_variable_set :@options, options
|
86
|
+
gen.get_manifest.keys.should == manifest_contents.keys
|
87
|
+
end
|
88
|
+
|
89
|
+
it "should raise an error if the file is empty" do
|
90
|
+
gen = Generator.new
|
91
|
+
options = { :project_root => fixture("generators"), :manifest => fixture("generators/.fontcustom-manifest-empty.json") }
|
92
|
+
gen.instance_variable_set :@options, options
|
93
|
+
expect { gen.get_manifest }.to raise_error Fontcustom::Error, /Couldn't parse/
|
94
|
+
end
|
95
|
+
|
96
|
+
it "should raise an error if the file is corrupted" do
|
97
|
+
gen = Generator.new
|
98
|
+
options = { :project_root => fixture("generators"), :manifest => fixture("generators/.fontcustom-manifest-corrupted.json") }
|
99
|
+
gen.instance_variable_set :@options, options
|
100
|
+
expect { gen.get_manifest }.to raise_error Fontcustom::Error, /Couldn't parse/
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
#context "#save_manifest" do
|
105
|
+
#it "should update the manifest" do
|
106
|
+
#end
|
107
|
+
#end
|
108
|
+
|
109
|
+
context "#delete_from_manifest" do
|
110
|
+
it "should empty key from manifest" do
|
111
|
+
gen = Generator.new
|
112
|
+
gen.stub :say_changed
|
113
|
+
manifest = {:fonts => %w|fonts/a.ttf fonts/a.eot fonts/a.woff fonts/a.svg|}
|
114
|
+
gen.instance_variable_set :@manifest, manifest
|
115
|
+
gen.should_receive(:save_manifest)
|
116
|
+
gen.delete_from_manifest :fonts
|
117
|
+
gen.instance_variable_get(:@manifest)[:fonts].should == []
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
context "#relative_to_root" do
|
122
|
+
it "should trim project root from paths" do
|
123
|
+
gen = Generator.new
|
124
|
+
path = gen.relative_to_root fixture "test/path"
|
125
|
+
path.should == "test/path"
|
126
|
+
end
|
127
|
+
|
128
|
+
it "should trim beginning slash" do
|
129
|
+
gen = Generator.new
|
130
|
+
path = gen.relative_to_root "/test/path"
|
131
|
+
path.should == "test/path"
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
#context "#say_message" do
|
136
|
+
#it "should not respond if :quiet is true" do
|
137
|
+
#pending
|
138
|
+
#gen = Generator.new
|
139
|
+
#gen.options[:quiet] = true
|
140
|
+
#output = capture(:stdout) { gen.say_message(:test, "Hello") }
|
141
|
+
#output.should == ""
|
142
|
+
#end
|
143
|
+
#end
|
144
|
+
|
145
|
+
#context "#say_changed" do
|
146
|
+
#it "should strip :project_root from changed paths" do
|
147
|
+
#pending
|
148
|
+
#changed = %w|a b c|.map { |file| fixture(file) }
|
149
|
+
#gen = Generator.new
|
150
|
+
#output = capture(:stdout) { gen.say_changed(:success, changed) }
|
151
|
+
#output.should_not match(fixture)
|
152
|
+
#end
|
153
|
+
|
154
|
+
#it "should not respond if :quiet is true " do
|
155
|
+
#pending
|
156
|
+
#changed = %w|a b c|.map { |file| fixture(file) }
|
157
|
+
#gen = Generator.new
|
158
|
+
#gen.options[:quiet] = true
|
159
|
+
#output = capture(:stdout) { gen.say_changed(:success, changed) }
|
160
|
+
#output.should == ""
|
161
|
+
#end
|
162
|
+
#end
|
163
|
+
end
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
@@ -1,34 +1,71 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
require
|
1
|
+
require "rspec"
|
2
|
+
require "json"
|
3
|
+
require "fileutils"
|
4
|
+
require File.expand_path("../../lib/fontcustom.rb", __FILE__)
|
4
5
|
|
5
6
|
RSpec.configure do |c|
|
6
7
|
def fixture(path = "")
|
7
|
-
File.join(File.expand_path(
|
8
|
+
File.join(File.expand_path("../fixtures", __FILE__), path)
|
8
9
|
end
|
9
10
|
|
10
|
-
|
11
|
-
def data_file_contents
|
11
|
+
def manifest_contents(root = Dir.pwd)
|
12
12
|
{
|
13
|
-
:
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
13
|
+
:checksum => {
|
14
|
+
:current => "82a59e769bc60192484f2620570bbb59e225db97c1aac3f242a2e49d6060a19c",
|
15
|
+
:previous => "82a59e769bc60192484f2620570bbb59e225db97c1aac3f242a2e49d6060a19c"
|
16
|
+
},
|
17
|
+
:fonts => [
|
18
|
+
"#{root}/fontcustom/fontcustom_82a59e769bc60192484f2620570bbb59.ttf",
|
19
|
+
"#{root}/fontcustom/fontcustom_82a59e769bc60192484f2620570bbb59.svg",
|
20
|
+
"#{root}/fontcustom/fontcustom_82a59e769bc60192484f2620570bbb59.woff",
|
21
|
+
"#{root}/fontcustom/fontcustom_82a59e769bc60192484f2620570bbb59.eot"
|
22
|
+
],
|
23
|
+
:glyphs => {
|
24
|
+
:"a_r3ally-exotic-f1le-name" => {
|
25
|
+
:codepoint => 61696,
|
26
|
+
:source => "#{root}/vectors/a_R3ally-eXotic f1Le Name.svg"
|
27
|
+
},
|
28
|
+
:c => {
|
29
|
+
:codepoint => 61697,
|
30
|
+
:source => "#{root}/vectors/C.svg"
|
31
|
+
},
|
32
|
+
:d => {
|
33
|
+
:codepoint => 61698,
|
34
|
+
:source => "#{root}/vectors/D.svg"}
|
35
|
+
},
|
36
|
+
:options => {
|
37
|
+
:autowidth => false,
|
38
|
+
:config => false,
|
39
|
+
:css_selector => ".icon-{{glyph}}",
|
40
|
+
:debug => false,
|
41
|
+
:font_name => "fontcustom",
|
42
|
+
:input => {
|
43
|
+
:templates => "#{root}/vectors",
|
44
|
+
:vectors => "#{root}/vectors"
|
45
|
+
},
|
46
|
+
:manifest => "#{root}/.fontcustom-manifest.json",
|
47
|
+
:no_hash => false,
|
48
|
+
:output => {
|
49
|
+
:css => "#{root}/fontcustom",
|
50
|
+
:fonts => "#{root}/fontcustom",
|
51
|
+
:preview => "#{root}/fontcustom"
|
52
|
+
},
|
53
|
+
:preprocessor_path => nil,
|
54
|
+
:project_root => "#{root}",
|
55
|
+
:quiet => true,
|
56
|
+
:templates => [
|
57
|
+
"#{Fontcustom.gem_lib}/templates/fontcustom.css",
|
58
|
+
"#{Fontcustom.gem_lib}/templates/fontcustom-preview.html"
|
59
|
+
]
|
60
|
+
},
|
61
|
+
:templates => []
|
21
62
|
}
|
22
63
|
end
|
23
64
|
|
24
|
-
def fontforge_stdout
|
25
|
-
data_file_contents.to_json.to_s
|
26
|
-
end
|
27
|
-
|
28
65
|
def fontforge_stderr
|
29
66
|
"Copyright (c) 2000-2012 by George Williams.\n Executable based on sources from 14:57 GMT 31-Jul-2012-D.\n Library based on sources from 14:57 GMT 31-Jul-2012.\n"
|
30
67
|
end
|
31
|
-
|
68
|
+
|
32
69
|
def capture(stream)
|
33
70
|
begin
|
34
71
|
stream = stream.to_s
|
@@ -40,4 +77,25 @@ RSpec.configure do |c|
|
|
40
77
|
end
|
41
78
|
result
|
42
79
|
end
|
80
|
+
|
81
|
+
def live_test(cleanup = true)
|
82
|
+
testdir = fixture File.join("sandbox", "test")
|
83
|
+
begin
|
84
|
+
FileUtils.mkdir testdir
|
85
|
+
FileUtils.cp_r fixture("shared/vectors"), testdir
|
86
|
+
FileUtils.cd testdir do
|
87
|
+
yield(testdir)
|
88
|
+
end
|
89
|
+
ensure
|
90
|
+
FileUtils.rm_r testdir if cleanup
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
def test_manifest(options = {:input => fixture("shared/vectors"), :quiet => true})
|
95
|
+
base = Fontcustom::Base.new options
|
96
|
+
manifest = base.instance_variable_get :@manifest
|
97
|
+
manifest[:checksum] = {:current => base.send(:checksum), :previous => ""}
|
98
|
+
base.save_manifest
|
99
|
+
base.instance_variable_get(:@options)[:manifest]
|
100
|
+
end
|
43
101
|
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fontcustom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.3.0.beta
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Kai Zau
|
@@ -10,12 +9,11 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2013-11-
|
12
|
+
date: 2013-11-25 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: json
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
18
|
- - ~>
|
21
19
|
- !ruby/object:Gem::Version
|
@@ -23,7 +21,6 @@ dependencies:
|
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
25
|
- - ~>
|
29
26
|
- !ruby/object:Gem::Version
|
@@ -31,7 +28,6 @@ dependencies:
|
|
31
28
|
- !ruby/object:Gem::Dependency
|
32
29
|
name: thor
|
33
30
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
31
|
requirements:
|
36
32
|
- - ~>
|
37
33
|
- !ruby/object:Gem::Version
|
@@ -39,7 +35,6 @@ dependencies:
|
|
39
35
|
type: :runtime
|
40
36
|
prerelease: false
|
41
37
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
38
|
requirements:
|
44
39
|
- - ~>
|
45
40
|
- !ruby/object:Gem::Version
|
@@ -47,7 +42,6 @@ dependencies:
|
|
47
42
|
- !ruby/object:Gem::Dependency
|
48
43
|
name: listen
|
49
44
|
requirement: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
45
|
requirements:
|
52
46
|
- - ~>
|
53
47
|
- !ruby/object:Gem::Version
|
@@ -55,7 +49,6 @@ dependencies:
|
|
55
49
|
type: :runtime
|
56
50
|
prerelease: false
|
57
51
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
52
|
requirements:
|
60
53
|
- - ~>
|
61
54
|
- !ruby/object:Gem::Version
|
@@ -63,49 +56,43 @@ dependencies:
|
|
63
56
|
- !ruby/object:Gem::Dependency
|
64
57
|
name: rake
|
65
58
|
requirement: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
59
|
requirements:
|
68
|
-
- -
|
60
|
+
- - '>='
|
69
61
|
- !ruby/object:Gem::Version
|
70
62
|
version: '0'
|
71
63
|
type: :development
|
72
64
|
prerelease: false
|
73
65
|
version_requirements: !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
66
|
requirements:
|
76
|
-
- -
|
67
|
+
- - '>='
|
77
68
|
- !ruby/object:Gem::Version
|
78
69
|
version: '0'
|
79
70
|
- !ruby/object:Gem::Dependency
|
80
71
|
name: bundler
|
81
72
|
requirement: !ruby/object:Gem::Requirement
|
82
|
-
none: false
|
83
73
|
requirements:
|
84
|
-
- -
|
74
|
+
- - '>='
|
85
75
|
- !ruby/object:Gem::Version
|
86
76
|
version: '0'
|
87
77
|
type: :development
|
88
78
|
prerelease: false
|
89
79
|
version_requirements: !ruby/object:Gem::Requirement
|
90
|
-
none: false
|
91
80
|
requirements:
|
92
|
-
- -
|
81
|
+
- - '>='
|
93
82
|
- !ruby/object:Gem::Version
|
94
83
|
version: '0'
|
95
84
|
- !ruby/object:Gem::Dependency
|
96
85
|
name: rspec
|
97
86
|
requirement: !ruby/object:Gem::Requirement
|
98
|
-
none: false
|
99
87
|
requirements:
|
100
|
-
- -
|
88
|
+
- - '>='
|
101
89
|
- !ruby/object:Gem::Version
|
102
90
|
version: '0'
|
103
91
|
type: :development
|
104
92
|
prerelease: false
|
105
93
|
version_requirements: !ruby/object:Gem::Requirement
|
106
|
-
none: false
|
107
94
|
requirements:
|
108
|
-
- -
|
95
|
+
- - '>='
|
109
96
|
- !ruby/object:Gem::Version
|
110
97
|
version: '0'
|
111
98
|
description: Font Custom makes using vector icons easy. Generate icon fonts and supporting
|
@@ -126,39 +113,39 @@ files:
|
|
126
113
|
- LICENSES.txt
|
127
114
|
- README.md
|
128
115
|
- Rakefile
|
116
|
+
- TODO.md
|
129
117
|
- bin/fontcustom
|
130
118
|
- fontcustom.gemspec
|
131
119
|
- lib/fontcustom.rb
|
120
|
+
- lib/fontcustom/base.rb
|
132
121
|
- lib/fontcustom/cli.rb
|
133
122
|
- lib/fontcustom/error.rb
|
134
123
|
- lib/fontcustom/generator/font.rb
|
135
124
|
- lib/fontcustom/generator/template.rb
|
125
|
+
- lib/fontcustom/manifest.rb
|
136
126
|
- lib/fontcustom/options.rb
|
137
127
|
- lib/fontcustom/scripts/eotlitetool.py
|
138
128
|
- lib/fontcustom/scripts/generate.py
|
139
129
|
- lib/fontcustom/scripts/sfnt2woff
|
140
|
-
- lib/fontcustom/templates/_fontcustom-bootstrap-ie7.scss
|
141
|
-
- lib/fontcustom/templates/_fontcustom-bootstrap.scss
|
142
130
|
- lib/fontcustom/templates/_fontcustom-rails.scss
|
143
131
|
- lib/fontcustom/templates/_fontcustom.scss
|
144
|
-
- lib/fontcustom/templates/fontcustom-bootstrap-ie7.css
|
145
|
-
- lib/fontcustom/templates/fontcustom-bootstrap.css
|
146
132
|
- lib/fontcustom/templates/fontcustom-preview.html
|
147
133
|
- lib/fontcustom/templates/fontcustom.css
|
148
134
|
- lib/fontcustom/templates/fontcustom.yml
|
149
|
-
- lib/fontcustom/
|
135
|
+
- lib/fontcustom/utility.rb
|
150
136
|
- lib/fontcustom/version.rb
|
151
137
|
- lib/fontcustom/watcher.rb
|
152
138
|
- spec/fixtures/generators/.fontcustom-manifest-corrupted.json
|
139
|
+
- spec/fixtures/generators/.fontcustom-manifest-empty.json
|
153
140
|
- spec/fixtures/generators/.fontcustom-manifest.json
|
154
141
|
- spec/fixtures/generators/fontcustom.yml
|
155
142
|
- spec/fixtures/generators/mixed-output/another-font.ttf
|
156
143
|
- spec/fixtures/generators/mixed-output/dont-delete-me.bro
|
157
144
|
- spec/fixtures/generators/mixed-output/fontcustom.css
|
158
|
-
- spec/fixtures/generators/mixed-output/
|
159
|
-
- spec/fixtures/generators/mixed-output/
|
160
|
-
- spec/fixtures/generators/mixed-output/
|
161
|
-
- spec/fixtures/generators/mixed-output/
|
145
|
+
- spec/fixtures/generators/mixed-output/fontcustom_82a59e769bc60192484f2620570bbb59.eot
|
146
|
+
- spec/fixtures/generators/mixed-output/fontcustom_82a59e769bc60192484f2620570bbb59.svg
|
147
|
+
- spec/fixtures/generators/mixed-output/fontcustom_82a59e769bc60192484f2620570bbb59.ttf
|
148
|
+
- spec/fixtures/generators/mixed-output/fontcustom_82a59e769bc60192484f2620570bbb59.woff
|
162
149
|
- spec/fixtures/options/any-file-name.yml
|
163
150
|
- spec/fixtures/options/config-is-in-dir/fontcustom.yml
|
164
151
|
- spec/fixtures/options/fontcustom-empty.yml
|
@@ -166,6 +153,7 @@ files:
|
|
166
153
|
- spec/fixtures/options/fontcustom.yml
|
167
154
|
- spec/fixtures/options/no-config-here/.gitkeep
|
168
155
|
- spec/fixtures/options/rails-like/config/fontcustom.yml
|
156
|
+
- spec/fixtures/sandbox/.gitkeep
|
169
157
|
- spec/fixtures/shared/not-a-dir
|
170
158
|
- spec/fixtures/shared/templates/custom.css
|
171
159
|
- spec/fixtures/shared/templates/regular.css
|
@@ -173,55 +161,52 @@ files:
|
|
173
161
|
- spec/fixtures/shared/vectors/C.svg
|
174
162
|
- spec/fixtures/shared/vectors/D.svg
|
175
163
|
- spec/fixtures/shared/vectors/a_R3ally-eXotic f1Le Name.svg
|
164
|
+
- spec/fontcustom/base_spec.rb
|
165
|
+
- spec/fontcustom/cli_spec.rb
|
176
166
|
- spec/fontcustom/generator/font_spec.rb
|
177
167
|
- spec/fontcustom/generator/template_spec.rb
|
168
|
+
- spec/fontcustom/generator/template_spec.rb.off
|
169
|
+
- spec/fontcustom/manifest_spec.rb
|
178
170
|
- spec/fontcustom/options_spec.rb
|
179
|
-
- spec/fontcustom/
|
180
|
-
- spec/fontcustom/watcher_spec.rb
|
171
|
+
- spec/fontcustom/utility_spec.rb
|
172
|
+
- spec/fontcustom/watcher_spec.rb.off
|
181
173
|
- spec/spec_helper.rb
|
182
174
|
homepage: http://fontcustom.com
|
183
175
|
licenses: []
|
184
|
-
|
185
|
-
|
186
|
-
for instructions.'
|
176
|
+
metadata: {}
|
177
|
+
post_install_message: '>> Thanks for installing Font Custom! Please ensure that fontforge
|
178
|
+
is installed before compiling any icons. Visit <http://fontcustom.com> for instructions.'
|
187
179
|
rdoc_options: []
|
188
180
|
require_paths:
|
189
181
|
- lib
|
190
182
|
required_ruby_version: !ruby/object:Gem::Requirement
|
191
|
-
none: false
|
192
183
|
requirements:
|
193
|
-
- -
|
184
|
+
- - '>='
|
194
185
|
- !ruby/object:Gem::Version
|
195
186
|
version: '0'
|
196
|
-
segments:
|
197
|
-
- 0
|
198
|
-
hash: 1146963489862796142
|
199
187
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
200
|
-
none: false
|
201
188
|
requirements:
|
202
|
-
- -
|
189
|
+
- - '>'
|
203
190
|
- !ruby/object:Gem::Version
|
204
|
-
version:
|
205
|
-
segments:
|
206
|
-
- 0
|
207
|
-
hash: 1146963489862796142
|
191
|
+
version: 1.3.1
|
208
192
|
requirements: []
|
209
193
|
rubyforge_project:
|
210
|
-
rubygems_version: 1.
|
194
|
+
rubygems_version: 2.1.9
|
211
195
|
signing_key:
|
212
|
-
specification_version:
|
196
|
+
specification_version: 4
|
213
197
|
summary: Generate icon fonts from the command line.
|
214
198
|
test_files:
|
215
199
|
- spec/fixtures/generators/.fontcustom-manifest-corrupted.json
|
200
|
+
- spec/fixtures/generators/.fontcustom-manifest-empty.json
|
216
201
|
- spec/fixtures/generators/.fontcustom-manifest.json
|
217
202
|
- spec/fixtures/generators/fontcustom.yml
|
218
203
|
- spec/fixtures/generators/mixed-output/another-font.ttf
|
219
204
|
- spec/fixtures/generators/mixed-output/dont-delete-me.bro
|
220
205
|
- spec/fixtures/generators/mixed-output/fontcustom.css
|
221
|
-
- spec/fixtures/generators/mixed-output/
|
222
|
-
- spec/fixtures/generators/mixed-output/
|
223
|
-
- spec/fixtures/generators/mixed-output/
|
224
|
-
- spec/fixtures/generators/mixed-output/
|
206
|
+
- spec/fixtures/generators/mixed-output/fontcustom_82a59e769bc60192484f2620570bbb59.eot
|
207
|
+
- spec/fixtures/generators/mixed-output/fontcustom_82a59e769bc60192484f2620570bbb59.svg
|
208
|
+
- spec/fixtures/generators/mixed-output/fontcustom_82a59e769bc60192484f2620570bbb59.ttf
|
209
|
+
- spec/fixtures/generators/mixed-output/fontcustom_82a59e769bc60192484f2620570bbb59.woff
|
225
210
|
- spec/fixtures/options/any-file-name.yml
|
226
211
|
- spec/fixtures/options/config-is-in-dir/fontcustom.yml
|
227
212
|
- spec/fixtures/options/fontcustom-empty.yml
|
@@ -229,6 +214,7 @@ test_files:
|
|
229
214
|
- spec/fixtures/options/fontcustom.yml
|
230
215
|
- spec/fixtures/options/no-config-here/.gitkeep
|
231
216
|
- spec/fixtures/options/rails-like/config/fontcustom.yml
|
217
|
+
- spec/fixtures/sandbox/.gitkeep
|
232
218
|
- spec/fixtures/shared/not-a-dir
|
233
219
|
- spec/fixtures/shared/templates/custom.css
|
234
220
|
- spec/fixtures/shared/templates/regular.css
|
@@ -236,9 +222,13 @@ test_files:
|
|
236
222
|
- spec/fixtures/shared/vectors/C.svg
|
237
223
|
- spec/fixtures/shared/vectors/D.svg
|
238
224
|
- spec/fixtures/shared/vectors/a_R3ally-eXotic f1Le Name.svg
|
225
|
+
- spec/fontcustom/base_spec.rb
|
226
|
+
- spec/fontcustom/cli_spec.rb
|
239
227
|
- spec/fontcustom/generator/font_spec.rb
|
240
228
|
- spec/fontcustom/generator/template_spec.rb
|
229
|
+
- spec/fontcustom/generator/template_spec.rb.off
|
230
|
+
- spec/fontcustom/manifest_spec.rb
|
241
231
|
- spec/fontcustom/options_spec.rb
|
242
|
-
- spec/fontcustom/
|
243
|
-
- spec/fontcustom/watcher_spec.rb
|
232
|
+
- spec/fontcustom/utility_spec.rb
|
233
|
+
- spec/fontcustom/watcher_spec.rb.off
|
244
234
|
- spec/spec_helper.rb
|