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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2227423f1daaad40b83bbfc08c6d56e58478da4e0f75472e5fe482ee16b782d4
4
- data.tar.gz: '08b19784d46dea0924f7cdac48f5d6d0949fb21cec1a4493ea0ae65d1904d2ac'
3
+ metadata.gz: '02278a07135fb19a23f3920bc8c80892879cf6f1d65201af7e236e4d6546dbdb'
4
+ data.tar.gz: 1d57a851c8b5bea178482738933d511f208e1988a7f03d8fdd6bd75c3b92b617
5
5
  SHA512:
6
- metadata.gz: 4bfa6c425d258467b82119159d3b92437640536365b4b3f012d7e8b4008541aecf9c4ba180955c32776e9b481ac4fcc13ea38da90439277228a3a9f3304eb717
7
- data.tar.gz: 57b7a6fbaad10c79a564b965c5012b8ab836422f9134df0dce1dd76fbaf81e83e21dc2491009ccdec7d4568b128dbde88ffc9ad3ba8311a62087eeded032b3ff
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 StandardError
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  module AssemblyAI
4
4
  module Gemconfig
5
- VERSION = "1.0.0"
5
+ VERSION = "1.0.2-beta.0"
6
6
  AUTHORS = ["AssemblyAI"].freeze
7
7
  EMAIL = "support@assemblyai.com"
8
8
  SUMMARY = "AssemblyAI Ruby SDK"
data/lib/requests.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "environment"
4
- require_relative "user_agent"
4
+ require_relative "assemblyai/types/user_agent"
5
5
  require_relative "gemconfig"
6
6
  require "faraday"
7
7
  require "faraday/retry"
data/lib/types_export.rb CHANGED
@@ -85,3 +85,4 @@ require_relative "assemblyai/lemur/types/lemur_question"
85
85
  require_relative "assemblyai/lemur/types/lemur_model"
86
86
  require_relative "assemblyai/lemur/types/lemur_usage"
87
87
  require_relative "assemblyai/types/error"
88
+ require_relative "assemblyai/types/user_agent"
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-05 00:00:00.000000000 Z
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.1.6
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: []