twine 1.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/twine/runner.rb +10 -4
- data/lib/twine/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: 303ce6c7d8bab093ca71941fe800a657fb809ef3
|
4
|
+
data.tar.gz: 429d906f86a7f7bd566ffc4eb8590f8157a000e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5998ed4a6f39b0d09bcfd33d404239ccf2b7f6523aeae9fd36cd3af3b0c897ab589575ae91f365e77629718eba457ffaf6915d0965b12f40a097fb06cc054472
|
7
|
+
data.tar.gz: 0659ce0901ebef294dd81b59a08a1467d1f7399e04d84b4e303900a10ffbbf9252234d059fa1ec143fcacbf93b3ef857708c3e00b7fe55166be83464ffafa0e5
|
data/lib/twine/runner.rb
CHANGED
@@ -69,8 +69,11 @@ module Twine
|
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
72
|
-
|
73
|
-
|
72
|
+
if @options[:format]
|
73
|
+
formatter = formatter_for_format(@options[:format])
|
74
|
+
else
|
75
|
+
formatter = find_formatter { |f| f.can_handle_directory?(@options[:output_path]) }
|
76
|
+
end
|
74
77
|
|
75
78
|
unless formatter
|
76
79
|
raise Twine::Error.new "Could not determine format given the contents of #{@options[:output_path]}"
|
@@ -312,8 +315,11 @@ module Twine
|
|
312
315
|
end
|
313
316
|
|
314
317
|
def prepare_read_write(path, lang)
|
315
|
-
|
316
|
-
|
318
|
+
if @options[:format]
|
319
|
+
formatter = formatter_for_format(@options[:format])
|
320
|
+
else
|
321
|
+
formatter = find_formatter { |f| f.extension == File.extname(path) }
|
322
|
+
end
|
317
323
|
|
318
324
|
unless formatter
|
319
325
|
raise Twine::Error.new "Unable to determine format of #{path}"
|
data/lib/twine/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Celis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|