Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadiyt committed Oct 27, 2018
1 parent d1fdc85 commit 29e9192
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 12 deletions.
22 changes: 11 additions & 11 deletions aws_public_ips.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ require 'aws_public_ips/version'
gem.bindir = 'bin'
gem.executables = 'aws_public_ips'

gem.add_dependency('aws-sdk-apigateway', '~> 1.13.0')
gem.add_dependency('aws-sdk-cloudfront', '~> 1.4.0')
gem.add_dependency('aws-sdk-ec2', '~> 1.40.0')
gem.add_dependency('aws-sdk-elasticloadbalancing', '~> 1.3.0')
gem.add_dependency('aws-sdk-elasticloadbalancingv2', '~> 1.12.0')
gem.add_dependency('aws-sdk-elasticsearchservice', '~> 1.7.0')
gem.add_dependency('aws-sdk-lightsail', '~> 1.5.0')
gem.add_dependency('aws-sdk-rds', '~> 1.23.0')
gem.add_dependency('aws-sdk-redshift', '~> 1.6.0')
gem.add_dependency('aws-sdk-apigateway', '~> 1.21.0')
gem.add_dependency('aws-sdk-cloudfront', '~> 1.10.0')
gem.add_dependency('aws-sdk-ec2', '~> 1.54.0')
gem.add_dependency('aws-sdk-elasticloadbalancing', '~> 1.7.0')
gem.add_dependency('aws-sdk-elasticloadbalancingv2', '~> 1.16.0')
gem.add_dependency('aws-sdk-elasticsearchservice', '~> 1.14.0')
gem.add_dependency('aws-sdk-lightsail', '~> 1.10.0')
gem.add_dependency('aws-sdk-rds', '~> 1.35.0')
gem.add_dependency('aws-sdk-redshift', '~> 1.13.0')

gem.add_development_dependency('bundler-audit', '~> 0.6.0')
gem.add_development_dependency('coveralls', '~> 0.8.22')
gem.add_development_dependency('rspec', '~> 3.7.0')
gem.add_development_dependency('rubocop', '~> 0.58.2')
gem.add_development_dependency('rspec', '~> 3.8.0')
gem.add_development_dependency('rubocop', '~> 0.60.0')
gem.add_development_dependency('webmock', '~> 3.4.2')
end
1 change: 1 addition & 0 deletions lib/aws_public_ips/checks/elasticsearch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def self.run
client.describe_elasticsearch_domain(domain_name: domain_name.domain_name).map do |domain|
hostname = domain.domain_status.endpoint
next unless hostname

{
id: domain.domain_status.domain_id,
hostname: hostname,
Expand Down
1 change: 1 addition & 0 deletions lib/aws_public_ips/checks/elb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def self.run
client.describe_load_balancers.flat_map do |response|
response.load_balancer_descriptions.flat_map do |load_balancer|
next [] unless load_balancer.scheme == 'internet-facing'

# EC2-Classic load balancers get IPv6 DNS records created but they are not returned by the API
hostnames = [load_balancer.dns_name, "ipv6.#{load_balancer.dns_name}"]
{
Expand Down
1 change: 1 addition & 0 deletions lib/aws_public_ips/checks/elbv2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def self.run
client.describe_load_balancers.flat_map do |response|
response.load_balancers.flat_map do |load_balancer|
next [] unless load_balancer.scheme == 'internet-facing'

{
id: load_balancer.canonical_hosted_zone_id,
hostname: load_balancer.dns_name,
Expand Down
2 changes: 2 additions & 0 deletions lib/aws_public_ips/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def parse(args)
services.map(&:downcase!).uniq!
invalid_services = services - all_services
raise ::ArgumentError, "Invalid service(s): #{invalid_services.join(',')}" unless invalid_services.empty?

options[:services] = services
end

Expand All @@ -69,6 +70,7 @@ def parse(args)
unless all_formats.include?(fmt)
raise ::ArgumentError, "Invalid format '#{fmt}'. Valid formats are: #{all_formats.join(',')}"
end

options[:format] = fmt
end

Expand Down
1 change: 1 addition & 0 deletions lib/aws_public_ips/formatters/text.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def format_normal
def format_verbose
@results.flat_map do |service, hashes|
next [] if hashes.empty?

["## #{service}"] + hashes.flat_map do |hash|
[hash[:id], hash[:hostname]].compact.map do |line|
"# #{line}"
Expand Down
2 changes: 1 addition & 1 deletion spec/aws_public_ips/checks/cloudfront_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

describe ::AwsPublicIps::Checks::Cloudfront do
it 'should return cloudfront ips' do
stub_request(:get, 'https://cloudfront.amazonaws.com/2017-10-30/distribution')
stub_request(:get, 'https://cloudfront.amazonaws.com/2018-06-18/distribution')
.to_return(body: ::IO.read('spec/fixtures/cloudfront.xml'))

stub_dns(
Expand Down
1 change: 1 addition & 0 deletions spec/aws_public_ips/require_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ def traverse(dir)
::Dir["#{dir}/*"].each do |path|
next unless ::File.directory?(path)
next unless ::File.exist?("#{path}.rb")

results[path] = ::Dir["#{path}/*.rb"].map { |file| file.chomp('.rb') }
end

Expand Down

0 comments on commit 29e9192

Please sign in to comment.