cryptofont-rails 0.1.1 → 0.1.2
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3adb5e398a30cbafc8eeeea5238d1f5f099569dc3f121f16711c8cb2af84f797
|
4
|
+
data.tar.gz: c5efb210ce66c550387332f1165bd566609a8fb5932a532177b7a3a21f90f23f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9743115ee61c97c57e0079ba9595ae3c2de676f41ef9fa396e189467be21eed1d18cf7ca0167edf2baf969453741885cbee8dffc43505abab01d9defb70ebe19
|
7
|
+
data.tar.gz: 3e7edbfb1b1d60a4cbc4e65db669c7de4254b6df57669a3bb44b6e54e34b6cddb0db55ea106e2483ee02a960df9af6bad0bdaf22cd0f9394771592a4db69e9ff
|
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
|
-
#
|
1
|
+
# cryptofont-rails
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
Cryptofont-rails provides the [Cryptofont](https://cryptofont.com/) web fonts and styles as Rails engine for use with the asset pipeline.
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
@@ -22,13 +20,41 @@ Or install it yourself as:
|
|
22
20
|
|
23
21
|
## Usage
|
24
22
|
|
25
|
-
|
23
|
+
In your `application.css`, include the css file:
|
24
|
+
```
|
25
|
+
/*
|
26
|
+
* require cryptofont
|
27
|
+
*/
|
28
|
+
```
|
29
|
+
Then restart your webserver if it was peviously running.
|
30
|
+
Congratulation! You now have cryptofont icon support.
|
31
|
+
|
32
|
+
### SASS Support
|
33
|
+
It you prefer SCSS, add this to your `application.css.scss` file:
|
34
|
+
```
|
35
|
+
@import "cryptofont";
|
36
|
+
```
|
37
|
+
If you use the SASS indented syntax, add this to your `application.css.sass` file:
|
38
|
+
```
|
39
|
+
@import cryptofont
|
40
|
+
```
|
41
|
+
|
42
|
+
## Helpers
|
43
|
+
There are also some helpers `cf_icon` that make your views better read and cleaner.
|
26
44
|
|
27
|
-
|
45
|
+
```ruby
|
46
|
+
cf_icon "btc"
|
47
|
+
# => <i class="cf-btc"></i>
|
48
|
+
|
49
|
+
cf_icon "ltc", text: "Litecoin"
|
50
|
+
# => <i class="cf-litecoin"></i> Litecoin
|
28
51
|
|
29
|
-
|
52
|
+
cf_icon "eth", text: "Ethereum", right: true
|
53
|
+
# => Ethereum <i class="cf-eth"></i>
|
30
54
|
|
31
|
-
|
55
|
+
cf_icon "dash 4x", text: "Dash"
|
56
|
+
# => <i class="cf-dash cf-4x"></i>
|
57
|
+
```
|
32
58
|
|
33
59
|
## Contributing
|
34
60
|
|
@@ -36,7 +62,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/frizbe
|
|
36
62
|
|
37
63
|
## License
|
38
64
|
|
39
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
65
|
+
* The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
40
66
|
* The font is licensed under the SIL OFL 1.1 http://scripts.sil.org/OFL
|
41
67
|
* The CSS files are licensed under the MIT License http://opensource.org/licenses/mit-license.htm
|
42
68
|
* Attribution is not required, but much appreciated CryptoFont by @AMPoellmann (alexanderpoellmann.com)
|
File without changes
|
@@ -1,25 +1,20 @@
|
|
1
1
|
module Cryptofont
|
2
2
|
module Rails
|
3
3
|
module IconHelper
|
4
|
-
# Creates an icon tag given an icon name and possible icon
|
5
|
-
# modifiers.
|
6
|
-
#
|
7
4
|
# Examples
|
8
5
|
#
|
9
6
|
# cf_icon "btc"
|
10
7
|
# # => <i class="cf-btc"></i>
|
11
8
|
#
|
12
|
-
# cf_icon "
|
13
|
-
# # => <i class="cf-
|
9
|
+
# cf_icon "ltc", text: "Litecoin"
|
10
|
+
# # => <i class="cf-litecoin"></i> Litecoin
|
14
11
|
#
|
15
|
-
# cf_icon "
|
16
|
-
# # =>
|
12
|
+
# cf_icon "eth", text: "Ethereum", right: true
|
13
|
+
# # => Ethereum <i class="cf-eth"></i>
|
17
14
|
#
|
18
|
-
# cf_icon "
|
19
|
-
# # => <i class="cf-
|
15
|
+
# cf_icon "dash 4x", text: "Dash"
|
16
|
+
# # => <i class="cf-dash cf-4x"></i>
|
20
17
|
#
|
21
|
-
# content_tag(:li, cf_icon("ltc li", text: "Bulleted list item"))
|
22
|
-
# # => <li><i class="cf-ltc fa-li"></i> Bulleted list item</li>
|
23
18
|
def cf_icon(names = 'flag', options = {})
|
24
19
|
classes = []
|
25
20
|
classes.concat Private.icon_names(names)
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cryptofont-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andre Antonov Frizbee
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -71,11 +71,12 @@ files:
|
|
71
71
|
- app/assets/fonts/cryptofont-webfont.svg
|
72
72
|
- app/assets/fonts/cryptofont-webfont.ttf
|
73
73
|
- app/assets/fonts/cryptofont-webfont.woff
|
74
|
-
- app/assets/stylesheets/cryptofont.
|
74
|
+
- app/assets/stylesheets/cryptofont.scss
|
75
75
|
- app/helpers/cryptofont/rails/icon_helper.rb
|
76
76
|
- bin/console
|
77
77
|
- bin/setup
|
78
78
|
- cryptofont-rails-0.1.0.gem
|
79
|
+
- cryptofont-rails-0.1.1.gem
|
79
80
|
- cryptofont-rails.gemspec
|
80
81
|
- lib/cryptofont-rails.rb
|
81
82
|
- lib/cryptofont-rails/engine.rb
|