· 2 min read
Screencast: Gemcutter & Jeweler
Download(18.8 MB, 7:24) Alternativer Download für iPod & Apple TV(10.5 MB, 7:24)
Ressourcen:
- Episode 135: Making a Gem
- Gem Building is Defunct
- Gemcutter
- RubyGems GemSpec Reference
- Jeweler
- Full episode source code
[bash] 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 [/bash] [ruby] # 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 [/ruby]