fontello_rails_converter 0.4.2 → 0.4.3

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: 114c61b83fa8a6cad5dee22e9b8f55de4dfe5740
4
- data.tar.gz: d2d1a0b89215c6b60b73ab99cfbe0b7a3e287093
3
+ metadata.gz: 33fa29b463fe2a623e6eb0bb15ee626f897c38e1
4
+ data.tar.gz: e30b6f9ef7d0e8f500fe889c6982812327d7bc3f
5
5
  SHA512:
6
- metadata.gz: 42fa051ce6ae89210e87b1619e91cb28edcc13dc93aa972736b2fcf06e6b19b2b4eca7df4180c831f4f6fb1a4e68e7874207d7bd3f285180da4fba4801867576
7
- data.tar.gz: be31e638d8038848b22807084c8475f1ea1bcf6546016363b7b45c5033b7fcb4e8b56485ea09102fa8d85048e7ca3e594b05c528cf1593dd659ff0b3fa615edb
6
+ metadata.gz: 8e0d3d805270a8b7a9978983ebd6cd636c2da198dde57eeff79fb494c6f84cd54ef6d6f8da73cefd02008d86afe04bc609cfc26d575fbbf0b9dc7c7835f92bee
7
+ data.tar.gz: 5e46acd54998d8364a7fd7a0f4289349765818cf4bab4b4f2c8acd4e102c7200920a5abfe5749d37352ea7cace1839f7ceb6e11302b93153fa217795a4f6a528
data/.travis.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2
3
+ - 2.3
4
4
  bundler_args: --without development
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[:font_dir] = opt
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.json:"
136
- target_file = File.join @options[:font_dir], config_file.to_s.split("/").last
137
- zipfile.extract(config_file, target_file) { true }
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)
@@ -1,3 +1,3 @@
1
1
  module FontelloRailsConverter
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
data/spec/cli_spec.rb CHANGED
@@ -62,4 +62,18 @@ describe FontelloRailsConverter::Cli do
62
62
  end
63
63
  end
64
64
  end
65
- end
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.2
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: 2015-09-02 00:00:00.000000000 Z
11
+ date: 2016-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip