cielo24 0.0.9 → 0.0.10
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/lib/cielo24/actions.rb +1 -3
- data/lib/cielo24/options.rb +104 -56
- data/lib/cielo24/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c72ae19661e21c9b43737db4c19d39c338ebc975
|
4
|
+
data.tar.gz: f34337feb266089940211d8d5e1292f3d12b7d3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c44178e60190c77f7bc47191e7d51158d1e69ecd3200a09ed06d8e3a4568739f2207b4f9da0b87cf7848f59254622513fc33cd2474e5750a5c285e00f8bb3729
|
7
|
+
data.tar.gz: d16d5ea50613fb0af3d5706c77d132d598079e5f48316a65703609bfb68b787e121e96b3a5e2f201c50a9ed85b812e6957eb1428abc3cad4bab212999f6a26cf
|
data/lib/cielo24/actions.rb
CHANGED
@@ -40,14 +40,12 @@ module Cielo24
|
|
40
40
|
|
41
41
|
def login(username, password=nil, api_securekey=nil, use_headers=false)
|
42
42
|
assert_argument(username, "Username")
|
43
|
-
# Password or API Secure Key must be supplied but not both
|
44
|
-
raise ArgumentError.new("Only password or API secure must be supplied for login.") if (!password.nil? and !api_securekey.nil?)
|
45
43
|
raise ArgumentError.new("Password or API Secure Key must be supplied for login.") if (password.nil? and api_securekey.nil?)
|
46
44
|
|
47
45
|
query_hash = init_version_dict
|
48
46
|
headers = Hash.new
|
49
47
|
|
50
|
-
if use_headers
|
48
|
+
if not use_headers
|
51
49
|
query_hash[:username] = username
|
52
50
|
query_hash[:password] = password if (!password.nil?)
|
53
51
|
query_hash[:securekey] = api_securekey if (!api_securekey.nil?)
|
data/lib/cielo24/options.rb
CHANGED
@@ -49,15 +49,22 @@ module Cielo24
|
|
49
49
|
attr_accessor :replace_slang
|
50
50
|
attr_accessor :sound_boundaries
|
51
51
|
|
52
|
-
def initialize
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
@
|
52
|
+
def initialize(characters_per_caption_line: nil,
|
53
|
+
elementlist_version: nil,
|
54
|
+
emit_speaker_change_token_as: nil,
|
55
|
+
mask_profanity: nil,
|
56
|
+
remove_sounds_list: nil,
|
57
|
+
remove_sound_references: nil,
|
58
|
+
replace_slang: nil,
|
59
|
+
sound_boundaries: nil)
|
60
|
+
@characters_per_caption_line = characters_per_caption_line
|
61
|
+
@elementlist_version = elementlist_version
|
62
|
+
@emit_speaker_change_token_as = emit_speaker_change_token_as
|
63
|
+
@mask_profanity = mask_profanity
|
64
|
+
@remove_sounds_list = remove_sounds_list
|
65
|
+
@remove_sound_references = remove_sound_references
|
66
|
+
@replace_slang = replace_slang
|
67
|
+
@sound_boundaries = sound_boundaries
|
61
68
|
end
|
62
69
|
end
|
63
70
|
|
@@ -71,14 +78,20 @@ module Cielo24
|
|
71
78
|
attr_accessor :time_code_interval
|
72
79
|
attr_accessor :timecode_offset
|
73
80
|
|
74
|
-
def initialize
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
@
|
81
|
+
def initialize(create_paragraphs: nil,
|
82
|
+
newlines_after_paragraph: nil,
|
83
|
+
newlines_after_sentence: nil,
|
84
|
+
timecode_every_paragraph: nil,
|
85
|
+
timecode_format: nil,
|
86
|
+
time_code_interval: nil,
|
87
|
+
timecode_offset: nil)
|
88
|
+
@create_paragraphs = create_paragraphs
|
89
|
+
@newlines_after_paragraph = newlines_after_paragraph
|
90
|
+
@newlines_after_sentence = newlines_after_sentence
|
91
|
+
@timecode_every_paragraph = timecode_every_paragraph
|
92
|
+
@timecode_format = timecode_format
|
93
|
+
@time_code_interval = time_code_interval
|
94
|
+
@timecode_offset = timecode_offset
|
82
95
|
end
|
83
96
|
end
|
84
97
|
|
@@ -116,38 +129,68 @@ module Cielo24
|
|
116
129
|
attr_accessor :strip_square_brackets
|
117
130
|
attr_accessor :utf8_mark
|
118
131
|
|
119
|
-
def initialize
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
@
|
132
|
+
def initialize(build_url: nil,
|
133
|
+
caption_words_min: nil,
|
134
|
+
caption_by_sentence: nil,
|
135
|
+
dfxp_header: nil,
|
136
|
+
disallow_dangling: nil,
|
137
|
+
display_effects_speaker_as: nil,
|
138
|
+
display_speaker_id: nil,
|
139
|
+
force_case: nil,
|
140
|
+
include_dfxp_metadata: nil,
|
141
|
+
layout_target_caption_length_ms: nil,
|
142
|
+
line_break_on_sentence: nil,
|
143
|
+
line_ending_format: nil,
|
144
|
+
lines_per_caption: nil,
|
145
|
+
maximum_caption_duration: nil,
|
146
|
+
merge_gap_interval: nil,
|
147
|
+
minimum_caption_length_ms: nil,
|
148
|
+
minimum_gap_between_captions_ms: nil,
|
149
|
+
minimum_merge_gap_interval: nil,
|
150
|
+
qt_seamless: nil,
|
151
|
+
silence_max_ms: nil,
|
152
|
+
single_speaker_per_caption: nil,
|
153
|
+
sound_threshold: nil,
|
154
|
+
sound_tokens_by_caption: nil,
|
155
|
+
sound_tokens_by_line: nil,
|
156
|
+
sound_tokens_by_caption_list: nil,
|
157
|
+
sound_tokens_by_line_list: nil,
|
158
|
+
speaker_on_new_line: nil,
|
159
|
+
srt_format: nil,
|
160
|
+
srt_print: nil,
|
161
|
+
strip_square_brackets: nil,
|
162
|
+
utf8_mark: nil)
|
163
|
+
@build_url = build_url
|
164
|
+
@caption_words_min = caption_words_min
|
165
|
+
@caption_by_sentence = caption_by_sentence
|
166
|
+
@dfxp_header = dfxp_header
|
167
|
+
@disallow_dangling = disallow_dangling
|
168
|
+
@display_effects_speaker_as = display_effects_speaker_as
|
169
|
+
@display_speaker_id = display_speaker_id
|
170
|
+
@force_case = force_case
|
171
|
+
@include_dfxp_metadata = include_dfxp_metadata
|
172
|
+
@layout_target_caption_length_ms = layout_target_caption_length_ms
|
173
|
+
@line_break_on_sentence = line_break_on_sentence
|
174
|
+
@line_ending_format = line_ending_format
|
175
|
+
@lines_per_caption = lines_per_caption
|
176
|
+
@maximum_caption_duration = maximum_caption_duration
|
177
|
+
@merge_gap_interval = merge_gap_interval
|
178
|
+
@minimum_caption_length_ms = minimum_caption_length_ms
|
179
|
+
@minimum_gap_between_captions_ms = minimum_gap_between_captions_ms
|
180
|
+
@minimum_merge_gap_interval = minimum_merge_gap_interval
|
181
|
+
@qt_seamless = qt_seamless
|
182
|
+
@silence_max_ms = silence_max_ms
|
183
|
+
@single_speaker_per_caption = single_speaker_per_caption
|
184
|
+
@sound_threshold = sound_threshold
|
185
|
+
@sound_tokens_by_caption = sound_tokens_by_caption
|
186
|
+
@sound_tokens_by_line = sound_tokens_by_line
|
187
|
+
@sound_tokens_by_caption_list = sound_tokens_by_caption_list
|
188
|
+
@sound_tokens_by_line_list = sound_tokens_by_line_list
|
189
|
+
@speaker_on_new_line = speaker_on_new_line
|
190
|
+
@srt_format = srt_format
|
191
|
+
@srt_print = srt_print
|
192
|
+
@strip_square_brackets = strip_square_brackets
|
193
|
+
@utf8_mark = utf8_mark
|
151
194
|
end
|
152
195
|
end
|
153
196
|
|
@@ -160,13 +203,18 @@ module Cielo24
|
|
160
203
|
attr_accessor :return_iwp
|
161
204
|
attr_accessor :speaker_id
|
162
205
|
|
163
|
-
def initialize
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
@
|
206
|
+
def initialize(customer_approval_steps: nil,
|
207
|
+
customer_approval_tool: nil,
|
208
|
+
custom_metadata: nil,
|
209
|
+
notes: nil,
|
210
|
+
return_iwp: nil,
|
211
|
+
speaker_id: nil)
|
212
|
+
@customer_approval_steps = customer_approval_steps
|
213
|
+
@customer_approval_tool = customer_approval_tool
|
214
|
+
@custom_metadata = custom_metadata
|
215
|
+
@notes = notes
|
216
|
+
@return_iwp = return_iwp
|
217
|
+
@speaker_id = speaker_id
|
170
218
|
end
|
171
219
|
end
|
172
220
|
end
|
data/lib/cielo24/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cielo24
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cielo24
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
description: This gem allows you to interact with the cielo24 public
|
69
|
+
description: This gem allows you to interact with the cielo24 public REST API.
|
70
70
|
email:
|
71
71
|
- support@cielo24.com
|
72
72
|
executables: []
|