require 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
data/lib/require.rb CHANGED
@@ -94,8 +94,10 @@ class Require
94
94
  else
95
95
  Kernel.send :gem, name.to_s
96
96
  end
97
- (overwrite_dsl || gem.dsl).all(:require).each do |dsl|
98
- require! dsl.path
97
+ if overwrite_dsl || gem.dsl
98
+ (overwrite_dsl || gem.dsl).all(:require).each do |dsl|
99
+ require! dsl.path
100
+ end
99
101
  end
100
102
  end
101
103
  end
@@ -1,5 +1,5 @@
1
1
  $testing = true
2
- SPEC = File.dirname(__FILE__)
2
+ SPEC = File.expand_path("#{Require.root}/spec")
3
3
  $:.unshift File.expand_path("#{Require.root}/lib")
4
4
 
5
5
  # For use with rspec textmate bundle
data/lib/require/tasks.rb CHANGED
@@ -72,7 +72,7 @@ namespace :gems do
72
72
  task :install do
73
73
  Require::Tasks.set :ask_docs, :ask_sudo
74
74
  Require.all(:gem).sort { |a,b| a.name.to_s <=> b.name.to_s }.each do |dsl|
75
- Require::Tasks.run "gem install #{dsl.name} -v '#{dsl.version}'"
75
+ Require::Tasks.run "gem install #{dsl.name}#{" -v '#{dsl.version}'" if dsl.version}"
76
76
  end
77
77
  end
78
78
  end
data/require.rb CHANGED
@@ -11,7 +11,7 @@ Require File.dirname(__FILE__) do
11
11
  name 'require'
12
12
  homepage "http://github.com/winton/#{name}"
13
13
  summary "Manage your project's dependencies with a pretty DSL"
14
- version '0.1.7'
14
+ version '0.1.8'
15
15
  end
16
16
 
17
17
  rakefile do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: require
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Winton Welsh
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-01 00:00:00 -08:00
12
+ date: 2010-02-03 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15