dep 1.1.0 → 2.0.0.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/dep +2 -6
  3. data/test/dep.rb +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 76ef3eef686b0b32799b211eb23c2db50914be15
4
- data.tar.gz: 16636d764be0bccd03082d56daa57ed7d6cebc74
3
+ metadata.gz: 60ce65b76cd42c0236153622d341926bac74fd59
4
+ data.tar.gz: 6e2d6748e1606d96ac30ef2ec04681b080a7716e
5
5
  SHA512:
6
- metadata.gz: 1284025521df66b6024f5d87b205fc43bc9376c2f364ee83b91ed9990098c98a7ece86168a998fa8f263407be0c5a31b74138095ffcc2964cf9ce27d4b249720
7
- data.tar.gz: 382c097dd64b1ffe800590c46b46c6030f89f2fd905d808d917bac2c83f82e72494eff287a058ebf56a28ec91bf0d21301532354bc3d03e03a75e07b9e32fb62
6
+ metadata.gz: 47346b41faef1d20447d6059abd1f2d38136ddf453ae9361e65c36beb8d7f715540d9823cedacd39fa3b2ccdeebce1e785274b6e24ad29a530420055d5ff50fe
7
+ data.tar.gz: 3182884808d83e92c2807023b0a152c18a6c65b23a9e4aba5b67ddf97983bb19b46ec962a539f4b82c251c6509547018e2369dae66770e4bb2f20d9bc9d410dc
data/bin/dep CHANGED
@@ -42,7 +42,7 @@ module Dep
42
42
 
43
43
  class Lib < Struct.new(:name, :version)
44
44
  def self.[](line)
45
- if line.strip =~ /^(\S+) -v (\S+)$/
45
+ if line.strip =~ /^(\S+):(\S+)$/
46
46
  return new($1, $2)
47
47
  else
48
48
  abort("Invalid requirement found: #{line}")
@@ -56,10 +56,6 @@ module Dep
56
56
  end
57
57
 
58
58
  def to_s
59
- "#{name} -v #{version}"
60
- end
61
-
62
- def csv
63
59
  "#{name}:#{version}"
64
60
  end
65
61
 
@@ -120,7 +116,7 @@ module Dep
120
116
  exit
121
117
  end
122
118
 
123
- run "gem install #{@list.missing_libraries.map(&:csv).join(" ")}"
119
+ run "gem install #{@list.missing_libraries.join(" ")}"
124
120
  end
125
121
 
126
122
  def run(cmd)
@@ -28,7 +28,7 @@ scope do
28
28
 
29
29
  test "to_s" do
30
30
  lib = Dep::Lib.new("cutest", "1.1.3")
31
- assert_equal "cutest -v 1.1.3", lib.to_s
31
+ assert_equal "cutest:1.1.3", lib.to_s
32
32
  end
33
33
  end
34
34
 
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: 1.1.0
4
+ version: 2.0.0.alpha1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril David
@@ -36,9 +36,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
36
36
  version: '0'
37
37
  required_rubygems_version: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ">="
39
+ - - ">"
40
40
  - !ruby/object:Gem::Version
41
- version: '0'
41
+ version: 1.3.1
42
42
  requirements: []
43
43
  rubyforge_project:
44
44
  rubygems_version: 2.2.2