build gem from gemspec

1. create gemspec file name myrest.gemspect with the following content:


Gem::Specification.new do |s|
s.name = %q{myrest}
s.version = "0.0.1"
s.has_rdoc = true
s.required_ruby_version = ">= 1.8.7"
s.platform = "ruby"
s.require_paths = ["lib"]
s.required_rubygems_version = ">= 0"
s.author = "MyLabs"
s.email = %q{darren@yoolk.com}
s.extra_rdoc_files = ["README.rdoc"]
s.summary = %q{Gem for the rest}
s.homepage = %q{http://www.yoolk.com/}
s.description = %q{Allows differnt ruby applications to communicate via rest api}
s.files = ["lib/myrest.rb"]
end

2. open terminal and run

gem build myrest.gemspec
gem install myrest

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s