fontello_rails_converter 0.4.2 → 0.4.3
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 +1 -1
- data/bin/fontello +1 -1
- data/lib/fontello_rails_converter/cli.rb +3 -4
- data/lib/fontello_rails_converter/version.rb +1 -1
- data/spec/cli_spec.rb +15 -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: 33fa29b463fe2a623e6eb0bb15ee626f897c38e1
|
4
|
+
data.tar.gz: e30b6f9ef7d0e8f500fe889c6982812327d7bc3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e0d3d805270a8b7a9978983ebd6cd636c2da198dde57eeff79fb494c6f84cd54ef6d6f8da73cefd02008d86afe04bc609cfc26d575fbbf0b9dc7c7835f92bee
|
7
|
+
data.tar.gz: 5e46acd54998d8364a7fd7a0f4289349765818cf4bab4b4f2c8acd4e102c7200920a5abfe5749d37352ea7cace1839f7ceb6e11302b93153fa217795a4f6a528
|
data/.travis.yml
CHANGED
data/bin/fontello
CHANGED
@@ -111,7 +111,7 @@ OptionParser.new do |opts|
|
|
111
111
|
end
|
112
112
|
|
113
113
|
opts.on("-p", "--session-id-file [PATH]", "File to persist fontello session ID (default: /rails_root/tmp/fontello_session_id)") do |opt|
|
114
|
-
options[:
|
114
|
+
options[:fontello_session_id_file] = opt
|
115
115
|
end
|
116
116
|
|
117
117
|
opts.on_tail("-v", "--version", "Show version") do
|
@@ -132,10 +132,9 @@ module FontelloRailsConverter
|
|
132
132
|
end
|
133
133
|
|
134
134
|
def copy_config_json(zipfile, config_file)
|
135
|
-
puts "config
|
136
|
-
|
137
|
-
|
138
|
-
puts green("Copied #{target_file}")
|
135
|
+
puts "config file:"
|
136
|
+
zipfile.extract(config_file, @options[:config_file]) { true }
|
137
|
+
puts green("Copied #{@options[:config_file]}")
|
139
138
|
end
|
140
139
|
|
141
140
|
def copy_stylesheets(zipfile, files)
|
data/spec/cli_spec.rb
CHANGED
@@ -62,4 +62,18 @@ describe FontelloRailsConverter::Cli do
|
|
62
62
|
end
|
63
63
|
end
|
64
64
|
end
|
65
|
-
|
65
|
+
|
66
|
+
describe '#copy_config_json' do
|
67
|
+
let(:zipfile) { instance_double('FontelloZipfile') }
|
68
|
+
let(:config_file_path) { 'test/config.json' }
|
69
|
+
|
70
|
+
subject {
|
71
|
+
cli.send(:copy_config_json, zipfile, config_file_path)
|
72
|
+
}
|
73
|
+
|
74
|
+
specify do
|
75
|
+
expect(zipfile).to receive(:extract).with(config_file_path, 'spec/fixtures/fontello/config.json')
|
76
|
+
subject
|
77
|
+
end
|
78
|
+
end
|
79
|
+
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakob Hilden
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|