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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5542004c1ff4758f6c961bd661840f81cda27979
4
- data.tar.gz: 073d7f01ba9bbc3a69026bead64e01e98e1a4389
3
+ metadata.gz: 7feafd9293145a4304f3de6ad0865ac7e5ed143e
4
+ data.tar.gz: e72f6efc2524a5b44fdde6c88aff489bc370df70
5
5
  SHA512:
6
- metadata.gz: 928c68f5045b73498218ea8964fd0ecdcb0671e7e51894b5eb49f1a08aef69e83312a972a57d8edd56caf2d3b843997363a1af16418577a26df4ab607501075c
7
- data.tar.gz: 335d0022d7767ffa4aee171107dfc51f1eaf02a815448cfbad6027601cd13f8b5e370d186925eddfca08484fe9371e83f398732a7140fa5c1feea9a08f577d30
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 'compass'
1
+ require 'sass'
2
2
  require 'sassy_hash'
3
3
 
4
- extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
5
- Compass::Frameworks.register('graphite', :path => extension_path)
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.3.1"
9
- DATE = "2014-08-13"
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.3.1
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-13 00:00:00.000000000 Z
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/graphite.scss
51
+ - stylesheets/_graphite.scss
66
52
  homepage: https://github.com/ezekg/Graphite/
67
53
  licenses:
68
54
  - MIT