AWS Developer Tools Blog
Category: Ruby
Downloading Objects from Amazon S3 using the AWS SDK for Ruby
The AWS SDK for Ruby provides a few methods for getting objects out of Amazon S3. This blog post focuses on using the v2 Ruby SDK (the aws-sdk-core gem) to download objects from Amazon S3. Downloading Objects into Memory For small objects, it can be useful to get an object and have it available in […]
Read MoreRuby 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 MoreRuby 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 MoreParameter 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 MoreFlexible 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 MoreUsing 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 MoreRuby 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 MoreAWS 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 MoreUsing 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 MoreRunning Your Minitest Unit Test Suite
I have blogged a few times recently about Minitest. With Minitest you need to chose how you will execute your tests. When using other tools, like Rspec, there is a bundled test runner. $ rspec ………… Finished in 0.03324 seconds 12 examples, 0 failures Minitest does not provide a test runner as a command line […]
Read More