Posts Mentioning RSS Toggle Comment Threads | Keyboard Shortcuts

  • fdietz 4:55 pm on August 29, 2009 Permalink | Reply
    Tags:   

    Using jeweler for ruby-config 

    I’ve been using jeweler for ruby-config and am very surprised how smooth everything went. What I especially like about jeweler is that its absolutely a no-brainer to create gems and post them via github. And with the versioning support its a joy to push out new releases! Am probably going to move over my hoe based projects to jeweler now.

    So, in order to get started with jeweler you have to install the jeweler gem first:

    gem install technicalpickles-jeweler

    Next to bootstrap a new project you do:

    jeweler --create-repo --summary "Ruby-Config" ruby-config

    This will create a project skeleton with all the usual candidates. What’s left to do now is edit the Rakefile to setup the gem configuration and adding some sourcecode. Don’t forget the tests!

    Now, you simply create an initial version with:

    rake version:write MAJOR=0 MINOR=1 PATCH=0

    which update the VERSION file in your project for you.

    When you do a “rake release”, jeweler will create a new gemspec file for you, commit and push the update, create a version tag and push it, too.

    When simply updating a minor feature, I do a “rake version:bump:minor” and afterwards a “rake release” and I’m done. Great stuff!

     
  • fdietz 4:26 pm on August 29, 2009 Permalink | Reply
    Tags:   

    Have been doing some more work on ruby-config again. First of all there’s finally some documentation available in the Readme file.

    Also one can now use “ruby-config –setup” which helps configuring bash’s profile to set the ruby and gem paths correctly. Again, this is done really unobtrusive. First, the task shows you what changes it wants to do, then it prompts you for a yes or no. You can always cancel and apply the changes manually.

    I’ve generated a new gem spec with version 0.5. So, please upgrade!

     
  • fdietz 9:18 pm on August 24, 2009 Permalink | Reply
    Tags:   

    Initial commit of ruby-config now available on http://github.com/fdietz/ruby-config/tree/master.

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
esc
cancel