digitsend 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  module Digitsend
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/digitsend.rb CHANGED
@@ -15,7 +15,7 @@ module DigitSend
15
15
  attr_writer :port
16
16
 
17
17
  def port
18
- @port || use_ssl ? 443 : 80
18
+ @port || ( @use_ssl ? 443 : 80 )
19
19
  end
20
20
  end
21
21
  end
@@ -48,7 +48,7 @@ module DigitSend
48
48
  private
49
49
 
50
50
  def create_s3_file(name)
51
- Client.call '/api/s3_files', s3_file: { name: name }
51
+ Client.call '/api/s3_files', s3_file: { name: File.basename(name) }
52
52
  end
53
53
 
54
54
  def upload_to_s3(url, fields, stream)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: digitsend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-31 00:00:00.000000000 Z
12
+ date: 2012-09-01 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: client library for DigitSend.
15
15
  email: