Skip to content

Commit

Permalink
refs #6398, RightAws History and Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin committed Apr 2, 2010
1 parent 85cb08e commit 962b50f
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 1 deletion.
21 changes: 20 additions & 1 deletion History.txt
Original file line number Diff line number Diff line change
Expand Up @@ -236,4 +236,23 @@ the source key.
- Boot from EBS support added
- VPC support added
- Latest EC2 API 2009-10-31 support added
- Some of bugs fixed
- Some of bugs fixed

=== 2.0.0

Release Notes:
- Added:
- Ec2:
- SpotInstances support
- m2.xlarge instances
- GetPasswordData API call (see get_password_data_v2)
- SecurityGroups support for Eucalyptus clouds
- EBS:
- :delete_on_termination field for volumes
- SimpleDB:
- BatchPutAttributes support
- ActiveSDB:
- Dynamic attribute accessors
- "Columns" support
- Simple Type Casting support
- Bunch of small issues were fixed
62 changes: 62 additions & 0 deletions lib/sdb/active_sdb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,68 @@ module RightAws
# # remove domain
# Client.delete_domain
#
# # Dynamic attribute accessors
#
# class KdClient < RightAws::ActiveSdb::Base
# end
#
# client = KdClient.select(:all, :order => 'expiration').first
# pp client.attributes #=>
# {"name"=>["Putin"],
# "post"=>["president"],
# "country"=>["Russia"],
# "expiration"=>["2008"],
# "id"=>"376d2e00-75b0-11dd-9557-001bfc466dd7",
# "gender"=>["male"]}
#
# pp client.name #=> ["Putin"]
# pp client.country #=> ["Russia"]
# pp client.post #=> ["president"]
#
# # Columns and simple typecasting
#
# class Person < RightAws::ActiveSdb::Base
# columns do
# name
# email
# score :Integer
# is_active :Boolean
# registered_at :DateTime
# created_at :DateTime
# end
# end
# Person::create( :name => 'Yetta E. Andrews', :email => 'nulla.facilisis@metus.com', :score => 100, :is_active => true, :registered_at => Time.local(2000, 1, 1) )
#
# person = Person.find_by_email 'nulla.facilisis@metus.com'
# person.reload
#
# pp Person.columns #=>
# #<RightAws::ActiveSdb::ColumnSet:0x7fa0a24d6620
# @columns=
# {"name"=>{:type=>:String},
# "created_at"=>
# {:type=>:DateTime},
# "registered_at"=>{:type=>:DateTime},
# "is_active"=>{:type=>:Boolean},
# "score"=>{:type=>:Integer},
# "email"=>{:type=>:String}}>
#
# pp person.attributes #=>
# {"name"=>["Yetta E. Andrews"],
# "id"=>"0ee24946-3e60-11df-9d4c-0025b37efad0",
# "registered_at"=>["2000-01-01T00:00:00+0300"],
# "is_active"=>["T"],
# "score"=>["100"],
# "email"=>["nulla.facilisis@metus.com"]}
# pp person.name #=> "Yetta E. Andrews"
# pp person.name.class #=> String
# pp person.registered_at.to_s #=> "2000-01-01T00:00:00+03:00"
# pp person.registered_at.class #=> DateTime
# pp person.is_active #=> true
# pp person.is_active.class #=> TrueClass
# pp person.score #=> 100
# pp person.score.class #=> Fixnum
#
class ActiveSdb

module ActiveSdbConnect
Expand Down

0 comments on commit 962b50f

Please sign in to comment.