pt-serif-rails 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.travis.yml +4 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +57 -0
  7. data/Rakefile +10 -0
  8. data/app/assets/fonts/bold-italic/pt-serif-bold-italic.eot +0 -0
  9. data/app/assets/fonts/bold-italic/pt-serif-bold-italic.ttf +0 -0
  10. data/app/assets/fonts/bold-italic/pt-serif-bold-italic.woff +0 -0
  11. data/app/assets/fonts/bold-italic/pt-serif-bold-italic.woff2 +0 -0
  12. data/app/assets/fonts/bold/pt-serif-bold.eot +0 -0
  13. data/app/assets/fonts/bold/pt-serif-bold.ttf +0 -0
  14. data/app/assets/fonts/bold/pt-serif-bold.woff +0 -0
  15. data/app/assets/fonts/bold/pt-serif-bold.woff2 +0 -0
  16. data/app/assets/fonts/italic/pt-serif-italic.eot +0 -0
  17. data/app/assets/fonts/italic/pt-serif-italic.ttf +0 -0
  18. data/app/assets/fonts/italic/pt-serif-italic.woff +0 -0
  19. data/app/assets/fonts/italic/pt-serif-italic.woff2 +0 -0
  20. data/app/assets/fonts/regular/pt-serif-regular.eot +0 -0
  21. data/app/assets/fonts/regular/pt-serif-regular.ttf +0 -0
  22. data/app/assets/fonts/regular/pt-serif-regular.woff +0 -0
  23. data/app/assets/fonts/regular/pt-serif-regular.woff2 +0 -0
  24. data/app/assets/stylesheets/pt-serif.scss +7 -0
  25. data/app/assets/stylesheets/sass/_bold-italic.scss +8 -0
  26. data/app/assets/stylesheets/sass/_bold.scss +8 -0
  27. data/app/assets/stylesheets/sass/_italic.scss +8 -0
  28. data/app/assets/stylesheets/sass/_mixins.scss +14 -0
  29. data/app/assets/stylesheets/sass/_regular.scss +8 -0
  30. data/app/assets/stylesheets/sass/_variables.scss.erb +3 -0
  31. data/bin/console +14 -0
  32. data/bin/setup +8 -0
  33. data/lib/pt-serif-rails.rb +2 -0
  34. data/lib/pt-serif-rails/engine.rb +6 -0
  35. data/lib/pt-serif-rails/version.rb +6 -0
  36. data/pt-serif-rails.gemspec +32 -0
  37. metadata +171 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ecd039623fde559000bc0fd59e34813e5c06c8c8
4
+ data.tar.gz: 40c1662a398ca49444dfdca54d2d90749fa1e765
5
+ SHA512:
6
+ metadata.gz: 6074f9f76ca0a5fe87038245384d0c7b082bdd9e0ab297cca1764baa28e9f496d582f3497122a1751eea83090c9d4be7e4ed371684a34a1642167fbb1e572112
7
+ data.tar.gz: 65470b66ed693430f04ad68c5fcfa166fe006d7c0023144152800d9aedf53dde7cd76d20cdef384e55d1e475ef142d9b86497f5344afc863529d0db56cb8bb44
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.3
4
+ before_install: gem install bundler -v 1.11.2
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in pt-serif-rails.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Juergen Fesslmeier
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,57 @@
1
+ # pt-serif-rails
2
+
3
+ pt-serif-rails provides the PT Serif web fonts and
4
+ stylesheets as a Rails engine for use with the asset pipeline.
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'pt-serif-rails'
12
+ ```
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install pt-serif-rails
21
+
22
+ ## Usage
23
+
24
+ For example, import the PT Serif fonts inside your `application.scss`, with Sprockets:
25
+
26
+ ```css
27
+ /*
28
+ *= require pt-serif
29
+ */
30
+ ```
31
+
32
+ ### Sass Support
33
+
34
+ If you prefer [SCSS](http://sass-lang.com/documentation/file.SASS_REFERENCE.html), add this to your
35
+ `application.css.scss` file:
36
+
37
+ ```scss
38
+ @import "pt-serif";
39
+ ```
40
+
41
+ If you use the
42
+ [Sass indented syntax](http://sass-lang.com/docs/yardoc/file.INDENTED_SYNTAX.html),
43
+ add this to your `application.css.sass` file:
44
+
45
+ ```sass
46
+ @import pt-serif
47
+ ```
48
+
49
+ ## Contributing
50
+
51
+ Bug reports and pull requests are welcome on GitHub at https://github.com/chinshr/pt-serif-rails.
52
+
53
+
54
+ ## License
55
+
56
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
57
+
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList['test/**/*_test.rb']
8
+ end
9
+
10
+ task :default => :spec
@@ -0,0 +1,7 @@
1
+ @import "sass/variables";
2
+ @import "sass/mixins";
3
+
4
+ @import "sass/regular";
5
+ @import "sass/italic";
6
+ @import "sass/bold";
7
+ @import "sass/bold-italic";
@@ -0,0 +1,8 @@
1
+ /* BEGIN Bold-Italic */
2
+ @font-face {
3
+ font-family: "PT Serif";
4
+ @include fontdef($FontPath, $FontName, $FontVersion, "bold-italic");
5
+ font-weight: 700;
6
+ font-style: italic;
7
+ }
8
+ /* END Bold-Italic */
@@ -0,0 +1,8 @@
1
+ /* BEGIN Bold */
2
+ @font-face {
3
+ font-family: "PT Serif";
4
+ @include fontdef($FontPath, $FontName, $FontVersion, "bold");
5
+ font-weight: 700;
6
+ font-style: normal;
7
+ }
8
+ /* END Bold */
@@ -0,0 +1,8 @@
1
+ /* BEGIN Italic */
2
+ @font-face {
3
+ font-family: "PT Serif";
4
+ @include fontdef($FontPath, $FontName, $FontVersion, "italic");
5
+ font-weight: 400;
6
+ font-style: italic;
7
+ }
8
+ /* END Italic */
@@ -0,0 +1,14 @@
1
+ @mixin fontdef($FontPath, $FontName, $FontVersion, $FontType:"Regular") {
2
+ src: url('#{$FontPath}/#{$FontType}/#{$FontName}-#{$FontType}.eot?v=#{$FontVersion}');
3
+ src: url('#{$FontPath}/#{$FontType}/#{$FontName}-#{$FontType}.eot?#iefix&v=#{$FontVersion}') format('embedded-opentype'),
4
+ url('#{$FontPath}/#{$FontType}/#{$FontName}-#{$FontType}.woff2?v=#{$FontVersion}') format('woff2'),
5
+ url('#{$FontPath}/#{$FontType}/#{$FontName}-#{$FontType}.woff?v=#{$FontVersion}') format('woff'),
6
+ url('#{$FontPath}/#{$FontType}/#{$FontName}-#{$FontType}.ttf?v=#{$FontVersion}') format('truetype'),
7
+ url('#{$FontPath}/#{$FontType}/#{$FontName}-#{$FontType}.svg?v=#{$FontVersion}##{$FontName}#{$FontType}') format('svg');
8
+ }
9
+
10
+ @mixin fontdef-woff($FontPath, $FontName, $FontVersion:"1.0.0", $FontType:"Regular") {
11
+ src: url('#{$FontPath}/#{$FontType}/#{$FontName}-#{$FontType}.woff2?v=#{$FontVersion}') format('woff2'),
12
+ url('#{$FontPath}/#{$FontType}/#{$FontName}-#{$FontType}.woff?v=#{$FontVersion}') format('woff'),
13
+ url('#{$FontPath}/#{$FontType}/#{$FontName}-#{$FontType}.ttf?v=#{$FontVersion}') format('truetype');
14
+ }
@@ -0,0 +1,8 @@
1
+ /* BEGIN Regular */
2
+ @font-face {
3
+ font-family: "PT Serif";
4
+ @include fontdef($FontPath, $FontName, $FontVersion, "regular");
5
+ font-weight: 400;
6
+ font-style: normal;
7
+ }
8
+ /* END Regular */
@@ -0,0 +1,3 @@
1
+ $FontPath: "/assets" !default;
2
+ $FontName: "pt-serif" !default;
3
+ $FontVersion: "<%= PtSerif::Rails::FONT_VERSION %>" !default;
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "pt/serif/rails"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,2 @@
1
+ require "pt-serif-rails/version"
2
+ require "pt-serif-rails/engine" if defined?(::Rails)
@@ -0,0 +1,6 @@
1
+ module PtSerif
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ module PtSerif
2
+ module Rails
3
+ FONT_VERSION = "1.0.0"
4
+ VERSION = "1.0.0"
5
+ end
6
+ end
@@ -0,0 +1,32 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'pt-serif-rails/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "pt-serif-rails"
8
+ spec.version = PtSerif::Rails::VERSION
9
+ spec.authors = ["Juergen Fesslmeier"]
10
+ spec.email = ["jfesslmeier@gmail.com"]
11
+
12
+ spec.summary = %q{An asset gemification of the PT Serif font.}
13
+ spec.description = %q{I like the PT Serif font. I like the asset pipeline. If you do too, you're welcome.}
14
+ spec.homepage = "https://github.com/chinshr/pt-serif-rails"
15
+ spec.licenses = ["MIT", "SIL Open Font License"]
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_dependency "railties", ">= 3.2", "< 5.1"
23
+
24
+ spec.add_development_dependency "bundler", "~> 1.11"
25
+ spec.add_development_dependency "rake", "~> 10.0"
26
+ spec.add_development_dependency "minitest", "~> 5.0"
27
+
28
+ spec.add_development_dependency "activesupport"
29
+ spec.add_development_dependency "sass-rails"
30
+
31
+ spec.required_ruby_version = '>= 1.9.3'
32
+ end
metadata ADDED
@@ -0,0 +1,171 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pt-serif-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Juergen Fesslmeier
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-03-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: railties
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '3.2'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5.1'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '3.2'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '5.1'
33
+ - !ruby/object:Gem::Dependency
34
+ name: bundler
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '1.11'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '1.11'
47
+ - !ruby/object:Gem::Dependency
48
+ name: rake
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '10.0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '10.0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: minitest
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '5.0'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '5.0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: activesupport
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: sass-rails
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ description: I like the PT Serif font. I like the asset pipeline. If you do too, you're
104
+ welcome.
105
+ email:
106
+ - jfesslmeier@gmail.com
107
+ executables: []
108
+ extensions: []
109
+ extra_rdoc_files: []
110
+ files:
111
+ - ".gitignore"
112
+ - ".travis.yml"
113
+ - Gemfile
114
+ - LICENSE.txt
115
+ - README.md
116
+ - Rakefile
117
+ - app/assets/fonts/bold-italic/pt-serif-bold-italic.eot
118
+ - app/assets/fonts/bold-italic/pt-serif-bold-italic.ttf
119
+ - app/assets/fonts/bold-italic/pt-serif-bold-italic.woff
120
+ - app/assets/fonts/bold-italic/pt-serif-bold-italic.woff2
121
+ - app/assets/fonts/bold/pt-serif-bold.eot
122
+ - app/assets/fonts/bold/pt-serif-bold.ttf
123
+ - app/assets/fonts/bold/pt-serif-bold.woff
124
+ - app/assets/fonts/bold/pt-serif-bold.woff2
125
+ - app/assets/fonts/italic/pt-serif-italic.eot
126
+ - app/assets/fonts/italic/pt-serif-italic.ttf
127
+ - app/assets/fonts/italic/pt-serif-italic.woff
128
+ - app/assets/fonts/italic/pt-serif-italic.woff2
129
+ - app/assets/fonts/regular/pt-serif-regular.eot
130
+ - app/assets/fonts/regular/pt-serif-regular.ttf
131
+ - app/assets/fonts/regular/pt-serif-regular.woff
132
+ - app/assets/fonts/regular/pt-serif-regular.woff2
133
+ - app/assets/stylesheets/pt-serif.scss
134
+ - app/assets/stylesheets/sass/_bold-italic.scss
135
+ - app/assets/stylesheets/sass/_bold.scss
136
+ - app/assets/stylesheets/sass/_italic.scss
137
+ - app/assets/stylesheets/sass/_mixins.scss
138
+ - app/assets/stylesheets/sass/_regular.scss
139
+ - app/assets/stylesheets/sass/_variables.scss.erb
140
+ - bin/console
141
+ - bin/setup
142
+ - lib/pt-serif-rails.rb
143
+ - lib/pt-serif-rails/engine.rb
144
+ - lib/pt-serif-rails/version.rb
145
+ - pt-serif-rails.gemspec
146
+ homepage: https://github.com/chinshr/pt-serif-rails
147
+ licenses:
148
+ - MIT
149
+ - SIL Open Font License
150
+ metadata: {}
151
+ post_install_message:
152
+ rdoc_options: []
153
+ require_paths:
154
+ - lib
155
+ required_ruby_version: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: 1.9.3
160
+ required_rubygems_version: !ruby/object:Gem::Requirement
161
+ requirements:
162
+ - - ">="
163
+ - !ruby/object:Gem::Version
164
+ version: '0'
165
+ requirements: []
166
+ rubyforge_project:
167
+ rubygems_version: 2.4.8
168
+ signing_key:
169
+ specification_version: 4
170
+ summary: An asset gemification of the PT Serif font.
171
+ test_files: []