cielo24-cli 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cielo24_command/application.rb +6 -5
- data/lib/cielo24_command/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: 67e15bd4e3ee9ded34cf087556c609099ac2cf68
|
4
|
+
data.tar.gz: fa428c785ca8decf9c4591d6bacc48dd9d2dea8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35c8ab792a90b5532286918924e4d32d770925b8c7991d2c62cbbbe1bb011b0136d3b47c7e0ed0d7112d4a322007fae624e8daeeb985230cc289c44cde779ca5
|
7
|
+
data.tar.gz: 245a6da0675b4d0f438b486e4ea8939c0a2cb84ecce773b7d2605336a4e236b79553a495675159d0df03e8c4cac1b1b5081d95e8a62834233122d30e893c1886
|
@@ -30,7 +30,7 @@ module Cielo24Command
|
|
30
30
|
caption_options_option = [:O, :required => false, :desc => "Caption/transcript options (list key:value pairs after -O)", :banner => 'key:value', :type => :hash, :default => {}]
|
31
31
|
turn_around_hours_option = [:T, :required => false, :desc => "Turn around hours", :banner => "hours"]
|
32
32
|
callback_url_option = [:C, :required => false, :desc => "Callback URL", :banner => "callback"]
|
33
|
-
caption_format_option = [:c, :required =>
|
33
|
+
caption_format_option = [:c, :required => false, :desc => "Caption format " + CaptionFormat.all, :banner => "format", :default => CaptionFormat.SRT]
|
34
34
|
elementlist_version_option = [:e, :required => false, :desc => "ElementList Version", :banner => "version"]
|
35
35
|
force_new_option = [:F, :required => false, :desc => "Force new key", :default => false]
|
36
36
|
new_password_option = [:d, :required => true, :desc => "New password", :banner => "newpass"]
|
@@ -81,7 +81,7 @@ module Cielo24Command
|
|
81
81
|
def create
|
82
82
|
|
83
83
|
if options[:m].nil? and options[:M].nil?
|
84
|
-
puts "Media URL or local file path
|
84
|
+
puts "Media URL or local file path must be supplied"
|
85
85
|
exit(1)
|
86
86
|
end
|
87
87
|
|
@@ -96,7 +96,7 @@ module Cielo24Command
|
|
96
96
|
puts "Adding media..."
|
97
97
|
if !options[:m].nil?
|
98
98
|
task_id = actions.add_media_to_job_url(token, mash.JobId, options[:m])
|
99
|
-
|
99
|
+
elsif !options[:M].nil?
|
100
100
|
file = File.new(File.absolute_path(options[:M]), "r")
|
101
101
|
task_id = actions.add_media_to_job_file(token, mash.JobId, file)
|
102
102
|
end
|
@@ -109,7 +109,7 @@ module Cielo24Command
|
|
109
109
|
jobopts = PerformTranscriptionOptions.new
|
110
110
|
jobopts.populate_from_hash(options[:J])
|
111
111
|
|
112
|
-
task_id = actions.perform_transcription(token, mash.JobId, options[:f], options[:P], options[:
|
112
|
+
task_id = actions.perform_transcription(token, mash.JobId, options[:f], options[:P], options[:C], options[:T], options[:t], jobopts)
|
113
113
|
puts "Task ID: " + task_id
|
114
114
|
print_url()
|
115
115
|
end
|
@@ -268,6 +268,7 @@ module Cielo24Command
|
|
268
268
|
|
269
269
|
desc "get_elementlist", 'Get ElementList for JobId'
|
270
270
|
option *job_id_option
|
271
|
+
option *elementlist_version_option
|
271
272
|
# always required (hidden)
|
272
273
|
option *username_option
|
273
274
|
option *password_option
|
@@ -277,7 +278,7 @@ module Cielo24Command
|
|
277
278
|
puts "Getting ELement List..."
|
278
279
|
actions = initialize_actions
|
279
280
|
token = get_token(actions)
|
280
|
-
mash = actions.get_element_list(token, options[:j])
|
281
|
+
mash = actions.get_element_list(token, options[:j], option[:e])
|
281
282
|
print_url()
|
282
283
|
puts JSON.pretty_generate(JSON.parse(mash.to_json(nil)))
|
283
284
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cielo24-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cielo24
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|