fog-aws 3.14.0 → 3.15.0

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: c8af574874772df5b7a7e51819b23f554543472c6cef0b4ff86addac3b0c24b7
4
- data.tar.gz: f5171df32eec2c204d27ce7ac7ef361d5b7bc9c0761b6b95efd347b977deb97c
3
+ metadata.gz: e4dabf89bd737334e85935e36486ca9ba38819c8fc7ce16bae50c5bc9cd73917
4
+ data.tar.gz: d29ec0b26cd7917860e1d8a492b68fd24a3b6d64adbece07a90f6520361e9c29
5
5
  SHA512:
6
- metadata.gz: 0526c83e1825435460136d7afa5f2467e88de9171ed64fcbe0fc75871ffd2564435b310f54585de0e24e2dbb38d36fa969952c0da98787e6d43fb8128950ad36
7
- data.tar.gz: b9282f04b1b59446ab5781154932461d9230e6ef58dde2d573dd8bc488722faa02e54b77a376bda9e1ab8391a673c44bd975f24be9e1ade9ec7b30f1b817c70f
6
+ metadata.gz: 4d42a8e95ae968471cc18dfd49d9444957ec970b0362a5a8f7736db04dd0fc5f0da17dd1e946585caff3de8d8d93da1784ed42aa660df72cb479553b04e9bbc9
7
+ data.tar.gz: 9fd1fe20b8aa767fc6cb925293c042c71af77b554176232c9a24a9fe66323671739174453e3bb687465b33c18493f3c5590adca1a82ee5f3ec6405db91260840
data/CHANGELOG.md CHANGED
@@ -1,8 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## [v3.15.0](https://github.com/fog/fog-aws/tree/v3.15.0) (2022-09-12)
4
+
5
+ [Full Changelog](https://github.com/fog/fog-aws/compare/v3.14.0...v3.15.0)
6
+
7
+ **Closed issues:**
8
+
9
+ - URI.decode is obsolete \(and not available in Ruby 3.0\) [\#653](https://github.com/fog/fog-aws/issues/653)
10
+ - S3: File copy not working outside us-east-1 region [\#645](https://github.com/fog/fog-aws/issues/645)
11
+ - Unable to list, update and remove RDS tags in AWS GovCloud Account regions. [\#644](https://github.com/fog/fog-aws/issues/644)
12
+ - Documentation links broken / 404 [\#642](https://github.com/fog/fog-aws/issues/642)
13
+
14
+ **Merged pull requests:**
15
+
16
+ - Replace URI.decode as obsolete, and removed in Ruby 3.0 [\#654](https://github.com/fog/fog-aws/pull/654) ([kuahyeow](https://github.com/kuahyeow))
17
+ - Fix typo in readme [\#652](https://github.com/fog/fog-aws/pull/652) ([geemus](https://github.com/geemus))
18
+ - change sync\_clock to plain GET [\#651](https://github.com/fog/fog-aws/pull/651) ([duckworth](https://github.com/duckworth))
19
+ - Update README file with download url example [\#649](https://github.com/fog/fog-aws/pull/649) ([lucasocon](https://github.com/lucasocon))
20
+ - Bump actions/dependency-review-action from 1 to 2 [\#648](https://github.com/fog/fog-aws/pull/648) ([dependabot[bot]](https://github.com/apps/dependabot))
21
+ - add x2gd and t4g instance flavours [\#647](https://github.com/fog/fog-aws/pull/647) ([mushyy](https://github.com/mushyy))
22
+ - Fix a typo in CHANGELOG [\#646](https://github.com/fog/fog-aws/pull/646) ([y-yagi](https://github.com/y-yagi))
23
+
3
24
  ## [v3.14.0](https://github.com/fog/fog-aws/tree/v3.14.0) (2022-05-09)
4
25
 
5
- [Full Changelog](https://github.com/fog/fog-aws/compare/v3.13.0...HEAD)
26
+ [Full Changelog](https://github.com/fog/fog-aws/compare/v3.13.0...v3.14.0)
6
27
 
7
28
  **Closed issues:**
8
29
 
@@ -10,7 +31,7 @@
10
31
 
11
32
  **Merged pull requests:**
12
33
 
13
- - RDD tags issue in AWS GovCloud Account regions. [\#643](https://github.com/fog/fog-aws/pull/643) ([svavhal](https://github.com/svavhal))
34
+ - RDS tags issue in AWS GovCloud Account regions. [\#643](https://github.com/fog/fog-aws/pull/643) ([svavhal](https://github.com/svavhal))
14
35
  - Create codeql.yml [\#641](https://github.com/fog/fog-aws/pull/641) ([naveensrinivasan](https://github.com/naveensrinivasan))
15
36
  - chore\(deps\): Included dependency review [\#640](https://github.com/fog/fog-aws/pull/640) ([naveensrinivasan](https://github.com/naveensrinivasan))
16
37
  - Bump actions/stale from 4 to 5 [\#639](https://github.com/fog/fog-aws/pull/639) ([dependabot[bot]](https://github.com/apps/dependabot))
@@ -712,7 +733,6 @@
712
733
 
713
734
  - How to setup private files with CloudFront? [\#275](https://github.com/fog/fog-aws/issues/275)
714
735
  - Feature: Custom Managed Policies [\#272](https://github.com/fog/fog-aws/issues/272)
715
- - Question: which aws-sdk version is used [\#270](https://github.com/fog/fog-aws/issues/270)
716
736
  - Support an IAM list\_attached\_role\_policies method [\#191](https://github.com/fog/fog-aws/issues/191)
717
737
 
718
738
  **Merged pull requests:**
data/README.md CHANGED
@@ -106,6 +106,20 @@ directory.files
106
106
  directory.files.new(key: 'user/1/Gemfile').url(Time.now + 60)
107
107
  ```
108
108
 
109
+ ##### Generate download URL
110
+ You should pass an option argument that contains the `query` key with `response-content-disposition` inside indicating that is an attachment and the filename to be used when downloaded.
111
+
112
+ ```ruby
113
+ options = {
114
+ query: {
115
+ 'response-content-disposition' => "attachment; filename=#{key}"
116
+ }
117
+ }
118
+
119
+ directory.files.new(key: 'user/1/Gemfile').url(Time.now + 60, options)
120
+ ```
121
+
122
+
109
123
  ##### Controlling credential refresh time with IAM authentication
110
124
 
111
125
  When using IAM authentication with
@@ -286,6 +286,76 @@ module Fog
286
286
  :ebs_optimized_available => true,
287
287
  :instance_store_volumes => 0
288
288
  },
289
+ {
290
+ :id => 't4g.nano',
291
+ :name => 'T4G Nano Instace',
292
+ :bits => 64,
293
+ :cores => 2,
294
+ :disk => 0,
295
+ :ram => 537,
296
+ :ebs_optimized_available => true,
297
+ :instance_store_volumes => 0
298
+ },
299
+ {
300
+ :id => 't4g.micro',
301
+ :name => 'T4G Micro Instance',
302
+ :bits => 64,
303
+ :cores => 2,
304
+ :disk => 0,
305
+ :ram => 1073,
306
+ :ebs_optimized_available => true,
307
+ :instance_store_volumes => 0
308
+ },
309
+ {
310
+ :id => 't4g.small',
311
+ :name => 'T4G Small Instance',
312
+ :bits => 64,
313
+ :cores => 2,
314
+ :disk => 0,
315
+ :ram => 2147,
316
+ :ebs_optimized_available => true,
317
+ :instance_store_volumes => 0
318
+ },
319
+ {
320
+ :id => 't4g.medium',
321
+ :name => 'T4G Medium Instace',
322
+ :bits => 64,
323
+ :cores => 2,
324
+ :disk => 0,
325
+ :ram => 4295,
326
+ :ebs_optimized_available => true,
327
+ :instance_store_volumes => 0
328
+ },
329
+ {
330
+ :id => 't4g.large',
331
+ :name => 'T4G Large Instance',
332
+ :bits => 64,
333
+ :cores => 2,
334
+ :disk => 0,
335
+ :ram => 8590,
336
+ :ebs_optimized_available => true,
337
+ :instance_store_volumes => 0
338
+ },
339
+ {
340
+ :id => 't4g.xlarge',
341
+ :name => 'T4G Extra Large Instance',
342
+ :bits => 64,
343
+ :cores => 4,
344
+ :disk => 0,
345
+ :ram => 17180,
346
+ :ebs_optimized_available => true,
347
+ :instance_store_volumes => 0
348
+ },
349
+ {
350
+ :id => 't4g.2xlarge',
351
+ :name => 'T4G Double Extra Large Instance',
352
+ :bits => 64,
353
+ :cores => 8,
354
+ :disk => 0,
355
+ :ram => 34360,
356
+ :ebs_optimized_available => true,
357
+ :instance_store_volumes => 0
358
+ },
289
359
  {
290
360
  :id => 'm6g.medium',
291
361
  :name => 'M6G Medium',
@@ -2236,6 +2306,96 @@ module Fog
2236
2306
  :ebs_optimized_available => true,
2237
2307
  :instance_store_volumes => 2
2238
2308
  },
2309
+ {
2310
+ :id => 'x2gd.medium',
2311
+ :name => 'X2gd Medium Instance',
2312
+ :bits => 64,
2313
+ :cores => 1,
2314
+ :disk => 59,
2315
+ :ram => 17180,
2316
+ :ebs_optimized_available => true,
2317
+ :instance_store_volumes => 0
2318
+ },
2319
+ {
2320
+ :id => 'x2gd.large',
2321
+ :name => 'X2gd Large Instance',
2322
+ :bits => 64,
2323
+ :cores => 2,
2324
+ :disk => 118,
2325
+ :ram => 34360,
2326
+ :ebs_optimized_available => true,
2327
+ :instance_store_volumes => 0
2328
+ },
2329
+ {
2330
+ :id => 'x2gd.xlarge',
2331
+ :name => 'X2gd Extra Large Instance',
2332
+ :bits => 64,
2333
+ :cores => 4,
2334
+ :disk => 237,
2335
+ :ram => 68719,
2336
+ :ebs_optimized_available => true,
2337
+ :instance_store_volumes => 0
2338
+ },
2339
+ {
2340
+ :id => 'x2gd.2xlarge',
2341
+ :name => 'X2gd Double Extra Large Instance',
2342
+ :bits => 64,
2343
+ :cores => 8,
2344
+ :disk => 475,
2345
+ :ram => 137439,
2346
+ :ebs_optimized_available => true,
2347
+ :instance_store_volumes => 0
2348
+ },
2349
+ {
2350
+ :id => 'x2gd.4xlarge',
2351
+ :name => 'X2gd Quadruple Extra Large Instance',
2352
+ :bits => 64,
2353
+ :cores => 16,
2354
+ :disk => 950,
2355
+ :ram => 274878,
2356
+ :ebs_optimized_available => true,
2357
+ :instance_store_volumes => 0
2358
+ },
2359
+ {
2360
+ :id => 'x2gd.8xlarge',
2361
+ :name => 'X2gd Octuple Extra Large Instance',
2362
+ :bits => 64,
2363
+ :cores => 32,
2364
+ :disk => 1900,
2365
+ :ram => 549756,
2366
+ :ebs_optimized_available => true,
2367
+ :instance_store_volumes => 0
2368
+ },
2369
+ {
2370
+ :id => 'x2gd.12xlarge',
2371
+ :name => 'X2gd Twelve Extra Large Instance',
2372
+ :bits => 64,
2373
+ :cores => 48,
2374
+ :disk => 2850,
2375
+ :ram => 824634,
2376
+ :ebs_optimized_available => true,
2377
+ :instance_store_volumes => 0
2378
+ },
2379
+ {
2380
+ :id => 'x2gd.16xlarge',
2381
+ :name => 'X2gd Sixteen Extra Large Instance',
2382
+ :bits => 64,
2383
+ :cores => 64,
2384
+ :disk => 3800,
2385
+ :ram => 1099512,
2386
+ :ebs_optimized_available => true,
2387
+ :instance_store_volumes => 0
2388
+ },
2389
+ {
2390
+ :id => 'x2gd.metal',
2391
+ :name => 'X2gd Metal',
2392
+ :bits => 64,
2393
+ :cores => 64,
2394
+ :disk => 3800,
2395
+ :ram => 1099512,
2396
+ :ebs_optimized_available => true,
2397
+ :instance_store_volumes => 0
2398
+ },
2239
2399
  {
2240
2400
  :id => "u-6tb1.metal",
2241
2401
  :name => "U 6TB Metal",
@@ -14,7 +14,7 @@ module Fog
14
14
  when 'GroupName', 'PolicyName'
15
15
  @response[name] = value
16
16
  when 'PolicyDocument'
17
- @response['Policy'][name] = if decoded_string = URI.decode(value)
17
+ @response['Policy'][name] = if decoded_string = URI.decode_www_form_component(value)
18
18
  Fog::JSON.decode(decoded_string) rescue value
19
19
  else
20
20
  value
@@ -12,7 +12,7 @@ module Fog
12
12
  when 'RoleName', 'PolicyName'
13
13
  @response['Policy'][name] = value
14
14
  when 'PolicyDocument'
15
- @response['Policy'][name] = if decoded_string = URI.decode(value)
15
+ @response['Policy'][name] = if decoded_string = URI.decode_www_form_component(value)
16
16
  Fog::JSON.decode(decoded_string) rescue value
17
17
  else
18
18
  value
@@ -14,7 +14,7 @@ module Fog
14
14
  when 'UserName', 'PolicyName'
15
15
  @response['Policy'][name] = value
16
16
  when 'PolicyDocument'
17
- @response['Policy'][name] = if decoded_string = URI.decode(value)
17
+ @response['Policy'][name] = if decoded_string = URI.decode_www_form_component(value)
18
18
  Fog::JSON.decode(decoded_string) rescue value
19
19
  else
20
20
  value
@@ -18,7 +18,7 @@ module Fog
18
18
  when 'IsDefaultVersion'
19
19
  @version[name] = (value == 'true')
20
20
  when 'Document'
21
- @version[name] = if decoded_string = URI.decode(value)
21
+ @version[name] = if decoded_string = URI.decode_www_form_component(value)
22
22
  Fog::JSON.decode(decoded_string) rescue value
23
23
  else
24
24
  value
@@ -6,7 +6,7 @@ module Fog
6
6
  #
7
7
  def sync_clock
8
8
  response = begin
9
- get_service
9
+ Excon.get("#{@scheme}://#{@host}")
10
10
  rescue Excon::Errors::HTTPStatusError => error
11
11
  error.response
12
12
  end
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module AWS
3
- VERSION = "3.14.0"
3
+ VERSION = "3.15.0"
4
4
  end
5
5
  end
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: 3.14.0
4
+ version: 3.15.0
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: 2022-05-09 00:00:00.000000000 Z
12
+ date: 2022-09-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler