cielo24 0.0.9 → 0.0.10

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: 53e31a6d1a427f035275f3a67c69dd29b4f985cb
4
- data.tar.gz: e51be163b5ac729a3ab6d41651968df9cd801705
3
+ metadata.gz: c72ae19661e21c9b43737db4c19d39c338ebc975
4
+ data.tar.gz: f34337feb266089940211d8d5e1292f3d12b7d3a
5
5
  SHA512:
6
- metadata.gz: b4ee8286682127ad776994309e08b2cc34ca2218a65e1f6a60ace77dd2f3dd0e7d0ebc8a2293a611550332b3c6ea183dd338ef1ef359afe9846c77e6f9bfb077
7
- data.tar.gz: b3fbdfe72374bb683eb75cb5e742c7523a37b4952b7afb135cd9f4e26144296ff8bc0167f3095ced9a253af449312afc6e99a2e715dbe7b673bf5ea31b6b60c1
6
+ metadata.gz: c44178e60190c77f7bc47191e7d51158d1e69ecd3200a09ed06d8e3a4568739f2207b4f9da0b87cf7848f59254622513fc33cd2474e5750a5c285e00f8bb3729
7
+ data.tar.gz: d16d5ea50613fb0af3d5706c77d132d598079e5f48316a65703609bfb68b787e121e96b3a5e2f201c50a9ed85b812e6957eb1428abc3cad4bab212999f6a26cf
@@ -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?)
@@ -49,15 +49,22 @@ module Cielo24
49
49
  attr_accessor :replace_slang
50
50
  attr_accessor :sound_boundaries
51
51
 
52
- def initialize
53
- @characters_per_caption_line = nil
54
- @elementlist_version = nil
55
- @emit_speaker_change_token_as = nil
56
- @mask_profanity = nil
57
- @remove_sounds_list = nil
58
- @remove_sound_references = nil
59
- @replace_slang = nil
60
- @sound_boundaries = nil
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
- @create_paragraphs = nil
76
- @newlines_after_paragraph = nil
77
- @newlines_after_sentence = nil
78
- @timecode_every_paragraph = nil
79
- @timecode_format = nil
80
- @time_code_interval = nil
81
- @timecode_offset = nil
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
- @build_url = nil
121
- @caption_words_min = nil
122
- @caption_by_sentence = nil
123
- @dfxp_header = nil
124
- @disallow_dangling = nil
125
- @display_effects_speaker_as = nil
126
- @display_speaker_id = nil
127
- @force_case = nil
128
- @include_dfxp_metadata = nil
129
- @layout_target_caption_length_ms = nil
130
- @line_break_on_sentence = nil
131
- @line_ending_format = nil
132
- @lines_per_caption = nil
133
- @maximum_caption_duration = nil
134
- @merge_gap_interval = nil
135
- @minimum_caption_length_ms = nil
136
- @minimum_gap_between_captions_ms = nil
137
- @minimum_merge_gap_interval = nil
138
- @qt_seamless = nil
139
- @silence_max_ms = nil
140
- @single_speaker_per_caption = nil
141
- @sound_threshold = nil
142
- @sound_tokens_by_caption = nil
143
- @sound_tokens_by_line = nil
144
- @sound_tokens_by_caption_list = nil
145
- @sound_tokens_by_line_list = nil
146
- @speaker_on_new_line = nil
147
- @srt_format = nil
148
- @srt_print = nil
149
- @strip_square_brackets = nil
150
- @utf8_mark = nil
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
- @customer_approval_steps = nil
165
- @customer_approval_tool = nil
166
- @custom_metadata = nil
167
- @notes = nil
168
- @return_iwp = nil
169
- @speaker_id = nil
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
@@ -1,3 +1,3 @@
1
1
  module Cielo24
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
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.9
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-29 00:00:00.000000000 Z
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 web API.
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: []