Permalink
Browse files

remove dependency on jeweler

  • Loading branch information...
1 parent 6f39a1c commit 6f0b82ee90513a9fb3f09f45393b5e267c57b43d @cowboyd committed Aug 24, 2010
Showing with 61 additions and 91 deletions.
  1. +1 −1 .gitignore
  2. +15 −37 Rakefile
  3. +0 −1 VERSION
  4. +2 −0 lib/rednode.rb
  5. +8 −52 rednode.gemspec
  6. +2 −0 tasks/clean.rake
  7. +18 −0 tasks/gem.rake
  8. +15 −0 tasks/rspec.rake
View
@@ -17,5 +17,5 @@ tmtags
coverage
rdoc
pkg
-
+*.gem
## PROJECT::SPECIFIC
View
@@ -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
View
@@ -1 +0,0 @@
-0.0.1
View
@@ -1,6 +1,8 @@
require 'rubygems'
module Rednode
+ VERSION = '0.0.1'
+ NODE_VERSION = '0.1.104'
NODE_HOME = File.expand_path(File.dirname(__FILE__) + '/../ext/node')
require 'rednode/node'
require 'rednode/namespace'
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -0,0 +1,2 @@
+desc "remove all derived artifacts"
+task :clean
View
@@ -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
View
@@ -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

0 comments on commit 6f0b82e

Please sign in to comment.