dep 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/dep +9 -3
  2. metadata +4 -4
data/bin/dep CHANGED
@@ -6,8 +6,12 @@ require "fileutils"
6
6
  require "clap"
7
7
 
8
8
  help = File.expand_path("../README", File.dirname(__FILE__))
9
+ file = nil
9
10
 
10
- @list = Dep::List.new
11
+ commands = Clap.run ARGV,
12
+ "-f" => lambda { |f| file = f }
13
+
14
+ @list = Dep::List.new(file || File.join(Dir.pwd, ".gems"))
11
15
  @prerelease = false
12
16
 
13
17
  FileUtils.touch(@list.path) unless File.exist?(@list.path)
@@ -42,6 +46,8 @@ def check
42
46
  @list.missing_libraries.each do |lib|
43
47
  puts " %s" % lib
44
48
  end
49
+
50
+ exit(1)
45
51
  end
46
52
  end
47
53
 
@@ -61,11 +67,11 @@ def run(cmd)
61
67
  `#{cmd}`
62
68
  end
63
69
 
64
- if ARGV.empty?
70
+ if commands.empty?
65
71
  check
66
72
  end
67
73
 
68
- commands = Clap.run ARGV,
74
+ commands = Clap.run commands,
69
75
  "--pre" => lambda { @prerelease = true },
70
76
  "--help" => lambda { exec "${PAGER:-less} #{help}" }
71
77
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dep
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-02-14 00:00:00.000000000 Z
13
+ date: 2012-03-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: clap
17
- requirement: &2152254640 !ruby/object:Gem::Requirement
17
+ requirement: &70284162143060 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,7 +22,7 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2152254640
25
+ version_requirements: *70284162143060
26
26
  description: Specify your project's dependencies in one file.
27
27
  email:
28
28
  - cyx.ucron@gmail.com