fog-aws 2.0.0 → 2.0.1
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 +4 -4
- data/CHANGELOG.md +24 -1
- data/lib/fog/aws.rb +1 -1
- data/lib/fog/aws/models/compute/address.rb +1 -0
- data/lib/fog/aws/models/storage/file.rb +1 -1
- data/lib/fog/aws/parsers/compute/describe_addresses.rb +1 -1
- data/lib/fog/aws/requests/compute/describe_availability_zones.rb +3 -0
- data/lib/fog/aws/requests/storage/delete_object_url.rb +40 -0
- data/lib/fog/aws/storage.rb +1 -0
- data/lib/fog/aws/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 89a45cbf417fa066e177d10833cb5836dac4f8b9
|
|
4
|
+
data.tar.gz: a518960a957a466264af023553e61b0798798810
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1e220677db83bb07bbc49b23407a1a69ce61e44413460e83ebcd91456ce790edf46f650fff7654e2cc2fe4912a8c52c8d764f57154d63ef320ce63b2ed53a066
|
|
7
|
+
data.tar.gz: cb82026c578840f2987840cc2a37fb528dace837039ba475ae33fba28628508fdd973d3e941c20b074828ceb5d50f1a0edb8d7541959998dfc3763a92174bbc5
|
data/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased](https://github.com/fog/fog-aws/tree/HEAD)
|
|
4
4
|
|
|
5
|
-
[Full Changelog](https://github.com/fog/fog-aws/compare/
|
|
5
|
+
[Full Changelog](https://github.com/fog/fog-aws/compare/v2.0.0...HEAD)
|
|
6
|
+
|
|
7
|
+
**Closed issues:**
|
|
8
|
+
|
|
9
|
+
- Unable to use fog-aws with DigitalOcean Spaces: MissingContentLength [\#428](https://github.com/fog/fog-aws/issues/428)
|
|
10
|
+
- Add new France region [\#424](https://github.com/fog/fog-aws/issues/424)
|
|
11
|
+
- How to set root volume size with bootstrap method? [\#417](https://github.com/fog/fog-aws/issues/417)
|
|
12
|
+
- Update Dependencies [\#227](https://github.com/fog/fog-aws/issues/227)
|
|
13
|
+
|
|
14
|
+
**Merged pull requests:**
|
|
15
|
+
|
|
16
|
+
- Expose S3 pre-signed object delete url [\#431](https://github.com/fog/fog-aws/pull/431) ([nolith](https://github.com/nolith))
|
|
17
|
+
- Fronzen strings fix [\#430](https://github.com/fog/fog-aws/pull/430) ([zhulik](https://github.com/zhulik))
|
|
18
|
+
- Expose elastic ip's private\_ip\_address [\#427](https://github.com/fog/fog-aws/pull/427) ([KevinLoiseau](https://github.com/KevinLoiseau))
|
|
19
|
+
- add france \(eu-west-3\) new region, fix \#424 [\#425](https://github.com/fog/fog-aws/pull/425) ([Val](https://github.com/Val))
|
|
20
|
+
|
|
21
|
+
## [v2.0.0](https://github.com/fog/fog-aws/tree/v2.0.0) (2017-11-28)
|
|
22
|
+
[Full Changelog](https://github.com/fog/fog-aws/compare/v1.4.1...v2.0.0)
|
|
6
23
|
|
|
7
24
|
**Closed issues:**
|
|
8
25
|
|
|
@@ -657,6 +674,12 @@
|
|
|
657
674
|
[Full Changelog](https://github.com/fog/fog-aws/compare/v0.0.1...v0.0.2)
|
|
658
675
|
|
|
659
676
|
## [v0.0.1](https://github.com/fog/fog-aws/tree/v0.0.1) (2015-01-02)
|
|
677
|
+
[Full Changelog](https://github.com/fog/fog-aws/compare/rm...v0.0.1)
|
|
678
|
+
|
|
679
|
+
## [rm](https://github.com/fog/fog-aws/tree/rm) (2014-11-27)
|
|
680
|
+
[Full Changelog](https://github.com/fog/fog-aws/compare/fog-brightbox_v0.0.1...rm)
|
|
681
|
+
|
|
682
|
+
## [fog-brightbox_v0.0.1](https://github.com/fog/fog-aws/tree/fog-brightbox_v0.0.1) (2014-02-19)
|
|
660
683
|
|
|
661
684
|
|
|
662
685
|
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/lib/fog/aws.rb
CHANGED
|
@@ -229,7 +229,7 @@ module Fog
|
|
|
229
229
|
end
|
|
230
230
|
|
|
231
231
|
def self.regions
|
|
232
|
-
@regions ||= ['ap-northeast-1', 'ap-northeast-2', 'ap-southeast-1', 'ap-southeast-2', 'eu-central-1', 'ca-central-1', 'eu-west-1', 'eu-west-2', 'us-east-1', 'us-east-2', 'us-west-1', 'us-west-2', 'sa-east-1', 'cn-north-1', 'us-gov-west-1', 'ap-south-1']
|
|
232
|
+
@regions ||= ['ap-northeast-1', 'ap-northeast-2', 'ap-southeast-1', 'ap-southeast-2', 'eu-central-1', 'ca-central-1', 'eu-west-1', 'eu-west-2', 'eu-west-3', 'us-east-1', 'us-east-2', 'us-west-1', 'us-west-2', 'sa-east-1', 'cn-north-1', 'us-gov-west-1', 'ap-south-1']
|
|
233
233
|
end
|
|
234
234
|
|
|
235
235
|
def self.validate_region!(region, host=nil)
|
|
@@ -4,6 +4,7 @@ module Fog
|
|
|
4
4
|
class Address < Fog::Model
|
|
5
5
|
identity :public_ip, :aliases => 'publicIp'
|
|
6
6
|
|
|
7
|
+
attribute :private_ip_address, :aliases => 'privateIpAddress'
|
|
7
8
|
attribute :allocation_id, :aliases => 'allocationId'
|
|
8
9
|
attribute :association_id, :aliases => 'associationId'
|
|
9
10
|
attribute :server_id, :aliases => 'instanceId'
|
|
@@ -220,7 +220,7 @@ module Fog
|
|
|
220
220
|
data = service.put_object(directory.key, key, body, options)
|
|
221
221
|
merge_attributes(data.headers.reject {|key, value| ['Content-Length', 'Content-Type'].include?(key)})
|
|
222
222
|
end
|
|
223
|
-
self.etag.gsub
|
|
223
|
+
self.etag = self.etag.gsub('"','') if self.etag
|
|
224
224
|
self.content_length = Fog::Storage.get_body_size(body)
|
|
225
225
|
self.content_type ||= Fog::Storage.get_content_type(body)
|
|
226
226
|
true
|
|
@@ -10,7 +10,7 @@ module Fog
|
|
|
10
10
|
|
|
11
11
|
def end_element(name)
|
|
12
12
|
case name
|
|
13
|
-
when 'instanceId', 'publicIp', 'domain', 'allocationId', 'associationId', 'networkInterfaceId', 'networkInterfaceOwnerId'
|
|
13
|
+
when 'instanceId', 'publicIp', 'domain', 'allocationId', 'associationId', 'networkInterfaceId', 'networkInterfaceOwnerId', 'privateIpAddress'
|
|
14
14
|
@address[name] = value
|
|
15
15
|
when 'item'
|
|
16
16
|
@response['addressesSet'] << @address
|
|
@@ -70,6 +70,9 @@ module Fog
|
|
|
70
70
|
{"messageSet" => [], "regionName" => "eu-west-2", "zoneName" => "eu-west-2a", "zoneState" => "available"},
|
|
71
71
|
{"messageSet" => [], "regionName" => "eu-west-2", "zoneName" => "eu-west-2b", "zoneState" => "available"},
|
|
72
72
|
|
|
73
|
+
{"messageSet" => [], "regionName" => "eu-west-3", "zoneName" => "eu-west-3a", "zoneState" => "available"},
|
|
74
|
+
{"messageSet" => [], "regionName" => "eu-west-3", "zoneName" => "eu-west-3b", "zoneState" => "available"},
|
|
75
|
+
|
|
73
76
|
{"messageSet" => [], "regionName" => "eu-central-1", "zoneName" => "eu-central-1a", "zoneState" => "available"},
|
|
74
77
|
{"messageSet" => [], "regionName" => "eu-central-1", "zoneName" => "eu-central-1b", "zoneState" => "available"},
|
|
75
78
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module Fog
|
|
2
|
+
module Storage
|
|
3
|
+
class AWS
|
|
4
|
+
module DeleteObjectUrl
|
|
5
|
+
def delete_object_url(bucket_name, object_name, expires, options = {})
|
|
6
|
+
unless bucket_name
|
|
7
|
+
raise ArgumentError.new('bucket_name is required')
|
|
8
|
+
end
|
|
9
|
+
unless object_name
|
|
10
|
+
raise ArgumentError.new('object_name is required')
|
|
11
|
+
end
|
|
12
|
+
signed_url(options.merge({
|
|
13
|
+
:bucket_name => bucket_name,
|
|
14
|
+
:object_name => object_name,
|
|
15
|
+
:method => 'DELETE'
|
|
16
|
+
}), expires)
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
class Real
|
|
21
|
+
# Get an expiring object url from S3 for deleting an object
|
|
22
|
+
#
|
|
23
|
+
# @param bucket_name [String] Name of bucket containing object
|
|
24
|
+
# @param object_name [String] Name of object to get expiring url for
|
|
25
|
+
# @param expires [Time] An expiry time for this url
|
|
26
|
+
#
|
|
27
|
+
# @return [Excon::Response] response:
|
|
28
|
+
# * body [String] - url for object
|
|
29
|
+
#
|
|
30
|
+
# @see http://docs.amazonwebservices.com/AmazonS3/latest/dev/S3_QSAuth.html
|
|
31
|
+
|
|
32
|
+
include DeleteObjectUrl
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
class Mock # :nodoc:all
|
|
36
|
+
include DeleteObjectUrl
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
data/lib/fog/aws/storage.rb
CHANGED
data/lib/fog/aws/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fog-aws
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Josh Lane
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2018-02-28 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|
|
@@ -1361,6 +1361,7 @@ files:
|
|
|
1361
1361
|
- lib/fog/aws/requests/storage/delete_bucket_website.rb
|
|
1362
1362
|
- lib/fog/aws/requests/storage/delete_multiple_objects.rb
|
|
1363
1363
|
- lib/fog/aws/requests/storage/delete_object.rb
|
|
1364
|
+
- lib/fog/aws/requests/storage/delete_object_url.rb
|
|
1364
1365
|
- lib/fog/aws/requests/storage/get_bucket.rb
|
|
1365
1366
|
- lib/fog/aws/requests/storage/get_bucket_acl.rb
|
|
1366
1367
|
- lib/fog/aws/requests/storage/get_bucket_cors.rb
|