omnibus 5.6.8 → 6.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +10 -7
  3. data/README.md +1 -1
  4. data/lib/omnibus.rb +1 -1
  5. data/lib/omnibus/build_version.rb +1 -1
  6. data/lib/omnibus/build_version_dsl.rb +1 -1
  7. data/lib/omnibus/builder.rb +26 -7
  8. data/lib/omnibus/cleaner.rb +1 -1
  9. data/lib/omnibus/cli.rb +1 -1
  10. data/lib/omnibus/cli/changelog.rb +1 -1
  11. data/lib/omnibus/compressor.rb +1 -1
  12. data/lib/omnibus/compressors/base.rb +1 -1
  13. data/lib/omnibus/compressors/dmg.rb +1 -1
  14. data/lib/omnibus/compressors/null.rb +1 -1
  15. data/lib/omnibus/compressors/tgz.rb +1 -1
  16. data/lib/omnibus/config.rb +1 -1
  17. data/lib/omnibus/digestable.rb +1 -1
  18. data/lib/omnibus/download_helpers.rb +1 -1
  19. data/lib/omnibus/exceptions.rb +1 -1
  20. data/lib/omnibus/fetcher.rb +1 -1
  21. data/lib/omnibus/fetchers/file_fetcher.rb +1 -1
  22. data/lib/omnibus/fetchers/git_fetcher.rb +1 -1
  23. data/lib/omnibus/fetchers/net_fetcher.rb +1 -1
  24. data/lib/omnibus/fetchers/null_fetcher.rb +1 -1
  25. data/lib/omnibus/fetchers/path_fetcher.rb +1 -1
  26. data/lib/omnibus/file_syncer.rb +1 -1
  27. data/lib/omnibus/generator.rb +1 -1
  28. data/lib/omnibus/generator_files/Berksfile.erb +1 -1
  29. data/lib/omnibus/generator_files/Gemfile.erb +1 -1
  30. data/lib/omnibus/generator_files/README.md.erb +3 -3
  31. data/lib/omnibus/git_cache.rb +1 -1
  32. data/lib/omnibus/health_check.rb +1 -1
  33. data/lib/omnibus/library.rb +1 -1
  34. data/lib/omnibus/licensing.rb +1 -1
  35. data/lib/omnibus/logger.rb +1 -1
  36. data/lib/omnibus/manifest.rb +1 -1
  37. data/lib/omnibus/manifest_entry.rb +1 -1
  38. data/lib/omnibus/metadata.rb +5 -5
  39. data/lib/omnibus/null_argumentable.rb +1 -1
  40. data/lib/omnibus/ohai.rb +1 -1
  41. data/lib/omnibus/package.rb +1 -1
  42. data/lib/omnibus/packager.rb +1 -1
  43. data/lib/omnibus/packagers/appx.rb +1 -1
  44. data/lib/omnibus/packagers/base.rb +1 -1
  45. data/lib/omnibus/packagers/bff.rb +1 -1
  46. data/lib/omnibus/packagers/deb.rb +1 -1
  47. data/lib/omnibus/packagers/ips.rb +1 -1
  48. data/lib/omnibus/packagers/makeself.rb +1 -1
  49. data/lib/omnibus/packagers/msi.rb +1 -1
  50. data/lib/omnibus/packagers/pkg.rb +1 -1
  51. data/lib/omnibus/packagers/pkgsrc.rb +1 -1
  52. data/lib/omnibus/packagers/rpm.rb +1 -1
  53. data/lib/omnibus/packagers/solaris.rb +1 -1
  54. data/lib/omnibus/packagers/windows_base.rb +1 -1
  55. data/lib/omnibus/project.rb +2 -2
  56. data/lib/omnibus/publisher.rb +1 -1
  57. data/lib/omnibus/publishers/artifactory_publisher.rb +1 -1
  58. data/lib/omnibus/publishers/null_publisher.rb +1 -1
  59. data/lib/omnibus/publishers/s3_publisher.rb +1 -1
  60. data/lib/omnibus/reports.rb +1 -1
  61. data/lib/omnibus/s3_cache.rb +1 -1
  62. data/lib/omnibus/s3_helpers.rb +1 -1
  63. data/lib/omnibus/semantic_version.rb +1 -1
  64. data/lib/omnibus/software.rb +7 -14
  65. data/lib/omnibus/sugarable.rb +1 -1
  66. data/lib/omnibus/templating.rb +1 -1
  67. data/lib/omnibus/thread_pool.rb +1 -1
  68. data/lib/omnibus/version.rb +2 -2
  69. data/lib/omnibus/whitelist.rb +1 -1
  70. data/omnibus.gemspec +5 -6
  71. data/spec/unit/compressors/dmg_spec.rb +2 -2
  72. data/spec/unit/metadata_spec.rb +3 -1
  73. data/spec/unit/packager_spec.rb +4 -4
  74. data/spec/unit/packagers/bff_spec.rb +2 -2
  75. data/spec/unit/packagers/rpm_spec.rb +2 -2
  76. data/spec/unit/project_spec.rb +3 -3
  77. data/spec/unit/publisher_spec.rb +1 -1
  78. data/spec/unit/publishers/artifactory_publisher_spec.rb +1 -1
  79. data/spec/unit/semantic_version_spec.rb +1 -1
  80. data/spec/unit/software_spec.rb +40 -18
  81. metadata +22 -30
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015 Chef Software, Inc.
2
+ # Copyright 2015-2018 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.
@@ -242,7 +242,7 @@ module Omnibus
242
242
  end
243
243
 
244
244
  context "on mac_os_x" do
245
- before { stub_ohai(platform: "mac_os_x", version: "10.12") }
245
+ before { stub_ohai(platform: "mac_os_x", version: "10.13") }
246
246
 
247
247
  it "sets the defaults" do
248
248
  expect(subject.with_standard_compiler_flags).to eq(
@@ -283,16 +283,18 @@ module Omnibus
283
283
  end
284
284
  end
285
285
 
286
- context "on freebsd 9" do
286
+ context "on freebsd 10" do
287
287
  before do
288
- stub_ohai(platform: "freebsd", version: "9.3")
288
+ stub_ohai(platform: "freebsd", version: "10.4")
289
289
  end
290
290
 
291
291
  it "sets the defaults" do
292
292
  expect(subject.with_standard_compiler_flags).to eq(
293
+ "CC" => "clang",
293
294
  "CFLAGS" => "-I/opt/project/embedded/include -O2",
294
295
  "CXXFLAGS" => "-I/opt/project/embedded/include -O2",
295
296
  "CPPFLAGS" => "-I/opt/project/embedded/include -O2",
297
+ "CXX" => "clang++",
296
298
  "LDFLAGS" => "-L/opt/project/embedded/lib",
297
299
  "LD_RUN_PATH" => "/opt/project/embedded/lib",
298
300
  "PKG_CONFIG_PATH" => "/opt/project/embedded/lib/pkgconfig",
@@ -304,26 +306,12 @@ module Omnibus
304
306
  before do
305
307
  allow(subject).to receive(:which).and_return("/usr/local/bin/gcc49")
306
308
  end
307
-
308
- it "sets the compiler args" do
309
- expect(subject.with_standard_compiler_flags).to eq(
310
- "CC" => "gcc49",
311
- "CXX" => "g++49",
312
- "CFLAGS" => "-I/opt/project/embedded/include -O2",
313
- "CXXFLAGS" => "-I/opt/project/embedded/include -O2",
314
- "CPPFLAGS" => "-I/opt/project/embedded/include -O2",
315
- "LDFLAGS" => "-L/opt/project/embedded/lib",
316
- "LD_RUN_PATH" => "/opt/project/embedded/lib",
317
- "PKG_CONFIG_PATH" => "/opt/project/embedded/lib/pkgconfig",
318
- "OMNIBUS_INSTALL_DIR" => "/opt/project"
319
- )
320
- end
321
309
  end
322
310
  end
323
311
 
324
312
  context "on freebsd 10" do
325
313
  before do
326
- stub_ohai(platform: "freebsd", version: "10.3")
314
+ stub_ohai(platform: "freebsd", version: "10.4")
327
315
  end
328
316
 
329
317
  it "Clang as the default compiler" do
@@ -824,6 +812,40 @@ module Omnibus
824
812
  end
825
813
  end
826
814
  end
815
+
816
+ context "when given source is a local file path" do
817
+ let(:source) do
818
+ {
819
+ file: "../foo.tar.gz",
820
+ }
821
+ end
822
+
823
+ context "when relative_path is the same as name" do
824
+ let(:rel_path) { "software" }
825
+
826
+ it "for back-compat, changes fetch_dir" do
827
+ subject.send(:fetcher)
828
+ expect(subject.project_dir).to eq(File.expand_path("#{Config.source_dir}/software/software"))
829
+ end
830
+
831
+ it "sets the fetcher project_dir to project_dir" do
832
+ expect(subject.send(:fetcher).project_dir).to eq(File.expand_path("#{Config.source_dir}/software/software"))
833
+ end
834
+ end
835
+
836
+ context "when relative_path is different from name" do
837
+ let(:rel_path) { "foo" }
838
+
839
+ it "ignores back-compat and leaves fetch_dir alone" do
840
+ subject.send(:fetcher)
841
+ expect(subject.project_dir).to eq(File.expand_path("#{Config.source_dir}/software/foo"))
842
+ end
843
+
844
+ it "sets the fetcher project_dir to project_dir" do
845
+ expect(subject.send(:fetcher).project_dir).to eq(File.expand_path("#{Config.source_dir}/software/foo"))
846
+ end
847
+ end
848
+ end
827
849
  end
828
850
 
829
851
  describe "#canonicalize_source" do
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: 5.6.8
4
+ version: 6.0.1
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: 2018-02-08 00:00:00.000000000 Z
11
+ date: 2018-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -28,14 +28,14 @@ dependencies:
28
28
  name: chef-sugar
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '3.3'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.3'
41
41
  - !ruby/object:Gem::Dependency
@@ -84,16 +84,22 @@ dependencies:
84
84
  name: ohai
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '8.0'
89
+ version: '13'
90
+ - - "<"
91
+ - !ruby/object:Gem::Version
92
+ version: '15'
90
93
  type: :runtime
91
94
  prerelease: false
92
95
  version_requirements: !ruby/object:Gem::Requirement
93
96
  requirements:
94
- - - "~>"
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: '13'
100
+ - - "<"
95
101
  - !ruby/object:Gem::Version
96
- version: '8.0'
102
+ version: '15'
97
103
  - !ruby/object:Gem::Dependency
98
104
  name: ruby-progressbar
99
105
  requirement: !ruby/object:Gem::Requirement
@@ -210,28 +216,28 @@ dependencies:
210
216
  name: chefstyle
211
217
  requirement: !ruby/object:Gem::Requirement
212
218
  requirements:
213
- - - ">="
219
+ - - '='
214
220
  - !ruby/object:Gem::Version
215
- version: '0'
221
+ version: '0.6'
216
222
  type: :development
217
223
  prerelease: false
218
224
  version_requirements: !ruby/object:Gem::Requirement
219
225
  requirements:
220
- - - ">="
226
+ - - '='
221
227
  - !ruby/object:Gem::Version
222
- version: '0'
228
+ version: '0.6'
223
229
  - !ruby/object:Gem::Dependency
224
230
  name: fauxhai
225
231
  requirement: !ruby/object:Gem::Requirement
226
232
  requirements:
227
- - - "~>"
233
+ - - ">="
228
234
  - !ruby/object:Gem::Version
229
235
  version: '5.2'
230
236
  type: :development
231
237
  prerelease: false
232
238
  version_requirements: !ruby/object:Gem::Requirement
233
239
  requirements:
234
- - - "~>"
240
+ - - ">="
235
241
  - !ruby/object:Gem::Version
236
242
  version: '5.2'
237
243
  - !ruby/object:Gem::Dependency
@@ -318,20 +324,6 @@ dependencies:
318
324
  - - ">="
319
325
  - !ruby/object:Gem::Version
320
326
  version: '0'
321
- - !ruby/object:Gem::Dependency
322
- name: pry
323
- requirement: !ruby/object:Gem::Requirement
324
- requirements:
325
- - - ">="
326
- - !ruby/object:Gem::Version
327
- version: '0'
328
- type: :development
329
- prerelease: false
330
- version_requirements: !ruby/object:Gem::Requirement
331
- requirements:
332
- - - ">="
333
- - !ruby/object:Gem::Version
334
- version: '0'
335
327
  description: Omnibus is a framework for building self-installing, full-stack software
336
328
  builds.
337
329
  email: releng@chef.io
@@ -559,7 +551,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
559
551
  requirements:
560
552
  - - ">="
561
553
  - !ruby/object:Gem::Version
562
- version: '2.2'
554
+ version: '2.4'
563
555
  required_rubygems_version: !ruby/object:Gem::Requirement
564
556
  requirements:
565
557
  - - ">="
@@ -567,7 +559,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
567
559
  version: '0'
568
560
  requirements: []
569
561
  rubyforge_project:
570
- rubygems_version: 2.7.4
562
+ rubygems_version: 2.7.6
571
563
  signing_key:
572
564
  specification_version: 4
573
565
  summary: Omnibus is a framework for building self-installing, full-stack software