fontcustom 1.0.1 → 1.1.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/TODO.md +6 -0
- data/lib/fontcustom.rb +1 -1
- data/lib/fontcustom/actions.rb +28 -0
- data/lib/fontcustom/cli.rb +16 -15
- data/lib/fontcustom/generator/font.rb +31 -35
- data/lib/fontcustom/generator/template.rb +49 -34
- data/lib/fontcustom/options.rb +17 -11
- data/lib/fontcustom/scripts/generate.py +1 -1
- data/lib/fontcustom/templates/_fontcustom-bootstrap-ie7.scss +4 -3
- data/lib/fontcustom/templates/_fontcustom-bootstrap.scss +9 -14
- data/lib/fontcustom/templates/_fontcustom.scss +8 -14
- data/lib/fontcustom/templates/fontcustom-bootstrap-ie7.css +3 -2
- data/lib/fontcustom/templates/fontcustom-bootstrap.css +9 -8
- data/lib/fontcustom/templates/fontcustom-preview.html +2 -3
- data/lib/fontcustom/templates/fontcustom.css +7 -7
- data/lib/fontcustom/templates/fontcustom.yml +25 -66
- data/lib/fontcustom/util.rb +108 -31
- data/lib/fontcustom/version.rb +1 -1
- data/lib/fontcustom/watcher.rb +24 -8
- data/spec/fixtures/{mixed-output → generators}/.fontcustom-data +0 -0
- data/spec/fixtures/{mixed-output → generators/mixed-output}/another-font.ttf +0 -0
- data/spec/fixtures/{mixed-output → generators/mixed-output}/dont-delete-me.bro +0 -0
- data/spec/fixtures/{mixed-output → generators/mixed-output}/fontcustom.css +0 -0
- data/spec/fixtures/{mixed-output → generators/mixed-output}/fontcustom_cc5ce52f2ae4f9ce2e7ee8131bbfee1e.eot +0 -0
- data/spec/fixtures/{mixed-output → generators/mixed-output}/fontcustom_cc5ce52f2ae4f9ce2e7ee8131bbfee1e.svg +0 -0
- data/spec/fixtures/{mixed-output → generators/mixed-output}/fontcustom_cc5ce52f2ae4f9ce2e7ee8131bbfee1e.ttf +0 -0
- data/spec/fixtures/{mixed-output → generators/mixed-output}/fontcustom_cc5ce52f2ae4f9ce2e7ee8131bbfee1e.woff +0 -0
- data/spec/fixtures/{not-a-dir → shared/not-a-dir} +0 -0
- data/spec/fixtures/shared/templates/custom.css +1 -0
- data/spec/fixtures/shared/templates/regular.css +1 -0
- data/spec/fixtures/{empty → shared/vectors-empty}/no_vectors_here.txt +0 -0
- data/spec/fixtures/{vectors → shared/vectors}/C.svg +0 -0
- data/spec/fixtures/{vectors → shared/vectors}/D.svg +0 -0
- data/spec/fixtures/vectors/a_R3ally-eXotic f1Le Name.svg b/data/spec/fixtures/shared/vectors/a_R3ally-eXotic f1Le → Name.svg +0 -0
- data/spec/fixtures/util/config-is-in-dir/fontcustom.yml +1 -0
- data/spec/fixtures/util/fontcustom-malformed.yml +1 -0
- data/spec/fixtures/{fontcustom.yml → util/fontcustom.yml} +0 -0
- data/spec/fixtures/util/rails-like/config/fontcustom.yml +1 -0
- data/spec/fontcustom/actions_spec.rb +22 -0
- data/spec/fontcustom/generator/font_spec.rb +107 -62
- data/spec/fontcustom/generator/template_spec.rb +124 -29
- data/spec/fontcustom/util_spec.rb +299 -53
- data/spec/fontcustom/watcher_spec.rb +56 -10
- data/spec/spec_helper.rb +8 -3
- metadata +46 -34
- data/spec/fixtures/empty-data/.fontcustom-data +0 -0
data/spec/spec_helper.rb
CHANGED
@@ -3,10 +3,11 @@ require 'json'
|
|
3
3
|
require File.expand_path('../../lib/fontcustom.rb', __FILE__)
|
4
4
|
|
5
5
|
RSpec.configure do |c|
|
6
|
-
def fixture(path)
|
6
|
+
def fixture(path = "")
|
7
7
|
File.join(File.expand_path('../fixtures', __FILE__), path)
|
8
8
|
end
|
9
9
|
|
10
|
+
# TODO more aptly named fontforge_data?
|
10
11
|
def data_file_contents
|
11
12
|
{
|
12
13
|
:fonts => %w|
|
@@ -16,8 +17,12 @@ RSpec.configure do |c|
|
|
16
17
|
fontcustom_cc5ce52f2ae4f9ce2e7ee8131bbfee1e.svg
|
17
18
|
|,
|
18
19
|
:templates => %w|fontcustom.css|,
|
19
|
-
:
|
20
|
-
:
|
20
|
+
:glyphs => %w|a_r3ally-exotic-f1le-name c d|,
|
21
|
+
:paths => {
|
22
|
+
:css_to_fonts => "",
|
23
|
+
:preprocessor_to_fonts => "",
|
24
|
+
:preview_to_css => ""
|
25
|
+
}
|
21
26
|
}
|
22
27
|
end
|
23
28
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fontcustom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.1.0.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kai Zau
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-08-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
@@ -112,9 +112,11 @@ files:
|
|
112
112
|
- LICENSES.txt
|
113
113
|
- README.md
|
114
114
|
- Rakefile
|
115
|
+
- TODO.md
|
115
116
|
- bin/fontcustom
|
116
117
|
- fontcustom.gemspec
|
117
118
|
- lib/fontcustom.rb
|
119
|
+
- lib/fontcustom/actions.rb
|
118
120
|
- lib/fontcustom/cli.rb
|
119
121
|
- lib/fontcustom/error.rb
|
120
122
|
- lib/fontcustom/generator/font.rb
|
@@ -134,21 +136,26 @@ files:
|
|
134
136
|
- lib/fontcustom/util.rb
|
135
137
|
- lib/fontcustom/version.rb
|
136
138
|
- lib/fontcustom/watcher.rb
|
137
|
-
- spec/fixtures/
|
138
|
-
- spec/fixtures/
|
139
|
-
- spec/fixtures/
|
140
|
-
- spec/fixtures/mixed-output
|
141
|
-
- spec/fixtures/mixed-output/
|
142
|
-
- spec/fixtures/mixed-output/
|
143
|
-
- spec/fixtures/mixed-output/
|
144
|
-
- spec/fixtures/mixed-output/fontcustom_cc5ce52f2ae4f9ce2e7ee8131bbfee1e.
|
145
|
-
- spec/fixtures/
|
146
|
-
- spec/fixtures/
|
147
|
-
- spec/fixtures/
|
148
|
-
- spec/fixtures/
|
149
|
-
- spec/fixtures/vectors/C.svg
|
150
|
-
- spec/fixtures/vectors/D.svg
|
151
|
-
- spec/fixtures/vectors/a_R3ally-eXotic f1Le Name.svg
|
139
|
+
- spec/fixtures/generators/.fontcustom-data
|
140
|
+
- spec/fixtures/generators/mixed-output/another-font.ttf
|
141
|
+
- spec/fixtures/generators/mixed-output/dont-delete-me.bro
|
142
|
+
- spec/fixtures/generators/mixed-output/fontcustom.css
|
143
|
+
- spec/fixtures/generators/mixed-output/fontcustom_cc5ce52f2ae4f9ce2e7ee8131bbfee1e.eot
|
144
|
+
- spec/fixtures/generators/mixed-output/fontcustom_cc5ce52f2ae4f9ce2e7ee8131bbfee1e.svg
|
145
|
+
- spec/fixtures/generators/mixed-output/fontcustom_cc5ce52f2ae4f9ce2e7ee8131bbfee1e.ttf
|
146
|
+
- spec/fixtures/generators/mixed-output/fontcustom_cc5ce52f2ae4f9ce2e7ee8131bbfee1e.woff
|
147
|
+
- spec/fixtures/shared/not-a-dir
|
148
|
+
- spec/fixtures/shared/templates/custom.css
|
149
|
+
- spec/fixtures/shared/templates/regular.css
|
150
|
+
- spec/fixtures/shared/vectors-empty/no_vectors_here.txt
|
151
|
+
- spec/fixtures/shared/vectors/C.svg
|
152
|
+
- spec/fixtures/shared/vectors/D.svg
|
153
|
+
- spec/fixtures/shared/vectors/a_R3ally-eXotic f1Le Name.svg
|
154
|
+
- spec/fixtures/util/config-is-in-dir/fontcustom.yml
|
155
|
+
- spec/fixtures/util/fontcustom-malformed.yml
|
156
|
+
- spec/fixtures/util/fontcustom.yml
|
157
|
+
- spec/fixtures/util/rails-like/config/fontcustom.yml
|
158
|
+
- spec/fontcustom/actions_spec.rb
|
152
159
|
- spec/fontcustom/generator/font_spec.rb
|
153
160
|
- spec/fontcustom/generator/template_spec.rb
|
154
161
|
- spec/fontcustom/util_spec.rb
|
@@ -168,9 +175,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
168
175
|
version: '0'
|
169
176
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
170
177
|
requirements:
|
171
|
-
- - '
|
178
|
+
- - '>'
|
172
179
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
180
|
+
version: 1.3.1
|
174
181
|
requirements: []
|
175
182
|
rubyforge_project:
|
176
183
|
rubygems_version: 2.0.3
|
@@ -178,21 +185,26 @@ signing_key:
|
|
178
185
|
specification_version: 4
|
179
186
|
summary: Generate custom icon webfonts from the comfort of the command line.
|
180
187
|
test_files:
|
181
|
-
- spec/fixtures/
|
182
|
-
- spec/fixtures/
|
183
|
-
- spec/fixtures/
|
184
|
-
- spec/fixtures/mixed-output
|
185
|
-
- spec/fixtures/mixed-output/
|
186
|
-
- spec/fixtures/mixed-output/
|
187
|
-
- spec/fixtures/mixed-output/
|
188
|
-
- spec/fixtures/mixed-output/fontcustom_cc5ce52f2ae4f9ce2e7ee8131bbfee1e.
|
189
|
-
- spec/fixtures/
|
190
|
-
- spec/fixtures/
|
191
|
-
- spec/fixtures/
|
192
|
-
- spec/fixtures/
|
193
|
-
- spec/fixtures/vectors/C.svg
|
194
|
-
- spec/fixtures/vectors/D.svg
|
195
|
-
- spec/fixtures/vectors/a_R3ally-eXotic f1Le Name.svg
|
188
|
+
- spec/fixtures/generators/.fontcustom-data
|
189
|
+
- spec/fixtures/generators/mixed-output/another-font.ttf
|
190
|
+
- spec/fixtures/generators/mixed-output/dont-delete-me.bro
|
191
|
+
- spec/fixtures/generators/mixed-output/fontcustom.css
|
192
|
+
- spec/fixtures/generators/mixed-output/fontcustom_cc5ce52f2ae4f9ce2e7ee8131bbfee1e.eot
|
193
|
+
- spec/fixtures/generators/mixed-output/fontcustom_cc5ce52f2ae4f9ce2e7ee8131bbfee1e.svg
|
194
|
+
- spec/fixtures/generators/mixed-output/fontcustom_cc5ce52f2ae4f9ce2e7ee8131bbfee1e.ttf
|
195
|
+
- spec/fixtures/generators/mixed-output/fontcustom_cc5ce52f2ae4f9ce2e7ee8131bbfee1e.woff
|
196
|
+
- spec/fixtures/shared/not-a-dir
|
197
|
+
- spec/fixtures/shared/templates/custom.css
|
198
|
+
- spec/fixtures/shared/templates/regular.css
|
199
|
+
- spec/fixtures/shared/vectors-empty/no_vectors_here.txt
|
200
|
+
- spec/fixtures/shared/vectors/C.svg
|
201
|
+
- spec/fixtures/shared/vectors/D.svg
|
202
|
+
- spec/fixtures/shared/vectors/a_R3ally-eXotic f1Le Name.svg
|
203
|
+
- spec/fixtures/util/config-is-in-dir/fontcustom.yml
|
204
|
+
- spec/fixtures/util/fontcustom-malformed.yml
|
205
|
+
- spec/fixtures/util/fontcustom.yml
|
206
|
+
- spec/fixtures/util/rails-like/config/fontcustom.yml
|
207
|
+
- spec/fontcustom/actions_spec.rb
|
196
208
|
- spec/fontcustom/generator/font_spec.rb
|
197
209
|
- spec/fontcustom/generator/template_spec.rb
|
198
210
|
- spec/fontcustom/util_spec.rb
|
File without changes
|