Permalink
Browse files

Manage dependencies with Bundler.

  • Loading branch information...
1 parent faec125 commit e977930a7dc0151ae215d7d46f20895a69810a3b @jcoglan jcoglan committed Jun 27, 2011
Showing with 12 additions and 21 deletions.
  1. +1 −2 .gitignore
  2. +3 −0 Gemfile
  3. +4 −18 helium.gemspec
  4. +4 −1 test/test_helium.rb
View
@@ -1,6 +1,5 @@
+Gemfile.lock
doc
pkg
-web/lib
-web/public/js
test/output
*.gem
View
@@ -0,0 +1,3 @@
+source "http://rubygems.org"
+gemspec
+
View
@@ -1,14 +1,6 @@
-#!/usr/bin/env gem build
-# encoding: utf-8
-
-lib = File.expand_path('../lib/', __FILE__)
-$:.unshift lib unless $:.include?(lib)
-
-require 'helium'
-
Gem::Specification.new do |s|
s.name = "helium"
- s.version = Helium::VERSION
+ s.version = "0.1.3"
s.platform = Gem::Platform::RUBY
s.license = "GPL"
s.author = "James Coglan"
@@ -18,8 +10,6 @@ Gem::Specification.new do |s|
s.description = "A web application for running a Git-backed JavaScript
package distribution system.".sub(/\s+/, " ")
- s.required_rubygems_version = ">= 1.3"
-
s.add_dependency('grit', '>= 0')
s.add_dependency('jake', '>= 1.0.1')
s.add_dependency('packr', '>= 3.1')
@@ -29,12 +19,8 @@ Gem::Specification.new do |s|
s.executables = ['he']
- s.files = Dir.glob("bin/*") +
- Dir.glob("lib/**/*.rb") +
- Dir.glob("lib/helium/public/*.{css,js}") +
- Dir.glob("lib/helium/views/*.erb") +
- Dir.glob("templates/**/*") +
- Dir.glob("test/*.*") +
- %w(History.txt LICENCE README.rdoc)
+ s.files = %w(History.txt LICENCE README.rdoc) +
+ Dir.glob("{bin,lib,templates}/**/*")
+
s.test_file = "test/test_helium.rb"
end
View
@@ -1,6 +1,9 @@
+require "rubygems"
+require "bundler/setup"
+
require "test/unit"
-require "helium"
require "fileutils"
+require File.expand_path("../../lib/helium", __FILE__)
ROOT = File.dirname(__FILE__)

0 comments on commit e977930

Please sign in to comment.