Skip to content

Commit

Permalink
prep for release
Browse files Browse the repository at this point in the history
  • Loading branch information
cldwalker committed Nov 12, 2010
1 parent 933985c commit 84cc979
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .gemspec
@@ -0,0 +1,19 @@
# -*- encoding: utf-8 -*-
require 'rubygems' unless Object.const_defined?(:Gem)
require File.dirname(__FILE__) + "/lib/ripl/irb"

Gem::Specification.new do |s|
s.name = "ripl-irb"
s.version = Ripl::Irb::VERSION
s.authors = ["Gabriel Horner"]
s.email = "gabriel.horner@gmail.com"
s.homepage = "http://github.com/cldwalker/ripl-irb"
s.summary = "A ripl plugin to smooth the transition to irb"
s.description = "A ripl plugin that smooths the transition to irb by stubbing out any IRB method or subclass called"
s.required_rubygems_version = ">= 1.3.6"
s.rubyforge_project = 'tagaholic'
s.add_dependency 'ripl', '>= 0.2.1'
s.files = Dir.glob(%w[{lib,test}/**/*.rb bin/* [A-Z]*.{txt,rdoc} ext/**/*.{rb,c} **/deps.rip]) + %w{Rakefile .gemspec}
s.extra_rdoc_files = ["README.rdoc", "LICENSE.txt"]
s.license = 'MIT'
end
2 changes: 2 additions & 0 deletions CHANGELOG.rdoc
@@ -0,0 +1,2 @@
== 0.1.0
* Initial release
22 changes: 22 additions & 0 deletions LICENSE.txt
@@ -0,0 +1,22 @@
The MIT LICENSE

Copyright (c) 2010 Gabriel Horner

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20 changes: 20 additions & 0 deletions README.rdoc
@@ -0,0 +1,20 @@
== Description
A ripl plugin that smooths the transition to irb by stubbing out any IRB method or subclass called.

== Install
Install the gem with:

sudo gem install ripl-irb

== Usage

From the commandline

$ ripl -rripl/irb

Or add to your ~/.riplrc

require 'ripl/irb'

== Todo
* Point to ripl plugins which implement irb functionality called
35 changes: 35 additions & 0 deletions Rakefile
@@ -0,0 +1,35 @@
require 'rake'
require 'fileutils'

def gemspec
@gemspec ||= eval(File.read('.gemspec'), binding, '.gemspec')
end

desc "Build the gem"
task :gem=>:gemspec do
sh "gem build .gemspec"
FileUtils.mkdir_p 'pkg'
FileUtils.mv "#{gemspec.name}-#{gemspec.version}.gem", 'pkg'
end

desc "Install the gem locally"
task :install => :gem do
sh %{gem install pkg/#{gemspec.name}-#{gemspec.version}}
end

desc "Generate the gemspec"
task :generate do
puts gemspec.to_ruby
end

desc "Validate the gemspec"
task :gemspec do
gemspec.validate
end

desc 'Run tests'
task :test do |t|
sh 'bacon -q -Ilib -I. test/*_test.rb'
end

task :default => :test

0 comments on commit 84cc979

Please sign in to comment.