fontcustom 1.3.4 → 1.3.5.pre
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 +5 -13
- data/.gitignore +1 -0
- data/CONTRIBUTING.md +1 -1
- data/README.md +6 -3
- data/gemfiles/Gemfile.listen_1 +4 -4
- data/lib/fontcustom/generator/template.rb +16 -10
- data/lib/fontcustom/templates/_fontcustom-rails.scss +1 -1
- data/lib/fontcustom/templates/_fontcustom.scss +1 -1
- data/lib/fontcustom/templates/fontcustom-preview.html +1 -1
- data/lib/fontcustom/version.rb +1 -1
- data/spec/fontcustom/watcher_spec.rb +1 -1
- metadata +16 -18
- data/TODO.md +0 -20
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
MGUzYTA4ZGNiZjBjN2M1NGJlY2ZkZWQxZDgwZjY3YzNiZjIzZjM3NQ==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 03162e2e3d2f981836841779efa778ea14db503b
|
4
|
+
data.tar.gz: ee716312d19ebe9444301e1915388ca8e94748cc
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
ZjI4MmY0NzJlODRjOWVhNTkxMTc2YTE4NTRmZWM4OWE0N2FiNWM5ZGM5N2E3
|
11
|
-
OWQ2NjlkYTBkMGRhODhmZjljYTMzYzUyZGE2MWVhOGIzOTk0MDg=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
OWY3MTM5OWE1ZWMxMGVkMDFjNTExNGIzMTVjM2VmZjE3NDY3YTZjODhjMTI4
|
14
|
-
ZTQ4NGI0OWZiYWQzMGEwYzg0NTBmZjQ2N2RlYjgxNGIwMzFlY2ZhMzk5ZTNj
|
15
|
-
MTA0OGE2YzFiMWJiMGZlZmEwYzE4MTE1NDhhZjIyMjJiNzMxOGM=
|
6
|
+
metadata.gz: 5b44778820e39ae89a45f682e799894357c29a6e12ea90d312a7585c31672ddd9a670558b0383714cd61ad5eaae12769e960c7c0bfee969b49b0f97f0d2b296a
|
7
|
+
data.tar.gz: fc12e842ed7b575721ca81d9dc08036545e45843464ebdc3c714b05575a3347a8e6c369ce6a178737d72522ecce5d6df2051f7ac512bf94b3273de8b316c0967
|
data/.gitignore
CHANGED
data/CONTRIBUTING.md
CHANGED
@@ -47,5 +47,5 @@ Some helpful links:
|
|
47
47
|
That's all there is to it. Thanks again, and please don't hesitate to reach out:
|
48
48
|
|
49
49
|
[Github Issues](https://github.com/FontCustom/fontcustom/issues)<br>
|
50
|
-
[@
|
50
|
+
[@kaizau](https://twitter.com/kaizau)<br>
|
51
51
|
[@endtwist](https://twitter.com/endtwist)
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
[](http://badge.fury.io/rb/fontcustom)
|
2
2
|
[](https://travis-ci.org/FontCustom/fontcustom)
|
3
|
-
[](https://codeclimate.com/github/FontCustom/fontcustom)
|
3
|
+
[](https://codeclimate.com/github/FontCustom/fontcustom) [](https://www.bountysource.com/trackers/32953-endtwist-fontcustom?utm_source=32953&utm_medium=shield&utm_campaign=TRACKER_BADGE)
|
4
4
|
|
5
5
|
## Font Custom
|
6
6
|
|
@@ -18,7 +18,8 @@ Requires **Ruby 1.9.2+**, **FontForge** with Python scripting.
|
|
18
18
|
|
19
19
|
```sh
|
20
20
|
# On Mac
|
21
|
-
brew install fontforge
|
21
|
+
brew install fontforge --with-python
|
22
|
+
brew install eot-utils
|
22
23
|
gem install fontcustom
|
23
24
|
|
24
25
|
# On Linux
|
@@ -101,6 +102,8 @@ Custom templates have access to `@options`, `@manifest`, and the following ERB h
|
|
101
102
|
|
102
103
|
* `font_name`
|
103
104
|
* `font_face`: FontSpring's [Bulletproof @font-face syntax](http://www.fontspring.com/blog/further-hardening-of-the-bulletproof-syntax)
|
105
|
+
- Font paths can be modified by passing a hash. `font_face(url: "font-url", path: @font_path_alt)`
|
106
|
+
- The `preview`, `scss`, and `scss-rails` templates use modified font paths. Compass users should use the `scss-rails` template.
|
104
107
|
* `glyph_selectors`: comma-separated list of all selectors
|
105
108
|
* `glyphs`: all selectors and their codepoint assignments (`.icon-example:before { content: "\f103"; }`)
|
106
109
|
|
@@ -118,4 +121,4 @@ Custom templates have access to `@options`, `@manifest`, and the following ERB h
|
|
118
121
|
|
119
122
|
[Licenses](https://github.com/FontCustom/fontcustom/blob/master/LICENSES.txt)
|
120
123
|
|
121
|
-
Brought to you by [@endtwist](https://github.com/endtwist) and [@
|
124
|
+
Brought to you by [@endtwist](https://github.com/endtwist) and [@kaizau](https://github.com/kaizau)
|
data/gemfiles/Gemfile.listen_1
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
source
|
1
|
+
source "https://rubygems.org"
|
2
2
|
|
3
|
-
# Specify your gem
|
4
|
-
gemspec
|
3
|
+
# Specify your gem"s dependencies in fontcustom.gemspec
|
4
|
+
gemspec :path => ".."
|
5
5
|
|
6
|
-
gem "listen", "~>1.0"
|
6
|
+
gem "listen", "~>1.0"
|
@@ -114,17 +114,23 @@ module Fontcustom
|
|
114
114
|
@options[:font_name]
|
115
115
|
end
|
116
116
|
|
117
|
-
def font_face(style =
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
117
|
+
def font_face(style = {})
|
118
|
+
if style.is_a?(Symbol)
|
119
|
+
if style == :preprocessor
|
120
|
+
url = "font-url"
|
121
|
+
path = @font_path_alt
|
122
|
+
elsif style == :preview
|
123
|
+
url = "url"
|
124
|
+
path = @font_path_preview
|
125
|
+
else
|
126
|
+
url = "url"
|
127
|
+
path = @font_path
|
128
|
+
end
|
129
|
+
say_message :warn, "`font_face(:#{style})` is deprecated. Use `font_face(url:'url', path:'path')` instead."
|
125
130
|
else
|
126
|
-
|
127
|
-
|
131
|
+
style = {:url => "url", :path => @font_path}.merge(style)
|
132
|
+
url = style[:url]
|
133
|
+
path = style[:path]
|
128
134
|
end
|
129
135
|
%Q|@font-face {
|
130
136
|
font-family: "#{font_name}";
|
data/lib/fontcustom/version.rb
CHANGED
@@ -70,7 +70,7 @@ describe Fontcustom::Watcher do
|
|
70
70
|
end
|
71
71
|
|
72
72
|
it "should call generators when custom templates change" do
|
73
|
-
expect_any_instance_of(Fontcustom::Base).to receive(:compile)
|
73
|
+
expect_any_instance_of(Fontcustom::Base).to receive(:compile)
|
74
74
|
|
75
75
|
w = watcher(
|
76
76
|
:input => {:vectors => "shared/vectors", :templates => "shared/templates"},
|
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.3.
|
4
|
+
version: 1.3.5.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: 2014-10-
|
12
|
+
date: 2014-10-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
name: listen
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - '>='
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '1.0'
|
49
49
|
- - <
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
prerelease: false
|
54
54
|
version_requirements: !ruby/object:Gem::Requirement
|
55
55
|
requirements:
|
56
|
-
- -
|
56
|
+
- - '>='
|
57
57
|
- !ruby/object:Gem::Version
|
58
58
|
version: '1.0'
|
59
59
|
- - <
|
@@ -63,42 +63,42 @@ dependencies:
|
|
63
63
|
name: rake
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
type: :development
|
70
70
|
prerelease: false
|
71
71
|
version_requirements: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - '>='
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
- !ruby/object:Gem::Dependency
|
77
77
|
name: bundler
|
78
78
|
requirement: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - '>='
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
type: :development
|
84
84
|
prerelease: false
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - '>='
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
- !ruby/object:Gem::Dependency
|
91
91
|
name: rspec
|
92
92
|
requirement: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - '>='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
type: :development
|
98
98
|
prerelease: false
|
99
99
|
version_requirements: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - '>='
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
description: Font Custom makes using vector icons easy. Generate icon fonts and supporting
|
@@ -119,7 +119,6 @@ files:
|
|
119
119
|
- LICENSES.txt
|
120
120
|
- README.md
|
121
121
|
- Rakefile
|
122
|
-
- TODO.md
|
123
122
|
- bin/fontcustom
|
124
123
|
- fontcustom.gemspec
|
125
124
|
- gemfiles/Gemfile.listen_1
|
@@ -180,25 +179,24 @@ files:
|
|
180
179
|
homepage: http://fontcustom.com
|
181
180
|
licenses: []
|
182
181
|
metadata: {}
|
183
|
-
post_install_message:
|
184
|
-
|
185
|
-
for instructions.'
|
182
|
+
post_install_message: '>> Thanks for installing Font Custom! Please ensure that fontforge
|
183
|
+
is installed before compiling any icons. Visit <http://fontcustom.com> for instructions.'
|
186
184
|
rdoc_options: []
|
187
185
|
require_paths:
|
188
186
|
- lib
|
189
187
|
required_ruby_version: !ruby/object:Gem::Requirement
|
190
188
|
requirements:
|
191
|
-
- -
|
189
|
+
- - '>='
|
192
190
|
- !ruby/object:Gem::Version
|
193
191
|
version: '0'
|
194
192
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
195
193
|
requirements:
|
196
|
-
- -
|
194
|
+
- - '>'
|
197
195
|
- !ruby/object:Gem::Version
|
198
|
-
version:
|
196
|
+
version: 1.3.1
|
199
197
|
requirements: []
|
200
198
|
rubyforge_project:
|
201
|
-
rubygems_version: 2.
|
199
|
+
rubygems_version: 2.1.9
|
202
200
|
signing_key:
|
203
201
|
specification_version: 4
|
204
202
|
summary: Generate icon fonts from the command line.
|
data/TODO.md
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
## TODO
|
2
|
-
|
3
|
-
### 1.3.0
|
4
|
-
|
5
|
-
* redirect fontcustom.com to github repo (use wiki for documentation)
|
6
|
-
|
7
|
-
### Future
|
8
|
-
|
9
|
-
* Include fontcustom version in manifest / checksum
|
10
|
-
* Error message if using the wrong version of ruby
|
11
|
-
* Add more travis CLI rubies / thor versions?
|
12
|
-
* Detect old manifest / show error message
|
13
|
-
* Template helper that returns a hash of glyphs and pre-formatted codes
|
14
|
-
* conserve code points: http://stackoverflow.com/questions/8794430/ruby-finding-lowest-free-id-in-an-id-array
|
15
|
-
* strip /fill: rgba(...)/ from SVGs so that transparent SVGs don't fail
|
16
|
-
* more flexible input/ouput hashes (regex or file extensions)
|
17
|
-
* sass template with variables
|
18
|
-
* less template with variables
|
19
|
-
* more robust fontforge check than `which`
|
20
|
-
* remove redundant requires
|