solve 1.0.0.rc1 → 1.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/solve/artifact.rb +13 -3
- data/lib/solve/gem_version.rb +1 -1
- data/solve.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41327a73d671a81d722997ae5f1a58e74cd11cf6
|
4
|
+
data.tar.gz: a639d21dee22c91a25d3ce78e7bf2c59cf75d945
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 355c3b418da849491326aa584c53319dbf2dcc08222400474ad51fb908c13643972a72cf6f7d2f822423f573c2e5502200b51fb4aac2dd6747e47c38b3402149
|
7
|
+
data.tar.gz: e4cd3be4a6d80b47ed21168bee2ca49fd3dd9816ac3549e6d2ee65e2ad548a3c6be8a785e229afe783a191f24701211d914599a10f02b9994791e82bb5f8db74
|
data/lib/solve/artifact.rb
CHANGED
@@ -35,7 +35,7 @@ module Solve
|
|
35
35
|
#
|
36
36
|
# @return [Boolean]
|
37
37
|
def dependency?(name, constraint)
|
38
|
-
!
|
38
|
+
!get_dependency(name, constraint).nil?
|
39
39
|
end
|
40
40
|
alias_method :has_dependency?, :dependency?
|
41
41
|
|
@@ -46,7 +46,7 @@ module Solve
|
|
46
46
|
#
|
47
47
|
# @return [Solve::Artifact, nil]
|
48
48
|
def dependency(name, constraint)
|
49
|
-
|
49
|
+
set_dependency(name, constraint)
|
50
50
|
end
|
51
51
|
|
52
52
|
# Return the collection of dependencies on this instance of artifact
|
@@ -76,7 +76,7 @@ module Solve
|
|
76
76
|
# @return [Solve::Artifact]
|
77
77
|
def depends(name, constraint = '>= 0.0.0')
|
78
78
|
unless dependency?(name, constraint)
|
79
|
-
|
79
|
+
set_dependency(name, constraint)
|
80
80
|
end
|
81
81
|
|
82
82
|
self
|
@@ -102,5 +102,15 @@ module Solve
|
|
102
102
|
def <=>(other)
|
103
103
|
self.version <=> other.version
|
104
104
|
end
|
105
|
+
|
106
|
+
private
|
107
|
+
|
108
|
+
def get_dependency(name, constraint)
|
109
|
+
@dependencies["#{name}-#{constraint}"]
|
110
|
+
end
|
111
|
+
|
112
|
+
def set_dependency(name, constraint)
|
113
|
+
@dependencies["#{name}-#{constraint}"] = Dependency.new(self, name, constraint)
|
114
|
+
end
|
105
115
|
end
|
106
116
|
end
|
data/lib/solve/gem_version.rb
CHANGED
data/solve.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solve
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamie Winsor
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-04-
|
13
|
+
date: 2014-04-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: semverse
|
@@ -32,14 +32,14 @@ dependencies:
|
|
32
32
|
requirements:
|
33
33
|
- - "~>"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 1.0.0.alpha
|
35
|
+
version: 1.0.0.alpha.2
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 1.0.0.alpha
|
42
|
+
version: 1.0.0.alpha.2
|
43
43
|
description: A Ruby version constraint solver
|
44
44
|
email:
|
45
45
|
- jamie@vialstudios.com
|