omnibus 6.0.25 → 6.0.30

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
  SHA256:
3
- metadata.gz: 6e008e08071c850bbd9e8021ce0eb22eb8415aaba92060de5380b399de8841fe
4
- data.tar.gz: 0260e33da4bf4a91ad49e96d8e3c0f08f9f233b8e4eb58b40208c9e8e126b34b
3
+ metadata.gz: ed65ad83fa1ddd7ebc9be5254d38054d3de93cc8ba6f681538a2d3bd25356b46
4
+ data.tar.gz: c848e02cedec959d16e647abb94fe08fb708550c1325d49a0ad3af6557181e1e
5
5
  SHA512:
6
- metadata.gz: d8b30760147a6adf9919e3fce9e34c21d7b5045f6a646f02b4c3ad7f0e35f71ee8589697618088d938e701ead1336c4f93c02a96649ad8133d5d489b098d9ca9
7
- data.tar.gz: 1a72c335607d61739ca95d8954f5b745fa990329e1cc3459460c479273d1345c8ca1c70197f1fd8ae4b5c361163108ebf1dabef69317a050d5f7b6ebe7a67664
6
+ metadata.gz: d967c3cd4a784d1839cae80a2aa00efd06fe8f6a757ad372f4d0839f332c4c3e65d43d199dc8136fc5827791e543a82dfc2bb2ad7dade918647286b0ee153853
7
+ data.tar.gz: d5a38d81451a488fde804af1d19f8dc8515b4d3b087d12b7eb305b528e8943d88e5e6e5255940c771a78b795d028b1a406d1cef0b68a006665228b6bfdb0383a
data/Gemfile CHANGED
@@ -14,5 +14,6 @@ group :debug do
14
14
  gem "pry-stack_explorer"
15
15
  end
16
16
 
17
- # this brings in several fixes to rspec-json_expectations that are causing test failures
18
- gem "rspec-json_expectations", git: "https://github.com/tas50/rspec-json_expectations.git"
17
+ if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.5")
18
+ gem "ohai", "<15"
19
+ end
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # ![Omnibus Icon](lib/omnibus/assets/README-logo.png) Omnibus
2
2
 
3
3
  [![Gem Version](http://img.shields.io/gem/v/omnibus.svg)][gem]
4
- [![Travis Build Status](http://img.shields.io/travis/chef/omnibus.svg?label=Travis%20CI)][travis]
4
+ [![Build Status](https://badge.buildkite.com/446fd6049a9a5eeab50112aba117d3b7670ec085acb91f78dd.svg?branch=master)](https://buildkite.com/chef-oss/chef-omnibus-master-verify)
5
5
  [![AppVeyor Build Status](http://img.shields.io/appveyor/ci/chef/omnibus.svg?label=AppVeyor)][appveyor]
6
6
 
7
7
  Easily create full-stack installers for your project across a variety of platforms.
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2012-2018, Chef Software Inc.
2
+ # Copyright 2012-2019, Chef Software Inc.
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -372,7 +372,7 @@ module Omnibus
372
372
  # @param (see #command)
373
373
  # @return (see #command)
374
374
  #
375
- def appbundle(software_name, lockdir: nil, gem: nil, without: nil, **options)
375
+ def appbundle(software_name, lockdir: nil, gem: nil, without: nil, extra_bin_files: nil , **options)
376
376
  build_commands << BuildCommand.new("appbundle `#{software_name}'") do
377
377
  bin_dir = "#{install_dir}/bin"
378
378
  appbundler_bin = embedded_bin("appbundler")
@@ -400,6 +400,8 @@ module Omnibus
400
400
  # get `--without` support, you will likely wind up going down a sad path).
401
401
  command << [ "--without", without.join(",") ] unless without.nil?
402
402
 
403
+ command << [ "--extra-bin-files", extra_bin_files.join(",") ] unless extra_bin_files.nil? || extra_bin_files.empty?
404
+
403
405
  # Ensure the main bin dir exists
404
406
  FileUtils.mkdir_p(bin_dir)
405
407
 
@@ -90,6 +90,7 @@ module Omnibus
90
90
 
91
91
  def create_example_software_definitions
92
92
  template("config/software/zlib.rb.erb", "#{target}/config/software/#{name}-zlib.rb", template_options)
93
+ template("config/software/preparation.rb.erb", "#{target}/config/software/preparation.rb", template_options)
93
94
  end
94
95
 
95
96
  def create_kitchen_files
@@ -16,6 +16,6 @@ group :development do
16
16
  gem 'berkshelf'
17
17
 
18
18
  # Use Test Kitchen with Vagrant for converging the build environment
19
- gem 'test-kitchen',
20
- gem 'kitchen-vagrant',
19
+ gem 'test-kitchen'
20
+ gem 'kitchen-vagrant'
21
21
  end
@@ -21,8 +21,5 @@ dependency "preparation"
21
21
  # <%= config[:name] %> dependencies/components
22
22
  # dependency "somedep"
23
23
 
24
- # Version manifest file
25
- dependency "version-manifest"
26
-
27
24
  exclude "**/.git"
28
25
  exclude "**/bundler/git"
@@ -0,0 +1,30 @@
1
+ #
2
+ # Copyright <%= Time.now.year %> YOUR NAME
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ name "preparation"
18
+ description "the steps required to preprare the build"
19
+ default_version "1.0.0"
20
+
21
+ license :project_license
22
+ skip_transitive_dependency_licensing true
23
+
24
+ build do
25
+ block do
26
+ touch "#{install_dir}/embedded/lib/.gitkeep"
27
+ touch "#{install_dir}/embedded/bin/.gitkeep"
28
+ touch "#{install_dir}/bin/.gitkeep"
29
+ end
30
+ end
@@ -630,6 +630,8 @@ module Omnibus
630
630
  case Ohai["kernel"]["machine"]
631
631
  when "i686"
632
632
  "i386"
633
+ when "armv7l" # raspberry pi 3 CentOS
634
+ "armv7hl"
633
635
  when "armv6l"
634
636
  if Ohai["platform"] == "pidora"
635
637
  "armv6hl"
@@ -15,5 +15,5 @@
15
15
  #
16
16
 
17
17
  module Omnibus
18
- VERSION = "6.0.25".freeze
18
+ VERSION = "6.0.30".freeze
19
19
  end
@@ -1,3 +1,5 @@
1
+ Encoding.default_external = Encoding::UTF_8
2
+
1
3
  require "rspec"
2
4
  require "rspec/its"
3
5
  require "rspec/json_expectations"
@@ -16,6 +18,10 @@ def mac?
16
18
  end
17
19
 
18
20
  RSpec.configure do |config|
21
+ config.expect_with :rspec do |c|
22
+ c.max_formatted_output_length = 1000
23
+ end
24
+
19
25
  # Custom matchers and shared examples
20
26
  require_relative "support/examples"
21
27
  require_relative "support/matchers"
@@ -36,6 +36,7 @@ module Omnibus
36
36
  omnibus-name/config/projects/name.rb
37
37
  omnibus-name/config/software
38
38
  omnibus-name/config/software/name-zlib.rb
39
+ omnibus-name/config/software/preparation.rb
39
40
  omnibus-name/omnibus.rb
40
41
  omnibus-name/package-scripts
41
42
  omnibus-name/package-scripts/name
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: 6.0.25
4
+ version: 6.0.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef Software, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-16 00:00:00.000000000 Z
11
+ date: 2019-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-s3
@@ -368,6 +368,7 @@ files:
368
368
  - lib/omnibus/generator_files/Gemfile.erb
369
369
  - lib/omnibus/generator_files/README.md.erb
370
370
  - lib/omnibus/generator_files/config/projects/project.rb.erb
371
+ - lib/omnibus/generator_files/config/software/preparation.rb.erb
371
372
  - lib/omnibus/generator_files/config/software/zlib.rb.erb
372
373
  - lib/omnibus/generator_files/gitignore.erb
373
374
  - lib/omnibus/generator_files/omnibus.rb.erb