fog-aws 3.9.0 → 3.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8adda78ff8e95ea706342dc8aabe0c529e1fd26bdbf5ed63e0d63f1a4ab50a8c
4
- data.tar.gz: 5afbb4be420bd1cc45e6bfd54cc3c8711f63854a9a8906677f08bfdf007b637d
3
+ metadata.gz: c26ecb900344f1066e888bd42bea0bb74295915f367cea6fc9ee76987fccf3bd
4
+ data.tar.gz: 0267b3e9130ea0496810e4432da4d695a37ea959892d30020defc58b93a872d3
5
5
  SHA512:
6
- metadata.gz: c92f603e887e44f354d851a309401b87cb01e83cb4c83833c8fb33edeb15357e8a4b0b0c8ae9c6dfc96ff24f85664287b8cfa8fe5fde7fb90b344a47d9f90bae
7
- data.tar.gz: 4e4bdee040f173c7cbd19f89938e4cb93ce849feda86bb87bee20339ffee211434195fa1512b2426d70ca4e13152c4497db422d03881a2dfef7276b91d37c5bb
6
+ metadata.gz: b94b3169aac81043a5847d4f644d03274ddfc1454ac6704f0c3c534e9031d693ce0cde7f50fd0ae396c4225d9145eacc27ed9be774bb2a80854e2f9d19b66baa
7
+ data.tar.gz: b756f7198948b5f5971a6e78f4474525d2827d58f8a393d8e36fbc961806104f4e4d83e288a3d5845c9b94b595c047341e7a4d7f0258e45cdf21dcc4c6dbd71e
@@ -0,0 +1,10 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "bundler"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "daily"
7
+ - package-ecosystem: "github-actions"
8
+ directory: "/"
9
+ schedule:
10
+ interval: "daily"
@@ -0,0 +1,36 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
+ # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
+
8
+ name: Ruby
9
+
10
+ on:
11
+ push:
12
+ branches: [ master ]
13
+ pull_request:
14
+ branches: [ master ]
15
+
16
+ jobs:
17
+ test:
18
+
19
+ env:
20
+ BUNDLER_GEMFILE: gemfiles/Gemfile-edge
21
+ runs-on: ubuntu-latest
22
+ strategy:
23
+ matrix:
24
+ ruby-version: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', 'head']
25
+
26
+ steps:
27
+ - uses: actions/checkout@v2
28
+ - name: Set up Ruby
29
+ uses: ruby/setup-ruby@v1
30
+ with:
31
+ ruby-version: ${{ matrix.ruby-version }}
32
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
33
+ - name: Install dependencies
34
+ run: bundle install
35
+ - name: Run tests
36
+ run: bundle exec rake
@@ -0,0 +1,23 @@
1
+ name: Mark stale issues and pull requests
2
+
3
+ on:
4
+ schedule:
5
+ - cron: "30 1 * * *"
6
+
7
+ jobs:
8
+ stale:
9
+
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - uses: actions/stale@v3
14
+ with:
15
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
16
+ days-before-stale: 60
17
+ days-before-close: 7
18
+ exempt-issue-labels: 'pinned,security'
19
+ exempt-pr-labels: 'pinned,security'
20
+ stale-issue-message: 'This issue has been marked inactive and will be closed if no further activity occurs.'
21
+ stale-pr-message: 'This pr has been marked inactive and will be closed if no further activity occurs.'
22
+ stale-issue-label: 'no-issue-activity'
23
+ stale-pr-label: 'no-pr-activity'
data/CHANGELOG.md CHANGED
@@ -1,4 +1,27 @@
1
- # Change Log
1
+ # Changelog
2
+
3
+ ## [v3.10.0](https://github.com/fog/fog-aws/tree/v3.10.0) (2021-03-22)
4
+
5
+ [Full Changelog](https://github.com/fog/fog-aws/compare/v3.9.0...v3.10.0)
6
+
7
+ **Closed issues:**
8
+
9
+ - Fog::AWS::Storage timeout against S3 [\#599](https://github.com/fog/fog-aws/issues/599)
10
+ - Incorrect bucket redirection URL generation [\#594](https://github.com/fog/fog-aws/issues/594)
11
+ - Fully Support SSE-C encryption [\#571](https://github.com/fog/fog-aws/issues/571)
12
+ - Enable hibernation on creation of ec2 instance [\#566](https://github.com/fog/fog-aws/issues/566)
13
+ - Tests broken with fog-core 2.1.0 [\#504](https://github.com/fog/fog-aws/issues/504)
14
+ - changelog? [\#471](https://github.com/fog/fog-aws/issues/471)
15
+ - Changelog: Listing breaking changes [\#419](https://github.com/fog/fog-aws/issues/419)
16
+ - How to use iam\_instance\_profile? [\#342](https://github.com/fog/fog-aws/issues/342)
17
+ - how to support additional aws regions, e.g. cn-north-1 [\#164](https://github.com/fog/fog-aws/issues/164)
18
+ - Still empty content-encoding when it is not set [\#130](https://github.com/fog/fog-aws/issues/130)
19
+
20
+ **Merged pull requests:**
21
+
22
+ - Handle multiple versions of objects in multiple delete request [\#600](https://github.com/fog/fog-aws/pull/600) ([shanu-idrive](https://github.com/shanu-idrive))
23
+ - Add Truffleruby head to CI [\#596](https://github.com/fog/fog-aws/pull/596) ([gogainda](https://github.com/gogainda))
24
+ - Fixes domain name duplication in url [\#593](https://github.com/fog/fog-aws/pull/593) ([midhunkrishna](https://github.com/midhunkrishna))
2
25
 
3
26
  ## [v3.9.0](https://github.com/fog/fog-aws/tree/v3.9.0) (2021-03-02)
4
27
 
@@ -11,6 +34,7 @@
11
34
  - Enable test on Ruby 3.0 [\#591](https://github.com/fog/fog-aws/pull/591) ([voxik](https://github.com/voxik))
12
35
 
13
36
  ## [v3.8.0](https://github.com/fog/fog-aws/tree/v3.8.0) (2021-01-13)
37
+
14
38
  [Full Changelog](https://github.com/fog/fog-aws/compare/v3.7.0...v3.8.0)
15
39
 
16
40
  **Closed issues:**
@@ -25,6 +49,7 @@
25
49
  - Update .travis.yml [\#584](https://github.com/fog/fog-aws/pull/584) ([nageshlop](https://github.com/nageshlop))
26
50
 
27
51
  ## [v3.7.0](https://github.com/fog/fog-aws/tree/v3.7.0) (2020-12-01)
52
+
28
53
  [Full Changelog](https://github.com/fog/fog-aws/compare/v3.6.7...v3.7.0)
29
54
 
30
55
  **Closed issues:**
@@ -41,6 +66,7 @@
41
66
  - Add AssumeRoleWithWebIdentity to fetch\_credentials [\#576](https://github.com/fog/fog-aws/pull/576) ([jpac-run](https://github.com/jpac-run))
42
67
 
43
68
  ## [v3.6.7](https://github.com/fog/fog-aws/tree/v3.6.7) (2020-08-26)
69
+
44
70
  [Full Changelog](https://github.com/fog/fog-aws/compare/v3.6.6...v3.6.7)
45
71
 
46
72
  **Merged pull requests:**
@@ -48,6 +74,7 @@
48
74
  - S3 dot Region endpoint structure applied [\#574](https://github.com/fog/fog-aws/pull/574) ([gharutyunyan-vineti](https://github.com/gharutyunyan-vineti))
49
75
 
50
76
  ## [v3.6.6](https://github.com/fog/fog-aws/tree/v3.6.6) (2020-06-23)
77
+
51
78
  [Full Changelog](https://github.com/fog/fog-aws/compare/v3.6.5...v3.6.6)
52
79
 
53
80
  **Closed issues:**
@@ -62,6 +89,7 @@
62
89
  - Fix VPC model is\_default requires [\#567](https://github.com/fog/fog-aws/pull/567) ([biinari](https://github.com/biinari))
63
90
 
64
91
  ## [v3.6.5](https://github.com/fog/fog-aws/tree/v3.6.5) (2020-05-22)
92
+
65
93
  [Full Changelog](https://github.com/fog/fog-aws/compare/v3.6.4...v3.6.5)
66
94
 
67
95
  **Closed issues:**
@@ -76,6 +104,7 @@
76
104
  - Gracefully handle failure of IMDSv2 and allow fallback to IMDSv1 [\#562](https://github.com/fog/fog-aws/pull/562) ([atyndall](https://github.com/atyndall))
77
105
 
78
106
  ## [v3.6.4](https://github.com/fog/fog-aws/tree/v3.6.4) (2020-05-14)
107
+
79
108
  [Full Changelog](https://github.com/fog/fog-aws/compare/v3.6.3...v3.6.4)
80
109
 
81
110
  **Closed issues:**
@@ -88,6 +117,7 @@
88
117
  - Don’t install development scripts [\#557](https://github.com/fog/fog-aws/pull/557) ([amarshall](https://github.com/amarshall))
89
118
 
90
119
  ## [v3.6.3](https://github.com/fog/fog-aws/tree/v3.6.3) (2020-04-22)
120
+
91
121
  [Full Changelog](https://github.com/fog/fog-aws/compare/v3.6.2...v3.6.3)
92
122
 
93
123
  **Merged pull requests:**
@@ -97,6 +127,7 @@
97
127
  - Update kinesis.rb [\#553](https://github.com/fog/fog-aws/pull/553) ([ioquatix](https://github.com/ioquatix))
98
128
 
99
129
  ## [v3.6.2](https://github.com/fog/fog-aws/tree/v3.6.2) (2020-03-24)
130
+
100
131
  [Full Changelog](https://github.com/fog/fog-aws/compare/v3.5.2...v3.6.2)
101
132
 
102
133
  **Closed issues:**
@@ -127,6 +158,7 @@
127
158
  - Fix subnet's parsings [\#529](https://github.com/fog/fog-aws/pull/529) ([KevinLoiseau](https://github.com/KevinLoiseau))
128
159
 
129
160
  ## [v3.5.2](https://github.com/fog/fog-aws/tree/v3.5.2) (2019-07-16)
161
+
130
162
  [Full Changelog](https://github.com/fog/fog-aws/compare/v3.5.1...v3.5.2)
131
163
 
132
164
  **Closed issues:**
@@ -141,6 +173,7 @@
141
173
  - Make S3 Signature v4 streaming optional [\#525](https://github.com/fog/fog-aws/pull/525) ([stanhu](https://github.com/stanhu))
142
174
 
143
175
  ## [v3.5.1](https://github.com/fog/fog-aws/tree/v3.5.1) (2019-06-10)
176
+
144
177
  [Full Changelog](https://github.com/fog/fog-aws/compare/v3.5.0...v3.5.1)
145
178
 
146
179
  **Merged pull requests:**
@@ -149,6 +182,7 @@
149
182
  - Add support for generating tree hash tests by adding unaligned parts. [\#521](https://github.com/fog/fog-aws/pull/521) ([hkmaly](https://github.com/hkmaly))
150
183
 
151
184
  ## [v3.5.0](https://github.com/fog/fog-aws/tree/v3.5.0) (2019-04-25)
185
+
152
186
  [Full Changelog](https://github.com/fog/fog-aws/compare/v3.4.0...v3.5.0)
153
187
 
154
188
  **Closed issues:**
@@ -163,6 +197,7 @@
163
197
  - Enhance/add attribute db subnet group for db instance [\#511](https://github.com/fog/fog-aws/pull/511) ([KevinLoiseau](https://github.com/KevinLoiseau))
164
198
 
165
199
  ## [v3.4.0](https://github.com/fog/fog-aws/tree/v3.4.0) (2019-03-11)
200
+
166
201
  [Full Changelog](https://github.com/fog/fog-aws/compare/v3.3.0...v3.4.0)
167
202
 
168
203
  **Closed issues:**
@@ -201,6 +236,7 @@
201
236
  - add tags for describe address [\#474](https://github.com/fog/fog-aws/pull/474) ([toubs13](https://github.com/toubs13))
202
237
 
203
238
  ## [v3.3.0](https://github.com/fog/fog-aws/tree/v3.3.0) (2018-09-18)
239
+
204
240
  [Full Changelog](https://github.com/fog/fog-aws/compare/v3.2.0...v3.3.0)
205
241
 
206
242
  **Merged pull requests:**
@@ -208,6 +244,7 @@
208
244
  - Rename CDN::AWS to AWS::CDN [\#467](https://github.com/fog/fog-aws/pull/467) ([jaredbeck](https://github.com/jaredbeck))
209
245
 
210
246
  ## [v3.2.0](https://github.com/fog/fog-aws/tree/v3.2.0) (2018-09-17)
247
+
211
248
  [Full Changelog](https://github.com/fog/fog-aws/compare/v3.1.0...v3.2.0)
212
249
 
213
250
  **Merged pull requests:**
@@ -217,6 +254,7 @@
217
254
  - Rename Compute::AWS to AWS::Compute [\#468](https://github.com/fog/fog-aws/pull/468) ([sue445](https://github.com/sue445))
218
255
 
219
256
  ## [v3.1.0](https://github.com/fog/fog-aws/tree/v3.1.0) (2018-09-17)
257
+
220
258
  [Full Changelog](https://github.com/fog/fog-aws/compare/v3.0.0...v3.1.0)
221
259
 
222
260
  **Closed issues:**
@@ -248,6 +286,7 @@
248
286
  - SetInstanceProtection endpoint for auto scaling groups support [\#436](https://github.com/fog/fog-aws/pull/436) ([thorn](https://github.com/thorn))
249
287
 
250
288
  ## [v3.0.0](https://github.com/fog/fog-aws/tree/v3.0.0) (2018-04-23)
289
+
251
290
  [Full Changelog](https://github.com/fog/fog-aws/compare/v2.0.1...v3.0.0)
252
291
 
253
292
  **Closed issues:**
@@ -265,6 +304,7 @@
265
304
  - fog-core 2.x, fog-json 1.x [\#433](https://github.com/fog/fog-aws/pull/433) ([lanej](https://github.com/lanej))
266
305
 
267
306
  ## [v2.0.1](https://github.com/fog/fog-aws/tree/v2.0.1) (2018-02-28)
307
+
268
308
  [Full Changelog](https://github.com/fog/fog-aws/compare/v2.0.0...v2.0.1)
269
309
 
270
310
  **Closed issues:**
@@ -282,6 +322,7 @@
282
322
  - add france \(eu-west-3\) new region, fix \#424 [\#425](https://github.com/fog/fog-aws/pull/425) ([Val](https://github.com/Val))
283
323
 
284
324
  ## [v2.0.0](https://github.com/fog/fog-aws/tree/v2.0.0) (2017-11-28)
325
+
285
326
  [Full Changelog](https://github.com/fog/fog-aws/compare/v1.4.1...v2.0.0)
286
327
 
287
328
  **Closed issues:**
@@ -307,7 +348,7 @@
307
348
  - Update rds instance options model [\#406](https://github.com/fog/fog-aws/pull/406) ([carloslima](https://github.com/carloslima))
308
349
  - Drop Ruby\<2.0 support [\#405](https://github.com/fog/fog-aws/pull/405) ([tbrisker](https://github.com/tbrisker))
309
350
  - allow Gemfile-edge travis builds to fail [\#403](https://github.com/fog/fog-aws/pull/403) ([lanej](https://github.com/lanej))
310
- - Add `default\_for\_az` attribute to subnet [\#402](https://github.com/fog/fog-aws/pull/402) ([rzaharenkov](https://github.com/rzaharenkov))
351
+ - Add `default_for_az` attribute to subnet [\#402](https://github.com/fog/fog-aws/pull/402) ([rzaharenkov](https://github.com/rzaharenkov))
311
352
  - bundler ~\> 1.15 [\#399](https://github.com/fog/fog-aws/pull/399) ([lanej](https://github.com/lanej))
312
353
  - Fix detaching instances from auto scaling group. [\#397](https://github.com/fog/fog-aws/pull/397) ([rzaharenkov](https://github.com/rzaharenkov))
313
354
  - Issue \#387 Fog::Compute::AWS::Vpcs returns VPCs with nil ids [\#396](https://github.com/fog/fog-aws/pull/396) ([maguec](https://github.com/maguec))
@@ -319,6 +360,7 @@
319
360
  - fix default\_security\_group detection [\#348](https://github.com/fog/fog-aws/pull/348) ([lanej](https://github.com/lanej))
320
361
 
321
362
  ## [v1.4.1](https://github.com/fog/fog-aws/tree/v1.4.1) (2017-08-23)
363
+
322
364
  [Full Changelog](https://github.com/fog/fog-aws/compare/v1.4.0...v1.4.1)
323
365
 
324
366
  **Closed issues:**
@@ -338,6 +380,7 @@
338
380
  - Fix AWS credential mocking [\#374](https://github.com/fog/fog-aws/pull/374) ([v-yarotsky](https://github.com/v-yarotsky))
339
381
 
340
382
  ## [v1.4.0](https://github.com/fog/fog-aws/tree/v1.4.0) (2017-06-14)
383
+
341
384
  [Full Changelog](https://github.com/fog/fog-aws/compare/v1.3.0...v1.4.0)
342
385
 
343
386
  **Closed issues:**
@@ -359,6 +402,7 @@
359
402
  - Skip call to instance metadata host if region is specified [\#360](https://github.com/fog/fog-aws/pull/360) ([ankane](https://github.com/ankane))
360
403
 
361
404
  ## [v1.3.0](https://github.com/fog/fog-aws/tree/v1.3.0) (2017-03-29)
405
+
362
406
  [Full Changelog](https://github.com/fog/fog-aws/compare/v1.2.1...v1.3.0)
363
407
 
364
408
  **Closed issues:**
@@ -374,6 +418,7 @@
374
418
  - Modify volume [\#350](https://github.com/fog/fog-aws/pull/350) ([ehowe](https://github.com/ehowe))
375
419
 
376
420
  ## [v1.2.1](https://github.com/fog/fog-aws/tree/v1.2.1) (2017-02-27)
421
+
377
422
  [Full Changelog](https://github.com/fog/fog-aws/compare/v1.2.0...v1.2.1)
378
423
 
379
424
  **Closed issues:**
@@ -389,6 +434,7 @@
389
434
  - Fix multipart upload [\#340](https://github.com/fog/fog-aws/pull/340) ([nobmurakita](https://github.com/nobmurakita))
390
435
 
391
436
  ## [v1.2.0](https://github.com/fog/fog-aws/tree/v1.2.0) (2017-01-20)
437
+
392
438
  [Full Changelog](https://github.com/fog/fog-aws/compare/v1.1.0...v1.2.0)
393
439
 
394
440
  **Closed issues:**
@@ -403,6 +449,7 @@
403
449
  - Fixes / improvements for AutoScaling [\#334](https://github.com/fog/fog-aws/pull/334) ([lanej](https://github.com/lanej))
404
450
 
405
451
  ## [v1.1.0](https://github.com/fog/fog-aws/tree/v1.1.0) (2016-12-16)
452
+
406
453
  [Full Changelog](https://github.com/fog/fog-aws/compare/v1.0.0...v1.1.0)
407
454
 
408
455
  **Closed issues:**
@@ -417,6 +464,7 @@
417
464
  - credential\_fetcher: Mark AWS metadata calls as idempotent [\#329](https://github.com/fog/fog-aws/pull/329) ([mtekel](https://github.com/mtekel))
418
465
 
419
466
  ## [v1.0.0](https://github.com/fog/fog-aws/tree/v1.0.0) (2016-12-12)
467
+
420
468
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.13.0...v1.0.0)
421
469
 
422
470
  **Merged pull requests:**
@@ -427,6 +475,7 @@
427
475
  - data pipeline mocks [\#318](https://github.com/fog/fog-aws/pull/318) ([ehowe](https://github.com/ehowe))
428
476
 
429
477
  ## [v0.13.0](https://github.com/fog/fog-aws/tree/v0.13.0) (2016-11-29)
478
+
430
479
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.12.0...v0.13.0)
431
480
 
432
481
  **Closed issues:**
@@ -445,7 +494,7 @@
445
494
  - Fixed some missing parts in change sets [\#322](https://github.com/fog/fog-aws/pull/322) ([nilroy](https://github.com/nilroy))
446
495
  - Add creation date and enhanced networking support for images [\#321](https://github.com/fog/fog-aws/pull/321) ([puneetloya](https://github.com/puneetloya))
447
496
  - Fix warnings in running tests [\#319](https://github.com/fog/fog-aws/pull/319) ([ebihara99999](https://github.com/ebihara99999))
448
- - Add `Fog::AWS::STS.Mock\#assume\_role` [\#316](https://github.com/fog/fog-aws/pull/316) ([pedrommonteiro](https://github.com/pedrommonteiro))
497
+ - Add `Fog::AWS::STS.Mock#assume_role` [\#316](https://github.com/fog/fog-aws/pull/316) ([pedrommonteiro](https://github.com/pedrommonteiro))
449
498
  - Ohio region [\#314](https://github.com/fog/fog-aws/pull/314) ([chanakyacool](https://github.com/chanakyacool))
450
499
  - mime types gem update [\#312](https://github.com/fog/fog-aws/pull/312) ([lucianosousa](https://github.com/lucianosousa))
451
500
  - fix S3 \#delete\_multiple\_objects for UTF-8 names [\#310](https://github.com/fog/fog-aws/pull/310) ([alepore](https://github.com/alepore))
@@ -455,6 +504,7 @@
455
504
  - Modify Db subnet group [\#293](https://github.com/fog/fog-aws/pull/293) ([chanakyacool](https://github.com/chanakyacool))
456
505
 
457
506
  ## [v0.12.0](https://github.com/fog/fog-aws/tree/v0.12.0) (2016-09-22)
507
+
458
508
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.11.0...v0.12.0)
459
509
 
460
510
  **Implemented enhancements:**
@@ -476,6 +526,7 @@
476
526
  - Cloud Formation: support for change sets, stack policy and other missing calls. [\#297](https://github.com/fog/fog-aws/pull/297) ([neillturner](https://github.com/neillturner))
477
527
 
478
528
  ## [v0.11.0](https://github.com/fog/fog-aws/tree/v0.11.0) (2016-08-04)
529
+
479
530
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.10.0...v0.11.0)
480
531
 
481
532
  **Merged pull requests:**
@@ -487,6 +538,7 @@
487
538
  - Change DBSubnetGroup to DBSubnetGroupName model cluster while creation [\#279](https://github.com/fog/fog-aws/pull/279) ([chanakyacool](https://github.com/chanakyacool))
488
539
 
489
540
  ## [v0.10.0](https://github.com/fog/fog-aws/tree/v0.10.0) (2016-07-15)
541
+
490
542
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.9.4...v0.10.0)
491
543
 
492
544
  **Closed issues:**
@@ -504,6 +556,7 @@
504
556
  - add default region to use\_iam\_profile [\#268](https://github.com/fog/fog-aws/pull/268) ([shaiguitar](https://github.com/shaiguitar))
505
557
 
506
558
  ## [v0.9.4](https://github.com/fog/fog-aws/tree/v0.9.4) (2016-06-28)
559
+
507
560
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.9.3...v0.9.4)
508
561
 
509
562
  **Closed issues:**
@@ -518,6 +571,7 @@
518
571
  - AWS DNS - support newer DNS hosted zone IDs for dualstack ELBs [\#263](https://github.com/fog/fog-aws/pull/263) ([mattheworiordan](https://github.com/mattheworiordan))
519
572
 
520
573
  ## [v0.9.3](https://github.com/fog/fog-aws/tree/v0.9.3) (2016-06-20)
574
+
521
575
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.9.2...v0.9.3)
522
576
 
523
577
  **Closed issues:**
@@ -525,7 +579,7 @@
525
579
  - Users list is empty in Fog::AWS::IAM::Groups [\#256](https://github.com/fog/fog-aws/issues/256)
526
580
  - I'd like to configure my Excon read\_timeout and write\_timeout [\#254](https://github.com/fog/fog-aws/issues/254)
527
581
  - Bump fog-core to \>=1.38.0 [\#247](https://github.com/fog/fog-aws/issues/247)
528
- - no implicit conversion of Array into String in `aws/storage.rb` from `bucket\_name` in params. [\#246](https://github.com/fog/fog-aws/issues/246)
582
+ - no implicit conversion of Array into String in `aws/storage.rb` from `bucket_name` in params. [\#246](https://github.com/fog/fog-aws/issues/246)
529
583
  - \[S3\] Bucket name gets duplicated in case of redirect from AWS [\#242](https://github.com/fog/fog-aws/issues/242)
530
584
  - CloudFormation stack tags cause describe\_stacks to break [\#240](https://github.com/fog/fog-aws/issues/240)
531
585
 
@@ -540,6 +594,7 @@
540
594
  - Add log warning message about when not on us-region [\#200](https://github.com/fog/fog-aws/pull/200) ([kitofr](https://github.com/kitofr))
541
595
 
542
596
  ## [v0.9.2](https://github.com/fog/fog-aws/tree/v0.9.2) (2016-03-23)
597
+
543
598
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.9.1...v0.9.2)
544
599
 
545
600
  **Closed issues:**
@@ -551,9 +606,11 @@
551
606
  - Aurora [\#238](https://github.com/fog/fog-aws/pull/238) ([ehowe](https://github.com/ehowe))
552
607
 
553
608
  ## [v0.9.1](https://github.com/fog/fog-aws/tree/v0.9.1) (2016-03-04)
609
+
554
610
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.8.2...v0.9.1)
555
611
 
556
612
  ## [v0.8.2](https://github.com/fog/fog-aws/tree/v0.8.2) (2016-03-04)
613
+
557
614
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.9.0...v0.8.2)
558
615
 
559
616
  **Merged pull requests:**
@@ -561,6 +618,7 @@
561
618
  - autoscaler attach/detatch [\#229](https://github.com/fog/fog-aws/pull/229) ([shaiguitar](https://github.com/shaiguitar))
562
619
 
563
620
  ## [v0.9.0](https://github.com/fog/fog-aws/tree/v0.9.0) (2016-03-03)
621
+
564
622
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.8.1...v0.9.0)
565
623
 
566
624
  **Closed issues:**
@@ -581,6 +639,7 @@
581
639
  - restore db instance fom db snapshot [\#217](https://github.com/fog/fog-aws/pull/217) ([ehowe](https://github.com/ehowe))
582
640
 
583
641
  ## [v0.8.1](https://github.com/fog/fog-aws/tree/v0.8.1) (2016-01-08)
642
+
584
643
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.8.0...v0.8.1)
585
644
 
586
645
  **Merged pull requests:**
@@ -588,6 +647,7 @@
588
647
  - Add new aws regions [\#213](https://github.com/fog/fog-aws/pull/213) ([atmos](https://github.com/atmos))
589
648
 
590
649
  ## [v0.8.0](https://github.com/fog/fog-aws/tree/v0.8.0) (2016-01-04)
650
+
591
651
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.7.6...v0.8.0)
592
652
 
593
653
  **Fixed bugs:**
@@ -628,6 +688,7 @@
628
688
  - properly mock rds name update [\#170](https://github.com/fog/fog-aws/pull/170) ([ehowe](https://github.com/ehowe))
629
689
 
630
690
  ## [v0.7.6](https://github.com/fog/fog-aws/tree/v0.7.6) (2015-08-26)
691
+
631
692
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.7.5...v0.7.6)
632
693
 
633
694
  **Closed issues:**
@@ -640,6 +701,7 @@
640
701
  - Mocked put\_bucket no longer clobbers existing bucket [\#174](https://github.com/fog/fog-aws/pull/174) ([jgr](https://github.com/jgr))
641
702
 
642
703
  ## [v0.7.5](https://github.com/fog/fog-aws/tree/v0.7.5) (2015-08-24)
704
+
643
705
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.7.4...v0.7.5)
644
706
 
645
707
  **Closed issues:**
@@ -661,6 +723,7 @@
661
723
  - update \#promote\_read\_replica mock [\#158](https://github.com/fog/fog-aws/pull/158) ([lanej](https://github.com/lanej))
662
724
 
663
725
  ## [v0.7.4](https://github.com/fog/fog-aws/tree/v0.7.4) (2015-07-30)
726
+
664
727
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.7.3...v0.7.4)
665
728
 
666
729
  **Fixed bugs:**
@@ -672,6 +735,7 @@
672
735
  - AutoScaling attach/detach ELB support + tests [\#156](https://github.com/fog/fog-aws/pull/156) ([nbfowler](https://github.com/nbfowler))
673
736
 
674
737
  ## [v0.7.3](https://github.com/fog/fog-aws/tree/v0.7.3) (2015-07-10)
738
+
675
739
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.7.2...v0.7.3)
676
740
 
677
741
  **Closed issues:**
@@ -683,6 +747,7 @@
683
747
  - encrypted storage on rds [\#153](https://github.com/fog/fog-aws/pull/153) ([ehowe](https://github.com/ehowe))
684
748
 
685
749
  ## [v0.7.2](https://github.com/fog/fog-aws/tree/v0.7.2) (2015-07-08)
750
+
686
751
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.7.1...v0.7.2)
687
752
 
688
753
  **Fixed bugs:**
@@ -694,6 +759,7 @@
694
759
  - fix \#change\_resource\_record\_sets [\#151](https://github.com/fog/fog-aws/pull/151) ([lanej](https://github.com/lanej))
695
760
 
696
761
  ## [v0.7.1](https://github.com/fog/fog-aws/tree/v0.7.1) (2015-07-08)
762
+
697
763
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.7.0...v0.7.1)
698
764
 
699
765
  **Merged pull requests:**
@@ -702,6 +768,7 @@
702
768
  - Fix blank content-encoding headers [\#147](https://github.com/fog/fog-aws/pull/147) ([fcheung](https://github.com/fcheung))
703
769
 
704
770
  ## [v0.7.0](https://github.com/fog/fog-aws/tree/v0.7.0) (2015-07-07)
771
+
705
772
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.6.0...v0.7.0)
706
773
 
707
774
  **Closed issues:**
@@ -718,6 +785,7 @@
718
785
  - list\_hosted\_zones expects that options to be hash with symbol as key [\#139](https://github.com/fog/fog-aws/pull/139) ([slashmili](https://github.com/slashmili))
719
786
 
720
787
  ## [v0.6.0](https://github.com/fog/fog-aws/tree/v0.6.0) (2015-06-23)
788
+
721
789
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.5.0...v0.6.0)
722
790
 
723
791
  **Merged pull requests:**
@@ -725,6 +793,7 @@
725
793
  - Add support for AWS Lambda service [\#123](https://github.com/fog/fog-aws/pull/123) ([nomadium](https://github.com/nomadium))
726
794
 
727
795
  ## [v0.5.0](https://github.com/fog/fog-aws/tree/v0.5.0) (2015-06-17)
796
+
728
797
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.4.1...v0.5.0)
729
798
 
730
799
  **Merged pull requests:**
@@ -734,6 +803,7 @@
734
803
  - Add support for EC2 Container Service [\#120](https://github.com/fog/fog-aws/pull/120) ([nomadium](https://github.com/nomadium))
735
804
 
736
805
  ## [v0.4.1](https://github.com/fog/fog-aws/tree/v0.4.1) (2015-06-15)
806
+
737
807
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.4.0...v0.4.1)
738
808
 
739
809
  **Closed issues:**
@@ -753,6 +823,7 @@
753
823
  - model managed policies [\#126](https://github.com/fog/fog-aws/pull/126) ([lanej](https://github.com/lanej))
754
824
 
755
825
  ## [v0.4.0](https://github.com/fog/fog-aws/tree/v0.4.0) (2015-05-27)
826
+
756
827
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.3.0...v0.4.0)
757
828
 
758
829
  **Merged pull requests:**
@@ -760,6 +831,7 @@
760
831
  - model iam groups [\#121](https://github.com/fog/fog-aws/pull/121) ([lanej](https://github.com/lanej))
761
832
 
762
833
  ## [v0.3.0](https://github.com/fog/fog-aws/tree/v0.3.0) (2015-05-21)
834
+
763
835
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.2.2...v0.3.0)
764
836
 
765
837
  **Closed issues:**
@@ -772,9 +844,11 @@
772
844
  - Added a new request - describe\_instance\_attribute [\#110](https://github.com/fog/fog-aws/pull/110) ([nilroy](https://github.com/nilroy))
773
845
 
774
846
  ## [v0.2.2](https://github.com/fog/fog-aws/tree/v0.2.2) (2015-05-13)
847
+
775
848
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.2.1...v0.2.2)
776
849
 
777
850
  ## [v0.2.1](https://github.com/fog/fog-aws/tree/v0.2.1) (2015-05-13)
851
+
778
852
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.2.0...v0.2.1)
779
853
 
780
854
  **Merged pull requests:**
@@ -782,6 +856,7 @@
782
856
  - mocks for topic permissions [\#111](https://github.com/fog/fog-aws/pull/111) ([lanej](https://github.com/lanej))
783
857
 
784
858
  ## [v0.2.0](https://github.com/fog/fog-aws/tree/v0.2.0) (2015-05-13)
859
+
785
860
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.1.2...v0.2.0)
786
861
 
787
862
  **Implemented enhancements:**
@@ -815,6 +890,7 @@
815
890
  - Add mock for EC2 describe\_spot\_price\_history API request [\#84](https://github.com/fog/fog-aws/pull/84) ([nomadium](https://github.com/nomadium))
816
891
 
817
892
  ## [v0.1.2](https://github.com/fog/fog-aws/tree/v0.1.2) (2015-04-07)
893
+
818
894
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.1.1...v0.1.2)
819
895
 
820
896
  **Closed issues:**
@@ -844,6 +920,7 @@
844
920
  - Add support for cname buckets [\#61](https://github.com/fog/fog-aws/pull/61) ([dsgh](https://github.com/dsgh))
845
921
 
846
922
  ## [v0.1.1](https://github.com/fog/fog-aws/tree/v0.1.1) (2015-02-25)
923
+
847
924
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.1.0...v0.1.1)
848
925
 
849
926
  **Closed issues:**
@@ -865,6 +942,7 @@
865
942
  - don't allow sg authorization to unknown sgs [\#49](https://github.com/fog/fog-aws/pull/49) ([lanej](https://github.com/lanej))
866
943
 
867
944
  ## [v0.1.0](https://github.com/fog/fog-aws/tree/v0.1.0) (2015-02-03)
945
+
868
946
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.0.8...v0.1.0)
869
947
 
870
948
  **Closed issues:**
@@ -876,21 +954,11 @@
876
954
  - Fix v4 signature when path has repeated slashes in the middle [\#46](https://github.com/fog/fog-aws/pull/46) ([fcheung](https://github.com/fcheung))
877
955
  - get signin token for federation [\#45](https://github.com/fog/fog-aws/pull/45) ([ehowe](https://github.com/ehowe))
878
956
  - add 'volumeType' and 'encrypted' to blockDeviceMapping parser [\#43](https://github.com/fog/fog-aws/pull/43) ([ichii386](https://github.com/ichii386))
879
- - default namespace and evaluation period on alarm [\#37](https://github.com/fog/fog-aws/pull/37) ([michelleN](https://github.com/michelleN))
880
-
881
- ## [v0.0.8](https://github.com/fog/fog-aws/tree/v0.0.8) (2015-01-27)
882
- [Full Changelog](https://github.com/fog/fog-aws/compare/v0.0.7...v0.0.8)
883
-
884
- **Closed issues:**
885
-
886
- - NoMethodError - undefined method `signature\_parameters' for nil:NilClass [\#28](https://github.com/fog/fog-aws/issues/28)
887
-
888
- **Merged pull requests:**
889
-
890
957
  - add missing mocks [\#41](https://github.com/fog/fog-aws/pull/41) ([michelleN](https://github.com/michelleN))
891
958
  - Add idempotent excon option to some route53 API calls [\#40](https://github.com/fog/fog-aws/pull/40) ([josacar](https://github.com/josacar))
892
959
  - Allow for AWS errors not specifying region [\#39](https://github.com/fog/fog-aws/pull/39) ([greysteil](https://github.com/greysteil))
893
960
  - correct engine version param on rds replicas [\#38](https://github.com/fog/fog-aws/pull/38) ([lanej](https://github.com/lanej))
961
+ - default namespace and evaluation period on alarm [\#37](https://github.com/fog/fog-aws/pull/37) ([michelleN](https://github.com/michelleN))
894
962
  - \[AWS|Autoscaling\] Add missing ebs attributes to describe\_launch\_configurations [\#35](https://github.com/fog/fog-aws/pull/35) ([fcheung](https://github.com/fcheung))
895
963
  - \[AWS|Storage\] signed\_url should use v2 signature when aws\_signature\_version is 2 [\#34](https://github.com/fog/fog-aws/pull/34) ([fcheung](https://github.com/fcheung))
896
964
  - BUGFIX: When fog\_credentials endpoint is set @region defaults to nil [\#33](https://github.com/fog/fog-aws/pull/33) ([nicholasklick](https://github.com/nicholasklick))
@@ -899,7 +967,16 @@
899
967
  - Add PlacementTenancy to launch configuration parser and test case [\#29](https://github.com/fog/fog-aws/pull/29) ([benpillet](https://github.com/benpillet))
900
968
  - Use Fog::Formatador [\#27](https://github.com/fog/fog-aws/pull/27) ([ghost](https://github.com/ghost))
901
969
 
970
+ ## [v0.0.8](https://github.com/fog/fog-aws/tree/v0.0.8) (2015-01-27)
971
+
972
+ [Full Changelog](https://github.com/fog/fog-aws/compare/v0.0.7...v0.0.8)
973
+
974
+ **Closed issues:**
975
+
976
+ - NoMethodError - undefined method `signature\_parameters' for nil:NilClass [\#28](https://github.com/fog/fog-aws/issues/28)
977
+
902
978
  ## [v0.0.7](https://github.com/fog/fog-aws/tree/v0.0.7) (2015-01-23)
979
+
903
980
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.0.6...v0.0.7)
904
981
 
905
982
  **Closed issues:**
@@ -912,6 +989,7 @@
912
989
  - Support for VPC Classic Link [\#3](https://github.com/fog/fog-aws/pull/3) ([fcheung](https://github.com/fcheung))
913
990
 
914
991
  ## [v0.0.6](https://github.com/fog/fog-aws/tree/v0.0.6) (2015-01-12)
992
+
915
993
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.0.5...v0.0.6)
916
994
 
917
995
  **Closed issues:**
@@ -924,24 +1002,33 @@
924
1002
  - another attempt at s3 region redirecting [\#2](https://github.com/fog/fog-aws/pull/2) ([geemus](https://github.com/geemus))
925
1003
 
926
1004
  ## [v0.0.5](https://github.com/fog/fog-aws/tree/v0.0.5) (2015-01-06)
1005
+
927
1006
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.0.4...v0.0.5)
928
1007
 
929
1008
  ## [v0.0.4](https://github.com/fog/fog-aws/tree/v0.0.4) (2015-01-04)
1009
+
930
1010
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.0.3...v0.0.4)
931
1011
 
932
1012
  ## [v0.0.3](https://github.com/fog/fog-aws/tree/v0.0.3) (2015-01-02)
1013
+
933
1014
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.0.2...v0.0.3)
934
1015
 
935
1016
  ## [v0.0.2](https://github.com/fog/fog-aws/tree/v0.0.2) (2015-01-02)
1017
+
936
1018
  [Full Changelog](https://github.com/fog/fog-aws/compare/v0.0.1...v0.0.2)
937
1019
 
938
1020
  ## [v0.0.1](https://github.com/fog/fog-aws/tree/v0.0.1) (2015-01-02)
1021
+
939
1022
  [Full Changelog](https://github.com/fog/fog-aws/compare/rm...v0.0.1)
940
1023
 
941
1024
  ## [rm](https://github.com/fog/fog-aws/tree/rm) (2014-11-27)
1025
+
942
1026
  [Full Changelog](https://github.com/fog/fog-aws/compare/fog-brightbox_v0.0.1...rm)
943
1027
 
944
1028
  ## [fog-brightbox_v0.0.1](https://github.com/fog/fog-aws/tree/fog-brightbox_v0.0.1) (2014-02-19)
945
1029
 
1030
+ [Full Changelog](https://github.com/fog/fog-aws/compare/d496bcd266d584ffcded6e265e8166138a3fb22a...fog-brightbox_v0.0.1)
1031
+
1032
+
946
1033
 
947
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
1034
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Fog::Aws
2
2
 
3
3
  ![Gem Version](https://badge.fury.io/rb/fog-aws.svg)
4
- [![Build Status](https://travis-ci.org/fog/fog-aws.svg?branch=master)](https://travis-ci.org/fog/fog-aws)
4
+ [![Build Status](https://github.com/fog/fog-aws/actions/workflows/ruby.yml/badge.svg)](https://github.com/fog/fog-aws/workflows/ruby.yml)
5
5
  [![Test Coverage](https://codeclimate.com/github/fog/fog-aws/badges/coverage.svg)](https://codeclimate.com/github/fog/fog-aws)
6
6
  [![Code Climate](https://codeclimate.com/github/fog/fog-aws.svg)](https://codeclimate.com/github/fog/fog-aws)
7
7
 
data/fog-aws.gemspec CHANGED
@@ -21,8 +21,8 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.required_ruby_version = '>= 2.0.0'
23
23
 
24
- spec.add_development_dependency 'bundler', '~> 2.0'
25
- spec.add_development_dependency 'github_changelog_generator', '~> 1.14'
24
+ spec.add_development_dependency 'bundler'
25
+ spec.add_development_dependency 'github_changelog_generator', '~> 1.16'
26
26
  spec.add_development_dependency 'rake', '>= 12.3.3'
27
27
  spec.add_development_dependency 'rubyzip', '~> 1.3.0'
28
28
  spec.add_development_dependency 'shindo', '~> 0.3'
@@ -36,13 +36,20 @@ module Fog
36
36
  data << "<Quiet>true</Quiet>" if headers.delete(:quiet)
37
37
  version_ids = headers.delete('versionId')
38
38
  object_names.each do |object_name|
39
- data << "<Object>"
40
- data << "<Key>#{CGI.escapeHTML(object_name)}</Key>"
41
39
  object_version = version_ids.nil? ? nil : version_ids[object_name]
42
40
  if object_version
43
- data << "<VersionId>#{CGI.escapeHTML(object_version)}</VersionId>"
41
+ object_version = object_version.is_a?(String) ? [object_version] : object_version
42
+ object_version.each do |version_id|
43
+ data << "<Object>"
44
+ data << "<Key>#{CGI.escapeHTML(object_name)}</Key>"
45
+ data << "<VersionId>#{CGI.escapeHTML(version_id)}</VersionId>"
46
+ data << "</Object>"
47
+ end
48
+ else
49
+ data << "<Object>"
50
+ data << "<Key>#{CGI.escapeHTML(object_name)}</Key>"
51
+ data << "</Object>"
44
52
  end
45
- data << "</Object>"
46
53
  end
47
54
  data << "</Delete>"
48
55
 
@@ -72,10 +79,13 @@ module Fog
72
79
  response.body = { 'DeleteResult' => [] }
73
80
  version_ids = headers.delete('versionId')
74
81
  object_names.each do |object_name|
75
- object_version = version_ids.nil? ? nil : version_ids[object_name]
76
- response.body['DeleteResult'] << delete_object_helper(bucket,
77
- object_name,
78
- object_version)
82
+ object_version = version_ids.nil? ? [nil] : version_ids[object_name]
83
+ object_version = object_version.is_a?(String) ? [object_version] : object_version
84
+ object_version.each do |version_id|
85
+ response.body['DeleteResult'] << delete_object_helper(bucket,
86
+ object_name,
87
+ version_id)
88
+ end
79
89
  end
80
90
  else
81
91
  response.status = 404
@@ -284,10 +284,10 @@ module Fog
284
284
  path_style = params.fetch(:path_style, @path_style)
285
285
  if !path_style
286
286
  if COMPLIANT_BUCKET_NAMES !~ bucket_name
287
- Fog::Logger.warning("fog: the specified s3 bucket name(#{bucket_name}) is not a valid dns name, which will negatively impact performance. For details see: http://docs.amazonwebservices.com/AmazonS3/latest/dev/BucketRestrictions.html")
287
+ Fog::Logger.warning("fog: the specified s3 bucket name(#{bucket_name}) is not a valid dns name, which will negatively impact performance. For details see: https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html")
288
288
  path_style = true
289
289
  elsif scheme == 'https' && !path_style && bucket_name =~ /\./
290
- Fog::Logger.warning("fog: the specified s3 bucket name(#{bucket_name}) contains a '.' so is not accessible over https as a virtual hosted bucket, which will negatively impact performance. For details see: http://docs.amazonwebservices.com/AmazonS3/latest/dev/BucketRestrictions.html")
290
+ Fog::Logger.warning("fog: the specified s3 bucket name(#{bucket_name}) contains a '.' so is not accessible over https as a virtual hosted bucket, which will negatively impact performance. For details see: https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html")
291
291
  path_style = true
292
292
  end
293
293
  end
@@ -298,6 +298,8 @@ module Fog
298
298
  host = params.fetch(:cname, bucket_name)
299
299
  elsif path_style
300
300
  path = bucket_to_path bucket_name, path
301
+ elsif host.start_with?("#{bucket_name}.")
302
+ # no-op
301
303
  else
302
304
  host = [bucket_name, host].join('.')
303
305
  end
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module AWS
3
- VERSION = "3.9.0"
3
+ VERSION = "3.10.0"
4
4
  end
5
5
  end
@@ -1,4 +1,117 @@
1
1
  Shindo.tests("Storage[:aws] | directory", ["aws"]) do
2
+ tests('Fog::Storage[:aws]', "#request_params") do
3
+ def slice(hash, *args)
4
+ hash.select { |k, _| args.include?(k) }
5
+ end
6
+
7
+ instance = Fog::Storage[:aws]
8
+ method = instance.method(:request_params)
9
+
10
+ params = {bucket_name: 'profile-uploads', host: 'profile-uploads.s3.us-west-2.amazonaws.com'}
11
+ tests("given #{params}, request_params[:host]").returns("profile-uploads.s3.us-west-2.amazonaws.com") do
12
+ method.call(params)[:host]
13
+ end
14
+
15
+ params = {bucket_name: 'profile-uploads.johnsmith.net', cname: 'profile-uploads.johnsmith.net', virtual_host: true}
16
+ tests("given #{params}, request_params[:host]").returns("profile-uploads.johnsmith.net") do
17
+ method.call(params)[:host]
18
+ end
19
+
20
+ params = {bucket_name: 'profile-uploads.johnsmith.net', cname: 'profile-uploads.johnsmith.net', virtual_host: false}
21
+ tests("given #{params}, request_params[:host], request_params[:path]").
22
+ returns({host: "s3.amazonaws.com", path: "/profile-uploads.johnsmith.net/"}) do
23
+ slice(method.call(params), :host, :path)
24
+ end
25
+
26
+ params = {bucket_name: 'profile-uploads.johnsmith.net', bucket_cname: 'profile-uploads.johnsmith.net'}
27
+ tests("given #{params}, request_params[:host]").returns("profile-uploads.johnsmith.net") do
28
+ method.call(params)[:host]
29
+ end
30
+
31
+ params = {bucket_name: 'profile-uploads'}
32
+ tests("given #{params}, request_params[:path], request_params[:host]").
33
+ returns({path: "/", host: "profile-uploads.s3.amazonaws.com"}) do
34
+ slice(method.call(params), :path, :host)
35
+ end
36
+
37
+ params = {bucket_name: 'profile-uploads', path_style: true}
38
+ tests("given #{params}, request_params[:path], request_params[:host]").
39
+ returns({path: "/profile-uploads/", host: "s3.amazonaws.com"}) do
40
+ slice(method.call(params), :path, :host)
41
+ end
42
+
43
+ params = {bucket_name: 'profile-uploads', path_style: false}
44
+ tests("given #{params}, request_params[:path], request_params[:host]").
45
+ returns({path: "/", host: "profile-uploads.s3.amazonaws.com"}) do
46
+ slice(method.call(params), :path, :host)
47
+ end
48
+
49
+ params = {scheme: 'https', bucket_name: 'profile.uploads', path_style: false}
50
+ tests("given #{params}, request_params[:path], request_params[:host]").
51
+ returns(path: "/profile.uploads/", host: "s3.amazonaws.com") do
52
+ slice(method.call(params), :path, :host)
53
+ end
54
+
55
+ params = {:headers=>{:"Content-Type"=>"application/json"}}
56
+ tests("given #{params}, request_params[:headers]").returns({:"Content-Type"=>"application/json"}) do
57
+ method.call(params)[:headers]
58
+ end
59
+
60
+ params = {headers: {}}
61
+ tests("given #{params}, request_params[:headers]").returns({}) do
62
+ method.call(params)[:headers]
63
+ end
64
+
65
+ params = {scheme: 'http'}
66
+ tests("given #{params}, request_params[:scheme]").returns('http') do
67
+ method.call(params)[:scheme]
68
+ end
69
+
70
+ params = {}
71
+ tests("given #{params}, request_params[:scheme]").returns('https') do
72
+ method.call(params)[:scheme]
73
+ end
74
+
75
+ params = {scheme: 'http', port: 8080}
76
+ tests("given #{params} (default scheme), request_params[:port]").returns(8080) do
77
+ method.call(params)[:port]
78
+ end
79
+
80
+ params = {scheme: 'https', port: 443}
81
+ tests("given #{params}, request_params[:port]").returns(nil) do
82
+ method.call(params)[:port]
83
+ end
84
+
85
+ params = {}
86
+ tests("given #{params}, request_params[:host]").returns("s3.amazonaws.com") do
87
+ method.call(params)[:host]
88
+ end
89
+
90
+ params = {region: 'us-east-1'}
91
+ tests("given #{params}, request_params[:host]").returns("s3.amazonaws.com") do
92
+ method.call(params)[:host]
93
+ end
94
+
95
+ params = {region: 'us-west-2'}
96
+ tests("given #{params}, request_params[:host]").returns("s3.us-west-2.amazonaws.com") do
97
+ method.call(params)[:host]
98
+ end
99
+
100
+ params= {region: 'us-east-1', host: 's3.us-west-2.amazonaws.com'}
101
+ tests("given #{params}, request_params[:host]").returns("s3.us-west-2.amazonaws.com") do
102
+ method.call(params)[:host]
103
+ end
104
+
105
+ params = {object_name: 'image.png'}
106
+ tests("given #{params}, request_params[:host]").returns("/image.png") do
107
+ method.call(params)[:path]
108
+ end
109
+
110
+ params = {object_name: 'image.png', path: '/images/image.png'}
111
+ tests("given #{params}, request_params[:host]").returns("/images/image.png") do
112
+ method.call(params)[:path]
113
+ end
114
+ end
2
115
 
3
116
  directory_attributes = {
4
117
  :key => uniq_id('fogdirectorytests')
@@ -85,7 +198,5 @@ Shindo.tests("Storage[:aws] | directory", ["aws"]) do
85
198
  @instance.versioning?
86
199
  end
87
200
  end
88
-
89
201
  end
90
-
91
202
  end
@@ -158,7 +158,7 @@ Shindo.tests('Fog::Storage[:aws] | bucket requests', ["aws"]) do
158
158
  Fog::Storage[:aws].put_bucket_website(@aws_bucket_name, :IndexDocument => 'index.html')
159
159
  end
160
160
 
161
- tests("#put_bucket_website('#{@aws_bucket_name}', :RedirectAllRequestsTo => 'redirect.example..com')").succeeds do
161
+ tests("#put_bucket_website('#{@aws_bucket_name}', :RedirectAllRequestsTo => 'redirect.example.com')").succeeds do
162
162
  Fog::Storage[:aws].put_bucket_website(@aws_bucket_name, :RedirectAllRequestsTo => 'redirect.example.com')
163
163
  end
164
164
 
@@ -134,6 +134,44 @@ Shindo.tests('Fog::Storage[:aws] | versioning', ["aws"]) do
134
134
  end
135
135
  end
136
136
 
137
+ tests("deleting_multiple_objects_versions('#{@aws_bucket_name}", 'file') do
138
+ clear_bucket
139
+
140
+ bucket = Fog::Storage[:aws].directories.get(@aws_bucket_name)
141
+
142
+ file_count = 5
143
+ file_names = []
144
+ files = {}
145
+ file_count.times do |id|
146
+ file_names << "file_#{id}"
147
+ file_version_count = rand(1..5)
148
+ file_version_count.times do
149
+ files[file_names.last] = bucket.files.create(:body => 'a',
150
+ :key => file_names.last)
151
+ end
152
+ end
153
+
154
+ tests("deleting an object with multiple versions").returns(true) do
155
+ versions = Fog::Storage[:aws].get_bucket_object_versions(
156
+ @aws_bucket_name)
157
+ file_versions = {}
158
+ versions.body['Versions'].each do |version|
159
+ object = version[version.keys.first]
160
+ if file_versions[object['Key']]
161
+ file_versions[object['Key']] = file_versions[object['Key']] << object['VersionId']
162
+ else
163
+ file_versions[object['Key']] = [object['VersionId']]
164
+ end
165
+ end
166
+
167
+ Fog::Storage[:aws].delete_multiple_objects(@aws_bucket_name,
168
+ file_names, 'versionId' => file_versions)
169
+ versions = Fog::Storage[:aws].get_bucket_object_versions(
170
+ @aws_bucket_name)
171
+ versions.body['Versions'].empty?
172
+ end
173
+ end
174
+
137
175
  tests("deleting_multiple_objects('#{@aws_bucket_name}", 'file') do
138
176
  clear_bucket
139
177
 
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.9.0
4
+ version: 3.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Lane
@@ -9,36 +9,36 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-03-02 00:00:00.000000000 Z
12
+ date: 2021-03-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '2.0'
20
+ version: '0'
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - "~>"
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: '2.0'
27
+ version: '0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: github_changelog_generator
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '1.14'
34
+ version: '1.16'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '1.14'
41
+ version: '1.16'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rake
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -147,8 +147,10 @@ executables: []
147
147
  extensions: []
148
148
  extra_rdoc_files: []
149
149
  files:
150
+ - ".github/dependabot.yml"
151
+ - ".github/workflows/ruby.yml"
152
+ - ".github/workflows/stale.yml"
150
153
  - ".gitignore"
151
- - ".travis.yml"
152
154
  - CHANGELOG.md
153
155
  - CONTRIBUTING.md
154
156
  - CONTRIBUTORS.md
@@ -160,7 +162,6 @@ files:
160
162
  - bin/setup
161
163
  - fog-aws.gemspec
162
164
  - gemfiles/Gemfile-edge
163
- - gemfiles/Gemfile-ruby-2.0
164
165
  - lib/fog-aws.rb
165
166
  - lib/fog/aws.rb
166
167
  - lib/fog/aws/auto_scaling.rb
@@ -1461,7 +1462,6 @@ files:
1461
1462
  - lib/fog/aws/sts.rb
1462
1463
  - lib/fog/aws/support.rb
1463
1464
  - lib/fog/aws/version.rb
1464
- - stale.yml
1465
1465
  - tests/credentials_tests.rb
1466
1466
  - tests/helper.rb
1467
1467
  - tests/helpers/collection_helper.rb
data/.travis.yml DELETED
@@ -1,124 +0,0 @@
1
- language: ruby
2
- sudo: false
3
- script: bundle exec rake test
4
- branches:
5
- except:
6
- - "/\\Av\\d+\\Z/"
7
- matrix:
8
- fast_finish: true
9
- include:
10
- - rvm: 2.3.0
11
- gemfile: Gemfile
12
- - rvm: 2.3.0
13
- gemfile: gemfiles/Gemfile-edge
14
- - rvm: 2.4.0
15
- gemfile: Gemfile
16
- - rvm: 2.4.0
17
- gemfile: gemfiles/Gemfile-edge
18
- - rvm: 2.5.0
19
- gemfile: Gemfile
20
- - rvm: 2.5.0
21
- gemfile: gemfiles/Gemfile-edge
22
- - rvm: 2.6.6
23
- gemfile: Gemfile
24
- - rvm: 2.6.6
25
- gemfile: gemfiles/Gemfile-edge
26
- - rvm: 2.7.2
27
- gemfile: Gemfile
28
- - rvm: 2.7.2
29
- gemfile: gemfiles/Gemfile-edge
30
- - rvm: 3.0.0
31
- gemfile: gemfiles/Gemfile-edge
32
- - rvm: jruby-head
33
- gemfile: Gemfile
34
- # ppc64le specific changes
35
- - rvm: 2.3.0
36
- gemfile: Gemfile
37
- arch: ppc64le
38
- - rvm: 2.3.0
39
- arch: ppc64le
40
- gemfile: gemfiles/Gemfile-edge
41
- - rvm: 2.4.0
42
- arch: ppc64le
43
- gemfile: Gemfile
44
- - rvm: 2.4.0
45
- arch: ppc64le
46
- gemfile: gemfiles/Gemfile-edge
47
- - rvm: 2.5.0
48
- arch: ppc64le
49
- gemfile: Gemfile
50
- - rvm: 2.5.0
51
- arch: ppc64le
52
- gemfile: gemfiles/Gemfile-edge
53
- - rvm: 2.6.6
54
- arch: ppc64le
55
- gemfile: Gemfile
56
- - rvm: 2.6.6
57
- arch: ppc64le
58
- gemfile: gemfiles/Gemfile-edge
59
- - rvm: 2.7.2
60
- arch: ppc64le
61
- gemfile: Gemfile
62
- - rvm: 2.7.2
63
- arch: ppc64le
64
- gemfile: gemfiles/Gemfile-edge
65
- - rvm: jruby-head
66
- arch: ppc64le
67
- gemfile: Gemfile
68
-
69
- allow_failures:
70
- - rvm: jruby-head
71
- gemfile: Gemfile
72
- - rvm: 2.2.0
73
- gemfile: gemfiles/Gemfile-edge
74
- - rvm: 2.3.0
75
- gemfile: gemfiles/Gemfile-edge
76
- - rvm: 2.4.0
77
- gemfile: gemfiles/Gemfile-edge
78
- - rvm: 2.5.0
79
- gemfile: gemfiles/Gemfile-edge
80
- - rvm: 2.6.6
81
- gemfile: gemfiles/Gemfile-edge
82
- - rvm: 2.7.2
83
- gemfile: gemfiles/Gemfile-edge
84
- # ppc64le specific changes
85
- - rvm: jruby-head
86
- arch: ppc64le
87
- gemfile: Gemfile
88
- - rvm: 2.2.0
89
- arch: ppc64le
90
- gemfile: gemfiles/Gemfile-edge
91
- - rvm: 2.3.0
92
- arch: ppc64le
93
- gemfile: gemfiles/Gemfile-edge
94
- - rvm: 2.4.0
95
- arch: ppc64le
96
- gemfile: gemfiles/Gemfile-edge
97
- - rvm: 2.5.0
98
- arch: ppc64le
99
- gemfile: gemfiles/Gemfile-edge
100
- - rvm: 2.6.6
101
- arch: ppc64le
102
- gemfile: gemfiles/Gemfile-edge
103
- - rvm: 2.7.2
104
- arch: ppc64le
105
- gemfile: gemfiles/Gemfile-edge
106
- notifications:
107
- email: false
108
- irc:
109
- channels:
110
- - irc.freenode.org#ruby-fog
111
- template:
112
- - "[#%{build_number}] %{message} %{build_url}"
113
- - "[#%{build_number}] %{commit} on %{branch} by %{author}"
114
- - "[#%{build_number}] %{compare_url}"
115
- on_success: always
116
- on_failure: always
117
- use_notice: false
118
- before_install:
119
- - gem update bundler
120
- env:
121
- global:
122
- secure: LlDKdKSRo3sEjQ55XesbOXhKZ3RrOtqoD1ZL8Wx39K3iVzeEV3Kc8HjDfEvo7R4pOc3BMTNJcputklVEPN0FkWGN7Py+OEtbHj3IZl0MX+KEWNk0gU+4+sgPrL1eXUQyMUSkCrBsKg08rPel4KMYUOXbtnLyUU9PDbBwm4LJYOc=
123
- after_success:
124
- - bundle exec codeclimate-test-reporter
@@ -1,7 +0,0 @@
1
-
2
- source "https://rubygems.org"
3
-
4
- gem 'mime-types', '~> 3.1'
5
- gem 'nokogiri', '~> 1.6.8'
6
-
7
- gemspec :path => "../"
data/stale.yml DELETED
@@ -1,17 +0,0 @@
1
- # Number of days of inactivity before an issue becomes stale
2
- daysUntilStale: 60
3
- # Number of days of inactivity before a stale issue is closed
4
- daysUntilClose: 7
5
- # Issues with these labels will never be considered stale
6
- exemptLabels:
7
- - pinned
8
- - security
9
- # Label to use when marking an issue as stale
10
- staleLabel: wontfix
11
- # Comment to post when marking an issue as stale. Set to `false` to disable
12
- markComment: >
13
- This issue has been automatically marked stale due to inactivity.
14
- It will be closed if no further activity occurs.
15
- Thank you for your contributions.
16
- # Comment to post when closing a stale issue. Set to `false` to disable
17
- closeComment: false