omnibus 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.md +9 -0
- data/lib/omnibus/builder.rb +5 -0
- data/lib/omnibus/cli/base.rb +1 -1
- data/lib/omnibus/exceptions.rb +15 -0
- data/lib/omnibus/project.rb +5 -1
- data/lib/omnibus/software.rb +3 -3
- data/lib/omnibus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjM0YzUxNDMyZDFmNGRhYjJkMmY5YmQ4OGNjMWRkZjg0ODYwOTcxYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZGYwZDEzMzNmYmU0ZjU2MmQzNTFmNTlkMGNkOTBiMjM5MDljYWU5ZQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjRlYzQ0MDM1NzI5YmEyZWYxMWE4MDNmNmY4NTNlMmI2MDA3YTcyNWI1ZjEw
|
10
|
+
ZmE0OTFjODAyMWZmMWNmNDYxMWI4N2VlNDE3ODc3NWJmNDNkYTFkMDI1YTM1
|
11
|
+
ZjAzOWY2YzZjNGFhOTliZjk0M2RiYzkwZjVjMDhlZGI5OGQyYzk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjRkNTY3YmJhOTE2NzE4MmIwZTFiOWRmNjgwMzViNDVlNmRjMjY5NGYwOGZk
|
14
|
+
MDE3NmQ1Njk1Mjk4NDQ2MmU2Nzk5N2ZjMjYxZDI0YWQ1ZGIwMjgyM2ViOWM2
|
15
|
+
MDYwZWRhZjNmOTQwYzEyMTQ0NzI0ZTI4NDNhMGExZDhlZmNjYmI=
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## 1.1.1 (July 2, 2013)
|
2
|
+
|
3
|
+
BUG FIXES:
|
4
|
+
|
5
|
+
* Raise an exception if a patch file is not found.
|
6
|
+
* Be more explicit about types in CPU computation.
|
7
|
+
* Include pkg version, iteration, arch for solaris packages.
|
8
|
+
* Fix assorted typos in CLI output.
|
9
|
+
|
1
10
|
## 1.1.0 (June 12, 2013)
|
2
11
|
|
3
12
|
FEATURES:
|
data/lib/omnibus/builder.rb
CHANGED
@@ -16,6 +16,7 @@
|
|
16
16
|
#
|
17
17
|
|
18
18
|
require 'forwardable'
|
19
|
+
require 'omnibus/exceptions'
|
19
20
|
|
20
21
|
module Omnibus
|
21
22
|
class Builder
|
@@ -133,6 +134,10 @@ module Omnibus
|
|
133
134
|
|
134
135
|
source = candidate_paths.find{|path| File.exists?(path) }
|
135
136
|
|
137
|
+
unless source
|
138
|
+
raise MissingPatch.new(args[:source], candidate_paths)
|
139
|
+
end
|
140
|
+
|
136
141
|
plevel = args[:plevel] || 1
|
137
142
|
if args[:target]
|
138
143
|
target = File.expand_path("#{project_dir}/#{args[:target]}")
|
data/lib/omnibus/cli/base.rb
CHANGED
@@ -106,7 +106,7 @@ module Omnibus
|
|
106
106
|
def load_project!(project_name)
|
107
107
|
project = Omnibus.project(project_name)
|
108
108
|
unless project
|
109
|
-
error_msg = "I don't know
|
109
|
+
error_msg = "I don't know anything about project '#{project_name}'."
|
110
110
|
error_msg << " Valid project names include: #{Omnibus.project_names.join(', ')}"
|
111
111
|
raise Omnibus::CLI::Error, error_msg
|
112
112
|
end
|
data/lib/omnibus/exceptions.rb
CHANGED
@@ -110,4 +110,19 @@ module Omnibus
|
|
110
110
|
"""
|
111
111
|
end
|
112
112
|
end
|
113
|
+
|
114
|
+
class MissingPatch < RuntimeError
|
115
|
+
def initialize(patch_name, search_paths)
|
116
|
+
@patch_name, @search_paths = patch_name, search_paths
|
117
|
+
end
|
118
|
+
|
119
|
+
def to_s
|
120
|
+
"""
|
121
|
+
Attempting to apply the patch #{@patch_name}, but it was not
|
122
|
+
found at any of the following locations:
|
123
|
+
|
124
|
+
#{@search_paths.join("\n ")}
|
125
|
+
"""
|
126
|
+
end
|
127
|
+
end
|
113
128
|
end
|
data/lib/omnibus/project.rb
CHANGED
data/lib/omnibus/software.rb
CHANGED
@@ -248,10 +248,10 @@ module Omnibus
|
|
248
248
|
# @todo It seems like this isn't used, and if it were, it should
|
249
249
|
# probably be part of Opscode::Builder instead
|
250
250
|
def max_build_jobs
|
251
|
-
if OHAI.cpu
|
252
|
-
|
251
|
+
if OHAI.cpu && OHAI.cpu[:total] && OHAI.cpu[:total].to_s =~ /^\d+$/
|
252
|
+
OHAI.cpu[:total].to_i + 1
|
253
253
|
else
|
254
|
-
|
254
|
+
2
|
255
255
|
end
|
256
256
|
end
|
257
257
|
|
data/lib/omnibus/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omnibus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Opscode
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mixlib-shellout
|