s3 0.3.23 → 0.3.24

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
  SHA1:
3
- metadata.gz: 7ea0ee1684b02cf5fcadc99748bf330317abb957
4
- data.tar.gz: c48ded25b29a209253cb2b09ae1d4ae192df2373
3
+ metadata.gz: d25a652e976f52b851fda22f71d9b7cce09acfbe
4
+ data.tar.gz: 46df7f5afeeb91d86df9b0a43e393b3a88a8867f
5
5
  SHA512:
6
- metadata.gz: 343cfa6f0cd5997536fcf18a3c1d839de3bfc417a205e62f25531b4b24fa58daa45ebce5809a1f3315b4ad72de6b617cef74752d15cbff674207e732930c5275
7
- data.tar.gz: 3a7fe5f9c902779776e462008da107adca6fadcb9acffac771d84864f692851581bd431b71116c2e7c6711b2e8bf38c766e5132322f3712aff173e2f3fab8332
6
+ metadata.gz: 739666db3562252f1c6af666dec6ae70e310e42d129e7870df0f978930180a668875c016a49f9529410905e0c1b84ba212a283c5d24c7e22fb24f458ca49b8b9
7
+ data.tar.gz: 46801114bb6c5731876e686053f5f76f732b36e12d005a869534572e5931497f87d9740af7d543b73b5961fa96fdecf6380decbad10ee4894b4f3c8636219b32
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- s3 (0.3.23)
4
+ s3 (0.3.24)
5
5
  proxies (~> 0.2.0)
6
6
 
7
7
  GEM
@@ -23,3 +23,6 @@ DEPENDENCIES
23
23
  rake
24
24
  s3!
25
25
  test-unit
26
+
27
+ BUNDLED WITH
28
+ 1.10.6
@@ -25,6 +25,12 @@ module S3
25
25
  # * <tt>:timeout</tt> - Timeout to use by the Net::HTTP object
26
26
  # (60 by default)
27
27
  def initialize(options)
28
+ # The keys for these required options might exist in the options hash, but
29
+ # they might be set to something like `nil`. If this is the case, we want
30
+ # to fail early.
31
+ raise ArgumentError, "Missing :access_key_id." if !options[:access_key_id]
32
+ raise ArgumentError, "Missing :secret_access_key." if !options[:secret_access_key]
33
+
28
34
  @access_key_id = options.fetch(:access_key_id)
29
35
  @secret_access_key = options.fetch(:secret_access_key)
30
36
  @use_ssl = options.fetch(:use_ssl, false)
@@ -1,3 +1,3 @@
1
1
  module S3
2
- VERSION = "0.3.23"
2
+ VERSION = "0.3.24"
3
3
  end
@@ -57,6 +57,24 @@ class ServiceTest < Test::Unit::TestCase
57
57
  ]
58
58
  end
59
59
 
60
+ test "no :access_key_id" do
61
+ assert_raise ArgumentError do
62
+ @service_bucket_exists = S3::Service.new(
63
+ :access_key_id => nil,
64
+ :secret_access_key => "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDF"
65
+ )
66
+ end
67
+ end
68
+
69
+ test "no :secret_access_key" do
70
+ assert_raise ArgumentError do
71
+ @service_bucket_exists = S3::Service.new(
72
+ :access_key_id => "12345678901234567890",
73
+ :secret_access_key => nil
74
+ )
75
+ end
76
+ end
77
+
60
78
  test "buckets and parse buckets empty" do
61
79
  expected = @buckets_empty_list
62
80
  actual = @service_empty_buckets_list.buckets
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.23
4
+ version: 0.3.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kuba Kuźma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-03 00:00:00.000000000 Z
11
+ date: 2016-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: proxies