font-league 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (186) hide show
  1. data/.gitignore +19 -0
  2. data/Gemfile +4 -0
  3. data/Gemfile.lock +66 -0
  4. data/LICENSE +20 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +142 -0
  7. data/Rakefile +12 -0
  8. data/app/assets/fonts/blackout/blackout_midnight-webfont.eot +0 -0
  9. data/app/assets/fonts/blackout/blackout_midnight-webfont.svg +163 -0
  10. data/app/assets/fonts/blackout/blackout_midnight-webfont.ttf +0 -0
  11. data/app/assets/fonts/blackout/blackout_midnight-webfont.woff +0 -0
  12. data/app/assets/fonts/blackout/blackout_sunrise-webfont.eot +0 -0
  13. data/app/assets/fonts/blackout/blackout_sunrise-webfont.svg +183 -0
  14. data/app/assets/fonts/blackout/blackout_sunrise-webfont.ttf +0 -0
  15. data/app/assets/fonts/blackout/blackout_sunrise-webfont.woff +0 -0
  16. data/app/assets/fonts/blackout/blackout_two_am-webfont.eot +0 -0
  17. data/app/assets/fonts/blackout/blackout_two_am-webfont.svg +162 -0
  18. data/app/assets/fonts/blackout/blackout_two_am-webfont.ttf +0 -0
  19. data/app/assets/fonts/blackout/blackout_two_am-webfont.woff +0 -0
  20. data/app/assets/fonts/blackout/stylesheet.css.scss +32 -0
  21. data/app/assets/fonts/chunk/Chunkfive-webfont.eot +0 -0
  22. data/app/assets/fonts/chunk/Chunkfive-webfont.svg +121 -0
  23. data/app/assets/fonts/chunk/Chunkfive-webfont.ttf +0 -0
  24. data/app/assets/fonts/chunk/Chunkfive-webfont.woff +0 -0
  25. data/app/assets/fonts/chunk/stylesheet.css.scss +10 -0
  26. data/app/assets/fonts/fanwood/fanwood-webfont.eot +0 -0
  27. data/app/assets/fonts/fanwood/fanwood-webfont.svg +939 -0
  28. data/app/assets/fonts/fanwood/fanwood-webfont.ttf +0 -0
  29. data/app/assets/fonts/fanwood/fanwood-webfont.woff +0 -0
  30. data/app/assets/fonts/fanwood/fanwood_italic-webfont.eot +0 -0
  31. data/app/assets/fonts/fanwood/fanwood_italic-webfont.svg +682 -0
  32. data/app/assets/fonts/fanwood/fanwood_italic-webfont.ttf +0 -0
  33. data/app/assets/fonts/fanwood/fanwood_italic-webfont.woff +0 -0
  34. data/app/assets/fonts/fanwood/fanwood_text-webfont.eot +0 -0
  35. data/app/assets/fonts/fanwood/fanwood_text-webfont.svg +940 -0
  36. data/app/assets/fonts/fanwood/fanwood_text-webfont.ttf +0 -0
  37. data/app/assets/fonts/fanwood/fanwood_text-webfont.woff +0 -0
  38. data/app/assets/fonts/fanwood/fanwood_text_italic-webfont.eot +0 -0
  39. data/app/assets/fonts/fanwood/fanwood_text_italic-webfont.svg +682 -0
  40. data/app/assets/fonts/fanwood/fanwood_text_italic-webfont.ttf +0 -0
  41. data/app/assets/fonts/fanwood/fanwood_text_italic-webfont.woff +0 -0
  42. data/app/assets/fonts/fanwood/stylesheet.css.scss +43 -0
  43. data/app/assets/fonts/goudy-bookletter-1911/goudy_bookletter_1911-webfont.eot +0 -0
  44. data/app/assets/fonts/goudy-bookletter-1911/goudy_bookletter_1911-webfont.svg +145 -0
  45. data/app/assets/fonts/goudy-bookletter-1911/goudy_bookletter_1911-webfont.ttf +0 -0
  46. data/app/assets/fonts/goudy-bookletter-1911/goudy_bookletter_1911-webfont.woff +0 -0
  47. data/app/assets/fonts/goudy-bookletter-1911/stylesheet.css.scss +10 -0
  48. data/app/assets/fonts/junction/Junction-webfont.eot +0 -0
  49. data/app/assets/fonts/junction/Junction-webfont.svg +133 -0
  50. data/app/assets/fonts/junction/Junction-webfont.ttf +0 -0
  51. data/app/assets/fonts/junction/Junction-webfont.woff +0 -0
  52. data/app/assets/fonts/junction/stylesheet.css.scss +10 -0
  53. data/app/assets/fonts/knewave/knewave-outline-webfont.eot +0 -0
  54. data/app/assets/fonts/knewave/knewave-outline-webfont.svg +221 -0
  55. data/app/assets/fonts/knewave/knewave-outline-webfont.ttf +0 -0
  56. data/app/assets/fonts/knewave/knewave-outline-webfont.woff +0 -0
  57. data/app/assets/fonts/knewave/knewave-webfont.eot +0 -0
  58. data/app/assets/fonts/knewave/knewave-webfont.svg +226 -0
  59. data/app/assets/fonts/knewave/knewave-webfont.ttf +0 -0
  60. data/app/assets/fonts/knewave/knewave-webfont.woff +0 -0
  61. data/app/assets/fonts/knewave/stylesheet.css.scss +21 -0
  62. data/app/assets/fonts/league-gothic/leaguegothic-condensed-italic-webfont.eot +0 -0
  63. data/app/assets/fonts/league-gothic/leaguegothic-condensed-italic-webfont.svg +224 -0
  64. data/app/assets/fonts/league-gothic/leaguegothic-condensed-italic-webfont.ttf +0 -0
  65. data/app/assets/fonts/league-gothic/leaguegothic-condensed-italic-webfont.woff +0 -0
  66. data/app/assets/fonts/league-gothic/leaguegothic-condensed-regular-webfont.eot +0 -0
  67. data/app/assets/fonts/league-gothic/leaguegothic-condensed-regular-webfont.svg +224 -0
  68. data/app/assets/fonts/league-gothic/leaguegothic-condensed-regular-webfont.ttf +0 -0
  69. data/app/assets/fonts/league-gothic/leaguegothic-condensed-regular-webfont.woff +0 -0
  70. data/app/assets/fonts/league-gothic/leaguegothic-italic-webfont.eot +0 -0
  71. data/app/assets/fonts/league-gothic/leaguegothic-italic-webfont.svg +224 -0
  72. data/app/assets/fonts/league-gothic/leaguegothic-italic-webfont.ttf +0 -0
  73. data/app/assets/fonts/league-gothic/leaguegothic-italic-webfont.woff +0 -0
  74. data/app/assets/fonts/league-gothic/leaguegothic-regular-webfont.eot +0 -0
  75. data/app/assets/fonts/league-gothic/leaguegothic-regular-webfont.svg +223 -0
  76. data/app/assets/fonts/league-gothic/leaguegothic-regular-webfont.ttf +0 -0
  77. data/app/assets/fonts/league-gothic/leaguegothic-regular-webfont.woff +0 -0
  78. data/app/assets/fonts/league-gothic/stylesheet.css.scss +47 -0
  79. data/app/assets/fonts/league-script-number-one/LeagueScriptNumberOne-webfont.eot +0 -0
  80. data/app/assets/fonts/league-script-number-one/LeagueScriptNumberOne-webfont.svg +145 -0
  81. data/app/assets/fonts/league-script-number-one/LeagueScriptNumberOne-webfont.ttf +0 -0
  82. data/app/assets/fonts/league-script-number-one/LeagueScriptNumberOne-webfont.woff +0 -0
  83. data/app/assets/fonts/league-script-number-one/stylesheet.css.scss +10 -0
  84. data/app/assets/fonts/linden-hill/LindenHill-Italic-webfont.eot +0 -0
  85. data/app/assets/fonts/linden-hill/LindenHill-Italic-webfont.svg +148 -0
  86. data/app/assets/fonts/linden-hill/LindenHill-Italic-webfont.ttf +0 -0
  87. data/app/assets/fonts/linden-hill/LindenHill-Italic-webfont.woff +0 -0
  88. data/app/assets/fonts/linden-hill/LindenHill-webfont.eot +0 -0
  89. data/app/assets/fonts/linden-hill/LindenHill-webfont.svg +148 -0
  90. data/app/assets/fonts/linden-hill/LindenHill-webfont.ttf +0 -0
  91. data/app/assets/fonts/linden-hill/LindenHill-webfont.woff +0 -0
  92. data/app/assets/fonts/linden-hill/stylesheet.css.scss +23 -0
  93. data/app/assets/fonts/orbitron/orbitron-black-webfont.eot +0 -0
  94. data/app/assets/fonts/orbitron/orbitron-black-webfont.svg +148 -0
  95. data/app/assets/fonts/orbitron/orbitron-black-webfont.ttf +0 -0
  96. data/app/assets/fonts/orbitron/orbitron-black-webfont.woff +0 -0
  97. data/app/assets/fonts/orbitron/orbitron-bold-webfont.eot +0 -0
  98. data/app/assets/fonts/orbitron/orbitron-bold-webfont.svg +148 -0
  99. data/app/assets/fonts/orbitron/orbitron-bold-webfont.ttf +0 -0
  100. data/app/assets/fonts/orbitron/orbitron-bold-webfont.woff +0 -0
  101. data/app/assets/fonts/orbitron/orbitron-light-webfont.eot +0 -0
  102. data/app/assets/fonts/orbitron/orbitron-light-webfont.svg +148 -0
  103. data/app/assets/fonts/orbitron/orbitron-light-webfont.ttf +0 -0
  104. data/app/assets/fonts/orbitron/orbitron-light-webfont.woff +0 -0
  105. data/app/assets/fonts/orbitron/orbitron-medium-webfont.eot +0 -0
  106. data/app/assets/fonts/orbitron/orbitron-medium-webfont.svg +148 -0
  107. data/app/assets/fonts/orbitron/orbitron-medium-webfont.ttf +0 -0
  108. data/app/assets/fonts/orbitron/orbitron-medium-webfont.woff +0 -0
  109. data/app/assets/fonts/orbitron/stylesheet.css.scss +43 -0
  110. data/app/assets/fonts/ostrich-sans/ostrich-black.eot +0 -0
  111. data/app/assets/fonts/ostrich-sans/ostrich-black.svg +141 -0
  112. data/app/assets/fonts/ostrich-sans/ostrich-black.ttf +0 -0
  113. data/app/assets/fonts/ostrich-sans/ostrich-black.woff +0 -0
  114. data/app/assets/fonts/ostrich-sans/ostrich-bold.eot +0 -0
  115. data/app/assets/fonts/ostrich-sans/ostrich-bold.svg +141 -0
  116. data/app/assets/fonts/ostrich-sans/ostrich-bold.ttf +0 -0
  117. data/app/assets/fonts/ostrich-sans/ostrich-bold.woff +0 -0
  118. data/app/assets/fonts/ostrich-sans/ostrich-dashed.eot +0 -0
  119. data/app/assets/fonts/ostrich-sans/ostrich-dashed.svg +141 -0
  120. data/app/assets/fonts/ostrich-sans/ostrich-dashed.ttf +0 -0
  121. data/app/assets/fonts/ostrich-sans/ostrich-dashed.woff +0 -0
  122. data/app/assets/fonts/ostrich-sans/ostrich-light.eot +0 -0
  123. data/app/assets/fonts/ostrich-sans/ostrich-light.svg +140 -0
  124. data/app/assets/fonts/ostrich-sans/ostrich-light.ttf +0 -0
  125. data/app/assets/fonts/ostrich-sans/ostrich-light.woff +0 -0
  126. data/app/assets/fonts/ostrich-sans/ostrich-regular.eot +0 -0
  127. data/app/assets/fonts/ostrich-sans/ostrich-regular.svg +141 -0
  128. data/app/assets/fonts/ostrich-sans/ostrich-regular.ttf +0 -0
  129. data/app/assets/fonts/ostrich-sans/ostrich-regular.woff +0 -0
  130. data/app/assets/fonts/ostrich-sans/ostrich-rounded.eot +0 -0
  131. data/app/assets/fonts/ostrich-sans/ostrich-rounded.svg +141 -0
  132. data/app/assets/fonts/ostrich-sans/ostrich-rounded.ttf +0 -0
  133. data/app/assets/fonts/ostrich-sans/ostrich-rounded.woff +0 -0
  134. data/app/assets/fonts/ostrich-sans/ostrich-sans-inline-italic.eot +0 -0
  135. data/app/assets/fonts/ostrich-sans/ostrich-sans-inline-italic.svg +0 -0
  136. data/app/assets/fonts/ostrich-sans/ostrich-sans-inline-italic.ttf +0 -0
  137. data/app/assets/fonts/ostrich-sans/ostrich-sans-inline-italic.woff +0 -0
  138. data/app/assets/fonts/ostrich-sans/ostrich-sans-inline-regular.eot +0 -0
  139. data/app/assets/fonts/ostrich-sans/ostrich-sans-inline-regular.svg +0 -0
  140. data/app/assets/fonts/ostrich-sans/ostrich-sans-inline-regular.ttf +0 -0
  141. data/app/assets/fonts/ostrich-sans/ostrich-sans-inline-regular.woff +0 -0
  142. data/app/assets/fonts/ostrich-sans/stylesheet.css.scss +95 -0
  143. data/app/assets/fonts/prociono/Prociono-Regular-webfont.eot +0 -0
  144. data/app/assets/fonts/prociono/Prociono-Regular-webfont.svg +150 -0
  145. data/app/assets/fonts/prociono/Prociono-Regular-webfont.ttf +0 -0
  146. data/app/assets/fonts/prociono/Prociono-Regular-webfont.woff +0 -0
  147. data/app/assets/fonts/prociono/stylesheet.css.scss +10 -0
  148. data/app/assets/fonts/raleway/raleway_thin-webfont.eot +0 -0
  149. data/app/assets/fonts/raleway/raleway_thin-webfont.svg +151 -0
  150. data/app/assets/fonts/raleway/raleway_thin-webfont.ttf +0 -0
  151. data/app/assets/fonts/raleway/raleway_thin-webfont.woff +0 -0
  152. data/app/assets/fonts/raleway/stylesheet.css.scss +10 -0
  153. data/app/assets/fonts/sniglet/Sniglet-webfont.eot +0 -0
  154. data/app/assets/fonts/sniglet/Sniglet-webfont.svg +148 -0
  155. data/app/assets/fonts/sniglet/Sniglet-webfont.ttf +0 -0
  156. data/app/assets/fonts/sniglet/Sniglet-webfont.woff +0 -0
  157. data/app/assets/fonts/sniglet/stylesheet.css.scss +10 -0
  158. data/app/assets/fonts/sorts-mill-goudy/GoudyStM-Italic-webfont.eot +0 -0
  159. data/app/assets/fonts/sorts-mill-goudy/GoudyStM-Italic-webfont.svg +148 -0
  160. data/app/assets/fonts/sorts-mill-goudy/GoudyStM-Italic-webfont.ttf +0 -0
  161. data/app/assets/fonts/sorts-mill-goudy/GoudyStM-Italic-webfont.woff +0 -0
  162. data/app/assets/fonts/sorts-mill-goudy/GoudyStM-webfont.eot +0 -0
  163. data/app/assets/fonts/sorts-mill-goudy/GoudyStM-webfont.svg +148 -0
  164. data/app/assets/fonts/sorts-mill-goudy/GoudyStM-webfont.ttf +0 -0
  165. data/app/assets/fonts/sorts-mill-goudy/GoudyStM-webfont.woff +0 -0
  166. data/app/assets/fonts/sorts-mill-goudy/stylesheet.css.scss +20 -0
  167. data/app/assets/stylesheets/font-league.css +18 -0
  168. data/font-league.gemspec +26 -0
  169. data/lib/font-league.rb +2 -0
  170. data/lib/font-league/engine.rb +6 -0
  171. data/lib/font-league/version.rb +5 -0
  172. data/test/dummy/.gitignore +2 -0
  173. data/test/dummy/app/assets/stylesheets/sass-import.css.sass +1 -0
  174. data/test/dummy/app/assets/stylesheets/scss-import.css.scss +1 -0
  175. data/test/dummy/app/assets/stylesheets/sprockets-require.css +3 -0
  176. data/test/dummy/app/controllers/pages_controller.rb +2 -0
  177. data/test/dummy/app/views/pages/index.html.erb +1 -0
  178. data/test/dummy/config.ru +4 -0
  179. data/test/dummy/config/application.rb +18 -0
  180. data/test/dummy/config/boot.rb +10 -0
  181. data/test/dummy/config/environment.rb +5 -0
  182. data/test/dummy/config/initializers/secret_token.rb +8 -0
  183. data/test/dummy/config/routes.rb +3 -0
  184. data/test/font_league_test.rb +60 -0
  185. data/test/test_helper.rb +75 -0
  186. metadata +333 -0
@@ -0,0 +1,20 @@
1
+ @font-face {
2
+ font-family: 'Sorts Mill Goudy';
3
+ src: url(font-path('GoudyStM-webfont.eot'));
4
+ src: url(font-path('GoudyStM-webfont.eot')+'?#iefix') format('embedded-opentype'),
5
+ url(font-path('GoudyStM-webfont.woff')) format('woff'),
6
+ url(font-path('GoudyStM-webfont.ttf')) format('truetype'),
7
+ url(font-path('GoudyStM-webfont.svg')+'#sorts_mill_goudy') format('svg');
8
+ font-weight: normal;
9
+ font-style: normal;
10
+ }
11
+ @font-face {
12
+ font-family: 'Sorts Mill Goudy';
13
+ src: url(font-path('GoudyStM-Italic-webfont.eot'));
14
+ src: url(font-path('GoudyStM-Italic-webfont.eot')+'?#iefix') format('embedded-opentype'),
15
+ url(font-path('GoudyStM-Italic-webfont.woff')) format('woff'),
16
+ url(font-path('GoudyStM-Italic-webfont.ttf')) format('truetype'),
17
+ url(font-path('GoudyStM-Italic-webfont.svg')+'#sorts_mill_goudy') format('svg');
18
+ font-weight: normal;
19
+ font-style: italic;
20
+ }
@@ -0,0 +1,18 @@
1
+ /*
2
+ *= require_self
3
+ *= require_directory ../fonts/blackout
4
+ *= require_directory ../fonts/chunk
5
+ *= require_directory ../fonts/fanwood
6
+ *= require_directory ../fonts/goudy-bookletter-1911
7
+ *= require_directory ../fonts/junction
8
+ *= require_directory ../fonts/knewave
9
+ *= require_directory ../fonts/league-gothic
10
+ *= require_directory ../fonts/league-script-number-one
11
+ *= require_directory ../fonts/linden-hill
12
+ *= require_directory ../fonts/orbitron
13
+ *= require_directory ../fonts/ostrich-sans
14
+ *= require_directory ../fonts/prociono
15
+ *= require_directory ../fonts/raleway
16
+ *= require_directory ../fonts/sniglet
17
+ *= require_directory ../fonts/sorts-mill-goudy
18
+ */
@@ -0,0 +1,26 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'font-league/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "font-league"
8
+ spec.version = FontLeague::Rails::VERSION
9
+ spec.authors = ["Ty Rauber"]
10
+ spec.email = ["tyrauber@mac.com"]
11
+ spec.description = "FontLeague - 'The League of Moveable Type' Web Fonts"
12
+ spec.summary = "An unofficial collection of 'The League of Moveable Type' fonts bundled as a web font ruby gem."
13
+ spec.homepage = "https://www.theleagueofmoveabletype.com"
14
+ spec.license = "OFL"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake"
23
+ spec.add_dependency "railties", ">= 3.2", "< 5.0"
24
+ spec.add_development_dependency "activesupport"
25
+ spec.add_development_dependency "sass-rails"
26
+ end
@@ -0,0 +1,2 @@
1
+ require "font-league/version"
2
+ require "font-league/engine" if defined?(::Rails)
@@ -0,0 +1,6 @@
1
+ module FontLeague
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ module FontLeague
2
+ module Rails
3
+ VERSION = "1.0.0"
4
+ end
5
+ end
@@ -0,0 +1,2 @@
1
+ /log
2
+ /tmp
@@ -0,0 +1 @@
1
+ @import font-league
@@ -0,0 +1 @@
1
+ @import "font-league";
@@ -0,0 +1,3 @@
1
+ /*
2
+ *= require font-league
3
+ */
@@ -0,0 +1,2 @@
1
+ class PagesController < ActionController::Base
2
+ end
@@ -0,0 +1 @@
1
+ <h1>League Gothic Regulat</h1>
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Dummy::Application
@@ -0,0 +1,18 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ # require "rails/all"
4
+ require "sprockets/railtie"
5
+
6
+ Bundler.require(:default, :development)
7
+
8
+ module Dummy
9
+ class Application < Rails::Application
10
+ config.encoding = "utf-8"
11
+ config.assets.enabled = true
12
+ config.assets.version = '1.0'
13
+
14
+ # replacement for environments/*.rb
15
+ config.active_support.deprecation = :stderr
16
+ config.eager_load = false
17
+ end
18
+ end
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ if File.exist?(gemfile)
5
+ ENV['BUNDLE_GEMFILE'] = gemfile
6
+ require 'bundler'
7
+ Bundler.setup
8
+ end
9
+
10
+ $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ Dummy::Application.initialize!
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = 'deadbeatdeadbeatdeadbeatdeadbeatdeadbeatdeadbeatdeadbeatdeadbeatdeadbeatdeadbeatdeadbeatdeadbeatdeadbeatdeadbeatdeadbeatdeadbeat'
8
+ Dummy::Application.config.secret_key_base = 'deadbeat' if Dummy::Application.config.respond_to?(:secret_key_base)
@@ -0,0 +1,3 @@
1
+ Dummy::Application.routes.draw do
2
+ get "/icons", :to => "pages#icons"
3
+ end
@@ -0,0 +1,60 @@
1
+ require 'test_helper'
2
+
3
+ class FontLeagueRailsTest < ActionDispatch::IntegrationTest
4
+ teardown { clean_sprockets_cache }
5
+
6
+ test "engine is loaded" do
7
+ assert_equal ::Rails::Engine, FontLeague::Rails::Engine.superclass
8
+ end
9
+
10
+ fonts.each do | key, files |
11
+ files.each do | file |
12
+ ['.eot', '.ttf', '.woff'].each do | format |
13
+ url = "/assets/#{key}/#{file}#{format}"
14
+ test "fonts are served for #{url}" do
15
+ get url
16
+ assert_response :success
17
+ end
18
+ end
19
+ test "stylesheets contain asset pipeline references to #{key}/#{file}" do
20
+ get "/assets/font-league.css"
21
+ assert_match "#{file}.eot", response.body
22
+ assert_match "#{file}.eot?#iefix", response.body
23
+ assert_match "#{file}.woff", response.body
24
+ assert_match "#{file}.ttf", response.body
25
+ assert_match "#{file}.svg", response.body
26
+ end
27
+ end
28
+ end
29
+
30
+ test "stylesheets are served" do
31
+ get "/assets/font-league.css"
32
+ assert_font(response)
33
+ end
34
+
35
+ test "stylesheet is available in a css sprockets require" do
36
+ get "/assets/sprockets-require.css"
37
+ assert_font(response)
38
+ end
39
+
40
+ test "stylesheet is available in a sass import" do
41
+ get "/assets/sass-import.css"
42
+ assert_font(response)
43
+ end
44
+
45
+ test "stylesheet is available in a scss import" do
46
+ get "/assets/scss-import.css"
47
+ assert_font(response)
48
+ end
49
+
50
+ private
51
+
52
+ def clean_sprockets_cache
53
+ FileUtils.rm_rf File.expand_path("../dummy/tmp", __FILE__)
54
+ end
55
+
56
+ def assert_font(response)
57
+ assert_response :success
58
+ assert_match(/@font-face/, response.body)
59
+ end
60
+ end
@@ -0,0 +1,75 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ def fonts
8
+ {
9
+ "blackout" => [
10
+ "blackout_midnight-webfont",
11
+ "blackout_sunrise-webfont",
12
+ "blackout_two_am-webfont"
13
+ ],
14
+ "chunk" => [
15
+ "Chunkfive-webfont"
16
+ ],
17
+ "fanwood" => [
18
+ "fanwood-webfont",
19
+ "fanwood_italic-webfont",
20
+ "fanwood_text-webfont",
21
+ "fanwood_text_italic-webfont"
22
+ ],
23
+ "goudy-bookletter-1911" => [
24
+ "goudy_bookletter_1911-webfont"
25
+ ],
26
+ "junction" => [
27
+ "Junction-webfont"
28
+ ],
29
+ "knewave" => [
30
+ "knewave-webfont",
31
+ "knewave-outline-webfont"
32
+ ],
33
+ "league-gothic" => [
34
+ "leaguegothic-regular-webfont",
35
+ "leaguegothic-italic-webfont",
36
+ "leaguegothic-condensed-italic-webfont",
37
+ "leaguegothic-condensed-regular-webfont"
38
+ ],
39
+ "linden-hill" => [
40
+ "LindenHill-webfont",
41
+ "LindenHill-Italic-webfont"
42
+ ],
43
+ "orbitron" => [
44
+ "orbitron-black-webfont",
45
+ "orbitron-bold-webfont",
46
+ "orbitron-light-webfont",
47
+ "orbitron-medium-webfont"
48
+ ],
49
+ "ostrich-sans" => [
50
+ "ostrich-black",
51
+ "ostrich-bold",
52
+ "ostrich-dashed",
53
+ "ostrich-light",
54
+ "ostrich-regular",
55
+ "ostrich-rounded",
56
+ "ostrich-sans-inline-italic",
57
+ "ostrich-sans-inline-regular"
58
+ ],
59
+ "prociono" => [
60
+ "Prociono-Regular-webfont"
61
+ ],
62
+ "raleway" => [
63
+ "raleway_thin-webfont"
64
+ ],
65
+ "sniglet" => [
66
+ "Sniglet-webfont"
67
+ ],
68
+ "sorts-mill-goudy" => [
69
+ "GoudyStM-webfont",
70
+ "GoudyStM-Italic-webfont"
71
+ ]
72
+ }
73
+ end
74
+
75
+ Rails.backtrace_cleaner.remove_silencers!
metadata ADDED
@@ -0,0 +1,333 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: font-league
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Ty Rauber
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-02-02 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '1.3'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '1.3'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rake
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: railties
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '3.2'
54
+ - - <
55
+ - !ruby/object:Gem::Version
56
+ version: '5.0'
57
+ type: :runtime
58
+ prerelease: false
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ none: false
61
+ requirements:
62
+ - - ! '>='
63
+ - !ruby/object:Gem::Version
64
+ version: '3.2'
65
+ - - <
66
+ - !ruby/object:Gem::Version
67
+ version: '5.0'
68
+ - !ruby/object:Gem::Dependency
69
+ name: activesupport
70
+ requirement: !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ none: false
80
+ requirements:
81
+ - - ! '>='
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: sass-rails
86
+ requirement: !ruby/object:Gem::Requirement
87
+ none: false
88
+ requirements:
89
+ - - ! '>='
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ type: :development
93
+ prerelease: false
94
+ version_requirements: !ruby/object:Gem::Requirement
95
+ none: false
96
+ requirements:
97
+ - - ! '>='
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ description: FontLeague - 'The League of Moveable Type' Web Fonts
101
+ email:
102
+ - tyrauber@mac.com
103
+ executables: []
104
+ extensions: []
105
+ extra_rdoc_files: []
106
+ files:
107
+ - .gitignore
108
+ - Gemfile
109
+ - Gemfile.lock
110
+ - LICENSE
111
+ - LICENSE.txt
112
+ - README.md
113
+ - Rakefile
114
+ - app/assets/fonts/blackout/blackout_midnight-webfont.eot
115
+ - app/assets/fonts/blackout/blackout_midnight-webfont.svg
116
+ - app/assets/fonts/blackout/blackout_midnight-webfont.ttf
117
+ - app/assets/fonts/blackout/blackout_midnight-webfont.woff
118
+ - app/assets/fonts/blackout/blackout_sunrise-webfont.eot
119
+ - app/assets/fonts/blackout/blackout_sunrise-webfont.svg
120
+ - app/assets/fonts/blackout/blackout_sunrise-webfont.ttf
121
+ - app/assets/fonts/blackout/blackout_sunrise-webfont.woff
122
+ - app/assets/fonts/blackout/blackout_two_am-webfont.eot
123
+ - app/assets/fonts/blackout/blackout_two_am-webfont.svg
124
+ - app/assets/fonts/blackout/blackout_two_am-webfont.ttf
125
+ - app/assets/fonts/blackout/blackout_two_am-webfont.woff
126
+ - app/assets/fonts/blackout/stylesheet.css.scss
127
+ - app/assets/fonts/chunk/Chunkfive-webfont.eot
128
+ - app/assets/fonts/chunk/Chunkfive-webfont.svg
129
+ - app/assets/fonts/chunk/Chunkfive-webfont.ttf
130
+ - app/assets/fonts/chunk/Chunkfive-webfont.woff
131
+ - app/assets/fonts/chunk/stylesheet.css.scss
132
+ - app/assets/fonts/fanwood/fanwood-webfont.eot
133
+ - app/assets/fonts/fanwood/fanwood-webfont.svg
134
+ - app/assets/fonts/fanwood/fanwood-webfont.ttf
135
+ - app/assets/fonts/fanwood/fanwood-webfont.woff
136
+ - app/assets/fonts/fanwood/fanwood_italic-webfont.eot
137
+ - app/assets/fonts/fanwood/fanwood_italic-webfont.svg
138
+ - app/assets/fonts/fanwood/fanwood_italic-webfont.ttf
139
+ - app/assets/fonts/fanwood/fanwood_italic-webfont.woff
140
+ - app/assets/fonts/fanwood/fanwood_text-webfont.eot
141
+ - app/assets/fonts/fanwood/fanwood_text-webfont.svg
142
+ - app/assets/fonts/fanwood/fanwood_text-webfont.ttf
143
+ - app/assets/fonts/fanwood/fanwood_text-webfont.woff
144
+ - app/assets/fonts/fanwood/fanwood_text_italic-webfont.eot
145
+ - app/assets/fonts/fanwood/fanwood_text_italic-webfont.svg
146
+ - app/assets/fonts/fanwood/fanwood_text_italic-webfont.ttf
147
+ - app/assets/fonts/fanwood/fanwood_text_italic-webfont.woff
148
+ - app/assets/fonts/fanwood/stylesheet.css.scss
149
+ - app/assets/fonts/goudy-bookletter-1911/goudy_bookletter_1911-webfont.eot
150
+ - app/assets/fonts/goudy-bookletter-1911/goudy_bookletter_1911-webfont.svg
151
+ - app/assets/fonts/goudy-bookletter-1911/goudy_bookletter_1911-webfont.ttf
152
+ - app/assets/fonts/goudy-bookletter-1911/goudy_bookletter_1911-webfont.woff
153
+ - app/assets/fonts/goudy-bookletter-1911/stylesheet.css.scss
154
+ - app/assets/fonts/junction/Junction-webfont.eot
155
+ - app/assets/fonts/junction/Junction-webfont.svg
156
+ - app/assets/fonts/junction/Junction-webfont.ttf
157
+ - app/assets/fonts/junction/Junction-webfont.woff
158
+ - app/assets/fonts/junction/stylesheet.css.scss
159
+ - app/assets/fonts/knewave/knewave-outline-webfont.eot
160
+ - app/assets/fonts/knewave/knewave-outline-webfont.svg
161
+ - app/assets/fonts/knewave/knewave-outline-webfont.ttf
162
+ - app/assets/fonts/knewave/knewave-outline-webfont.woff
163
+ - app/assets/fonts/knewave/knewave-webfont.eot
164
+ - app/assets/fonts/knewave/knewave-webfont.svg
165
+ - app/assets/fonts/knewave/knewave-webfont.ttf
166
+ - app/assets/fonts/knewave/knewave-webfont.woff
167
+ - app/assets/fonts/knewave/stylesheet.css.scss
168
+ - app/assets/fonts/league-gothic/leaguegothic-condensed-italic-webfont.eot
169
+ - app/assets/fonts/league-gothic/leaguegothic-condensed-italic-webfont.svg
170
+ - app/assets/fonts/league-gothic/leaguegothic-condensed-italic-webfont.ttf
171
+ - app/assets/fonts/league-gothic/leaguegothic-condensed-italic-webfont.woff
172
+ - app/assets/fonts/league-gothic/leaguegothic-condensed-regular-webfont.eot
173
+ - app/assets/fonts/league-gothic/leaguegothic-condensed-regular-webfont.svg
174
+ - app/assets/fonts/league-gothic/leaguegothic-condensed-regular-webfont.ttf
175
+ - app/assets/fonts/league-gothic/leaguegothic-condensed-regular-webfont.woff
176
+ - app/assets/fonts/league-gothic/leaguegothic-italic-webfont.eot
177
+ - app/assets/fonts/league-gothic/leaguegothic-italic-webfont.svg
178
+ - app/assets/fonts/league-gothic/leaguegothic-italic-webfont.ttf
179
+ - app/assets/fonts/league-gothic/leaguegothic-italic-webfont.woff
180
+ - app/assets/fonts/league-gothic/leaguegothic-regular-webfont.eot
181
+ - app/assets/fonts/league-gothic/leaguegothic-regular-webfont.svg
182
+ - app/assets/fonts/league-gothic/leaguegothic-regular-webfont.ttf
183
+ - app/assets/fonts/league-gothic/leaguegothic-regular-webfont.woff
184
+ - app/assets/fonts/league-gothic/stylesheet.css.scss
185
+ - app/assets/fonts/league-script-number-one/LeagueScriptNumberOne-webfont.eot
186
+ - app/assets/fonts/league-script-number-one/LeagueScriptNumberOne-webfont.svg
187
+ - app/assets/fonts/league-script-number-one/LeagueScriptNumberOne-webfont.ttf
188
+ - app/assets/fonts/league-script-number-one/LeagueScriptNumberOne-webfont.woff
189
+ - app/assets/fonts/league-script-number-one/stylesheet.css.scss
190
+ - app/assets/fonts/linden-hill/LindenHill-Italic-webfont.eot
191
+ - app/assets/fonts/linden-hill/LindenHill-Italic-webfont.svg
192
+ - app/assets/fonts/linden-hill/LindenHill-Italic-webfont.ttf
193
+ - app/assets/fonts/linden-hill/LindenHill-Italic-webfont.woff
194
+ - app/assets/fonts/linden-hill/LindenHill-webfont.eot
195
+ - app/assets/fonts/linden-hill/LindenHill-webfont.svg
196
+ - app/assets/fonts/linden-hill/LindenHill-webfont.ttf
197
+ - app/assets/fonts/linden-hill/LindenHill-webfont.woff
198
+ - app/assets/fonts/linden-hill/stylesheet.css.scss
199
+ - app/assets/fonts/orbitron/orbitron-black-webfont.eot
200
+ - app/assets/fonts/orbitron/orbitron-black-webfont.svg
201
+ - app/assets/fonts/orbitron/orbitron-black-webfont.ttf
202
+ - app/assets/fonts/orbitron/orbitron-black-webfont.woff
203
+ - app/assets/fonts/orbitron/orbitron-bold-webfont.eot
204
+ - app/assets/fonts/orbitron/orbitron-bold-webfont.svg
205
+ - app/assets/fonts/orbitron/orbitron-bold-webfont.ttf
206
+ - app/assets/fonts/orbitron/orbitron-bold-webfont.woff
207
+ - app/assets/fonts/orbitron/orbitron-light-webfont.eot
208
+ - app/assets/fonts/orbitron/orbitron-light-webfont.svg
209
+ - app/assets/fonts/orbitron/orbitron-light-webfont.ttf
210
+ - app/assets/fonts/orbitron/orbitron-light-webfont.woff
211
+ - app/assets/fonts/orbitron/orbitron-medium-webfont.eot
212
+ - app/assets/fonts/orbitron/orbitron-medium-webfont.svg
213
+ - app/assets/fonts/orbitron/orbitron-medium-webfont.ttf
214
+ - app/assets/fonts/orbitron/orbitron-medium-webfont.woff
215
+ - app/assets/fonts/orbitron/stylesheet.css.scss
216
+ - app/assets/fonts/ostrich-sans/ostrich-black.eot
217
+ - app/assets/fonts/ostrich-sans/ostrich-black.svg
218
+ - app/assets/fonts/ostrich-sans/ostrich-black.ttf
219
+ - app/assets/fonts/ostrich-sans/ostrich-black.woff
220
+ - app/assets/fonts/ostrich-sans/ostrich-bold.eot
221
+ - app/assets/fonts/ostrich-sans/ostrich-bold.svg
222
+ - app/assets/fonts/ostrich-sans/ostrich-bold.ttf
223
+ - app/assets/fonts/ostrich-sans/ostrich-bold.woff
224
+ - app/assets/fonts/ostrich-sans/ostrich-dashed.eot
225
+ - app/assets/fonts/ostrich-sans/ostrich-dashed.svg
226
+ - app/assets/fonts/ostrich-sans/ostrich-dashed.ttf
227
+ - app/assets/fonts/ostrich-sans/ostrich-dashed.woff
228
+ - app/assets/fonts/ostrich-sans/ostrich-light.eot
229
+ - app/assets/fonts/ostrich-sans/ostrich-light.svg
230
+ - app/assets/fonts/ostrich-sans/ostrich-light.ttf
231
+ - app/assets/fonts/ostrich-sans/ostrich-light.woff
232
+ - app/assets/fonts/ostrich-sans/ostrich-regular.eot
233
+ - app/assets/fonts/ostrich-sans/ostrich-regular.svg
234
+ - app/assets/fonts/ostrich-sans/ostrich-regular.ttf
235
+ - app/assets/fonts/ostrich-sans/ostrich-regular.woff
236
+ - app/assets/fonts/ostrich-sans/ostrich-rounded.eot
237
+ - app/assets/fonts/ostrich-sans/ostrich-rounded.svg
238
+ - app/assets/fonts/ostrich-sans/ostrich-rounded.ttf
239
+ - app/assets/fonts/ostrich-sans/ostrich-rounded.woff
240
+ - app/assets/fonts/ostrich-sans/ostrich-sans-inline-italic.eot
241
+ - app/assets/fonts/ostrich-sans/ostrich-sans-inline-italic.svg
242
+ - app/assets/fonts/ostrich-sans/ostrich-sans-inline-italic.ttf
243
+ - app/assets/fonts/ostrich-sans/ostrich-sans-inline-italic.woff
244
+ - app/assets/fonts/ostrich-sans/ostrich-sans-inline-regular.eot
245
+ - app/assets/fonts/ostrich-sans/ostrich-sans-inline-regular.svg
246
+ - app/assets/fonts/ostrich-sans/ostrich-sans-inline-regular.ttf
247
+ - app/assets/fonts/ostrich-sans/ostrich-sans-inline-regular.woff
248
+ - app/assets/fonts/ostrich-sans/stylesheet.css.scss
249
+ - app/assets/fonts/prociono/Prociono-Regular-webfont.eot
250
+ - app/assets/fonts/prociono/Prociono-Regular-webfont.svg
251
+ - app/assets/fonts/prociono/Prociono-Regular-webfont.ttf
252
+ - app/assets/fonts/prociono/Prociono-Regular-webfont.woff
253
+ - app/assets/fonts/prociono/stylesheet.css.scss
254
+ - app/assets/fonts/raleway/raleway_thin-webfont.eot
255
+ - app/assets/fonts/raleway/raleway_thin-webfont.svg
256
+ - app/assets/fonts/raleway/raleway_thin-webfont.ttf
257
+ - app/assets/fonts/raleway/raleway_thin-webfont.woff
258
+ - app/assets/fonts/raleway/stylesheet.css.scss
259
+ - app/assets/fonts/sniglet/Sniglet-webfont.eot
260
+ - app/assets/fonts/sniglet/Sniglet-webfont.svg
261
+ - app/assets/fonts/sniglet/Sniglet-webfont.ttf
262
+ - app/assets/fonts/sniglet/Sniglet-webfont.woff
263
+ - app/assets/fonts/sniglet/stylesheet.css.scss
264
+ - app/assets/fonts/sorts-mill-goudy/GoudyStM-Italic-webfont.eot
265
+ - app/assets/fonts/sorts-mill-goudy/GoudyStM-Italic-webfont.svg
266
+ - app/assets/fonts/sorts-mill-goudy/GoudyStM-Italic-webfont.ttf
267
+ - app/assets/fonts/sorts-mill-goudy/GoudyStM-Italic-webfont.woff
268
+ - app/assets/fonts/sorts-mill-goudy/GoudyStM-webfont.eot
269
+ - app/assets/fonts/sorts-mill-goudy/GoudyStM-webfont.svg
270
+ - app/assets/fonts/sorts-mill-goudy/GoudyStM-webfont.ttf
271
+ - app/assets/fonts/sorts-mill-goudy/GoudyStM-webfont.woff
272
+ - app/assets/fonts/sorts-mill-goudy/stylesheet.css.scss
273
+ - app/assets/stylesheets/font-league.css
274
+ - font-league.gemspec
275
+ - lib/font-league.rb
276
+ - lib/font-league/engine.rb
277
+ - lib/font-league/version.rb
278
+ - test/dummy/.gitignore
279
+ - test/dummy/app/assets/stylesheets/sass-import.css.sass
280
+ - test/dummy/app/assets/stylesheets/scss-import.css.scss
281
+ - test/dummy/app/assets/stylesheets/sprockets-require.css
282
+ - test/dummy/app/controllers/pages_controller.rb
283
+ - test/dummy/app/views/pages/index.html.erb
284
+ - test/dummy/config.ru
285
+ - test/dummy/config/application.rb
286
+ - test/dummy/config/boot.rb
287
+ - test/dummy/config/environment.rb
288
+ - test/dummy/config/initializers/secret_token.rb
289
+ - test/dummy/config/routes.rb
290
+ - test/font_league_test.rb
291
+ - test/test_helper.rb
292
+ homepage: https://www.theleagueofmoveabletype.com
293
+ licenses:
294
+ - OFL
295
+ post_install_message:
296
+ rdoc_options: []
297
+ require_paths:
298
+ - lib
299
+ required_ruby_version: !ruby/object:Gem::Requirement
300
+ none: false
301
+ requirements:
302
+ - - ! '>='
303
+ - !ruby/object:Gem::Version
304
+ version: '0'
305
+ required_rubygems_version: !ruby/object:Gem::Requirement
306
+ none: false
307
+ requirements:
308
+ - - ! '>='
309
+ - !ruby/object:Gem::Version
310
+ version: '0'
311
+ requirements: []
312
+ rubyforge_project:
313
+ rubygems_version: 1.8.24
314
+ signing_key:
315
+ specification_version: 3
316
+ summary: An unofficial collection of 'The League of Moveable Type' fonts bundled as
317
+ a web font ruby gem.
318
+ test_files:
319
+ - test/dummy/.gitignore
320
+ - test/dummy/app/assets/stylesheets/sass-import.css.sass
321
+ - test/dummy/app/assets/stylesheets/scss-import.css.scss
322
+ - test/dummy/app/assets/stylesheets/sprockets-require.css
323
+ - test/dummy/app/controllers/pages_controller.rb
324
+ - test/dummy/app/views/pages/index.html.erb
325
+ - test/dummy/config.ru
326
+ - test/dummy/config/application.rb
327
+ - test/dummy/config/boot.rb
328
+ - test/dummy/config/environment.rb
329
+ - test/dummy/config/initializers/secret_token.rb
330
+ - test/dummy/config/routes.rb
331
+ - test/font_league_test.rb
332
+ - test/test_helper.rb
333
+ has_rdoc: