twilio_recordings 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 +4 -4
- data/lib/twilio_recordings.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba034d8448591636a1f2b1befa744757d5eb0638
|
4
|
+
data.tar.gz: e054fffe1b4d39476062cf182fee629df2bf6d71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3766c6acc3c8ece9af9ef23f47a520e3ea4131b3ab7823705fa794b0b6c3bc013e8dad37193b908f626c816f4ac3329f0d75f7e0ab58d3e4032909683d115ad0
|
7
|
+
data.tar.gz: 5a73042536b48d1ac4d486b8fcb2d900cfcf07ea8a3047df15d0b3f055f2e07ba868ce5a21645850be451c229d994af0df279af7c048b77e2ff6e4564211cfa6
|
data/lib/twilio_recordings.rb
CHANGED
@@ -3,6 +3,7 @@ require 'typhoeus/adapters/faraday'
|
|
3
3
|
|
4
4
|
class TwilioRecordings
|
5
5
|
attr_writer :connection
|
6
|
+
attr_reader :tmp_dir # For testing
|
6
7
|
|
7
8
|
##
|
8
9
|
# Instantiate a new TwilioRecordings object.
|
@@ -14,11 +15,11 @@ class TwilioRecordings
|
|
14
15
|
# Arguments:
|
15
16
|
# account_sid: The Twilio account SID, e.g. "AC12345678901234567890123456789012"
|
16
17
|
# recording_sids: An array of recording SIDs, e.g. ["RE12345678901234567890123456789012"]
|
17
|
-
# tmp_dir: The directory that the recordings will be temporarily downloaded to. (optional, default is
|
18
|
+
# tmp_dir: The directory that the recordings will be temporarily downloaded to. (optional, default is Dir.tmpdir() )
|
18
19
|
def initialize(account_sid, recording_sids, options={})
|
19
20
|
@account_sid = account_sid
|
20
21
|
@recording_sids = recording_sids.map{ |sid| self.class.sanitize(sid) }
|
21
|
-
@tmp_dir = options[:tmp_dir] ||
|
22
|
+
@tmp_dir = options[:tmp_dir] || Dir.tmpdir
|
22
23
|
|
23
24
|
@tmp_files = {}
|
24
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twilio_recordings
|
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
|
- Paul Boxley
|
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
64
|
version: '0'
|
65
65
|
requirements: []
|
66
66
|
rubyforge_project:
|
67
|
-
rubygems_version: 2.
|
67
|
+
rubygems_version: 2.6.14.4
|
68
68
|
signing_key:
|
69
69
|
specification_version: 4
|
70
70
|
summary: TwilioRecordings
|