compass-fontcustom 1.0.0.pre → 1.0.0.pre3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 33c354b92ccccb62776079d49fd0edab33aee28b
4
- data.tar.gz: 97fd9f1564a4180e3a03756c91ced0f30d9a83c1
3
+ metadata.gz: c28d5c1c02bdd9f5ce4285a99f225c33bfdd5c75
4
+ data.tar.gz: ae49f5276fcbffa47833a2093e6a12a6b15cc7ea
5
5
  SHA512:
6
- metadata.gz: 78fc310f732d0fef8eae33ddb604cac414aee7f228f502470f4e13385def8f0079e63ffdc8848df8e4aeea6e3562ee793f4122113b35e06b31893787b4bafd3c
7
- data.tar.gz: fb41b7770a5f977d2565455adb60a7993607d80b9c06a70e177642dd36ce01381ec3ad59444858b559e840c3d79c269252e259c926982afc9d2f7149a21dae25
6
+ metadata.gz: 21633cb61deea542ec6d84f0be0dd642004bfbf799df7d0e351b0414d01feb041b2255802fc7cfa2d3211e3ea451e68527cc00e18b8d548f164b44285d29762f
7
+ data.tar.gz: 01befe286c13a26e2a85b0c9f96e4ccfc254ed8ccefe9131d58456d247d8d373dfae3e63627fee232855ebf20aba9414e04b04dda250d3425db2a24d7bf6a676
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ **1.0.0.pre2** Maintenance release
4
+
5
+ - Depending on fontcustom 1.0.0.pre2
6
+
3
7
  **1.0.0.pre**
4
8
 
5
9
  - Designed to work with fontcustom 1.0.0.pre
data/Gemfile CHANGED
@@ -3,6 +3,7 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in compass-fontcustom.gemspec
4
4
  gemspec
5
5
 
6
+ gem 'coveralls', :require => false
6
7
  group :development do
7
8
  gem 'autotest-standalone'
8
9
  gem 'autotest-growl' if RUBY_PLATFORM =~ /darwin/
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Compass::Fontcustom [![Build Status](https://travis-ci.org/glaszig/compass-fontcustom.png?branch=experimental)](https://travis-ci.org/glaszig/compass-fontcustom)
1
+ # Compass::Fontcustom [![Build Status](https://travis-ci.org/glaszig/compass-fontcustom.png?branch=experimental)](https://travis-ci.org/glaszig/compass-fontcustom) [![Gem Version](https://badge.fury.io/rb/compass-fontcustom.png)](http://badge.fury.io/rb/compass-fontcustom) [![Test Coverage](https://coveralls.io/repos/glaszig/compass-fontcustom/badge.png?branch=master)](https://coveralls.io/r/glaszig/compass-fontcustom)
2
2
 
3
3
  This is my attempt of integrating [Font Custom](http://fontcustom.com) with [Compass](http://compass-style.org).
4
4
 
@@ -52,3 +52,5 @@ end
52
52
  ## License
53
53
 
54
54
  [MIT](https://raw.github.com/glaszig/compass-fontcustom/master/LICENSE)
55
+
56
+ [![githalytics.com alpha](https://cruel-carlota.pagodabox.com/233dd6a31787ce3672d5e92e97a76965 "githalytics.com")](http://githalytics.com/glaszig/compass-fontcustom)
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_dependency "compass"
22
- spec.add_dependency "fontcustom", "~> 1.0.0.pre"
22
+ spec.add_dependency "fontcustom", "~> 1.0.0"
23
23
 
24
24
  spec.add_development_dependency "bundler", "~> 1.3"
25
25
  spec.add_development_dependency "rake"
@@ -5,14 +5,16 @@ module Compass
5
5
  module Configurable
6
6
 
7
7
  def self.included(base)
8
- base.class_eval do
9
- def self.configure(&block)
10
- yield config
11
- end
8
+ base.extend ClassMethods
9
+ end
12
10
 
13
- def self.config
14
- @_config ||= Configuration.new
15
- end
11
+ module ClassMethods
12
+ def configure(&block)
13
+ yield config
14
+ end
15
+
16
+ def config
17
+ @_config ||= Configuration.new
16
18
  end
17
19
  end
18
20
 
@@ -59,13 +59,13 @@ module Compass
59
59
  # @return [Array]
60
60
  def glyph_names(uri)
61
61
  folder = Compass.configuration.images_path.to_s
62
- files = Dir[File.join(folder, uri)].sort
62
+ files = Dir[File.join(folder, uri)]
63
63
 
64
64
  if files.empty?
65
65
  raise Compass::SpriteException, %Q{No glyph images were found matching "#{uri}" in the images path. Your current images path is: #{folder}}
66
66
  end
67
67
 
68
- files.map { |f| File.basename(f)[0..-5] }
68
+ files.map { |f| File.basename(f)[0..-5].gsub(' ', '-') }
69
69
  end
70
70
 
71
71
  # Returns `Sass::Engine` options with defaults
@@ -157,7 +157,7 @@ module Compass
157
157
  end
158
158
 
159
159
  def mtime(uri, options)
160
- self.class.files(uri).sort.inject(Time.at(0)) do |max_time, file|
160
+ self.class.files(uri).inject(Time.at(0)) do |max_time, file|
161
161
  (t = File.mtime(file)) > max_time ? t : max_time
162
162
  end
163
163
  end
@@ -1,5 +1,5 @@
1
1
  module Compass
2
2
  module Fontcustom
3
- VERSION = "1.0.0.pre"
3
+ VERSION = "1.0.0.pre3"
4
4
  end
5
5
  end
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.2" baseProfile="tiny" id="Layer_1" x="0px" y="0px" width="100px" height="100px" viewBox="0 0 100 100" xml:space="preserve">
2
+ <path fill="#000000" d="M96.897,37.513c1.921,0,3.478-1.558,3.478-3.479c0-1.92-1.557-3.478-3.478-3.478s-3.478,1.558-3.478,3.478 c0,0.422,0.079,0.825,0.217,1.2l-10.153,8.649l-12.864-7.567c0.073-0.297,0.116-0.607,0.116-0.927c0-2.142-1.736-3.878-3.878-3.878 c-0.869,0-1.668,0.289-2.314,0.772L52.92,23.054c0.054-0.22,0.086-0.448,0.086-0.684c0-1.581-1.281-2.861-2.861-2.861 s-2.861,1.281-2.861,2.861c0,0.729,0.275,1.393,0.724,1.898l-5.835,12.488c-0.26-0.045-0.526-0.074-0.8-0.074 c-0.86,0-1.662,0.239-2.351,0.647l-15.438-6.915c0.036-0.225,0.06-0.454,0.06-0.689c0-2.38-1.929-4.309-4.309-4.309 c-2.379,0-4.309,1.929-4.309,4.309s1.929,4.309,4.309,4.309c1.352,0,2.556-0.623,3.346-1.596l14.682,6.576 c-0.384,0.674-0.607,1.452-0.607,2.284c0,0.852,0.293,1.605,0.694,2.29l-8.233,8.237c-1.136-0.811-2.506-1.294-4.003-1.294 c-2.642,0-4.915,1.501-6.082,3.684l-0.096-0.032c-0.001,0.012-0.004,0.023-0.005,0.035L7.553,49.002 c0.016-0.134,0.025-0.271,0.025-0.409c0-1.989-1.612-3.601-3.601-3.601s-3.601,1.612-3.601,3.601s1.612,3.601,3.601,3.601 c1.054,0,1.999-0.455,2.657-1.177l11.723,5.329c-0.005,0.013-0.009,0.025-0.015,0.037l0.056,0.019 c-0.054,0.348-0.108,0.694-0.108,1.055c0,1.954,0.813,3.716,2.115,4.975l-0.017,0.013c0.004,0.005,0.008,0.01,0.012,0.014 l-5.973,8.802c-0.155-0.027-0.314-0.044-0.478-0.044c-1.479,0-2.678,1.198-2.678,2.678c0,1.479,1.199,2.678,2.678,2.678 c1.479,0,2.678-1.199,2.678-2.678c0-0.501-0.14-0.969-0.38-1.37l5.364-7.904l0.71-0.877c0.881,0.407,1.859,0.641,2.894,0.641 c1.902,0,3.629-0.771,4.883-2.016l6.993,4.991c-0.199,0.514-0.334,1.06-0.334,1.641c0,2.548,2.065,4.617,4.617,4.617 c2.159,0,3.965-1.483,4.471-3.482l15.916-4.923c0.977,1.815,2.893,3.05,5.099,3.05c1.273,0,2.447-0.417,3.403-1.114l7.12,6.611 c-0.038,0.193-0.059,0.393-0.059,0.597c0,1.734,1.406,3.14,3.14,3.14s3.139-1.405,3.139-3.14c0-1.733-1.405-3.139-3.139-3.139 c-0.707,0-1.358,0.236-1.883,0.631l-6.811-6.323c0.552-0.887,0.893-1.93,0.893-3.05c0-2.815-1.661-5.16-4.661-5.677V39.104 c1-0.172,1.082-0.478,1.513-0.878l13.332,7.848l11.179,15.655c-0.092,0.23-0.146,0.481-0.146,0.745c0,1.125,0.91,2.037,2.035,2.037 s2.037-0.912,2.037-2.037s-0.913-2.037-2.038-2.037c-0.03,0-0.06,0.003-0.09,0.005L85.094,45.422l9.931-8.459 C95.565,37.31,96.207,37.513,96.897,37.513z M61.07,62.474c0,0.21,0.013,0.416,0.035,0.62l-15.275,4.724 c-0.522-1.975-2.316-3.435-4.458-3.435c-1.123,0-2.114,0.451-2.913,1.113l-7.038-5.022c0.447-0.92,0.717-1.93,0.717-3.017 c0-1.492-0.487-2.871-1.29-3.999l8.233-8.237c0.686,0.401,1.438,0.694,2.291,0.694c1.642,0,3.079-0.857,3.897-2.147l17.222,14.914 C61.609,59.699,61.07,61.022,61.07,62.474z M66,56.797c-1,0.1-1.135,0.273-1.596,0.502l-18.36-15.846 c0.002-0.052-0.023-0.102-0.023-0.154c0-1.485-0.718-2.802-1.806-3.646l5.799-12.428c0.046,0.002,0.088,0.007,0.134,0.007 c0.53,0,1.023-0.147,1.449-0.399l11.621,9.229c-0.151,0.415-0.113,0.861-0.113,1.328c0,1.757,0.895,3.238,2.895,3.715V56.797z"/>
3
+ </svg>
data/test/test_helper.rb CHANGED
@@ -1,3 +1,6 @@
1
1
  require 'test/unit'
2
- require 'compass/fontcustom'
3
2
  require 'pry'
3
+ require 'coveralls'
4
+ Coveralls.wear!
5
+
6
+ require 'compass/fontcustom'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compass-fontcustom
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre
4
+ version: 1.0.0.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - glaszig
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-28 00:00:00.000000000 Z
11
+ date: 2013-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: compass
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 1.0.0.pre
33
+ version: 1.0.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: 1.0.0.pre
40
+ version: 1.0.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -103,6 +103,7 @@ files:
103
103
  - stylesheets/_fontcustom.scss
104
104
  - test/fixtures/myfont/C.svg
105
105
  - test/fixtures/myfont/D.svg
106
+ - test/fixtures/myfont/a_R3ally-eXotic f1Le Name.svg
106
107
  - test/test_helper.rb
107
108
  - test/unit/font_importer_test.rb
108
109
  - test/unit/glyph_map_test.rb
@@ -133,6 +134,7 @@ summary: Integrates Fontcustom with Compass
133
134
  test_files:
134
135
  - test/fixtures/myfont/C.svg
135
136
  - test/fixtures/myfont/D.svg
137
+ - test/fixtures/myfont/a_R3ally-eXotic f1Le Name.svg
136
138
  - test/test_helper.rb
137
139
  - test/unit/font_importer_test.rb
138
140
  - test/unit/glyph_map_test.rb