New Upstream Snapshot - ruby-aws
Ready changes
Summary
Merged new upstream version: 2.10.2+git20200505.1.bd57c8f (was: 2.10.2).
Resulting package
Built on 2023-01-19T06:24 (took 6m4s)
The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:
apt install -t fresh-snapshots ruby-aws
Lintian Result
Diff
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index eb20cf0..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-/.project
-pkg
-.idea
-Gemfile.lock
-.bundle
diff --git a/README.markdown b/README.markdown
index 8ff08ba..04af067 100644
--- a/README.markdown
+++ b/README.markdown
@@ -1,3 +1,7 @@
+# DEPRECATED
+
+Please use this gem now: https://rubygems.org/gems/aws-sdk
+
# Appoxy AWS Library
A Ruby gem for all Amazon Web Services.
diff --git a/debian/changelog b/debian/changelog
index 1b4af47..ca6e791 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-ruby-aws (2.10.2-6) UNRELEASED; urgency=medium
+ruby-aws (2.10.2+git20200505.1.bd57c8f-1) UNRELEASED; urgency=medium
[ Utkarsh Gupta ]
* Add salsa-ci.yml
@@ -9,8 +9,9 @@ ruby-aws (2.10.2-6) UNRELEASED; urgency=medium
* Set upstream metadata fields: Bug-Database, Bug-Submit.
* Use canonical URL in Vcs-Browser.
* Bump debhelper from old 12 to 13.
+ * New upstream snapshot.
- -- Utkarsh Gupta <guptautkarsh2102@gmail.com> Tue, 13 Aug 2019 03:31:09 +0530
+ -- Utkarsh Gupta <guptautkarsh2102@gmail.com> Thu, 19 Jan 2023 06:20:55 -0000
ruby-aws (2.10.2-5) unstable; urgency=medium
diff --git a/debian/patches/0010_update_readme_after_rename.patch b/debian/patches/0010_update_readme_after_rename.patch
index d5be98c..ca2501d 100644
--- a/debian/patches/0010_update_readme_after_rename.patch
+++ b/debian/patches/0010_update_readme_after_rename.patch
@@ -2,9 +2,11 @@ Description: Readme update - fixed require syntax after aws -> ruby-aws rename.
Author: Tomasz Nitecki <tnnn@tnnn.pl>
Last-Update: 2015-08-21
---- a/README.markdown
-+++ b/README.markdown
-@@ -20,7 +20,7 @@
+Index: ruby-aws.git/README.markdown
+===================================================================
+--- ruby-aws.git.orig/README.markdown
++++ ruby-aws.git/README.markdown
+@@ -24,7 +24,7 @@ Published by [Appoxy LLC](http://www.app
gem install aws
diff --git a/debian/patches/0011_fix_version_rb_conflict.patch b/debian/patches/0011_fix_version_rb_conflict.patch
index b5e1bb6..e2a67de 100644
--- a/debian/patches/0011_fix_version_rb_conflict.patch
+++ b/debian/patches/0011_fix_version_rb_conflict.patch
@@ -2,14 +2,14 @@ Description: Fix version.rb
Author: Praveen Arimbrathodiyil <praveen@debian.org>
Last-Update: 2016-06-06
-Index: ruby-aws/aws.gemspec
+Index: ruby-aws.git/aws.gemspec
===================================================================
---- ruby-aws.orig/aws.gemspec
-+++ ruby-aws/aws.gemspec
+--- ruby-aws.git.orig/aws.gemspec
++++ ruby-aws.git/aws.gemspec
@@ -1,5 +1,5 @@
-
+
-require File.expand_path('../lib/version', __FILE__)
+require File.expand_path('../lib/ruby-aws/version', __FILE__)
-
+
Gem::Specification.new do |gem|
gem.authors = ["Travis Reeder", "Chad Arimura", "RightScale"]
diff --git a/lib/ec2/ec2.rb b/lib/ec2/ec2.rb
index 19ed059..35187d4 100644
--- a/lib/ec2/ec2.rb
+++ b/lib/ec2/ec2.rb
@@ -185,7 +185,7 @@ module Aws
def hash_params_with_suffix(prefix, suffix, list) #:nodoc:
groups = {}
- list.each_index { |i| groups.update("#{prefix}.#{i+1}.suffix"=>list[i]) }
+ list.each_index { |i| groups.update("#{prefix}.#{i+1}.#{suffix}"=>list[i]) }
return groups
end
diff --git a/lib/s3/s3.rb b/lib/s3/s3.rb
index ef4edcf..4bcde74 100644
--- a/lib/s3/s3.rb
+++ b/lib/s3/s3.rb
@@ -114,6 +114,8 @@ module Aws
# affect on the bucket's ACL if the bucket already exists.
# Returns a Aws::S3::Bucket instance or +nil+ if the bucket does not exist
# and +create+ is not set.
+ # If +create+ is true, false will be returned if an error occurs. Such as the
+ # bucket already exists
#
# s3 = Aws::S3.new(aws_access_key_id, aws_secret_access_key)
# bucket1 = s3.bucket('my_awesome_bucket_1')
@@ -129,7 +131,10 @@ module Aws
#
def bucket(name, create=false, perms=nil, headers={})
headers['x-amz-acl'] = perms if perms
- @interface.create_bucket(name, headers) if create
+ if create
+ created_bucket = @interface.create_bucket(name, headers)
+ return false unless created_bucket
+ end
return Bucket.new(self, name)
# The old way below was too slow and unnecessary because it retreived all the buckets every time.
# owner = Owner.new(entry[:owner_id], entry[:owner_display_name])
diff --git a/lib/s3/s3_interface.rb b/lib/s3/s3_interface.rb
index f6a97bb..ca3a232 100644
--- a/lib/s3/s3_interface.rb
+++ b/lib/s3/s3_interface.rb
@@ -206,7 +206,8 @@ module Aws
on_exception
end
- # Creates new bucket. Returns +true+ or an exception.
+ # Creates new bucket. Returns +true+ or an exception, will return false if
+ # the exception includes 'BucketAlreadyOwnedByYou'
#
# # create a bucket at American server
# s3.create_bucket('my-awesome-bucket-us') #=> true
@@ -225,7 +226,7 @@ module Aws
request_info(req_hash, RightHttp2xxParser.new)
rescue Exception => e
# if the bucket exists AWS returns an error for the location constraint interface. Drop it
- e.is_a?(Aws::AwsError) && e.message.include?('BucketAlreadyOwnedByYou') ? true : on_exception
+ e.is_a?(Aws::AwsError) && e.message.include?('BucketAlreadyOwnedByYou') ? false : on_exception
end
# Retrieve bucket location
diff --git a/metadata.yml b/metadata.yml
deleted file mode 100644
index faf5cb7..0000000
--- a/metadata.yml
+++ /dev/null
@@ -1,164 +0,0 @@
---- !ruby/object:Gem::Specification
-name: aws
-version: !ruby/object:Gem::Version
- version: 2.10.2
-platform: ruby
-authors:
-- Travis Reeder
-- Chad Arimura
-- RightScale
-autorequire:
-bindir: bin
-cert_chain: []
-date: 2014-06-27 00:00:00.000000000 Z
-dependencies:
-- !ruby/object:Gem::Dependency
- name: uuidtools
- requirement: !ruby/object:Gem::Requirement
- requirements:
- - - '>='
- - !ruby/object:Gem::Version
- version: '0'
- type: :runtime
- prerelease: false
- version_requirements: !ruby/object:Gem::Requirement
- requirements:
- - - '>='
- - !ruby/object:Gem::Version
- version: '0'
-- !ruby/object:Gem::Dependency
- name: xml-simple
- requirement: !ruby/object:Gem::Requirement
- requirements:
- - - '>='
- - !ruby/object:Gem::Version
- version: '0'
- type: :runtime
- prerelease: false
- version_requirements: !ruby/object:Gem::Requirement
- requirements:
- - - '>='
- - !ruby/object:Gem::Version
- version: '0'
-- !ruby/object:Gem::Dependency
- name: http_connection
- requirement: !ruby/object:Gem::Requirement
- requirements:
- - - '>='
- - !ruby/object:Gem::Version
- version: '0'
- type: :runtime
- prerelease: false
- version_requirements: !ruby/object:Gem::Requirement
- requirements:
- - - '>='
- - !ruby/object:Gem::Version
- version: '0'
-description: AWS Ruby Library for interfacing with Amazon Web Services including EC2,
- S3, SQS, SimpleDB and most of their other services as well. By http://www.appoxy.com
-email:
-- travis@appoxy.com
-executables: []
-extensions: []
-extra_rdoc_files: []
-files:
-- .gitignore
-- Gemfile
-- README.markdown
-- Rakefile
-- aws.gemspec
-- lib/acf/acf_interface.rb
-- lib/aws.rb
-- lib/awsbase/aws_response_array.rb
-- lib/awsbase/awsbase.rb
-- lib/awsbase/benchmark_fix.rb
-- lib/awsbase/errors.rb
-- lib/awsbase/parsers.rb
-- lib/awsbase/require_relative.rb
-- lib/awsbase/utils.rb
-- lib/ec2/ec2.rb
-- lib/ec2/mon_interface.rb
-- lib/elb/elb_interface.rb
-- lib/iam/iam.rb
-- lib/rds/rds.rb
-- lib/right_aws.rb
-- lib/s3/bucket.rb
-- lib/s3/grantee.rb
-- lib/s3/key.rb
-- lib/s3/s3.rb
-- lib/s3/s3_interface.rb
-- lib/sdb/active_sdb.rb
-- lib/sdb/sdb_interface.rb
-- lib/ses/ses.rb
-- lib/sqs/sqs.rb
-- lib/sqs/sqs_interface.rb
-- lib/version.rb
-- test/acf/test_acf.rb
-- test/acf/test_helper.rb
-- test/ec2/test_ec2.rb
-- test/ec2/test_helper.rb
-- test/ec2/test_mon.rb
-- test/elb/test_elb.rb
-- test/http_connection.rb
-- test/iam/test_iam.rb
-- test/rds/test_rds.rb
-- test/s3/s3_test_base.rb
-- test/s3/test_helper.rb
-- test/s3/test_s3.rb
-- test/s3/test_s3_class.rb
-- test/s3/test_s3_rights.rb
-- test/s3/test_s3_stubbed.rb
-- test/sdb/test_helper.rb
-- test/sdb/test_sdb.rb
-- test/sdb/unicode.txt
-- test/ses/test_ses.rb
-- test/sqs/test_helper.rb
-- test/sqs/test_sqs.rb
-- test/test_credentials.rb
-homepage: http://github.com/appoxy/aws/
-licenses: []
-metadata: {}
-post_install_message:
-rdoc_options: []
-require_paths:
-- lib
-required_ruby_version: !ruby/object:Gem::Requirement
- requirements:
- - - '>='
- - !ruby/object:Gem::Version
- version: '1.8'
-required_rubygems_version: !ruby/object:Gem::Requirement
- requirements:
- - - '>='
- - !ruby/object:Gem::Version
- version: 1.3.6
-requirements: []
-rubyforge_project:
-rubygems_version: 2.2.2
-signing_key:
-specification_version: 4
-summary: AWS Ruby Library for interfacing with Amazon Web Services including EC2,
- S3, SQS, SimpleDB and most of their other services as well. By http://www.appoxy.com
-test_files:
-- test/acf/test_acf.rb
-- test/acf/test_helper.rb
-- test/ec2/test_ec2.rb
-- test/ec2/test_helper.rb
-- test/ec2/test_mon.rb
-- test/elb/test_elb.rb
-- test/http_connection.rb
-- test/iam/test_iam.rb
-- test/rds/test_rds.rb
-- test/s3/s3_test_base.rb
-- test/s3/test_helper.rb
-- test/s3/test_s3.rb
-- test/s3/test_s3_class.rb
-- test/s3/test_s3_rights.rb
-- test/s3/test_s3_stubbed.rb
-- test/sdb/test_helper.rb
-- test/sdb/test_sdb.rb
-- test/sdb/unicode.txt
-- test/ses/test_ses.rb
-- test/sqs/test_helper.rb
-- test/sqs/test_sqs.rb
-- test/test_credentials.rb
Debdiff
File lists identical (after any substitutions)
No differences were encountered in the control files