source-sans-pro-rails 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. data/.gitignore +17 -0
  2. data/.travis.yml +6 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +49 -0
  6. data/Rakefile +11 -0
  7. data/app/assets/fonts/sourcesanspro-black-webfont.eot +0 -0
  8. data/app/assets/fonts/sourcesanspro-black-webfont.svg +245 -0
  9. data/app/assets/fonts/sourcesanspro-black-webfont.ttf +0 -0
  10. data/app/assets/fonts/sourcesanspro-black-webfont.woff +0 -0
  11. data/app/assets/fonts/sourcesanspro-bold-webfont.eot +0 -0
  12. data/app/assets/fonts/sourcesanspro-bold-webfont.svg +245 -0
  13. data/app/assets/fonts/sourcesanspro-bold-webfont.ttf +0 -0
  14. data/app/assets/fonts/sourcesanspro-bold-webfont.woff +0 -0
  15. data/app/assets/fonts/sourcesanspro-extralight-webfont.eot +0 -0
  16. data/app/assets/fonts/sourcesanspro-extralight-webfont.svg +245 -0
  17. data/app/assets/fonts/sourcesanspro-extralight-webfont.ttf +0 -0
  18. data/app/assets/fonts/sourcesanspro-extralight-webfont.woff +0 -0
  19. data/app/assets/fonts/sourcesanspro-it-webfont.eot +0 -0
  20. data/app/assets/fonts/sourcesanspro-it-webfont.svg +245 -0
  21. data/app/assets/fonts/sourcesanspro-it-webfont.ttf +0 -0
  22. data/app/assets/fonts/sourcesanspro-it-webfont.woff +0 -0
  23. data/app/assets/fonts/sourcesanspro-light-webfont.eot +0 -0
  24. data/app/assets/fonts/sourcesanspro-light-webfont.svg +245 -0
  25. data/app/assets/fonts/sourcesanspro-light-webfont.ttf +0 -0
  26. data/app/assets/fonts/sourcesanspro-light-webfont.woff +0 -0
  27. data/app/assets/fonts/sourcesanspro-regular-webfont.eot +0 -0
  28. data/app/assets/fonts/sourcesanspro-regular-webfont.svg +245 -0
  29. data/app/assets/fonts/sourcesanspro-regular-webfont.ttf +0 -0
  30. data/app/assets/fonts/sourcesanspro-regular-webfont.woff +0 -0
  31. data/app/assets/fonts/sourcesanspro-semibold-webfont.eot +0 -0
  32. data/app/assets/fonts/sourcesanspro-semibold-webfont.svg +245 -0
  33. data/app/assets/fonts/sourcesanspro-semibold-webfont.ttf +0 -0
  34. data/app/assets/fonts/sourcesanspro-semibold-webfont.woff +0 -0
  35. data/app/assets/stylesheets/source-sans-pro/black.css.scss +2 -0
  36. data/app/assets/stylesheets/source-sans-pro/bold.css.scss +2 -0
  37. data/app/assets/stylesheets/source-sans-pro/extralight.css.scss +2 -0
  38. data/app/assets/stylesheets/source-sans-pro/font-helper.scss +12 -0
  39. data/app/assets/stylesheets/source-sans-pro/index.css.scss +1 -0
  40. data/app/assets/stylesheets/source-sans-pro/italic.css.scss +2 -0
  41. data/app/assets/stylesheets/source-sans-pro/light.css.scss +2 -0
  42. data/app/assets/stylesheets/source-sans-pro/regular.css.scss +2 -0
  43. data/app/assets/stylesheets/source-sans-pro/semibold.css.scss +2 -0
  44. data/lib/source-sans-pro-rails.rb +7 -0
  45. data/lib/source-sans-pro/rails/engine.rb +6 -0
  46. data/lib/source-sans-pro/rails/version.rb +5 -0
  47. data/source-sans-pro-rails.gemspec +26 -0
  48. data/test/dummy/app/assets/stylesheets/sprockets-require.css +3 -0
  49. data/test/dummy/config.ru +4 -0
  50. data/test/dummy/config/application.rb +18 -0
  51. data/test/dummy/config/boot.rb +10 -0
  52. data/test/dummy/config/environment.rb +5 -0
  53. data/test/dummy/config/initializers/secret_token.rb +8 -0
  54. data/test/dummy/config/routes.rb +2 -0
  55. data/test/dummy/log/test.log +952 -0
  56. data/test/source_sans_pro_test.rb +58 -0
  57. data/test/test_helper.rb +7 -0
  58. metadata +201 -0
@@ -0,0 +1,58 @@
1
+ require 'test_helper'
2
+
3
+ class SourceSansProTest < ActionDispatch::IntegrationTest
4
+ teardown { clean_sprockets_cache }
5
+
6
+ test "engine is loaded" do
7
+ assert_equal ::Rails::Engine, SourceSansPro::Rails::Engine.superclass
8
+ end
9
+
10
+ test "fonts are served" do
11
+ get "/assets/sourcesanspro-regular-webfont.eot"
12
+ assert_response :success
13
+
14
+ get "/assets/sourcesanspro-regular-webfont.ttf"
15
+ assert_response :success
16
+
17
+ get "/assets/sourcesanspro-regular-webfont.woff"
18
+ assert_response :success
19
+
20
+ get "/assets/sourcesanspro-regular-webfont.svg"
21
+ assert_response :success
22
+ end
23
+
24
+ test "stylesheets are served" do
25
+ get "/assets/source-sans-pro.css"
26
+ assert_source_sans_pro(response)
27
+
28
+ %w{black bold extralight italic light regular semibold}.each do |font_weight|
29
+ get "/assets/source-sans-pro/#{font_weight}.css"
30
+ assert_source_sans_pro(response)
31
+ end
32
+ end
33
+
34
+ test "stylesheets contain asset pipeline references to fonts" do
35
+ get "/assets/source-sans-pro.css"
36
+ assert_match "/assets/sourcesanspro-regular-webfont.eot", response.body
37
+ assert_match "/assets/sourcesanspro-regular-webfont.eot?#iefix", response.body
38
+ assert_match "/assets/sourcesanspro-regular-webfont.woff", response.body
39
+ assert_match "/assets/sourcesanspro-regular-webfont.ttf", response.body
40
+ assert_match "/assets/sourcesanspro-regular-webfont.svg#sourcesanspro-regular", response.body
41
+ end
42
+
43
+ test "stylesheet is available in a css sprockets require" do
44
+ get "/assets/sprockets-require.css"
45
+ assert_source_sans_pro(response)
46
+ end
47
+
48
+ private
49
+
50
+ def clean_sprockets_cache
51
+ FileUtils.rm_rf File.expand_path("../dummy/tmp", __FILE__)
52
+ end
53
+
54
+ def assert_source_sans_pro(response)
55
+ assert_response :success
56
+ assert_match(/font-family:\s*'SourceSansPro';/, response.body)
57
+ end
58
+ end
@@ -0,0 +1,7 @@
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
+ Rails.backtrace_cleaner.remove_silencers!
metadata ADDED
@@ -0,0 +1,201 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: source-sans-pro-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Jeff Fraser
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-06-07 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: railties
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '3.2'
22
+ - - <
23
+ - !ruby/object:Gem::Version
24
+ version: '5.0'
25
+ type: :runtime
26
+ prerelease: false
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '3.2'
33
+ - - <
34
+ - !ruby/object:Gem::Version
35
+ version: '5.0'
36
+ - !ruby/object:Gem::Dependency
37
+ name: bundler
38
+ requirement: !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: '1.3'
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: !ruby/object:Gem::Requirement
47
+ none: false
48
+ requirements:
49
+ - - ~>
50
+ - !ruby/object:Gem::Version
51
+ version: '1.3'
52
+ - !ruby/object:Gem::Dependency
53
+ name: rake
54
+ requirement: !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ! '>='
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ type: :development
61
+ prerelease: false
62
+ version_requirements: !ruby/object:Gem::Requirement
63
+ none: false
64
+ requirements:
65
+ - - ! '>='
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ - !ruby/object:Gem::Dependency
69
+ name: sass-rails
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: tzinfo
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: Add Adobe's Source Sans Pro Font to your Rails app through the asset
101
+ pipeline
102
+ email:
103
+ - jfraser@breuer.com
104
+ executables: []
105
+ extensions: []
106
+ extra_rdoc_files: []
107
+ files:
108
+ - .gitignore
109
+ - .travis.yml
110
+ - Gemfile
111
+ - LICENSE.txt
112
+ - README.md
113
+ - Rakefile
114
+ - app/assets/fonts/sourcesanspro-black-webfont.eot
115
+ - app/assets/fonts/sourcesanspro-black-webfont.svg
116
+ - app/assets/fonts/sourcesanspro-black-webfont.ttf
117
+ - app/assets/fonts/sourcesanspro-black-webfont.woff
118
+ - app/assets/fonts/sourcesanspro-bold-webfont.eot
119
+ - app/assets/fonts/sourcesanspro-bold-webfont.svg
120
+ - app/assets/fonts/sourcesanspro-bold-webfont.ttf
121
+ - app/assets/fonts/sourcesanspro-bold-webfont.woff
122
+ - app/assets/fonts/sourcesanspro-extralight-webfont.eot
123
+ - app/assets/fonts/sourcesanspro-extralight-webfont.svg
124
+ - app/assets/fonts/sourcesanspro-extralight-webfont.ttf
125
+ - app/assets/fonts/sourcesanspro-extralight-webfont.woff
126
+ - app/assets/fonts/sourcesanspro-it-webfont.eot
127
+ - app/assets/fonts/sourcesanspro-it-webfont.svg
128
+ - app/assets/fonts/sourcesanspro-it-webfont.ttf
129
+ - app/assets/fonts/sourcesanspro-it-webfont.woff
130
+ - app/assets/fonts/sourcesanspro-light-webfont.eot
131
+ - app/assets/fonts/sourcesanspro-light-webfont.svg
132
+ - app/assets/fonts/sourcesanspro-light-webfont.ttf
133
+ - app/assets/fonts/sourcesanspro-light-webfont.woff
134
+ - app/assets/fonts/sourcesanspro-regular-webfont.eot
135
+ - app/assets/fonts/sourcesanspro-regular-webfont.svg
136
+ - app/assets/fonts/sourcesanspro-regular-webfont.ttf
137
+ - app/assets/fonts/sourcesanspro-regular-webfont.woff
138
+ - app/assets/fonts/sourcesanspro-semibold-webfont.eot
139
+ - app/assets/fonts/sourcesanspro-semibold-webfont.svg
140
+ - app/assets/fonts/sourcesanspro-semibold-webfont.ttf
141
+ - app/assets/fonts/sourcesanspro-semibold-webfont.woff
142
+ - app/assets/stylesheets/source-sans-pro/black.css.scss
143
+ - app/assets/stylesheets/source-sans-pro/bold.css.scss
144
+ - app/assets/stylesheets/source-sans-pro/extralight.css.scss
145
+ - app/assets/stylesheets/source-sans-pro/font-helper.scss
146
+ - app/assets/stylesheets/source-sans-pro/index.css.scss
147
+ - app/assets/stylesheets/source-sans-pro/italic.css.scss
148
+ - app/assets/stylesheets/source-sans-pro/light.css.scss
149
+ - app/assets/stylesheets/source-sans-pro/regular.css.scss
150
+ - app/assets/stylesheets/source-sans-pro/semibold.css.scss
151
+ - lib/source-sans-pro-rails.rb
152
+ - lib/source-sans-pro/rails/engine.rb
153
+ - lib/source-sans-pro/rails/version.rb
154
+ - source-sans-pro-rails.gemspec
155
+ - test/dummy/app/assets/stylesheets/sprockets-require.css
156
+ - test/dummy/config.ru
157
+ - test/dummy/config/application.rb
158
+ - test/dummy/config/boot.rb
159
+ - test/dummy/config/environment.rb
160
+ - test/dummy/config/initializers/secret_token.rb
161
+ - test/dummy/config/routes.rb
162
+ - test/dummy/log/test.log
163
+ - test/source_sans_pro_test.rb
164
+ - test/test_helper.rb
165
+ homepage: https://github.com/veracross/source-sans-pro-rails
166
+ licenses:
167
+ - MIT
168
+ - SIL Open Font License
169
+ post_install_message:
170
+ rdoc_options: []
171
+ require_paths:
172
+ - lib
173
+ required_ruby_version: !ruby/object:Gem::Requirement
174
+ none: false
175
+ requirements:
176
+ - - ! '>='
177
+ - !ruby/object:Gem::Version
178
+ version: '0'
179
+ required_rubygems_version: !ruby/object:Gem::Requirement
180
+ none: false
181
+ requirements:
182
+ - - ! '>='
183
+ - !ruby/object:Gem::Version
184
+ version: '0'
185
+ requirements: []
186
+ rubyforge_project:
187
+ rubygems_version: 1.8.23
188
+ signing_key:
189
+ specification_version: 3
190
+ summary: The Adobe Source Sans Pro font in the asset pipeline
191
+ test_files:
192
+ - test/dummy/app/assets/stylesheets/sprockets-require.css
193
+ - test/dummy/config.ru
194
+ - test/dummy/config/application.rb
195
+ - test/dummy/config/boot.rb
196
+ - test/dummy/config/environment.rb
197
+ - test/dummy/config/initializers/secret_token.rb
198
+ - test/dummy/config/routes.rb
199
+ - test/dummy/log/test.log
200
+ - test/source_sans_pro_test.rb
201
+ - test/test_helper.rb