dependencies 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -1,5 +1,5 @@
1
1
  task :test do
2
- system "cd test && ruby dependencies_test.rb"
2
+ system "cd test && env GEM_HOME=#{File.expand_path("tmp")} ruby dependencies_test.rb"
3
3
  end
4
4
 
5
5
  task :default => :test
data/bin/dep CHANGED
@@ -1,4 +1,6 @@
1
- #! /usr/bin/env ruby
1
+ #! /usr/bin/env ruby -rubygems
2
+
3
+ $:.unshift(File.expand_path(File.dirname(__FILE__) + "/../lib"))
2
4
 
3
5
  require "fileutils"
4
6
  require "dependencies/dep"
data/dependencies.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "dependencies"
3
- s.version = "0.0.5"
3
+ s.version = "0.0.6"
4
4
  s.summary = "Specify your project's dependencies in one file."
5
5
  s.authors = ["Damian Janowski", "Michel Martens"]
6
6
  s.email = ["djanowski@dimaion.com", "michel@soveran.com"]
@@ -86,7 +86,7 @@ class Dep
86
86
  end
87
87
 
88
88
  $stderr.puts
89
- $stderr.puts "Run `dep list` to view the missing dependencies or `dep vendor --all` to try to solve them.\n\n"
89
+ $stderr.puts "Run `dep list` to view missing dependencies or `dep vendor --all` if you want to vendor them.\n\n"
90
90
  exit(1)
91
91
  end
92
92
 
data/lib/dependencies.rb CHANGED
@@ -1,3 +1,5 @@
1
+ $:.unshift(File.expand_path(File.dirname(__FILE__)))
2
+
1
3
  require "dependencies/dep"
2
4
 
3
5
  Dep.new(File.read("dependencies")).require(ENV["RACK_ENV"].to_s)
@@ -1,18 +1,15 @@
1
1
  require "rubygems"
2
2
  require "open3"
3
3
 
4
- gem "contest"
5
-
6
4
  require "contest"
7
5
 
8
6
  require "pp"
9
7
  require "stringio"
10
8
  require "fileutils"
11
9
 
12
- $:.unshift LIB = File.join(File.dirname(__FILE__), "..", "lib")
10
+ $:.unshift File.join(File.dirname(__FILE__), "..", "lib")
13
11
 
14
12
  class Dep
15
-
16
13
  # Override exit to allow the tests to keep running.
17
14
  def exit(*attrs)
18
15
  end
@@ -77,7 +74,7 @@ class DependenciesTest < Test::Unit::TestCase
77
74
  end
78
75
 
79
76
  assert err.include?("Missing dependencies:\n\n foo 1.0")
80
- assert err.include?("Run `dep list` to view the missing dependencies or `dep vendor --all` to try to solve them")
77
+ assert err.include?("Run `dep list` to view missing dependencies or `dep vendor --all` if you want to vendor them.")
81
78
  end
82
79
  end
83
80
 
@@ -107,7 +104,7 @@ class DependenciesTest < Test::Unit::TestCase
107
104
  def dep(args = nil)
108
105
  out, err = nil
109
106
 
110
- Open3.popen3("ruby -I#{LIB} -rubygems #{File.expand_path(File.join("../bin/dep"))} #{args}") do |stdin, stdout, stderr|
107
+ Open3.popen3("#{File.expand_path(File.join("../bin/dep"))} #{args}") do |stdin, stdout, stderr|
111
108
  out = stdout.read
112
109
  err = stderr.read
113
110
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependencies
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damian Janowski
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-07-22 00:00:00 -03:00
13
+ date: 2009-07-28 00:00:00 -03:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
66
  requirements: []
67
67
 
68
68
  rubyforge_project: dependencies
69
- rubygems_version: 1.3.4
69
+ rubygems_version: 1.3.5
70
70
  signing_key:
71
71
  specification_version: 3
72
72
  summary: Specify your project's dependencies in one file.