s3 0.3.27 → 0.3.28

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ffec1548425f8ee90508e8f37d352c346985c3d5f02f3be65b7bc84c25730350
4
- data.tar.gz: ed6c7585bdecd2190a0ed5980ce702a0dc20e2f2c5cee52085f927800326589c
3
+ metadata.gz: df64c3c75182898b6c8e9e103567f03035b3a75e63ec905b9c3ee40f3f9d1619
4
+ data.tar.gz: 488ce71022defc840a2fc480b0a933614abe9b771ab0b312a506b5672ac1f348
5
5
  SHA512:
6
- metadata.gz: dcc1cd2708130de24b5a5b386b955f150c05fa0d4f316022fd16d6b4af7030c5bcc19562275d2941a59a9f4a3f49e7b27afd9443dc43915cb556630e72fbcdbb
7
- data.tar.gz: 422db102ea2b6e147113fe67a9671e1eac5f6d1401aed9be482c8de4490d4d006a1ad5295056a5a03274afbf203852ed14027df75c89225d72651a7692fe15df
6
+ metadata.gz: 1be248f5fa5d5f19c075a94df8140ef985ad2e8cf94b64275523963e3915f69fb83651cb86d75e57bfdab918ef34c3ec9840eee4740ea98cd913f04e2fd7cbf5
7
+ data.tar.gz: 6b1ed01b32c8750ba0db79c9310ce7f3b5640ed17799af66bf4bafd7c8ff7b05f5d44242bcc18a9ebc171a6429d8de1b26bc471ebf6d349be4a9e64a455d08a2
data/lib/s3.rb CHANGED
@@ -28,5 +28,9 @@ module S3
28
28
  def host
29
29
  @host ||= "s3.amazonaws.com"
30
30
  end
31
+ attr_writer :port
32
+ def port
33
+ @port
34
+ end
31
35
  end
32
36
  end
@@ -157,7 +157,7 @@ module S3
157
157
  private
158
158
 
159
159
  def port
160
- use_ssl ? 443 : 80
160
+ S3.port || (use_ssl ? 443 : 80)
161
161
  end
162
162
 
163
163
  def proxy_settings
@@ -61,10 +61,10 @@ module S3
61
61
  use_ssl ? "https://" : "http://"
62
62
  end
63
63
 
64
- # Returns 443 or 80, depends on <tt>:use_ssl</tt> value from
64
+ # Returns a custom port, 443 or 80, depends on <tt>:use_ssl</tt> value from
65
65
  # initializer
66
66
  def port
67
- use_ssl ? 443 : 80
67
+ S3.port || (use_ssl ? 443 : 80)
68
68
  end
69
69
 
70
70
  def inspect #:nodoc:
@@ -1,3 +1,3 @@
1
1
  module S3
2
- VERSION = "0.3.27"
2
+ VERSION = "0.3.28"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.27
4
+ version: 0.3.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kuba Kuźma
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-13 00:00:00.000000000 Z
11
+ date: 2018-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler