omnibus 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTkxMzRjMmQ2ZmZhZGE4YjBiYzdjOTllOTBhYzFhMDc5ODY0OThhNQ==
4
+ ZTI1NmVlOGQxN2VlMDU1M2VhMDU1NDA3ZjI3M2QxZmI0YzcwNTIyMQ==
5
5
  data.tar.gz: !binary |-
6
- ZmIzYjRiNDdjNDkyYzVhMGY4YTk3ODNiMmVjYTg4YjVlMWE2MDE0YQ==
6
+ MjhhMDNhYTVmZGYyZTE2MDFiMmIyZmEwZmI2MzM1YjYwZTZlZTFmYw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZjljYzFjNTU4MDI2NDY5YzRhZmEwNjcyOTA4ZmRiNGE1YWVmYThmYzhmOGI3
10
- NGEwMWZlNDI0YzdjZmY5OTg5YWQ1MjAwOTM4Y2I3MTgxNmJhMjQ4YWI2MDhl
11
- MjU4OTVlN2E3Zjc4YTY5YjQ2MTNmMmU2MzRjOWVjZTYyOTg3ZmE=
9
+ NTY5N2NiNGM4MmE2MDVhZDNiNzc3Y2Y3OWM2NDllMjE4MTQyY2ViZTkxNmVj
10
+ ZGVkY2I0NTgxODdmMmFmNTViY2RkNDdiNmJiNjA5MWE5MjQ5ZmUyOGU4YjU1
11
+ ZDNiYTEwOGEyNzliZmRjMGVlYjdjNjkzYzgwOWIzMzU4MTU0MzI=
12
12
  data.tar.gz: !binary |-
13
- MDEzMmM5MzRiZjM4YWQ4ZTE3NjMxYTkxNjNiYjYxM2RkYmFiNWRiYjk4YjRi
14
- Zjk0ZGNmNjM1YjhmZDI3ZDU4YjZlMWZmMTc3N2Y3MzNmMGMyNWQxOGFlNWNk
15
- MmY0NTljMzdjNTI2NjAwNWVkOGE3MGRmYmExODU5NjY2MTliYjQ=
13
+ MmU3ODFlN2YxMmViYzIzMTZiNTAxZWM2YWVjYTI2NTRhYzk1OTU3MjYwMDAx
14
+ NmFjZWJhZGYyNGEyZjBkY2QwNGM3ODEzOTQwZjE4YzMwMTg0OWNiNDI1MDg5
15
+ NWQ1ZWExOTNjNTdmNmRjNTQ1ODljM2RkNWNiMjFmYWI3OGU1YTg=
data/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## 1.0.3 (May 2, 2013)
2
+
3
+ FEATURES:
4
+
5
+ * [CHEF-2576] - SmartOS health check whitelist support
6
+ * [CHEF-4141] - FreeBSD health check whitelist support
7
+ * [CHEF-3990] - Add support to uncompress zip file
8
+
9
+ BUG FIXES:
10
+
11
+ * Fix project homepage in gemspec
12
+ * Proper Thor 0.16.0, 0.17.0 suppport - Thor 0.18.0 renamed current_task to
13
+ current_command
14
+
1
15
  ## 1.0.2 (April 23, 2013)
2
16
 
3
17
  IMPROVEMENTS:
data/bin/makeself.sh CHANGED
@@ -358,8 +358,8 @@ else
358
358
  PATH=${GUESS_MD5_PATH:-"$OLD_PATH:/bin:/usr/bin:/sbin:/usr/local/ssl/bin:/usr/local/bin:/opt/openssl/bin"}
359
359
  MD5_ARG=""
360
360
  MD5_PATH=`exec <&- 2>&-; which md5sum || type md5sum`
361
- test -x $MD5_PATH || MD5_PATH=`exec <&- 2>&-; which md5 || type md5`
362
- test -x $MD5_PATH || MD5_PATH=`exec <&- 2>&-; which digest || type digest`
361
+ test -x "$MD5_PATH" || MD5_PATH=`exec <&- 2>&-; which md5 || type md5`
362
+ test -x "$MD5_PATH" || MD5_PATH=`exec <&- 2>&-; which digest || type digest`
363
363
  PATH=$OLD_PATH
364
364
  if test `basename $MD5_PATH` = digest; then
365
365
  MD5_ARG="-a md5"
@@ -33,8 +33,9 @@ module Omnibus
33
33
  super(args, options, config)
34
34
  $stdout.sync = true
35
35
 
36
- # Don't try to initialize the Omnibus project for help commands
37
- return if config[:current_command].name == "help"
36
+ # Don't try to initialize the Omnibus project for help commands. current_task renamed to current_command in Thor 0.18.0
37
+ current_command = config[:current_command] ? config[:current_command].name : config[:current_task].name
38
+ return if current_command == "help"
38
39
 
39
40
  if path = @options[:path]
40
41
  if (config = @options[:config]) && File.exist?(@options[:config])
@@ -177,6 +177,8 @@ E
177
177
  "bzip2 -dc #{project_file} | ( cd #{source_dir} && tar -xf - )"
178
178
  elsif project_file.end_with?(".7z")
179
179
  "7z.exe x #{project_file} -o#{source_dir} -r -y"
180
+ elsif project_file.end_with?(".zip")
181
+ "unzip #{project_file} -d #{source_dir}"
180
182
  else
181
183
  #if we don't recognize the extension, simply copy over the file
182
184
  Proc.new do
@@ -33,7 +33,7 @@ module Omnibus
33
33
  /libstdc\+\+\.so/,
34
34
  /libutil\.so/,
35
35
  /linux-vdso.+/,
36
- /linux-gate\.so/,
36
+ /linux-gate\.so/
37
37
  ]
38
38
 
39
39
  SOLARIS_WHITELIST_LIBS = [
@@ -66,7 +66,22 @@ module Omnibus
66
66
  # solaris 9 libraries:
67
67
  /libm\.so\.1/,
68
68
  /libc_psr\.so\.1/,
69
- /s9_preload\.so\.1/,
69
+ /s9_preload\.so\.1/
70
+ ]
71
+
72
+ SMARTOS_WHITELIST_LIBS = [
73
+ /libm.so/,
74
+ /libpthread.so/,
75
+ /librt.so/,
76
+ /libsocket.so/,
77
+ /libdl.so/,
78
+ /libnsl.so/,
79
+ /libgen.so/,
80
+ /libmp.so/,
81
+ /libmd.so/,
82
+ /libc.so/,
83
+ /libgcc_s.so/,
84
+ /libcrypt.so/
70
85
  ]
71
86
 
72
87
  MAC_WHITELIST_LIBS = [
@@ -84,11 +99,20 @@ module Omnibus
84
99
  /libiconv/
85
100
  ]
86
101
 
102
+ FREEBSD_WHITELIST_LIBS = [
103
+ /libc\.so/,
104
+ /libcrypt\.so/,
105
+ /libm\.so/,
106
+ /librt\.so/,
107
+ /libthr\.so/,
108
+ /libutil\.so/
109
+ ]
110
+
87
111
  WHITELIST_FILES = [
88
112
  /jre\/bin\/javaws/,
89
113
  /jre\/bin\/policytool/,
90
114
  /jre\/lib/,
91
- /jre\/plugin/,
115
+ /jre\/plugin/
92
116
  ]
93
117
 
94
118
  def self.log(msg)
@@ -182,6 +206,10 @@ module Omnibus
182
206
  MAC_WHITELIST_LIBS
183
207
  when 'solaris2'
184
208
  SOLARIS_WHITELIST_LIBS
209
+ when 'smartos'
210
+ SMARTOS_WHITELIST_LIBS
211
+ when 'freebsd'
212
+ FREEBSD_WHITELIST_LIBS
185
213
  else
186
214
  WHITELIST_LIBS
187
215
  end
@@ -148,6 +148,10 @@ module Omnibus
148
148
  platform_version =~ /^(\d+)/
149
149
  maj = $1
150
150
  "#{build_iteration}.el#{maj}"
151
+ when 'freebsd'
152
+ platform_version =~ /^(\d+)/
153
+ maj = $1
154
+ "#{build_iteration}.#{platform}.#{maj}.#{machine}"
151
155
  when 'windows'
152
156
  "#{build_iteration}.windows"
153
157
  else
@@ -299,6 +303,10 @@ module Omnibus
299
303
  OHAI.platform_family
300
304
  end
301
305
 
306
+ def machine
307
+ OHAI['kernel']['machine']
308
+ end
309
+
302
310
  # Convenience method for accessing the global Omnibus configuration object.
303
311
  #
304
312
  # @return Omnibus::Config
@@ -16,5 +16,5 @@
16
16
  #
17
17
 
18
18
  module Omnibus
19
- VERSION = "1.0.2"
19
+ VERSION = "1.0.3"
20
20
  end
data/omnibus.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
11
11
  gem.email = "info@opscode.com"
12
12
  gem.description = "Omnibus helps you build self-installing, full-stack software builds."
13
13
  gem.summary = gem.description
14
- gem.homepage = "https://github.com/opscode/opscode-ruby"
14
+ gem.homepage = "https://github.com/opscode/omnibus-ruby"
15
15
 
16
16
  gem.required_ruby_version = ">= 1.9.1"
17
17
 
@@ -0,0 +1,16 @@
1
+ require 'spec_helper'
2
+
3
+ describe Omnibus::NetFetcher do
4
+ it "should download and uncompress zip files" do
5
+ software_mock = stub 'software'
6
+ software_mock.stub :project_file => 'file.zip',
7
+ :name => 'file',
8
+ :source => '/tmp/out',
9
+ :checksum => 'abc123',
10
+ :source_uri => 'http://example.com/file.zip',
11
+ :source_dir => '/tmp/out',
12
+ :project_dir => '/tmp/project'
13
+ net_fetcher = Omnibus::NetFetcher.new software_mock
14
+ net_fetcher.extract_cmd.should == 'unzip file.zip -d /tmp/out'
15
+ end
16
+ 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.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Opscode
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-23 00:00:00.000000000 Z
11
+ date: 2013-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-shellout
@@ -201,10 +201,11 @@ files:
201
201
  - spec/data/overrides/good.overrides
202
202
  - spec/data/overrides/with_dupes.overrides
203
203
  - spec/data/software/erchef.rb
204
+ - spec/fetchers/net_fetcher_spec.rb
204
205
  - spec/overrides_spec.rb
205
206
  - spec/software_spec.rb
206
207
  - spec/spec_helper.rb
207
- homepage: https://github.com/opscode/opscode-ruby
208
+ homepage: https://github.com/opscode/omnibus-ruby
208
209
  licenses:
209
210
  - Apache 2.0
210
211
  metadata: {}
@@ -234,6 +235,7 @@ test_files:
234
235
  - spec/data/overrides/good.overrides
235
236
  - spec/data/overrides/with_dupes.overrides
236
237
  - spec/data/software/erchef.rb
238
+ - spec/fetchers/net_fetcher_spec.rb
237
239
  - spec/overrides_spec.rb
238
240
  - spec/software_spec.rb
239
241
  - spec/spec_helper.rb