#183
Oct 12, 2009

Gemcutter & Jeweler

Gemcutter is a new service for hosting RubyGems, and Jeweler provides an automated way to release versions of a gem.
Tags: tools
Download (18.8 MB, 7:24)
alternative download for iPod & Apple TV (10.5 MB, 7:24)

Resources

sudo gem update --system
sudo gem install gemcutter
gem tumble
gem build uniquify.gemspec
gem push uniquify-0.1.0.gem
sudo gem install jeweler
rake --tasks
rake version:write
rake version:bump:minor
rake gemcutter:release
# Rakefile
begin
  require 'jeweler'
  Jeweler::Tasks.new do |gemspec|
    gemspec.name = "uniquify"
    gemspec.summary = "Generate a unique token with Active Record."
    gemspec.description = "Generate a unique token with Active Record."
    gemspec.email = "ryan@railscasts.com"
    gemspec.homepage = "http://github.com/ryanb/uniquify"
    gemspec.authors = ["Ryan Bates"]
  end
  Jeweler::GemcutterTasks.new
rescue LoadError
  puts "Jeweler not available. Install it with: sudo gem install jeweler -s http://gemcutter.org"
end

# uniquify.gemspec
Gem::Specification.new do |s|
  s.name = %q{uniquify}
  s.version = "0.1.0"

  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
  s.authors = ["Ryan Bates"]
  s.date = %q{2008-11-09}
  s.description = %q{Generate a unique token with Active Record.}
  s.email = %q{ryan@railscasts.com}
  s.extra_rdoc_files = ["lib/uniquify.rb", "README.rdoc"]
  s.files = ["lib/uniquify.rb", "Rakefile", "README.rdoc", "Manifest", "uniquify.gemspec"]
  s.has_rdoc = true
  s.homepage = %q{http://github.com/ryanb/uniquify}
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Uniquify", "--main", "README.rdoc"]
  s.require_paths = ["lib"]
  s.rubyforge_project = %q{uniquify}
  s.rubygems_version = %q{1.2.0}
  s.summary = %q{Generate a unique token with Active Record.}

  if s.respond_to? :specification_version then
    current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
    s.specification_version = 2

    if current_version >= 3 then
    else
    end
  else
  end
end

RSS Feed for Episode Comments 30 comments

1. Titan Oct 12, 2009 at 01:07

thx for ur good work


2. dotemacs Oct 12, 2009 at 01:19

Thanks for this Ryan


3. Henrik Hodne Oct 12, 2009 at 02:53

Jeweler and Gemcutter are my favorite tools for gem development now, thanks for making a screencast on this =)


4. Brian Cardarella Oct 12, 2009 at 04:24

Ryan,

   Jeweler supports releasing to both Gemcutter and Rubyforge. The default is Github. See the options in the README


5. Nicolás Sanguinetti Oct 12, 2009 at 06:43

I see jeweler as too much for what is actually needed. http://github.com/sr/mg is "just enough" in that regard.


6. Dallas Reedy Oct 12, 2009 at 09:43

Excellent and timely screencast. I didn't know that you could use Jeweler with GemCutter (or RubyForge, for that matter). Thanks again!


7. Cameron Oct 12, 2009 at 15:59

These are the things I would probably never realise without this show. thanks


8. Satish Talim Oct 12, 2009 at 19:54

Keep up the excellent work you are doing.


9. Jerod Santo Oct 13, 2009 at 08:20

Hey Ryan, thanks again for all the awesome casts!

Have you considered adding a captcha to your comment form? I'm getting sick of reporting all these spammers!


10. Casen Oct 13, 2009 at 12:25

You have been such an inspiration to me over the last year and a half, and I really appreciate what you do for the rails community. Thanks for another valuable screencast!


11. igor Oct 29, 2009 at 08:23

Not Found

The requested URL /videos/183_gemcutter_and_jeweler.mov was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


12. Ed Howland Nov 28, 2009 at 08:25

Ryan,

Great presentation. One question, how do you manage the version numbering with a VCS like svn, hg, git etc.? I'm just exploring Mecurial now, but with svn, I'd cp trunk to a tag. If I want to bump a version, there is no automated way to sync that with jeweler, I suspect.

I am currently looking into amp, which lets you customize a Mecurial setup. Maybe there is something that can be done there.

Amp would be a great idea for another Railscast... once it matures a little.

Ed


13. Jan Wedekind Dec 02, 2009 at 12:43

That's a nice demonstration and Gemcutter looks really neat. I also noticed that you can use "gem tumble" multiple times to cycle between different configurations.


14. classic tall boots Dec 02, 2009 at 23:53

La novela al final casi se convierte en una obra de fantasía oscura con batallas, caballeros y traiciones.


15. manolo Dec 07, 2009 at 17:44

Manolo Blahnik is wonderful!Hold it. <ahref="http://www.manoloblahnikheels.org" title="manolo blahnik">manolo blahnik</a> is my favourite,thanks


16. Nastasya Dec 10, 2009 at 02:49

So many functions.. What they do?


17. manolo Dec 14, 2009 at 17:30

Manolo Blahnik is wonderful!Hold it. <ahref="http://www.manoloblahnikheels.org" title="manolo blahnik">manolo blahnik</a> is my favourite,thanks


18. yeni müzik Dec 29, 2009 at 15:48

This is one of those "clever" solutions that will only cause


19. manolo blahnik Jan 24, 2010 at 23:06

Manolo Blahnik is wonderful!Hold it. <ahref="http://www.manoloblahnikheels.org" title="manolo blahnik">manolo blahnik</a> is my favourite,thanks


20. cheap adidas shoes Jan 31, 2010 at 19:21

Adidas Shoes Online Shop-Hot Selling Adidas Shoes & Cheap Adidas Shoes


21. Timonya Feb 01, 2010 at 23:01

Nice post,nice sharing.Thanks!


22. Maryana Feb 05, 2010 at 01:13

hi,I am very happy to have landed here.


23. trading forex Feb 22, 2010 at 08:10

 not had a lot of success as of yet but I’m determined to keep on going. One problem I see is that there are very many opposing perspective regarding a lot of issues


24. Vita Feb 23, 2010 at 00:33

Keep up the excellent work you are doing.


25. Polyuha Feb 28, 2010 at 00:27

Nice thank you again :O)


26. abercrombie jeans Mar 02, 2010 at 23:20

That's a nice demonstration and Gemcutter looks really neat. I also noticed that you can use "gem tumble" multiple times to cycle between different configurations.


27. Health & Beauty Mar 04, 2010 at 17:57

hi,I am very happy to have landed here


28. Panda Mar 04, 2010 at 17:57

Keep up the excellent work you are doing.


29. made in china Mar 04, 2010 at 17:58

So many functions.. What they do?


30. Lyudasha Mar 10, 2010 at 00:43

Estas son las cosas que probablemente nunca, sin darse cuenta de este espectáculo. gracias

Add your comment:

(SKIP THIS ONE)

(required)

(not shown)


(use pastie or gist for code)

sponsored by:
if you want to help:
required:
Get Quicktime Player
Give Back to Open Source