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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NmUyOTcwNzFiYmJmNDE5YmM5Y2RhMDBkNzE2ZjVlOTEwNzMzOTFhMg==
4
+ ZjM0YzUxNDMyZDFmNGRhYjJkMmY5YmQ4OGNjMWRkZjg0ODYwOTcxYw==
5
5
  data.tar.gz: !binary |-
6
- MDU0ZjEwNDhiZjJkYjliYzY1NzM3NzI2ZjE3YjQxNzYxMGRhZDBhZQ==
6
+ ZGYwZDEzMzNmYmU0ZjU2MmQzNTFmNTlkMGNkOTBiMjM5MDljYWU5ZQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ODY2MDNhOTQ1YzAzYWJjZTI2OTQwZDBkZjIwMWYyMmRhNTZkOTFjN2Q2MmE4
10
- ZjMxZDY5NGZkZmJmMjkzZWNiNjQxZDU4MGExYjRkNmI0ZmFhNjYwYjM3NDlh
11
- NjJhMjVkZmU1YmU5NTA0OGNmY2NlOWMzYTg2OGM0NjNkMzkwMTQ=
9
+ YjRlYzQ0MDM1NzI5YmEyZWYxMWE4MDNmNmY4NTNlMmI2MDA3YTcyNWI1ZjEw
10
+ ZmE0OTFjODAyMWZmMWNmNDYxMWI4N2VlNDE3ODc3NWJmNDNkYTFkMDI1YTM1
11
+ ZjAzOWY2YzZjNGFhOTliZjk0M2RiYzkwZjVjMDhlZGI5OGQyYzk=
12
12
  data.tar.gz: !binary |-
13
- ZTUxMmFiM2M0ZGNiNjMxODkwNGE2OTBlOGQ3MjYzMDE3NTA5NTIzOWExZWI3
14
- MzA4NmVhZTAzNDY1MGI4MTE1MTdiMTdkOWQ1MTViNzBiZmY1YWZjZjMyMjRm
15
- YWE4NzcwNTdiZTRiNWI3MTlmYjA1Yjg4ZTFiNTY0MjQ5MWEyZGI=
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:
@@ -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]}")
@@ -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 anythinga about project '#{project_name}'."
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
@@ -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
@@ -467,7 +467,11 @@ module Omnibus
467
467
  pkg.version = build_version
468
468
  pkg.name = package_name
469
469
  pkg.iteration = iteration
470
- pkg.to_s
470
+ if pkg_type == "solaris"
471
+ pkg.to_s("NAME.FULLVERSION.ARCH.TYPE")
472
+ else
473
+ pkg.to_s
474
+ end
471
475
  end
472
476
  end
473
477
 
@@ -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 == nil
252
- 2
251
+ if OHAI.cpu && OHAI.cpu[:total] && OHAI.cpu[:total].to_s =~ /^\d+$/
252
+ OHAI.cpu[:total].to_i + 1
253
253
  else
254
- OHAI.cpu[:total] + 1
254
+ 2
255
255
  end
256
256
  end
257
257
 
@@ -16,5 +16,5 @@
16
16
  #
17
17
 
18
18
  module Omnibus
19
- VERSION = "1.1.0"
19
+ VERSION = "1.1.1"
20
20
  end
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.0
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-06-12 00:00:00.000000000 Z
11
+ date: 2013-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-shellout