Permalink
Browse files

Adjust bin/jeweler to be a executed a bit more sanely. Use bundle exe…

…c jeweler. Fixes #220
  • Loading branch information...
1 parent c388d48 commit c60f0f7f0d0d87da39545880fd3aa1855257a4b6 @technicalpickles committed Jan 25, 2012
Showing with 28 additions and 16 deletions.
  1. +4 −0 Gemfile
  2. +19 −14 Gemfile.lock
  3. +5 −2 bin/jeweler
View
@@ -1,6 +1,10 @@
source "http://rubygems.org"
source "http://gems.github.com"
+# steal a page from bundler's gemspec:
+# add this directory as jeweler, in order to bundle exec jeweler and use the current working directory
+gem 'jeweler', :path => '.'
+
gem "rake"
gem "git", ">= 1.2.5"
gem "bundler", "~> 1.0"
View
@@ -1,9 +1,17 @@
+PATH
+ remote: .
+ specs:
+ jeweler (1.8.1)
+ bundler (~> 1.0)
+ git (>= 1.2.5)
+ rake
+ rdoc
+
GEM
remote: http://rubygems.org/
remote: http://gems.github.com/
specs:
activesupport (2.3.8)
- archive-tar-minitar (0.5.2)
bluecloth (2.0.7)
builder (3.0.0)
columnize (0.3.6)
@@ -18,27 +26,23 @@ GEM
json (>= 1.4.6)
git (1.2.5)
json (1.6.3)
- linecache19 (0.5.12)
- ruby_core_source (>= 0.1.4)
+ linecache (0.46)
+ rbx-require-relative (> 0.0.4)
mhennemeyer-output_catcher (1.0.1)
mocha (0.9.8)
rake
rake (0.9.2.2)
+ rbx-require-relative (0.0.5)
rcov (0.9.8)
rdoc (3.12)
json (~> 1.4)
redgreen (1.2.2)
rr (1.0.4)
- ruby-debug-base19 (0.11.25)
- columnize (>= 0.3.1)
- linecache19 (>= 0.5.11)
- ruby_core_source (>= 0.1.4)
- ruby-debug19 (0.11.6)
- columnize (>= 0.3.1)
- linecache19 (>= 0.5.11)
- ruby-debug-base19 (>= 0.11.19)
- ruby_core_source (0.1.5)
- archive-tar-minitar (>= 0.5.2)
+ ruby-debug (0.10.4)
+ columnize (>= 0.1)
+ ruby-debug-base (~> 0.10.4.0)
+ ruby-debug-base (0.10.4)
+ linecache (>= 0.3)
shoulda (2.11.3)
term-ansicolor (1.0.7)
test-construct (1.2.0)
@@ -54,14 +58,15 @@ DEPENDENCIES
bundler (~> 1.0)
cucumber (~> 1.1.4)
git (>= 1.2.5)
+ jeweler!
mhennemeyer-output_catcher
mocha
rake
rcov
rdoc
redgreen
rr (~> 1.0.4)
- ruby-debug19
+ ruby-debug
shoulda
test-construct
timecop
View
7 bin/jeweler 100755 → 100644
@@ -1,5 +1,8 @@
-#!/usr/bin/env ruby
-$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
+# Don't try to run this binary directory. Instead:
+# * `bundle exec jeweler` if doing jeweler development
+# * `bundle exec jeweler` if part of a bundle
+# * `jeweler` if installed through rubygems, relying on the rubygem wrapper
+
require 'jeweler/generator'
exit Jeweler::Generator::Application.run!(*ARGV)

0 comments on commit c60f0f7

Please sign in to comment.