forked from aslakhellesoy/rednode
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
61 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,5 +17,5 @@ tmtags | |
coverage | ||
rdoc | ||
pkg | ||
|
||
*.gem | ||
## PROJECT::SPECIFIC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,21 @@ | ||
require 'rubygems' | ||
require 'rake' | ||
$:.unshift('./lib') | ||
require 'rednode' | ||
|
||
begin | ||
require 'jeweler' | ||
Jeweler::Tasks.new do |gem| | ||
gem.name = "rednode" | ||
gem.summary = %Q{Pure Ruby implementation of Node.js' native libraries.} | ||
gem.description = %Q{Lets you run node.js apps without the node native runtime using V8, therubyracer and a pure ruby native runtime using Eventmachine} | ||
gem.email = ["cowboyd@thefrontside.com", "aslak.hellesoy@gmail.com"] | ||
gem.homepage = "http://github.com/cowboyd/rednode" | ||
gem.authors = ["Charles Lowell", "Aslak Hellesøy"] | ||
gem.add_dependency "therubyracer", ">= 0.7.4" | ||
gem.add_development_dependency "rspec", ">= 2.0.0.beta.11" | ||
gem.add_development_dependency "jeweler", ">= 1.4.0" | ||
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings | ||
end | ||
Jeweler::GemcutterTasks.new | ||
rescue LoadError | ||
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler" | ||
$gem = Gem::Specification.new do |gem| | ||
gem.name = "rednode" | ||
gem.version = Rednode::VERSION | ||
gem.summary = %Q{Pure Ruby implementation of Node.js' native libraries.} | ||
gem.description = %Q{Lets you run node.js apps without the node native runtime using V8, therubyracer and a pure ruby native runtime using Eventmachine} | ||
gem.email = ["cowboyd@thefrontside.com", "aslak.hellesoy@gmail.com"] | ||
gem.homepage = "http://github.com/cowboyd/rednode" | ||
gem.authors = ["Charles Lowell", "Aslak Hellesøy"] | ||
gem.add_dependency "therubyracer", ">= 0.7.5" | ||
gem.add_development_dependency "rspec", ">= 2.0.0.beta.19" | ||
end | ||
|
||
require 'rspec/core/rake_task' | ||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
RSpec::Core::RakeTask.new(:rcov) do |t| | ||
t.rcov = true | ||
t.rcov_opts = ['--exclude', 'spec,gems'] | ||
end | ||
|
||
task :spec => :check_dependencies | ||
|
||
task :default => :spec | ||
|
||
require 'rake/rdoctask' | ||
Rake::RDocTask.new do |rdoc| | ||
version = File.exist?('VERSION') ? File.read('VERSION') : "" | ||
|
||
rdoc.rdoc_dir = 'rdoc' | ||
rdoc.title = "Rednode #{version}" | ||
rdoc.rdoc_files.include('README*') | ||
rdoc.rdoc_files.include('lib/**/*.rb') | ||
end | ||
for lib in Dir["tasks/*.rake"] | ||
load lib | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
desc "remove all derived artifacts" | ||
task :clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
task :clean do | ||
sh "rm -rf *.gem" | ||
end | ||
|
||
desc "build #{$gem.name}.gemspec" | ||
task :gemspec => :clean do | ||
$gem.files = Rake::FileList.new("**/*").to_a | ||
File.open("#{$gem.name}.gemspec", "w") do |f| | ||
f.write($gem.to_ruby) | ||
end | ||
end | ||
|
||
desc "build gem" | ||
task :gem => :gemspec do | ||
$gem.rubyforge_project = $gem.name | ||
Gem::Builder.new($gem).build | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
desc "Run specs" | ||
task :spec do | ||
begin | ||
require 'rspec/core/rake_task' | ||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
RSpec::Core::RakeTask.new(:rcov) do |t| | ||
t.rcov = true | ||
t.rcov_opts = ['--exclude', 'spec,gems'] | ||
end | ||
rescue LoadError => e | ||
puts "you must have rspec >= 2.0.0 beta19 installed to run the specs" | ||
end | ||
end |