fontello_rails_converter 0.4.3 → 0.4.4
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 +4 -4
- data/.travis.yml +4 -2
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -1
- data/README.md +7 -3
- data/lib/fontello_rails_converter/cli.rb +1 -1
- data/lib/fontello_rails_converter/railtie.rb +1 -1
- data/lib/fontello_rails_converter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 982b6baa3ceb53883accd712437d1f2f84ca6562
|
4
|
+
data.tar.gz: 8b49d6a8dc12ee79798c0cf2373e8a809f1d641d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5295f63e754144187333a0f248b3c28bf7310875f7f68fba28edd4965c5d16f1a9ea257d17d225509730302cacefae42f0229c0d692a85b1f49bdcb888ca6d86
|
7
|
+
data.tar.gz: 40019fbdc489b51b1e964391c9743da7bc5607662f5c6e71140031d6e771842586381cb2deb20777f82fe2dd4f085dac4eeb46693d5da72efaaeb68e5fe7f082
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -22,7 +22,7 @@ Read the [note](https://github.com/railslove/fontello_rails_converter#gemfile-en
|
|
22
22
|
|
23
23
|
1. Download your initial `.zip` file from [http://fontello.com](http://fontello.com) and save it to `myapp/tmp/fontello.zip`
|
24
24
|
|
25
|
-
1. Run `fontello convert --no-download` inside your app's root directory
|
25
|
+
1. Run `bundle exec fontello convert --no-download` inside your app's root directory
|
26
26
|
|
27
27
|
It will copy all the assets from the `fontello.zip` file into the appropiate places in your app's `vendor/assets/` directory.
|
28
28
|
|
@@ -37,9 +37,9 @@ You can check if the icon font is working correctly by visiting [http://localhos
|
|
37
37
|
|
38
38
|
When you want to add new icons to your existing fontello font you can open it in the browser by using `fontello open` and select all the additional icons you want to add.
|
39
39
|
|
40
|
-
Next you click the 'Save session' button on the fontello website. After that you can download, copy and convert the changed font by running `fontello convert` (it has persisted the session id in `tmp/fontello_session_id` and will used that to pull down your changed font).
|
40
|
+
Next you click the 'Save session' button on the fontello website. After that you can download, copy and convert the changed font by running `bundle exec fontello convert` (it has persisted the session id in `tmp/fontello_session_id` and will used that to pull down your changed font).
|
41
41
|
|
42
|
-
Alternatively, you can download & save the `.zip` file just like in the initial setp and run `fontello convert --no-download` to use the manually downloaded file instead of pulling it down from fontello.
|
42
|
+
Alternatively, you can download & save the `.zip` file just like in the initial setp and run `bundle exec fontello convert --no-download` to use the manually downloaded file instead of pulling it down from fontello.
|
43
43
|
|
44
44
|
## More help
|
45
45
|
|
@@ -61,3 +61,7 @@ Besides the main stylesheet (`fontname.css.scss`) fontello also provides a coupl
|
|
61
61
|
#### Gemfile environment
|
62
62
|
|
63
63
|
If you don't want to load this gem in your app's production environment to save a tiny bit of memory, you can also just add it to the `:development` group in your Gemfile. The only thing you might need to change is to tell rails to add `vendor/assets/fonts` to the precompile load paths see: https://github.com/railslove/fontello_rails_converter/blob/master/lib/fontello_rails_converter/railtie.rb
|
64
|
+
|
65
|
+
#### Configuration file
|
66
|
+
|
67
|
+
By default the gem will look in `Rails.root.join("config", "fontello_rails_converter.yml")` for configuration options. You can use this to set default options for the tool.
|
@@ -122,7 +122,7 @@ module FontelloRailsConverter
|
|
122
122
|
|
123
123
|
def copy_font_files(zipfile, files)
|
124
124
|
puts "font files:"
|
125
|
-
files.select{ |file| file.to_s.end_with?(".eot", ".woff", ".ttf", ".svg") }.each do |file|
|
125
|
+
files.select{ |file| file.to_s.end_with?(".eot", ".woff", ".woff2", ".ttf", ".svg") }.each do |file|
|
126
126
|
filename = file.to_s.split("/").last
|
127
127
|
|
128
128
|
target_file = File.join @options[:font_dir], filename
|
@@ -3,7 +3,7 @@ module FontelloRailsConverter
|
|
3
3
|
|
4
4
|
initializer "fontello_rails_converter.setup" do |app|
|
5
5
|
app.config.assets.paths << Rails.root.join('vendor', 'assets', 'fonts')
|
6
|
-
app.config.assets.precompile << /\.(?:svg|eot|woff|ttf)$/
|
6
|
+
app.config.assets.precompile << /\.(?:svg|eot|woff|woff2|ttf)$/
|
7
7
|
end
|
8
8
|
|
9
9
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fontello_rails_converter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakob Hilden
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|