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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/twilio_recordings.rb +3 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cbc58182b8c48d47a5093648eb788f7b62868ab1
4
- data.tar.gz: 25d24631058c81e71d404e4d87579024f5f7c405
3
+ metadata.gz: ba034d8448591636a1f2b1befa744757d5eb0638
4
+ data.tar.gz: e054fffe1b4d39476062cf182fee629df2bf6d71
5
5
  SHA512:
6
- metadata.gz: c202b497433591a2c93ee2d59dc43d3bc993c74762f9287fe64931dcc5ef52a6ae7a59bf9c7ab1d5b7da61a14eeabb8e3c054ad6ab9f290b08e143b57b5bccdc
7
- data.tar.gz: 1587e09775e3a76af41869629bbc4fcae113ac11a9550b18d1143f846466e9877b2b25cd2dbf6f5fb2c27960ec47f84893c6f77b9ab7eb10fcfe71440b89199e
6
+ metadata.gz: 3766c6acc3c8ece9af9ef23f47a520e3ea4131b3ab7823705fa794b0b6c3bc013e8dad37193b908f626c816f4ac3329f0d75f7e0ab58d3e4032909683d115ad0
7
+ data.tar.gz: 5a73042536b48d1ac4d486b8fcb2d900cfcf07ea8a3047df15d0b3f055f2e07ba868ce5a21645850be451c229d994af0df279af7c048b77e2ff6e4564211cfa6
@@ -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 '/tmp')
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] || File.join('','tmp')
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.9
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.2.2
67
+ rubygems_version: 2.6.14.4
68
68
  signing_key:
69
69
  specification_version: 4
70
70
  summary: TwilioRecordings