rev-api 2.3.2 → 2.4.0

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
- SHA1:
3
- metadata.gz: 51e61e4ab23cb4883c3058401872eeeedf13f873
4
- data.tar.gz: 8eb2b2b55b05ebbdef2bdcea49cc50ecec60c205
2
+ SHA256:
3
+ metadata.gz: df2cee3d7cd78f4469aec0af95d0b4fa7aa517980db3be2df91d3670f3c68b9e
4
+ data.tar.gz: 3a30ea7e4bcb30df5af9a16d094ec082e57b96e72b26ef89ea5d16131ed90872
5
5
  SHA512:
6
- metadata.gz: 65a7341fd7c8a9032fddf58bd34f97a8d1cdc5d01d097947f1af7c25dbfe44f48d67012dd8953e035e9fba11b25b595f476b402c4a581cefbcdb5a64552b7e42
7
- data.tar.gz: a8f28d2349d7f18cb920710e34a1f14328e8eed27767f4e03fd9125dcdf13afe720115a59e299f18c30f11a833b331f01610a87530e44e58610a0dbc887a49ea
6
+ metadata.gz: f4712584f66813b12bcc2a22ba325334e96d5bc7e8cae4b41836569ca199cf31da37b32a9865ba8b49dcd93b673e769ccd8f3ef2754daffe7988dcd35bab00fa
7
+ data.tar.gz: 5ed041d940061e778fc52cfd8db611a38277af006d8f5555fdfec2a819ca645fa057f7b2f63676001c1f4e62efda274813dd9d2d6c5bba0ddcee0d64bbd76f6e
@@ -253,7 +253,7 @@ class RevCLI
253
253
  end
254
254
 
255
255
  def place_helper(inputs, options)
256
- options = options.merge({ :client_ref => 'XB432423', :comment => 'Please work quickly' })
256
+ options = options.merge({ :client_ref => 'XB432423' })
257
257
  request = Rev::OrderRequest.new(options)
258
258
 
259
259
  begin
@@ -3,7 +3,7 @@ require 'rev-api/api_serializable'
3
3
  module Rev
4
4
  # OrderRequest is used for constructing order 'spec' in consumer code and passing it into.
5
5
  # It consists of three main elements: :payment, :transcription_options and :notification.
6
- # You can also supply reference number, customer comment, and whether standard turnaround time is not required
6
+ # You can also supply reference number and whether standard turnaround time is not required
7
7
  #
8
8
  # @note https://www.rev.com/api/ordersposttranscription, https://www.rev.com/api/orderspostcaption
9
9
 
@@ -28,9 +28,6 @@ module Rev
28
28
  # a reference number for the order meaningful for the client (optional)
29
29
  attr_reader :client_ref
30
30
 
31
- # a comment with any special messages about the order (optional)
32
- attr_reader :comment
33
-
34
31
  # a boolean flag specifying whether normal turnaround time is not required, defaults to false (optional)
35
32
  attr_reader :non_standard_tat_guarantee
36
33
 
@@ -1,3 +1,3 @@
1
1
  module Rev
2
- VERSION = '2.3.2'
2
+ VERSION = '2.4.0'
3
3
  end
@@ -19,12 +19,12 @@ Gem::Specification.new do |s|
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  s.require_paths = [ "lib", "spec" ]
21
21
 
22
- s.add_runtime_dependency('httparty', '~> 0.11', '>= 0.11.0')
22
+ s.add_runtime_dependency('httparty', '~> 0.11', '~> 0.11.0')
23
23
 
24
24
  s.add_development_dependency('webmock', '~> 1.11', '~> 1.11.0')
25
25
  s.add_development_dependency('vcr', '~> 2.6', '~> 2.6.0')
26
26
  s.add_development_dependency('turn', '~> 0.9', '~> 0.9.6')
27
- s.add_development_dependency('rake', '~> 10.1', '>= 10.1.0')
27
+ s.add_development_dependency('rake', '~> 10.1', '~> 10.1.0')
28
28
  s.add_development_dependency('yard', '~> 0.9.14')
29
29
  s.add_development_dependency('redcarpet', '~> 3.3')
30
30
  s.add_development_dependency('rubygems-tasks', '~> 0')
@@ -5,8 +5,7 @@ http_interactions:
5
5
  uri: https://www.revtrunk.com/api/v1/orders
6
6
  body:
7
7
  encoding: UTF-8
8
- string: ! '{"payment":{"type":"AccountBalance"},"caption_options":{"inputs":[{"external_link":"http://www.youtube.com/watch?v=UF8uR6Z6KLc"},{"video_length_seconds":900,"external_link":"https://vimeo.com/7976699"}],"output_file_formats":["SubRip"]},"client_ref":"XB432423","comment":"Please
9
- work quickly"}'
8
+ string: ! '{"payment":{"type":"AccountBalance"},"caption_options":{"inputs":[{"external_link":"http://www.youtube.com/watch?v=UF8uR6Z6KLc"},{"video_length_seconds":900,"external_link":"https://vimeo.com/7976699"}],"output_file_formats":["SubRip"]},"client_ref":"XB432423"}'
10
9
  headers:
11
10
  Content-Type:
12
11
  - application/json
@@ -5,8 +5,7 @@ http_interactions:
5
5
  uri: https://www.revtrunk.com/api/v1/orders
6
6
  body:
7
7
  encoding: UTF-8
8
- string: ! '{"payment":{"type":"AccountBalance"},"caption_options":{"inputs":[{"external_link":"http://www.youtube.com/watch?v=UF8uR6Z6KLc"},{"video_length_seconds":900,"external_link":"https://vimeo.com/7976699"}],"subtitle_languages":["es","it"],"output_file_formats":["SubRip"]},"client_ref":"XB432423","comment":"Please
9
- work quickly"}'
8
+ string: ! '{"payment":{"type":"AccountBalance"},"caption_options":{"inputs":[{"external_link":"http://www.youtube.com/watch?v=UF8uR6Z6KLc"},{"video_length_seconds":900,"external_link":"https://vimeo.com/7976699"}],"subtitle_languages":["es","it"],"output_file_formats":["SubRip"]},"client_ref":"XB432423"}'
10
9
  headers:
11
10
  Content-Type:
12
11
  - application/json
@@ -5,8 +5,7 @@ http_interactions:
5
5
  uri: https://www.revtrunk.com/api/v1/orders
6
6
  body:
7
7
  encoding: UTF-8
8
- string: ! '{"payment":{"type":"AccountBalance"},"transcription_options":{"inputs":[{"external_link":"http://www.youtube.com/watch?v=UF8uR6Z6KLc"},{"audio_length_seconds":900,"external_link":"https://vimeo.com/7976699"}],"verbatim":true,"timestamps":true},"client_ref":"XB432423","comment":"Please
9
- work quickly"}'
8
+ string: ! '{"payment":{"type":"AccountBalance"},"transcription_options":{"inputs":[{"external_link":"http://www.youtube.com/watch?v=UF8uR6Z6KLc"},{"audio_length_seconds":900,"external_link":"https://vimeo.com/7976699"}],"verbatim":true,"timestamps":true},"client_ref":"XB432423"}'
10
9
  headers:
11
10
  Content-Type:
12
11
  - application/json
@@ -5,8 +5,7 @@ http_interactions:
5
5
  uri: https://www.revtrunk.com/api/v1/orders
6
6
  body:
7
7
  encoding: UTF-8
8
- string: ! '{"payment":{"type":"AccountBalance"},"transcription_options":{"inputs":[{"external_link":"http://www.youtube.com/watch?v=UF8uR6Z6KLc"},{"audio_length_seconds":900,"external_link":"https://vimeo.com/7976699"}],"verbatim":true,"timestamps":true},"client_ref":"XB432423","comment":"Please
9
- work quickly"}'
8
+ string: ! '{"payment":{"type":"AccountBalance"},"transcription_options":{"inputs":[{"external_link":"http://www.youtube.com/watch?v=UF8uR6Z6KLc"},{"audio_length_seconds":900,"external_link":"https://vimeo.com/7976699"}],"verbatim":true,"timestamps":true},"client_ref":"XB432423"}'
10
9
  headers:
11
10
  Content-Type:
12
11
  - application/json
metadata CHANGED
@@ -1,155 +1,155 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rev-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.2
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rev.com, Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-24 00:00:00.000000000 Z
11
+ date: 2020-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.11'
20
- - - '>='
20
+ - - "~>"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 0.11.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ~>
27
+ - - "~>"
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0.11'
30
- - - '>='
30
+ - - "~>"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 0.11.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: webmock
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ~>
37
+ - - "~>"
38
38
  - !ruby/object:Gem::Version
39
39
  version: '1.11'
40
- - - ~>
40
+ - - "~>"
41
41
  - !ruby/object:Gem::Version
42
42
  version: 1.11.0
43
43
  type: :development
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ~>
47
+ - - "~>"
48
48
  - !ruby/object:Gem::Version
49
49
  version: '1.11'
50
- - - ~>
50
+ - - "~>"
51
51
  - !ruby/object:Gem::Version
52
52
  version: 1.11.0
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: vcr
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - ~>
57
+ - - "~>"
58
58
  - !ruby/object:Gem::Version
59
59
  version: '2.6'
60
- - - ~>
60
+ - - "~>"
61
61
  - !ruby/object:Gem::Version
62
62
  version: 2.6.0
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ~>
67
+ - - "~>"
68
68
  - !ruby/object:Gem::Version
69
69
  version: '2.6'
70
- - - ~>
70
+ - - "~>"
71
71
  - !ruby/object:Gem::Version
72
72
  version: 2.6.0
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: turn
75
75
  requirement: !ruby/object:Gem::Requirement
76
76
  requirements:
77
- - - ~>
77
+ - - "~>"
78
78
  - !ruby/object:Gem::Version
79
79
  version: '0.9'
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.9.6
83
83
  type: :development
84
84
  prerelease: false
85
85
  version_requirements: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0.9'
90
- - - ~>
90
+ - - "~>"
91
91
  - !ruby/object:Gem::Version
92
92
  version: 0.9.6
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: rake
95
95
  requirement: !ruby/object:Gem::Requirement
96
96
  requirements:
97
- - - ~>
97
+ - - "~>"
98
98
  - !ruby/object:Gem::Version
99
99
  version: '10.1'
100
- - - '>='
100
+ - - "~>"
101
101
  - !ruby/object:Gem::Version
102
102
  version: 10.1.0
103
103
  type: :development
104
104
  prerelease: false
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - ~>
107
+ - - "~>"
108
108
  - !ruby/object:Gem::Version
109
109
  version: '10.1'
110
- - - '>='
110
+ - - "~>"
111
111
  - !ruby/object:Gem::Version
112
112
  version: 10.1.0
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: yard
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - ~>
117
+ - - "~>"
118
118
  - !ruby/object:Gem::Version
119
119
  version: 0.9.14
120
120
  type: :development
121
121
  prerelease: false
122
122
  version_requirements: !ruby/object:Gem::Requirement
123
123
  requirements:
124
- - - ~>
124
+ - - "~>"
125
125
  - !ruby/object:Gem::Version
126
126
  version: 0.9.14
127
127
  - !ruby/object:Gem::Dependency
128
128
  name: redcarpet
129
129
  requirement: !ruby/object:Gem::Requirement
130
130
  requirements:
131
- - - ~>
131
+ - - "~>"
132
132
  - !ruby/object:Gem::Version
133
133
  version: '3.3'
134
134
  type: :development
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  requirements:
138
- - - ~>
138
+ - - "~>"
139
139
  - !ruby/object:Gem::Version
140
140
  version: '3.3'
141
141
  - !ruby/object:Gem::Dependency
142
142
  name: rubygems-tasks
143
143
  requirement: !ruby/object:Gem::Requirement
144
144
  requirements:
145
- - - ~>
145
+ - - "~>"
146
146
  - !ruby/object:Gem::Version
147
147
  version: '0'
148
148
  type: :development
149
149
  prerelease: false
150
150
  version_requirements: !ruby/object:Gem::Requirement
151
151
  requirements:
152
- - - ~>
152
+ - - "~>"
153
153
  - !ruby/object:Gem::Version
154
154
  version: '0'
155
155
  description: Communicate with Rev.com API using plain Ruby objects without bothering
@@ -159,10 +159,10 @@ executables: []
159
159
  extensions: []
160
160
  extra_rdoc_files: []
161
161
  files:
162
- - .gitignore
163
- - .ruby-gemset
164
- - .ruby-version
165
- - .travis.yml
162
+ - ".gitignore"
163
+ - ".ruby-gemset"
164
+ - ".ruby-version"
165
+ - ".travis.yml"
166
166
  - Gemfile
167
167
  - LICENSE
168
168
  - README.md
@@ -230,60 +230,17 @@ require_paths:
230
230
  - spec
231
231
  required_ruby_version: !ruby/object:Gem::Requirement
232
232
  requirements:
233
- - - '>='
233
+ - - ">="
234
234
  - !ruby/object:Gem::Version
235
235
  version: 2.0.0
236
236
  required_rubygems_version: !ruby/object:Gem::Requirement
237
237
  requirements:
238
- - - '>='
238
+ - - ">="
239
239
  - !ruby/object:Gem::Version
240
240
  version: '0'
241
241
  requirements: []
242
- rubyforge_project:
243
- rubygems_version: 2.0.3
242
+ rubygems_version: 3.1.4
244
243
  signing_key:
245
244
  specification_version: 4
246
245
  summary: Ruby wrapper for Rev.com API
247
- test_files:
248
- - spec/fixtures/api_cassettes/cancel_order.yml
249
- - spec/fixtures/api_cassettes/cancel_order_not_allowed.yml
250
- - spec/fixtures/api_cassettes/get_attachment_content.yml
251
- - spec/fixtures/api_cassettes/get_attachment_content_as_pdf.yml
252
- - spec/fixtures/api_cassettes/get_attachment_content_as_text.yml
253
- - spec/fixtures/api_cassettes/get_attachment_content_as_youtube_transcript.yml
254
- - spec/fixtures/api_cassettes/get_attachment_content_unacceptable_representation.yml
255
- - spec/fixtures/api_cassettes/get_attachment_content_with_invalid_id.yml
256
- - spec/fixtures/api_cassettes/get_attachment_metadata.yml
257
- - spec/fixtures/api_cassettes/get_attachment_with_invalid_id.yml
258
- - spec/fixtures/api_cassettes/get_orders.yml
259
- - spec/fixtures/api_cassettes/get_orders_with_clientRef.yml
260
- - spec/fixtures/api_cassettes/get_tc_order.yml
261
- - spec/fixtures/api_cassettes/get_third_page_of_orders.yml
262
- - spec/fixtures/api_cassettes/link_input.yml
263
- - spec/fixtures/api_cassettes/link_input_with_all_attributes.yml
264
- - spec/fixtures/api_cassettes/link_input_with_spaces_in_filename.yml
265
- - spec/fixtures/api_cassettes/not_found_order.yml
266
- - spec/fixtures/api_cassettes/submit_cp_order.yml
267
- - spec/fixtures/api_cassettes/submit_su_order.yml
268
- - spec/fixtures/api_cassettes/submit_tc_order_with_account_balance.yml
269
- - spec/fixtures/api_cassettes/submit_tc_order_with_invalid_request.yml
270
- - spec/fixtures/api_cassettes/submit_tc_order_without_specifying_payment.yml
271
- - spec/fixtures/api_cassettes/unauthorized.yml
272
- - spec/fixtures/api_cassettes/upload_input.yml
273
- - spec/fixtures/api_cassettes/upload_input_with_invalid_content_type.yml
274
- - spec/fixtures/sourcedocument.png
275
- - spec/lib/rev/api_spec.rb
276
- - spec/lib/rev/cancel_order_spec.rb
277
- - spec/lib/rev/exceptions_spec.rb
278
- - spec/lib/rev/get_attachment_content_spec.rb
279
- - spec/lib/rev/get_attachment_metadata_spec.rb
280
- - spec/lib/rev/get_order_spec.rb
281
- - spec/lib/rev/get_orders_spec.rb
282
- - spec/lib/rev/http_client_spec.rb
283
- - spec/lib/rev/models/order_request_spec.rb
284
- - spec/lib/rev/models/order_spec.rb
285
- - spec/lib/rev/post_inputs_spec.rb
286
- - spec/lib/rev/post_order_spec.rb
287
- - spec/spec_helper.rb
288
- - spec/test_helpers.rb
289
- - spec/tmp_get_attachment_content
246
+ test_files: []