fontello_rails_converter 0.3.1 → 0.3.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 +8 -8
- data/CHANGELOG.md +10 -8
- data/README.md +1 -1
- data/lib/fontello_rails_converter/cli.rb +10 -2
- data/lib/fontello_rails_converter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
M2JkMWY1NzUzMjRkOGY1MGFmMDI0ZDc5MDY2Y2M2NDhkNTdhYjhiOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzJmZWNhNzU5NjcxNzAyY2I1ZWY4YzBjYWJhNGRmMDJkOTAzOTFmMQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWNlMGVkMGVlOTEyNjgzMmY0Y2I3NDk5Njk4MzQ4ODI1NGJlYjgyMTFiOGZj
|
10
|
+
YjI0ZTA2ZjAwZGE1Mjg4MWE5MmU2OWQyNmE4NmNjYjg1YTNmY2RmYThhZjJh
|
11
|
+
Yjk3NWY3MGNlNmIzZWVhMzQ2NzNkZTQxMDAyMDM2OTQ0N2Q4Zjk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NjMzNmI1MWNjNWNiZTE3ODBiYTNhM2E4ZDBmYTdiMzc0OWEyYjdhMTY4Nzlm
|
14
|
+
NGJmMzdhOTYzMmMxYTE3ZGY0YzRkOWY0ZjBkOWEwNTQ3YWNjYmYyNGEwYzIy
|
15
|
+
MmQ0MzljOTE2NWI3YTY0NmQwOGExZjE1NThlMmMyNWViY2YzY2M=
|
data/CHANGELOG.md
CHANGED
@@ -1,37 +1,39 @@
|
|
1
|
-
#
|
1
|
+
# 0.3.2
|
2
2
|
|
3
|
-
|
3
|
+
* [bugfix] the `config.json` wasn't being copied anymore
|
4
|
+
|
5
|
+
# 0.3.1
|
4
6
|
|
5
7
|
* allow configuration (and automatic creation) of icon guide directory (/rails_root/public/fontello-demo.html), fixes #19
|
6
8
|
* more verbose/helpful CLI output
|
7
9
|
* add `-v`/`--version` switch to CLI for printing out the current version
|
8
10
|
|
9
|
-
|
11
|
+
# 0.3.0
|
10
12
|
|
11
13
|
* allow setting global options using a .yml file (e.g. /rails_root/config/fontello_rails_converter.yml)
|
12
14
|
* allow configuration of the stylesheet extension for the SCSS files (`.css.scss` or `.scss`)
|
13
15
|
* fail gracefully when there is no config file yet (90ec5942383cc5558a097aa78c4adcc809ab6a0e)
|
14
16
|
* fixes for 2 encoding issues #11 and #12 by @hqm42
|
15
17
|
|
16
|
-
|
18
|
+
# 0.2.0
|
17
19
|
|
18
20
|
* removed deprecated rake task
|
19
21
|
* updated railtie integration, so that rails will find and precompile the asset in `vendor/assets/fonts`
|
20
22
|
|
21
|
-
|
23
|
+
# 0.1.1
|
22
24
|
|
23
25
|
* only an update to the gemspec description
|
24
26
|
|
25
|
-
|
27
|
+
# 0.1.0
|
26
28
|
|
27
29
|
* convert the gem to a CLI tool with `open` and `convert` commands
|
28
30
|
* deprecated rake task
|
29
31
|
* make use of the fontello API
|
30
32
|
|
31
|
-
|
33
|
+
# 0.0.2
|
32
34
|
|
33
35
|
* updated rubyzip dependency
|
34
36
|
|
35
|
-
|
37
|
+
# 0.0.1
|
36
38
|
|
37
39
|
* initial release
|
data/README.md
CHANGED
@@ -20,7 +20,7 @@ Add the gem to your Gemfile `gem 'fontello_rails_converter'` and run `bundle ins
|
|
20
20
|
|
21
21
|
1. Download your initial `.zip` file from [http://fontello.com](http://fontello.com) and save it to `myapp/tmp/fontello.zip`
|
22
22
|
|
23
|
-
1. Run `fontello convert` inside your app's root directory
|
23
|
+
1. Run `fontello convert --no-download` inside your app's root directory
|
24
24
|
|
25
25
|
It will copy all the assets from the `fontello.zip` file into the appropiate places in your app's `vendor/assets/` directory.
|
26
26
|
|
@@ -22,7 +22,7 @@ module FontelloRailsConverter
|
|
22
22
|
def download
|
23
23
|
puts "---- download ----"
|
24
24
|
|
25
|
-
if @options[:use_config] == true
|
25
|
+
if config_file_exists? && @options[:use_config] == true
|
26
26
|
puts "Using '#{options[:config_file]}' to create new fontello session"
|
27
27
|
@fontello_api.new_session_from_config
|
28
28
|
end
|
@@ -49,6 +49,7 @@ module FontelloRailsConverter
|
|
49
49
|
|
50
50
|
copy_and_convert_stylesheets(zipfile, grouped_files['css'])
|
51
51
|
copy_font_files(zipfile, grouped_files['font'])
|
52
|
+
copy_config_json(zipfile, grouped_files['config.json'].first)
|
52
53
|
copy_and_convert_icon_guide(zipfile, grouped_files['demo.html'].first)
|
53
54
|
end
|
54
55
|
end
|
@@ -90,7 +91,7 @@ module FontelloRailsConverter
|
|
90
91
|
|
91
92
|
def copy_font_files(zipfile, files)
|
92
93
|
puts "font files:"
|
93
|
-
files.select{ |file| file.to_s.end_with?(".eot", ".woff", ".ttf", ".svg"
|
94
|
+
files.select{ |file| file.to_s.end_with?(".eot", ".woff", ".ttf", ".svg") }.each do |file|
|
94
95
|
filename = file.to_s.split("/").last
|
95
96
|
|
96
97
|
target_file = File.join @options[:font_dir], filename
|
@@ -99,6 +100,13 @@ module FontelloRailsConverter
|
|
99
100
|
end
|
100
101
|
end
|
101
102
|
|
103
|
+
def copy_config_json(zipfile, config_file)
|
104
|
+
puts "config.json:"
|
105
|
+
target_file = File.join @options[:font_dir], config_file.to_s.split("/").last
|
106
|
+
zipfile.extract(config_file, target_file) { true }
|
107
|
+
puts green("Copied #{target_file}")
|
108
|
+
end
|
109
|
+
|
102
110
|
def copy_and_convert_stylesheets(zipfile, files)
|
103
111
|
puts "stylesheets:"
|
104
112
|
files.select{ |file| file.to_s.end_with?('.css') }.each do |file|
|
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.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakob Hilden
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|