GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Description: Resource-oriented open source Ruby framework for Web apps.
Homepage: http://rubywaves.com/
Clone URL: git://github.com/dyoder/waves.git
Better pattern matching, no longer thinks you have 'mark' installed 
because 'markaby' is present. (sorry y'all, I broke it first! ;P )
ab5tract (author)
Wed Aug 27 09:25:36 -0700 2008
automatthew (committer)
Wed Sep 03 07:58:43 -0700 2008
commit  493c92b3f866e868697a9b06d76e954a6de017c9
tree    473b5372745bfccd124e5d9b0c98ec47a9192619
parent  09150b1e6e84ed546b499aaded4ae7fd40a11093
...
32
33
34
35
 
 
36
37
38
39
40
41
 
 
 
 
 
 
 
42
43
44
...
48
49
50
51
 
 
52
53
54
...
66
67
68
69
 
 
 
70
71
72
...
32
33
34
 
35
36
37
38
 
 
 
 
39
40
41
42
43
44
45
46
47
48
...
52
53
54
 
55
56
57
58
59
...
71
72
73
 
74
75
76
77
78
79
0
@@ -32,13 +32,17 @@ namespace :dep do
0
     missing = Array.new
0
 
0
     Waves.config.dependencies.each do |dep|
0
- missing << dep unless gems.include? dep
0
+ pattern = /=#{dep}\s/
0
+ missing << dep unless (pattern.match(gems) != nil)
0
     end
0
 
0
- puts "You are missing the following expected dependencies:"
0
- missing.each { |x| puts "\t#{x}" }
0
- puts "(do a 'rake dep:install' to get 'em)"
0
-
0
+ unless missing.empty?
0
+ puts "Environment is missing the following expected dependencies:"
0
+ missing.each { |x| puts "\t#{x}" }
0
+ else
0
+ puts "Environment has all expected dependencies."
0
+ end
0
+
0
   end
0
   
0
   desc "install any missing dependencies specified in the configuration"
0
@@ -48,7 +52,8 @@ namespace :dep do
0
     missing = Array.new
0
 
0
     Waves.config.dependencies.each do |dep|
0
- missing << dep unless gems.include? dep
0
+ pattern = /=#{dep}\s/
0
+ missing << dep unless (pattern.match(gems) != nil)
0
     end
0
 
0
     missing.each do |dep|
0
@@ -66,7 +71,9 @@ namespace :dep do
0
         Gem::RemoteInstaller.new.install(dep)
0
       end
0
     end
0
-
0
+
0
+ puts "Environment complete. Nothing to install." if missing.empty?
0
+
0
   end
0
 
0
 end

Comments

    No one has commented yet.