AWS Developer Blog

Category: Ruby

AWS SDK Core v2.0.0.rc12 Updates

We recently published v2.0.0.rc12 of the aws-sdk-core gem (https://github.com/aws/aws-sdk-core-ruby). This release merges the long-running normalized branch onto master. Upgrading Notes Please note, when updating to rc12, you may need to make some minor code changes. These are summarized below: Service modules now have a Client class, these should be used to construct API clients: # […]

Read More

Ruby 2.1 on AWS OpsWorks

We are pleased to announce that AWS OpsWorks now supports Ruby 2.1. Simply select the Ruby version you want, your Rails stack – Passenger or Unicorn, the RubyGems version, and whether you want to use Bundler. Then deploy your app from your chosen repository – Git, Subversion, or bundles on S3. You can get started […]

Read More

Ruby SDK Version 2 and Memoization

Version 1 of the AWS SDK for Ruby (aws-sdk gem) provides a higher-level abstraction for working with AWS resources. These resources can be used to get information about AWS objects and operate on them as well. For example: AWS.ec2.instances.each do |i| puts i.instance_id + ‘ => ‘ + i.status.to_s end The problem with the example […]

Read More

Parameter Validation

One of my favorite features of version 2 of the AWS SDK for Ruby (aws-sdk-core gem) is the new parameter validation system. One of the challenges in using an API library is understanding how to specify request parameters. During development stages it is common to make mistakes and to generate errors. Using the version 1 […]

Read More

Flexible Gem Dependencies

Version 1 of the AWS SDK for Ruby (aws-sdk gem) depends on Nokogiri and JSON. While these are robust and performant libraries, there are multiple reasons why a developer may not want to be locked into these dependencies: I might want to use pure Ruby solutions that do not require native extensions for maximum portability. […]

Read More

Using RSpec 3

Using RSpec 3 I have been a long time user of RSpec and many of the Ruby projects I work with use RSpec as the primary testing framework. It provides an expressive specification DSL. As you may know, RSpec 3 is currently in the works. I have blogged a few times recently about using MiniTest. […]

Read More

Ruby 2.0 on AWS OpsWorks

We are pleased to announce that AWS OpsWorks now supports Ruby 2.0. Simply select the Ruby version you want, your Rails stack – Passenger or Unicorn, the RubyGems version, and whether you want to use Bundler. Then deploy your app from your chosen repository – Git, Subversion, or bundles on S3. You can get started […]

Read More

AWS SDK for Ruby v1.30.0

Yesterday afternoon, we released a new version of the AWS SDK for Ruby (aws-sdk RubyGem) version v1.30.0. This release: Adds support for Amazon Kinesis (AWS::Kinesis::Client). Updates AWS::EMR::Client to include resource tagging and other new operations. Updates AWS::OpsWorks::Client to support resource-based permissions. Updates AWS::ElasticBeanstalk::Client to support worker roles. Updates AWS::DynamoDB::Client to support global secondary indexes. You […]

Read More

Using SimpleCov with Multiple Test Suites

It can be helpful to generate coverage reports when testing software. While coverage reports do not guarantee well tested software, they can highlight were test coverage is lacking. This is especially true for legacy, or un-tested projects. Recently I ran into a situation where I wanted to generate a coverage report, but the project used […]

Read More