middleman-fontcustom 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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile +4 -4
- data/README.md +37 -0
- data/lib/middleman-fontcustom/extension.rb +1 -1
- data/lib/middleman-fontcustom/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5d8c5b45be514b3412800e662713aeeb32e46d10
|
|
4
|
+
data.tar.gz: 8f93eced829db73bb8e0cb68afc782a2e28fd7d9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b7169876e748c0c2cf68931a26d6c7d4543d9500805182bfa8e031d84ab37ab50bb91aa4442aa1ba90d876fd00bb943a8f81cf3886da0b1bcb89d40107b4e333
|
|
7
|
+
data.tar.gz: 74f46a44d4718d6472127563e6a96d78e547115d85a1a0634537bf367a1cf198896a90e9d86021b3baed9bdbdb7cc8b359ddd44e4e79688674c85cce8a33772a
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
source
|
|
1
|
+
source 'https://rubygems.org'
|
|
2
2
|
|
|
3
|
-
git
|
|
4
|
-
gem
|
|
3
|
+
git 'git://github.com/middleman/middleman.git', :branch => 'v3-stable' do
|
|
4
|
+
gem 'middleman-core'
|
|
5
5
|
end
|
|
6
6
|
|
|
7
7
|
# Specify your gem's dependencies in middleman-fontcustom.gemspec
|
|
8
8
|
gemspec
|
|
9
9
|
|
|
10
|
-
gem
|
|
10
|
+
gem 'rake', '~> 10.3.1'
|
data/README.md
CHANGED
|
@@ -1 +1,38 @@
|
|
|
1
1
|
# middleman-fontcustom
|
|
2
|
+
|
|
3
|
+
[](http://badge.fury.io/rb/middleman-fontcustom)
|
|
4
|
+
[](https://gemnasium.com/oame/middleman-fontcustom)
|
|
5
|
+
|
|
6
|
+
middleman-fontcustom is an extension that provides webfont generator for the Middleman.
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
Add `gem "middleman-fontcustom"` into your `Gemfile` and run `bundle install`
|
|
11
|
+
|
|
12
|
+
## Configure
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
activate :fontcustom
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Following lines are default options of this extension.
|
|
19
|
+
|
|
20
|
+
```ruby
|
|
21
|
+
activate :fontcustom do |fc|
|
|
22
|
+
fc.font_name = 'fontcustom'
|
|
23
|
+
fc.source_dir = 'assets/fontcustom'
|
|
24
|
+
fc.fonts_dir = 'source/fonts'
|
|
25
|
+
fc.css_dir = 'source/stylesheets'
|
|
26
|
+
fc.templates = 'scss'
|
|
27
|
+
# fc.templates = 'scss-rails scss css'
|
|
28
|
+
fc.no_hash = false
|
|
29
|
+
end
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Put your icon files(just like svg) into `source_dir`, then run `middleman server`.
|
|
33
|
+
|
|
34
|
+
If `source_dir` has been changed, webfont files and stylesheets will be generated automatically.
|
|
35
|
+
|
|
36
|
+
## License
|
|
37
|
+
|
|
38
|
+
Copyright (C) 2014 Ryo Ameya. see LICENSE.md for further details.
|
|
@@ -3,7 +3,7 @@ require 'fontcustom'
|
|
|
3
3
|
module Middleman
|
|
4
4
|
class FontcustomExtension < Extension
|
|
5
5
|
option :font_name, 'fontcustom', 'Output font name'
|
|
6
|
-
option :source_dir, 'assets/
|
|
6
|
+
option :source_dir, 'assets/fontcustom', 'Folder contains icon files'
|
|
7
7
|
option :fonts_dir, 'source/fonts', 'Folder to output fonts'
|
|
8
8
|
option :css_dir, 'source/stylesheets', 'Folder to output css'
|
|
9
9
|
option :templates, 'scss', 'Output templates'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: middleman-fontcustom
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryo Ameya
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-05-
|
|
11
|
+
date: 2014-05-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: middleman-core
|
|
@@ -81,3 +81,4 @@ signing_key:
|
|
|
81
81
|
specification_version: 4
|
|
82
82
|
summary: Generate web-fonts in your Middleman project
|
|
83
83
|
test_files: []
|
|
84
|
+
has_rdoc:
|