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: 1d123dafc342581fd42a1112bc5653bf541f9e40170f73c5d720fd9444740f48
4
- data.tar.gz: 694805c32469960c1f0db9a3f07f7e757575f6bada05ef05be871265c390443b
3
+ metadata.gz: 3adb5e398a30cbafc8eeeea5238d1f5f099569dc3f121f16711c8cb2af84f797
4
+ data.tar.gz: c5efb210ce66c550387332f1165bd566609a8fb5932a532177b7a3a21f90f23f
5
5
  SHA512:
6
- metadata.gz: a6420525c99175b4e8ffb78120a23b84776aacdd15a1529a5872bdec7e0d77bbc43c237b1d8db49ce56d5f3530ae1176745df54395045321771b44e8f78ef026
7
- data.tar.gz: aeeaef0726df22a85508d52644b57d73d440ac247dd8177dae2a01b02e7f8bab785fa7b82820e51fa21e179d50e5f6b130cfeeb51df6a5b9116b7a9a633041ca
6
+ metadata.gz: 9743115ee61c97c57e0079ba9595ae3c2de676f41ef9fa396e189467be21eed1d18cf7ca0167edf2baf969453741885cbee8dffc43505abab01d9defb70ebe19
7
+ data.tar.gz: 3e7edbfb1b1d60a4cbc4e65db669c7de4254b6df57669a3bb44b6e54e34b6cddb0db55ea106e2483ee02a960df9af6bad0bdaf22cd0f9394771592a4db69e9ff
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
- # Cryptofont::Rails
1
+ # cryptofont-rails
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/cryptofont/rails`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- TODO: Write usage instructions here
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
- ## Development
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
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
52
+ cf_icon "eth", text: "Ethereum", right: true
53
+ # => Ethereum <i class="cf-eth"></i>
30
54
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
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)
@@ -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 "btc", text: "Bitcoin"
13
- # # => <i class="cf-btc"></i> Bitcoin
9
+ # cf_icon "ltc", text: "Litecoin"
10
+ # # => <i class="cf-litecoin"></i> Litecoin
14
11
  #
15
- # cf_icon "btc-right", text: "Bitcoin", right: true
16
- # # => Bitcoin <i class="cf-btc-right"></i>
12
+ # cf_icon "eth", text: "Ethereum", right: true
13
+ # # => Ethereum <i class="cf-eth"></i>
17
14
  #
18
- # cf_icon "btc", data: { id: 123 }
19
- # # => <i class="cf-btc" data-id="123"></i>
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)
@@ -1,5 +1,5 @@
1
1
  module Cryptofont
2
2
  module Rails
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
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.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-07-18 00:00:00.000000000 Z
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.css.scss
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