fontello_rails_converter 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 33fa29b463fe2a623e6eb0bb15ee626f897c38e1
4
- data.tar.gz: e30b6f9ef7d0e8f500fe889c6982812327d7bc3f
3
+ metadata.gz: 982b6baa3ceb53883accd712437d1f2f84ca6562
4
+ data.tar.gz: 8b49d6a8dc12ee79798c0cf2373e8a809f1d641d
5
5
  SHA512:
6
- metadata.gz: 8e0d3d805270a8b7a9978983ebd6cd636c2da198dde57eeff79fb494c6f84cd54ef6d6f8da73cefd02008d86afe04bc609cfc26d575fbbf0b9dc7c7835f92bee
7
- data.tar.gz: 5e46acd54998d8364a7fd7a0f4289349765818cf4bab4b4f2c8acd4e102c7200920a5abfe5749d37352ea7cace1839f7ceb6e11302b93153fa217795a4f6a528
6
+ metadata.gz: 5295f63e754144187333a0f248b3c28bf7310875f7f68fba28edd4965c5d16f1a9ea257d17d225509730302cacefae42f0229c0d692a85b1f49bdcb888ca6d86
7
+ data.tar.gz: 40019fbdc489b51b1e964391c9743da7bc5607662f5c6e71140031d6e771842586381cb2deb20777f82fe2dd4f085dac4eeb46693d5da72efaaeb68e5fe7f082
data/.travis.yml CHANGED
@@ -1,4 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.3
4
- bundler_args: --without development
3
+ - 2.2
4
+ bundler_args: --without development
5
+ before_install:
6
+ - gem install bundler -v '~> 1.10'
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.4.4
2
+
3
+ * added .woff2 support #41
4
+
1
5
  # 0.4.2
2
6
 
3
7
  * [enhancement] embedded stylesheet (e.g. `fontello-embedded.css`) will also be converted to Sass #32
data/Gemfile CHANGED
@@ -9,9 +9,9 @@ group :test do
9
9
  gem 'rails-dummy'
10
10
  gem 'rails', '~> 4.0'
11
11
  gem 'sqlite3' # dummy app dependency
12
+ gem 'bundler', '~> 1.10'
12
13
  end
13
14
 
14
15
  group :development do
15
- gem 'bundler', '>= 1.3'
16
16
  gem 'pry-byebug'
17
17
  end
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
@@ -1,3 +1,3 @@
1
1
  module FontelloRailsConverter
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  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.3
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-03-28 00:00:00.000000000 Z
11
+ date: 2016-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip