assemblyai 1.0.0 → 1.0.2.pre.beta.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/assemblyai/files/client.rb +2 -1
- data/lib/{user_agent.rb → assemblyai/types/user_agent.rb} +3 -3
- data/lib/assemblyai.rb +1 -0
- data/lib/gemconfig.rb +1 -1
- data/lib/requests.rb +1 -1
- data/lib/types_export.rb +1 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '02278a07135fb19a23f3920bc8c80892879cf6f1d65201af7e236e4d6546dbdb'
|
4
|
+
data.tar.gz: 1d57a851c8b5bea178482738933d511f208e1988a7f03d8fdd6bd75c3b92b617
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3fe50a85f91e9db378952cdade40e9beaac5714b7c1abee98992c9ab81d4a1d3f8466f44ed9f5851c8ad8cb7ef3dd0903cb50e048e1e474e06956824c510065
|
7
|
+
data.tar.gz: 73f3b166c3cba56cd5e9fe1410aec96c3091bd53c019d2f617b2d0613e36cc4409b7f4d8393f065b9792325d10f81070964fae1aff77454813380d64909af324
|
@@ -3,6 +3,7 @@
|
|
3
3
|
require_relative "../../requests"
|
4
4
|
require_relative "types/uploaded_file"
|
5
5
|
require "async"
|
6
|
+
require "pathname"
|
6
7
|
|
7
8
|
module AssemblyAI
|
8
9
|
class FilesClient
|
@@ -25,7 +26,7 @@ module AssemblyAI
|
|
25
26
|
if file.is_a? String
|
26
27
|
begin
|
27
28
|
path = Pathname.new(file)
|
28
|
-
rescue
|
29
|
+
rescue RuntimeError
|
29
30
|
file_data = file
|
30
31
|
end
|
31
32
|
unless path.nil?
|
@@ -33,7 +33,7 @@ module AssemblyAI
|
|
33
33
|
# @param user_agent2 [AssemblyAI::UserAgent]
|
34
34
|
# @return [AssemblyAI::UserAgent]
|
35
35
|
def self.merge(user_agent1, user_agent2)
|
36
|
-
merged_user_agent = UserAgent.new
|
36
|
+
merged_user_agent = AssemblyAI::UserAgent.new
|
37
37
|
|
38
38
|
user_agent1&.user_agent_items&.each do |key, item|
|
39
39
|
merged_user_agent.add_item(key, item)
|
@@ -62,8 +62,8 @@ module AssemblyAI
|
|
62
62
|
attr_reader :user_agent
|
63
63
|
|
64
64
|
def initialize
|
65
|
-
@user_agent = UserAgent.new
|
66
|
-
@user_agent.add_item("sdk", UserAgentItem.new(name: "Ruby", version: AssemblyAI::Gemconfig::VERSION))
|
65
|
+
@user_agent = AssemblyAI::UserAgent.new
|
66
|
+
@user_agent.add_item("sdk", AssemblyAI::UserAgentItem.new(name: "Ruby", version: AssemblyAI::Gemconfig::VERSION))
|
67
67
|
end
|
68
68
|
end
|
69
69
|
end
|
data/lib/assemblyai.rb
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
require_relative "environment"
|
4
4
|
require_relative "types_export"
|
5
5
|
require_relative "requests"
|
6
|
+
require_relative "assemblyai/types/user_agent"
|
6
7
|
require_relative "assemblyai/files/client"
|
7
8
|
require_relative "assemblyai/transcripts/client"
|
8
9
|
require_relative "assemblyai/transcripts/polling_client"
|
data/lib/gemconfig.rb
CHANGED
data/lib/requests.rb
CHANGED
data/lib/types_export.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: assemblyai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.2.pre.beta.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AssemblyAI
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http-faraday
|
@@ -191,18 +191,18 @@ files:
|
|
191
191
|
- lib/assemblyai/transcripts/types/word_search_response.rb
|
192
192
|
- lib/assemblyai/transcripts/types/word_search_timestamp.rb
|
193
193
|
- lib/assemblyai/types/error.rb
|
194
|
+
- lib/assemblyai/types/user_agent.rb
|
194
195
|
- lib/environment.rb
|
195
196
|
- lib/gemconfig.rb
|
196
197
|
- lib/requests.rb
|
197
198
|
- lib/types_export.rb
|
198
|
-
- lib/user_agent.rb
|
199
199
|
homepage: https://github.com/AssemblyAI/assemblyai-ruby-sdk
|
200
200
|
licenses: []
|
201
201
|
metadata:
|
202
202
|
homepage_uri: https://github.com/AssemblyAI/assemblyai-ruby-sdk
|
203
203
|
source_code_uri: https://github.com/AssemblyAI/assemblyai-ruby-sdk
|
204
204
|
changelog_uri: https://github.com/AssemblyAI/assemblyai-ruby-sdk/blob/master/CHANGELOG.md
|
205
|
-
post_install_message:
|
205
|
+
post_install_message:
|
206
206
|
rdoc_options: []
|
207
207
|
require_paths:
|
208
208
|
- lib
|
@@ -217,8 +217,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
217
217
|
- !ruby/object:Gem::Version
|
218
218
|
version: '0'
|
219
219
|
requirements: []
|
220
|
-
rubygems_version: 3.
|
221
|
-
signing_key:
|
220
|
+
rubygems_version: 3.5.3
|
221
|
+
signing_key:
|
222
222
|
specification_version: 4
|
223
223
|
summary: AssemblyAI Ruby SDK
|
224
224
|
test_files: []
|