stateface-rails 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +9 -21
- data/lib/stateface/rails/version.rb +1 -1
- data/vendor/assets/{typefaces → fonts}/propublica/stateface-regular-webfont.eot +0 -0
- data/vendor/assets/{typefaces → fonts}/propublica/stateface-regular-webfont.svg +0 -0
- data/vendor/assets/{typefaces → fonts}/propublica/stateface-regular-webfont.ttf +0 -0
- data/vendor/assets/{typefaces → fonts}/propublica/stateface-regular-webfont.woff +0 -0
- data/vendor/assets/stylesheets/propublica/stateface.css +7 -7
- metadata +7 -7
data/README.md
CHANGED
@@ -1,29 +1,17 @@
|
|
1
1
|
# Stateface::Rails
|
2
2
|
|
3
|
-
|
3
|
+
In application.css
|
4
|
+
|
5
|
+
*= require propublica/stateface
|
4
6
|
|
5
|
-
|
7
|
+
In your views
|
6
8
|
|
7
|
-
|
9
|
+
<p class='propublica-stateface'><%= 'ma'.to_stateface %></p>
|
8
10
|
|
9
|
-
|
11
|
+
will map a state abbreviation (CA, HI, MA, etc) to the corresponding letter StateFace uses.
|
10
12
|
|
11
|
-
|
13
|
+
Or create a span tag with the class for an abbreviation.
|
12
14
|
|
13
|
-
|
15
|
+
<%= stateface_tag('ma') %>
|
14
16
|
|
15
|
-
|
16
|
-
|
17
|
-
$ gem install stateface-rails
|
18
|
-
|
19
|
-
## Usage
|
20
|
-
|
21
|
-
TODO: Write usage instructions here
|
22
|
-
|
23
|
-
## Contributing
|
24
|
-
|
25
|
-
1. Fork it
|
26
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
-
3. Commit your changes (`git commit -am 'Added some feature'`)
|
28
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
-
5. Create new Pull Request
|
17
|
+
or use font-face: StateFace however you'd like
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -2,16 +2,16 @@
|
|
2
2
|
font-family: 'StateFace';
|
3
3
|
font-weight: normal;
|
4
4
|
font-style: normal;
|
5
|
-
src: url('stateface-regular-webfont.eot');
|
6
|
-
src:
|
7
|
-
url('stateface-regular-webfont.eot?#iefix') format('embedded-opentype'),
|
8
|
-
url('stateface-regular-webfont.woff') format('woff'),
|
9
|
-
url('stateface-regular-webfont.ttf') format('truetype'),
|
10
|
-
url('stateface-regular-webfont.svg#StateFaceRegular') format('svg');
|
5
|
+
src: font-url('propublica/stateface-regular-webfont.eot');
|
6
|
+
src:
|
7
|
+
font-url('propublica/stateface-regular-webfont.eot?#iefix') format('embedded-opentype'),
|
8
|
+
font-url('propublica/stateface-regular-webfont.woff') format('woff'),
|
9
|
+
font-url('propublica/stateface-regular-webfont.ttf') format('truetype'),
|
10
|
+
font-url('propublica/stateface-regular-webfont.svg#StateFaceRegular') format('svg');
|
11
11
|
}
|
12
12
|
|
13
13
|
.propublica-stateface {
|
14
14
|
font-family: StateFace;
|
15
15
|
font-weight: normal;
|
16
16
|
font-style: normal;
|
17
|
-
}
|
17
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stateface-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-25 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Use StateFace in your rails app
|
15
15
|
email:
|
@@ -31,11 +31,11 @@ files:
|
|
31
31
|
- lib/stateface/rails/railtie.rb
|
32
32
|
- lib/stateface/rails/version.rb
|
33
33
|
- stateface-rails.gemspec
|
34
|
+
- vendor/assets/fonts/propublica/stateface-regular-webfont.eot
|
35
|
+
- vendor/assets/fonts/propublica/stateface-regular-webfont.svg
|
36
|
+
- vendor/assets/fonts/propublica/stateface-regular-webfont.ttf
|
37
|
+
- vendor/assets/fonts/propublica/stateface-regular-webfont.woff
|
34
38
|
- vendor/assets/stylesheets/propublica/stateface.css
|
35
|
-
- vendor/assets/typefaces/propublica/stateface-regular-webfont.eot
|
36
|
-
- vendor/assets/typefaces/propublica/stateface-regular-webfont.svg
|
37
|
-
- vendor/assets/typefaces/propublica/stateface-regular-webfont.ttf
|
38
|
-
- vendor/assets/typefaces/propublica/stateface-regular-webfont.woff
|
39
39
|
homepage: https://github.com/farski/stateface-rails
|
40
40
|
licenses: []
|
41
41
|
post_install_message:
|
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
56
56
|
version: '0'
|
57
57
|
requirements: []
|
58
58
|
rubyforge_project:
|
59
|
-
rubygems_version: 1.8.
|
59
|
+
rubygems_version: 1.8.23
|
60
60
|
signing_key:
|
61
61
|
specification_version: 3
|
62
62
|
summary: Makes using the ProPublica StateFace webfont a little easier in your rails
|