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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae30420202e6609e3ee6c924b9bb0be3eff51195
4
- data.tar.gz: 253757447932569a84b96aded37c0cba007e5847
3
+ metadata.gz: 41327a73d671a81d722997ae5f1a58e74cd11cf6
4
+ data.tar.gz: a639d21dee22c91a25d3ce78e7bf2c59cf75d945
5
5
  SHA512:
6
- metadata.gz: d8c10b4a7b18fd20515cf99de348923104746f5297ac56bbd03f9ff56006d05f678d742a039047f065820cea39335dd73c41d0eab6508f8890a2673027abfa3b
7
- data.tar.gz: e7fff54c7b0d5801e3ae8885db96cbcd12afd86c30bf84dbdedfa68c06189bf97fcf4964815a164a125ca07b6674aa7975a55dcf0dff578c183555150ecda237
6
+ metadata.gz: 355c3b418da849491326aa584c53319dbf2dcc08222400474ad51fb908c13643972a72cf6f7d2f822423f573c2e5502200b51fb4aac2dd6747e47c38b3402149
7
+ data.tar.gz: e4cd3be4a6d80b47ed21168bee2ca49fd3dd9816ac3549e6d2ee65e2ad548a3c6be8a785e229afe783a191f24701211d914599a10f02b9994791e82bb5f8db74
@@ -35,7 +35,7 @@ module Solve
35
35
  #
36
36
  # @return [Boolean]
37
37
  def dependency?(name, constraint)
38
- !dependency(name, constraint).nil?
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
- @dependencies["#{name}-#{constraint}"] = Dependency.new(self, name, constraint)
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
- @dependencies["#{name}-#{constraint}"] = Dependency.new(self, name, constraint)
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
@@ -1,3 +1,3 @@
1
1
  module Solve
2
- VERSION = "1.0.0.rc1"
2
+ VERSION = "1.0.0.rc2"
3
3
  end
@@ -17,5 +17,5 @@ Gem::Specification.new do |s|
17
17
  s.required_ruby_version = ">= 1.9.1"
18
18
 
19
19
  s.add_dependency "semverse", "~> 1.1"
20
- s.add_dependency "dep_selector", "~> 1.0.0.alpha"
20
+ s.add_dependency "dep_selector", "~> 1.0.0.alpha.2"
21
21
  end
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.rc1
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-07 00:00:00.000000000 Z
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