Permalink
Browse files

drink bundler koolaid

  • Loading branch information...
1 parent 5e745d7 commit 1e7790f55e16f8410cc46120b3ece5ce31afc3bc @cowboyd committed Jan 7, 2011
Showing with 33 additions and 69 deletions.
  1. +5 −5 Gemfile.lock
  2. +6 −17 Rakefile
  3. +1 −1 lib/rednode.rb
  4. +3 −0 lib/rednode/version.rb
  5. +18 −26 rednode.gemspec
  6. +0 −2 tasks/clean.rake
  7. +0 −18 tasks/gem.rake
View
@@ -1,9 +1,9 @@
PATH
remote: .
specs:
- rednode (0.1.0)
+ rednode (0.1.2)
eventmachine
- therubyracer (~> 0.8.0.pre)
+ therubyracer (>= 0.8.0)
GEM
remote: http://rubygems.org/
@@ -20,13 +20,13 @@ GEM
rspec-mocks (2.0.1)
rspec-core (~> 2.0.1)
rspec-expectations (~> 2.0.1)
- therubyracer (0.8.0.pre2)
+ therubyracer (0.8.0)
PLATFORMS
ruby
DEPENDENCIES
eventmachine
rednode!
- rspec (~> 2.0.0)
- therubyracer (~> 0.8.0.pre)
+ rspec (>= 2.0.0)
+ therubyracer (>= 0.8.0)
View
@@ -1,23 +1,12 @@
-require 'rubygems'
-require 'bundler/setup'
+require 'bundler'
+Bundler::GemHelper.install_tasks
-$:.unshift('./lib')
-require 'rednode'
+task :default => :spec
-$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.8.0.pre"
- gem.add_dependency "eventmachine"
- gem.add_development_dependency "rspec", "~> 2.0.0"
-end
-task :default => :spec
+task :clean do
+ sh "rm -rf pkg"
+end
for lib in Dir["tasks/*.rake"]
load lib
View
@@ -3,7 +3,7 @@
require 'v8'
module Rednode
- VERSION = '0.1.1'
+ require 'rednode/version'
NODE_VERSION = '0.2.0'
NODE_HOME = File.expand_path(File.dirname(__FILE__) + '/../ext/node')
require 'rednode/node'
@@ -0,0 +1,3 @@
+module Rednode
+ VERSION = '0.1.2'
+end
View
View
@@ -1,2 +0,0 @@
-desc "remove all derived artifacts"
-task :clean
View
@@ -1,18 +0,0 @@
-
-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

0 comments on commit 1e7790f

Please sign in to comment.