It's only been a week since the release of Ruby/AWS 0.3.2, but 0.3.3 is here already.
Actually, there are almost no visible changes for the user. The only development of note is that the library is now available as a so-called gem for the RubyGems packaging system.
People have been on at me for years -- basically, since RubyGems first became usable -- to package my Ruby software as gems, but I've lacked the motivation to get to grips with a new packaging system.
It turns out that I overestimated the work involved. You can learn to create RubyGems in under an hour. The system is much less complex than building RPMs, for example. I really should have done this sooner.
Comments (7)
Thanks for all your work on this!
Just wondering, if I wanted to try this out on my Windows machine, where would I place the .amazonrc file?
Thanks
Posted by garg | Tuesday, 24 June 2008 at 00:57:06
Posted on Tuesday, 24 June 2008 at 00:57:06
You know, you're actually the first person to ask this.
Where is the logical place for Ruby libs to look for system-wide config files on Windows? And for per-user config files?
If you can let me know, I'll add this functionality. In the meantime, look at line 53 in amazon.rb. This will enable you to make the change yourself, just to get it working in the meantime.
Posted by Ian Macdonald
|
Tuesday, 24 June 2008 at 07:53:28
Posted on Tuesday, 24 June 2008 at 07:53:28
I was wondering the same thing. I will manually config for now - but in windows, there are 2 spots I can see this config file going:
1. %APPDATA% => C:\Documents and Settings\{username}\Application Data
2. %USERPROFILE% => C:\Documents and Settings\{username}
Maybe this helps...
Posted by Dave Kroondyk | Monday, 30 June 2008 at 19:29:04
Posted on Monday, 30 June 2008 at 19:29:04
How does one figure out from within Ruby who {username} is? Is there a %USERNAME% or %USER% in Windows?
Posted by Ian Macdonald
|
Thursday, 3 July 2008 at 22:08:26
Posted on Thursday, 3 July 2008 at 22:08:26
Using %APPDATA% or %USERPROFILE% will automatically go to the {username} directory for whoever is logged in. So, you shouldn't have to know the actual username - the other variables take care of it. On windows, just go Start -> Run and you can try this out. Type "%APPDATA%" and it will take you to the corresponding directory for the logged in user.
Posted by Dave Kroondyk | Sunday, 6 July 2008 at 02:28:33
Posted on Sunday, 6 July 2008 at 02:28:33
Does that mean that I can just use ENV['APPDATA'] and ENV['USERPROFILE'] from within Ruby?
Posted by Ian Macdonald | Sunday, 6 July 2008 at 19:16:46
Posted on Sunday, 6 July 2008 at 19:16:46
Well, discussion on ruby-core about how to handle this issue leads me to the following conclusion.
We'll look for one of the following to be defined, in this order:
ENV['HOME']
ENV['HOMEDRIVE'] + ENV['HOMEPATH']
ENV['USERPROFILE']
Expect to see this change in 0.4.1, due out soon.
Posted by Ian Macdonald
|
Tuesday, 12 August 2008 at 21:47:53
Posted on Tuesday, 12 August 2008 at 21:47:53