solve 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/solve/errors.rb +5 -3
- data/lib/solve/gem_version.rb +1 -1
- data/solve.gemspec +1 -0
- metadata +5 -4
data/lib/solve/errors.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
module Solve
|
2
2
|
# @author Jamie Winsor <jamie@vialstudios.com>
|
3
3
|
module Errors
|
4
|
-
class SolveError < StandardError
|
4
|
+
class SolveError < StandardError
|
5
|
+
alias_method :mesage, :to_s
|
6
|
+
end
|
5
7
|
|
6
8
|
class InvalidVersionFormat < SolveError
|
7
9
|
attr_reader :version
|
@@ -11,7 +13,7 @@ module Solve
|
|
11
13
|
@version = version
|
12
14
|
end
|
13
15
|
|
14
|
-
def
|
16
|
+
def to_s
|
15
17
|
"'#{version}' did not contain a valid version string: 'x.y.z' or 'x.y'."
|
16
18
|
end
|
17
19
|
end
|
@@ -24,7 +26,7 @@ module Solve
|
|
24
26
|
@constraint = constraint
|
25
27
|
end
|
26
28
|
|
27
|
-
def
|
29
|
+
def to_s
|
28
30
|
"'#{constraint}' did not contain a valid operator or a valid version string."
|
29
31
|
end
|
30
32
|
end
|
data/lib/solve/gem_version.rb
CHANGED
data/solve.gemspec
CHANGED
@@ -7,6 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.description = %q{A Ruby version constraint solver}
|
8
8
|
s.summary = %q{A Ruby version constraint solver implementing Semantic Versioning 2.0.0-rc.1}
|
9
9
|
s.homepage = "https://github.com/reset/solve"
|
10
|
+
s.license = "Apache 2.0"
|
10
11
|
|
11
12
|
s.files = `git ls-files`.split($\)
|
12
13
|
s.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
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: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-
|
14
|
+
date: 2012-12-24 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: json
|
@@ -74,7 +74,8 @@ files:
|
|
74
74
|
- spec/unit/solve/version_spec.rb
|
75
75
|
- spec/unit/solve_spec.rb
|
76
76
|
homepage: https://github.com/reset/solve
|
77
|
-
licenses:
|
77
|
+
licenses:
|
78
|
+
- Apache 2.0
|
78
79
|
post_install_message:
|
79
80
|
rdoc_options: []
|
80
81
|
require_paths:
|
@@ -93,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
94
|
version: '0'
|
94
95
|
segments:
|
95
96
|
- 0
|
96
|
-
hash:
|
97
|
+
hash: 3991493875393418852
|
97
98
|
requirements: []
|
98
99
|
rubyforge_project:
|
99
100
|
rubygems_version: 1.8.23
|