From a8a702c3b0a8b7613b6eb833e1fe04acb43578e7 Mon Sep 17 00:00:00 2001 From: "Gun.io Whitespace Robot" Date: Sat, 29 Oct 2011 05:30:37 -0400 Subject: [PATCH] Remove whitespace [Gun.io WhitespaceBot] --- LICENSE | 4 ++-- deps.rip | 2 +- lib/AWS.rb | 2 +- lib/AWS/EC2/images.rb | 6 +++--- lib/AWS/EC2/spot_prices.rb | 4 ++-- lib/AWS/ELB.rb | 6 +++--- test/test_Autoscaling_groups.rb | 2 +- test/test_EC2_security_groups.rb | 6 +++--- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/LICENSE b/LICENSE index df17f6c..1be5f7e 100644 --- a/LICENSE +++ b/LICENSE @@ -54,9 +54,9 @@ You can redistribute it and/or modify it under either the terms of the GPL files under the ./missing directory. See each file for the copying condition. - 5. The scripts and library files supplied as input to or produced as + 5. The scripts and library files supplied as input to or produced as output from the software do not automatically fall under the - copyright of the software, but belong to whomever generated them, + copyright of the software, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this software. diff --git a/deps.rip b/deps.rip index 2d1c2de..de16ca7 100644 --- a/deps.rip +++ b/deps.rip @@ -1 +1 @@ -xml-simple 1.0.12 \ No newline at end of file +xml-simple 1.0.12 \ No newline at end of file diff --git a/lib/AWS.rb b/lib/AWS.rb index 23afd2c..76e0ce1 100644 --- a/lib/AWS.rb +++ b/lib/AWS.rb @@ -70,7 +70,7 @@ def AWS.canonical_string(params, host, method="POST", base="/") "=" + CGI::escape(p[1].to_s)) # Ensure spaces are encoded as '%20', not '+' encoded = encoded.gsub('+', '%20') - # According to RFC3986 (the scheme for values expected by signing requests), '~' + # According to RFC3986 (the scheme for values expected by signing requests), '~' # should not be encoded encoded = encoded.gsub('%7E', '~') end diff --git a/lib/AWS/EC2/images.rb b/lib/AWS/EC2/images.rb index e579af9..27afdc6 100644 --- a/lib/AWS/EC2/images.rb +++ b/lib/AWS/EC2/images.rb @@ -130,11 +130,11 @@ def register_image( options = {} ) # # Deregistered images will be included in the returned results for an unspecified interval subsequent to # deregistration. - # + # # The results can be filtered using the filter argument. The EC2 API reference for a full description of # filter types and arguments. - # - # @example + # + # @example # @ec2.describe_images(:owner_id => ['self'], :filter => [{"tag:Role" => "App"}]) # # @option options [Array] :image_id ([]) diff --git a/lib/AWS/EC2/spot_prices.rb b/lib/AWS/EC2/spot_prices.rb index c0c9c7f..8ea28eb 100644 --- a/lib/AWS/EC2/spot_prices.rb +++ b/lib/AWS/EC2/spot_prices.rb @@ -4,8 +4,8 @@ module EC2 class Base < AWS::Base # This method returns historical information about spot prices. - # - # Amazon periodically sets the spot price for each instance type based on + # + # Amazon periodically sets the spot price for each instance type based on # available capacity and current spot instance requests. # # @option options [Time] :start_time (nil) diff --git a/lib/AWS/ELB.rb b/lib/AWS/ELB.rb index dfe613a..3585d8e 100644 --- a/lib/AWS/ELB.rb +++ b/lib/AWS/ELB.rb @@ -3,7 +3,7 @@ module ELB # Which host FQDN will we connect to for all API calls to AWS? # If ELB_URL is defined in the users ENV we can override the default with that. - # + # # @example # export ELB_URL='https://elasticloadbalancing.amazonaws.com' if ENV['ELB_URL'] @@ -24,7 +24,7 @@ def api_version def default_host DEFAULT_HOST end - + # Raises the appropriate error if the specified Net::HTTPResponse object # contains an Amazon EC2 error; returns +false+ otherwise. def aws_error?(response) @@ -62,7 +62,7 @@ def aws_error?(response) end end - + end end diff --git a/test/test_Autoscaling_groups.rb b/test/test_Autoscaling_groups.rb index 70ce3e1..ec9f446 100644 --- a/test/test_Autoscaling_groups.rb +++ b/test/test_Autoscaling_groups.rb @@ -111,7 +111,7 @@ 'UpperThreshold' => "1.5", 'UpperBreachScaleIncrement' => "1", 'BreachDuration' => "120", - 'Namespace' => "AWS/EC2", + 'Namespace' => "AWS/EC2", }).returns stub(:body => @create_or_update_trigger_response, :is_a? => true) valid_create_or_update_scaling_trigger_params = {:autoscaling_group_name => "AutoScalingGroupName", :dimensions => {:name => "AutoScalingGroupName", :value => "Bob"}, :unit => "Seconds", :measure_name => "CPUUtilization", :namespace => "AWS/EC2", :statistic => "Average", :period => 120, :trigger_name => "AFunNameForATrigger", :lower_threshold => 0.2, :lower_breach_scale_increment => "-1", :upper_threshold => 1.5, :upper_breach_scale_increment => 1, :breach_duration => 120} diff --git a/test/test_EC2_security_groups.rb b/test/test_EC2_security_groups.rb index d44235b..cb185dd 100644 --- a/test/test_EC2_security_groups.rb +++ b/test/test_EC2_security_groups.rb @@ -162,13 +162,13 @@ specify "permissions should be able to be added to a security group with authorize_security_group_ingress." do - @ec2.stubs(:make_request).with('AuthorizeSecurityGroupIngress', + @ec2.stubs(:make_request).with('AuthorizeSecurityGroupIngress', { "GroupName" => "WebServers", "IpPermissions.1.IpProtocol" => "tcp", "IpPermissions.1.FromPort" => "8000", "IpPermissions.1.ToPort" => "80", "IpPermissions.1.IpRanges.1" => "0.0.0.0/24", - "IpPermissions.1.Groups.1.GroupName" => "Source SG Name", + "IpPermissions.1.Groups.1.GroupName" => "Source SG Name", "IpPermissions.1.Groups.1.UserId" => "123"}). returns stub(:body => @authorize_security_group_ingress_response_body, :is_a? => true) @@ -190,7 +190,7 @@ "IpPermissions.1.FromPort" => "8000", "IpPermissions.1.ToPort" => "80", "IpPermissions.1.IpRanges.1" => "0.0.0.0/24", - "IpPermissions.1.Groups.1.GroupName" => "Source SG Name", + "IpPermissions.1.Groups.1.GroupName" => "Source SG Name", "IpPermissions.1.Groups.1.UserId" => "123"}). returns stub(:body => @revoke_security_group_ingress_response_body, :is_a? => true)