graphite-sass 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -3
- data/lib/graphite.rb +11 -5
- data/stylesheets/{graphite.scss → _graphite.scss} +0 -0
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7feafd9293145a4304f3de6ad0865ac7e5ed143e
|
4
|
+
data.tar.gz: e72f6efc2524a5b44fdde6c88aff489bc370df70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03797c5789dbd0cbd863bd968ddc70f83119c1501189190bb0e8caf030f680539f57ef9d26947704d3eb082a23dd67e894ca076ff185da685f8f92e75cfb680b
|
7
|
+
data.tar.gz: 91d97122b8b098ba44ce0befde18523743ebfc6d331a6fd87c8470d3ec09dc7154cc8570da69597d15c5e3ead39e24fd6ee364fe6d133ddb64b15f5addbf9ef6
|
data/README.md
CHANGED
@@ -2,10 +2,9 @@
|
|
2
2
|
|
3
3
|
Graphite imports a folder of fonts and automagically outputs font-face directives for each font into your stylesheet. Will write up better documentation soon.
|
4
4
|
|
5
|
-
##Requirements
|
5
|
+
## Requirements
|
6
6
|
|
7
7
|
* Sass `~> 3.3.0`
|
8
|
-
* Compass `~> 1.0.0.alpha.19`
|
9
8
|
|
10
9
|
## Installation
|
11
10
|
|
@@ -41,7 +40,7 @@ In order for Graphite to successfully import your fonts, please follow this conv
|
|
41
40
|
> ###### name: \<string\>
|
42
41
|
> ###### weight: \<100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900\>
|
43
42
|
> ###### style: \<normal | italic\>
|
44
|
-
> ###### extension: \<woff | ttf | eot | svg | otf\>
|
43
|
+
> ###### extension: \<woff | woff2 | ttf | eot | svg | otf\>
|
45
44
|
|
46
45
|
#### name-weight-style.extension
|
47
46
|
|
data/lib/graphite.rb
CHANGED
@@ -1,12 +1,18 @@
|
|
1
|
-
require '
|
1
|
+
require 'sass'
|
2
2
|
require 'sassy_hash'
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
base_directory = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
5
|
+
graphite_stylesheets_path = File.join(base_directory, 'stylesheets')
|
6
|
+
|
7
|
+
if (defined? Compass)
|
8
|
+
Compass::Frameworks.register('graphite', :path => base_directory)
|
9
|
+
else
|
10
|
+
ENV["SASS_PATH"] = [ENV["SASS_PATH"], graphite_stylesheets_path].compact.join(File::PATH_SEPARATOR)
|
11
|
+
end
|
6
12
|
|
7
13
|
module Graphite
|
8
|
-
VERSION = "0.
|
9
|
-
DATE = "2014-08-
|
14
|
+
VERSION = "0.4.0"
|
15
|
+
DATE = "2014-08-18"
|
10
16
|
end
|
11
17
|
|
12
18
|
# Graphite : import fonts from font_dir into map
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphite-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ezekiel Gabrielse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 3.3.0
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: compass
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 0.12.1
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 0.12.1
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: sassy_hash
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -62,7 +48,7 @@ extra_rdoc_files: []
|
|
62
48
|
files:
|
63
49
|
- README.md
|
64
50
|
- lib/graphite.rb
|
65
|
-
- stylesheets/
|
51
|
+
- stylesheets/_graphite.scss
|
66
52
|
homepage: https://github.com/ezekg/Graphite/
|
67
53
|
licenses:
|
68
54
|
- MIT
|