chef-dk 2.1.11 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +4 -4
  3. data/Gemfile.lock +60 -50
  4. data/README.md +3 -3
  5. data/acceptance/Gemfile.lock +32 -36
  6. data/chef-dk.gemspec +1 -1
  7. data/lib/chef-dk/command/generate.rb +1 -1
  8. data/lib/chef-dk/command/generator_commands/helpers.rb +2 -2
  9. data/lib/chef-dk/command/provision.rb +1 -1
  10. data/lib/chef-dk/cookbook_profiler/identifiers.rb +1 -1
  11. data/lib/chef-dk/exceptions.rb +1 -1
  12. data/lib/chef-dk/helpers.rb +2 -2
  13. data/lib/chef-dk/policyfile/artifactory_cookbook_source.rb +1 -1
  14. data/lib/chef-dk/policyfile/solution_dependencies.rb +1 -1
  15. data/lib/chef-dk/policyfile/source_uri.rb +2 -2
  16. data/lib/chef-dk/policyfile_compiler.rb +2 -2
  17. data/lib/chef-dk/skeletons/code_generator/files/default/build_cookbook/.kitchen.yml +1 -1
  18. data/lib/chef-dk/skeletons/code_generator/files/default/delivery-config.json +3 -1
  19. data/lib/chef-dk/skeletons/code_generator/files/default/gitignore +1 -0
  20. data/lib/chef-dk/skeletons/code_generator/recipes/cookbook.rb +7 -0
  21. data/lib/chef-dk/skeletons/code_generator/templates/default/kitchen.yml.erb +1 -1
  22. data/lib/chef-dk/skeletons/code_generator/templates/default/kitchen_policyfile.yml.erb +1 -1
  23. data/lib/chef-dk/version.rb +1 -1
  24. data/omnibus_overrides.rb +2 -2
  25. data/spec/unit/cli_spec.rb +4 -4
  26. data/spec/unit/command/generator_commands/base_spec.rb +1 -1
  27. data/spec/unit/command/generator_commands/build_cookbook_spec.rb +2 -2
  28. data/spec/unit/command/generator_commands/cookbook_spec.rb +6 -3
  29. data/spec/unit/command/generator_commands/helpers_spec.rb +3 -3
  30. data/spec/unit/command/generator_commands/recipe_spec.rb +3 -2
  31. data/spec/unit/cookbook_profiler/git_spec.rb +1 -0
  32. data/spec/unit/generator_spec.rb +5 -5
  33. data/spec/unit/policyfile/chef_repo_cookbook_source_spec.rb +4 -4
  34. data/spec/unit/policyfile/solution_dependencies_spec.rb +4 -4
  35. data/spec/unit/policyfile/source_uri_spec.rb +1 -1
  36. data/spec/unit/policyfile/uploader_spec.rb +3 -2
  37. data/spec/unit/policyfile_demands_spec.rb +0 -1
  38. data/spec/unit/policyfile_lock_build_spec.rb +0 -1
  39. data/spec/unit/policyfile_services/update_spec.rb +7 -10
  40. data/tasks/announce.rb +2 -3
  41. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 829f122f43726668a549776bfcf08866bd964d1f
4
- data.tar.gz: 706b08e7b6fd30398637987668619ce630a3cf99
3
+ metadata.gz: d0ac21757728bf2929d02b02907e26e5a21c4f2e
4
+ data.tar.gz: 67cc4fe0f04200bad1514480a8761e95be76b5ef
5
5
  SHA512:
6
- metadata.gz: 6386fc330b45fd81d06588320e496d6aa166c5b5c071f8f60a4c96467c467a273cf1fbe9a9f419c87387cada9d5200b464329f1b1e8cc13a4b020d8b1875035d
7
- data.tar.gz: d3319d7259f4190a6368af6d2be959ad50d68e25a81e458ea63f386984895958838ac48c460def6badc30c944f89f042b9d8283c942ce9e62da296a5b2a59dde
6
+ metadata.gz: 3022ea4a851f7bc1f401f73d5107eaf9ce63569a16a5b6ae8ac1e394343ce3c3c80cf8793f41cd0faa413c9a0d2ce47bf2a5b2dcff892019ccdfa8b8eded82df
7
+ data.tar.gz: 1865eca49e6bda07c62497f52fda3dedbfbc973febf611e60de753e45c591846a2db0c675955b4a3d7ee2b85afd4a4b62382b9b7c173a580bce3c2f9e203caec
data/Gemfile CHANGED
@@ -19,9 +19,6 @@ source "https://rubygems.org"
19
19
 
20
20
  gemspec
21
21
 
22
- # temporary pin until molinillo is fixed
23
- gem "molinillo", "< 0.6.0"
24
-
25
22
  gem "bundler"
26
23
 
27
24
  group(:omnibus_package, :development, :test) do
@@ -47,7 +44,7 @@ group(:omnibus_package) do
47
44
  gem "chef-provisioning-azure", ">= 0.6.0"
48
45
  gem "chef-provisioning-fog", ">= 0.20.0"
49
46
  gem "chef-vault"
50
- gem "chef", "= 13.2.20"
47
+ gem "chef", "= 13.4.19"
51
48
  gem "cheffish", ">= 13.0"
52
49
  gem "chefspec"
53
50
  gem "fauxhai"
@@ -85,6 +82,7 @@ group(:omnibus_package) do
85
82
  gem "winrm-fs"
86
83
  gem "winrm-elevated"
87
84
  gem "cucumber"
85
+ gem "stove"
88
86
  end
89
87
 
90
88
  # Everything except AIX
@@ -97,6 +95,8 @@ group(:ruby_shadow) do
97
95
  gem "ruby-shadow", platform: :ruby
98
96
  end
99
97
 
98
+ gem "chefstyle", group: :test
99
+
100
100
  # TODO delete this when we figure out how to include the pushy windows dependencies
101
101
  # correctly
102
102
  platforms :mswin, :mingw do
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chef-dk (2.1.11)
4
+ chef-dk (2.3.1)
5
5
  addressable (>= 2.3.5, < 2.6)
6
6
  chef (~> 13.0)
7
7
  chef-provisioning (~> 2.0)
@@ -12,7 +12,7 @@ PATH
12
12
  mixlib-cli (~> 1.7)
13
13
  mixlib-shellout (~> 2.0)
14
14
  paint (~> 1.0)
15
- solve (> 2.0, < 4.0)
15
+ solve (> 2.0, < 5.0)
16
16
 
17
17
  GEM
18
18
  remote: https://rubygems.org/
@@ -23,29 +23,30 @@ GEM
23
23
  minitest (~> 5.1)
24
24
  thread_safe (~> 0.3, >= 0.3.4)
25
25
  tzinfo (~> 1.1)
26
- addressable (2.5.1)
27
- public_suffix (~> 2.0, >= 2.0.2)
26
+ addressable (2.5.2)
27
+ public_suffix (>= 2.0.2, < 4.0)
28
28
  app_conf (0.4.2)
29
29
  appbundler (0.10.0)
30
30
  mixlib-cli (~> 1.4)
31
+ mixlib-shellout (~> 2.0)
31
32
  artifactory (2.8.2)
32
33
  ast (2.3.0)
33
34
  autoparse (0.3.3)
34
35
  addressable (>= 2.3.1)
35
36
  extlib (>= 0.9.15)
36
37
  multi_json (>= 1.0.0)
37
- aws-sdk (2.10.24)
38
- aws-sdk-resources (= 2.10.24)
39
- aws-sdk-core (2.10.24)
38
+ aws-sdk (2.10.45)
39
+ aws-sdk-resources (= 2.10.45)
40
+ aws-sdk-core (2.10.45)
40
41
  aws-sigv4 (~> 1.0)
41
42
  jmespath (~> 1.0)
42
- aws-sdk-resources (2.10.24)
43
- aws-sdk-core (= 2.10.24)
43
+ aws-sdk-resources (2.10.45)
44
+ aws-sdk-core (= 2.10.45)
44
45
  aws-sdk-v1 (1.67.0)
45
46
  json (~> 1.4)
46
47
  nokogiri (~> 1)
47
- aws-sigv4 (1.0.1)
48
- berkshelf (6.3.0)
48
+ aws-sigv4 (1.0.2)
49
+ berkshelf (6.3.1)
49
50
  buff-config (~> 2.0)
50
51
  buff-extensions (~> 2.0)
51
52
  chef (>= 12.7.2)
@@ -59,7 +60,7 @@ GEM
59
60
  octokit (~> 4.0)
60
61
  retryable (~> 2.0)
61
62
  ridley (~> 5.0)
62
- solve (> 2.0, < 4.0)
63
+ solve (~> 4.0)
63
64
  thor (~> 0.19, < 0.19.2)
64
65
  binding_of_caller (0.7.2)
65
66
  debug_inspector (>= 0.0.1)
@@ -73,16 +74,16 @@ GEM
73
74
  buff-shell_out (1.1.0)
74
75
  buff-ruby_engine (~> 1.0)
75
76
  builder (3.2.3)
76
- byebug (9.0.6)
77
+ byebug (9.1.0)
77
78
  celluloid (0.16.0)
78
79
  timers (~> 4.0.0)
79
80
  celluloid-io (0.16.2)
80
81
  celluloid (>= 0.16.0)
81
82
  nio4r (>= 1.1.0)
82
- chef (13.2.20)
83
+ chef (13.4.19)
83
84
  addressable
84
85
  bundler (>= 1.10)
85
- chef-config (= 13.2.20)
86
+ chef-config (= 13.4.19)
86
87
  chef-zero (>= 13.0)
87
88
  diff-lcs (~> 1.2, >= 1.2.4)
88
89
  erubis (~> 2.7)
@@ -109,10 +110,10 @@ GEM
109
110
  specinfra (~> 2.10)
110
111
  syslog-logger (~> 1.6)
111
112
  uuidtools (~> 2.1.5)
112
- chef (13.2.20-universal-mingw32)
113
+ chef (13.4.19-universal-mingw32)
113
114
  addressable
114
115
  bundler (>= 1.10)
115
- chef-config (= 13.2.20)
116
+ chef-config (= 13.4.19)
116
117
  chef-zero (>= 13.0)
117
118
  diff-lcs (~> 1.2, >= 1.2.4)
118
119
  erubis (~> 2.7)
@@ -150,7 +151,10 @@ GEM
150
151
  win32-service (~> 0.8.7)
151
152
  windows-api (~> 0.4.4)
152
153
  wmi-lite (~> 1.0)
153
- chef-config (13.2.20)
154
+ chef-api (0.7.1)
155
+ logify (~> 0.1)
156
+ mime-types
157
+ chef-config (13.4.19)
154
158
  addressable
155
159
  fuzzyurl
156
160
  mixlib-config (~> 2.0)
@@ -184,7 +188,7 @@ GEM
184
188
  retryable
185
189
  winrm-elevated
186
190
  chef-sugar (3.5.0)
187
- chef-vault (3.2.0)
191
+ chef-vault (3.3.0)
188
192
  chef-zero (13.1.0)
189
193
  ffi-yajl (~> 2.2)
190
194
  hashie (>= 2.0, < 4.0)
@@ -198,12 +202,14 @@ GEM
198
202
  chef (>= 12.14.89)
199
203
  fauxhai (>= 4, < 6)
200
204
  rspec (~> 3.0)
205
+ chefstyle (0.6.0)
206
+ rubocop (= 0.49.1)
201
207
  cleanroom (1.0.0)
202
- coderay (1.1.1)
208
+ coderay (1.1.2)
203
209
  concurrent-ruby (1.0.5)
204
210
  cookbook-omnifetch (0.6.0)
205
211
  mixlib-archive (~> 0.4)
206
- cookstyle (2.0.0)
212
+ cookstyle (2.1.0)
207
213
  rubocop (= 0.49.1)
208
214
  cucumber (2.4.0)
209
215
  builder (>= 2.1.2)
@@ -221,7 +227,7 @@ GEM
221
227
  thor (~> 0.19)
222
228
  debug_inspector (0.0.3)
223
229
  dep-selector-libgecode (1.3.1)
224
- dep_selector (1.0.5)
230
+ dep_selector (1.0.6)
225
231
  dep-selector-libgecode (~> 1.0)
226
232
  ffi (~> 1.9)
227
233
  diff-lcs (1.3)
@@ -230,9 +236,9 @@ GEM
230
236
  excon (>= 0.38.0)
231
237
  json
232
238
  erubis (2.7.0)
233
- excon (0.58.0)
239
+ excon (0.59.0)
234
240
  extlib (0.9.16)
235
- faraday (0.12.2)
241
+ faraday (0.13.1)
236
242
  multipart-post (>= 1.2, < 3)
237
243
  fauxhai (5.3.0)
238
244
  net-ssh
@@ -291,7 +297,7 @@ GEM
291
297
  fog-atmos (0.1.0)
292
298
  fog-core
293
299
  fog-xml
294
- fog-aws (1.4.0)
300
+ fog-aws (1.4.1)
295
301
  fog-core (~> 1.38)
296
302
  fog-json (~> 1.0)
297
303
  fog-xml (~> 0.1)
@@ -338,7 +344,7 @@ GEM
338
344
  fog-json (1.0.2)
339
345
  fog-core (~> 1.0)
340
346
  multi_json (~> 1.10)
341
- fog-local (0.3.1)
347
+ fog-local (0.4.0)
342
348
  fog-core (~> 1.27)
343
349
  fog-openstack (0.1.21)
344
350
  fog-core (>= 1.40)
@@ -388,7 +394,7 @@ GEM
388
394
  fog-voxel (0.1.0)
389
395
  fog-core
390
396
  fog-xml
391
- fog-vsphere (1.11.3)
397
+ fog-vsphere (1.12.0)
392
398
  fog-core
393
399
  rbvmomi (~> 1.9)
394
400
  fog-xenserver (0.3.0)
@@ -397,7 +403,7 @@ GEM
397
403
  fog-xml (0.1.3)
398
404
  fog-core
399
405
  nokogiri (>= 1.5.11, < 2.0.0)
400
- foodcritic (11.3.0)
406
+ foodcritic (11.4.0)
401
407
  cucumber-core (>= 1.3)
402
408
  erubis
403
409
  ffi-yajl (~> 2.0)
@@ -451,7 +457,7 @@ GEM
451
457
  inflecto (0.0.2)
452
458
  inifile (3.0.0)
453
459
  iniparse (1.4.4)
454
- inspec (1.33.1)
460
+ inspec (1.36.1)
455
461
  addressable (~> 2.4)
456
462
  faraday (>= 0.9.0)
457
463
  hashie (~> 3.4)
@@ -476,7 +482,7 @@ GEM
476
482
  jmespath (1.3.1)
477
483
  json (1.8.6)
478
484
  jwt (1.5.6)
479
- kitchen-dokken (2.6.1)
485
+ kitchen-dokken (2.6.5)
480
486
  docker-api (~> 1.33)
481
487
  lockfile (~> 2.1)
482
488
  test-kitchen (~> 1.15)
@@ -486,13 +492,13 @@ GEM
486
492
  multi_json
487
493
  retryable (~> 2.0)
488
494
  test-kitchen (~> 1.4, >= 1.4.1)
489
- kitchen-hyperv (0.5.0)
495
+ kitchen-hyperv (0.5.1)
490
496
  test-kitchen (~> 1.4)
491
497
  kitchen-inspec (0.19.0)
492
498
  hashie (~> 3.4)
493
499
  inspec (>= 0.34.0, < 2.0.0)
494
500
  test-kitchen (~> 1.6)
495
- kitchen-vagrant (1.2.0)
501
+ kitchen-vagrant (1.2.1)
496
502
  test-kitchen (~> 1.4)
497
503
  knife-opc (0.3.2)
498
504
  knife-push (1.0.3)
@@ -517,6 +523,7 @@ GEM
517
523
  logging (2.2.2)
518
524
  little-plugger (~> 1.1)
519
525
  multi_json (~> 1.10)
526
+ logify (0.2.0)
520
527
  lumberjack (1.0.12)
521
528
  macaddr (1.7.1)
522
529
  systemu (~> 2.6.2)
@@ -530,8 +537,7 @@ GEM
530
537
  minitest (5.10.3)
531
538
  mixlib-archive (0.4.1)
532
539
  mixlib-log
533
- mixlib-authentication (1.4.1)
534
- mixlib-log
540
+ mixlib-authentication (1.4.2)
535
541
  mixlib-cli (1.7.0)
536
542
  mixlib-config (2.2.4)
537
543
  mixlib-install (2.1.12)
@@ -545,8 +551,8 @@ GEM
545
551
  win32-process (~> 0.8.2)
546
552
  wmi-lite (~> 1.0)
547
553
  mixlib-versioning (1.2.2)
548
- molinillo (0.5.7)
549
- multi_json (1.12.1)
554
+ molinillo (0.6.3)
555
+ multi_json (1.12.2)
550
556
  multi_test (0.1.2)
551
557
  multipart-post (2.0.0)
552
558
  nenv (0.3.0)
@@ -554,7 +560,7 @@ GEM
554
560
  net-ssh (>= 2.6.5)
555
561
  net-sftp (2.1.2)
556
562
  net-ssh (>= 2.6.5)
557
- net-ssh (4.1.0)
563
+ net-ssh (4.2.0)
558
564
  net-ssh-gateway (1.3.0)
559
565
  net-ssh (>= 2.6.5)
560
566
  net-ssh-multi (1.2.1)
@@ -574,7 +580,7 @@ GEM
574
580
  shellany (~> 0.0)
575
581
  octokit (4.7.0)
576
582
  sawyer (~> 0.8.0, >= 0.5.3)
577
- ohai (13.3.0)
583
+ ohai (13.4.0)
578
584
  chef-config (>= 12.5.0.alpha.1, < 14)
579
585
  ffi (~> 1.9)
580
586
  ffi-yajl (~> 2.2)
@@ -606,8 +612,8 @@ GEM
606
612
  coderay (~> 1.1.0)
607
613
  method_source (~> 0.8.1)
608
614
  slop (~> 3.4)
609
- pry-byebug (3.4.2)
610
- byebug (~> 9.0)
615
+ pry-byebug (3.5.0)
616
+ byebug (~> 9.1)
611
617
  pry (~> 0.10)
612
618
  pry-remote (0.1.8)
613
619
  pry (~> 0.9)
@@ -615,11 +621,11 @@ GEM
615
621
  pry-stack_explorer (0.4.9.2)
616
622
  binding_of_caller (>= 0.7)
617
623
  pry (>= 0.9.11)
618
- public_suffix (2.0.5)
624
+ public_suffix (3.0.0)
619
625
  rack (2.0.3)
620
626
  rainbow (2.2.2)
621
627
  rake
622
- rake (12.0.0)
628
+ rake (12.1.0)
623
629
  rb-fsevent (0.10.2)
624
630
  rb-inotify (0.9.10)
625
631
  ffi (>= 0.5.0, < 2)
@@ -678,7 +684,7 @@ GEM
678
684
  ruby-progressbar (~> 1.7)
679
685
  unicode-display_width (~> 1.0, >= 1.0.1)
680
686
  ruby-prof (0.16.2)
681
- ruby-progressbar (1.8.1)
687
+ ruby-progressbar (1.8.3)
682
688
  ruby-shadow (2.5.0)
683
689
  ruby_dep (1.5.0)
684
690
  rubyntlm (0.6.2)
@@ -702,15 +708,18 @@ GEM
702
708
  jwt (~> 1.5)
703
709
  multi_json (~> 1.10)
704
710
  slop (3.6.0)
705
- solve (3.1.1)
706
- molinillo (>= 0.5)
711
+ solve (4.0.0)
712
+ molinillo (~> 0.6)
707
713
  semverse (>= 1.1, < 3.0)
708
- specinfra (2.70.1)
714
+ specinfra (2.71.2)
709
715
  net-scp
710
716
  net-ssh (>= 2.7, < 5.0)
711
717
  net-telnet
712
718
  sfl
713
719
  sslshake (1.2.0)
720
+ stove (6.0.0)
721
+ chef-api (~> 0.5)
722
+ logify (~> 0.2)
714
723
  stuartpreston-azure-sdk-for-ruby (0.7.2)
715
724
  json (~> 1.8)
716
725
  mime-types (> 1, < 4)
@@ -733,7 +742,7 @@ GEM
733
742
  hitimes
734
743
  toml (0.1.2)
735
744
  parslet (~> 1.5.0)
736
- train (0.26.0)
745
+ train (0.26.2)
737
746
  docker-api (~> 1.26)
738
747
  json (>= 1.8, < 3.0)
739
748
  mixlib-shellout (~> 2.0)
@@ -808,7 +817,7 @@ DEPENDENCIES
808
817
  artifactory
809
818
  berkshelf (>= 6.3)
810
819
  bundler
811
- chef (= 13.2.20)
820
+ chef (= 13.4.19)
812
821
  chef-dk!
813
822
  chef-provisioning (>= 2.4.0)
814
823
  chef-provisioning-aws (>= 2.0)
@@ -818,6 +827,7 @@ DEPENDENCIES
818
827
  chef-vault
819
828
  cheffish (>= 13.0)
820
829
  chefspec
830
+ chefstyle
821
831
  cookstyle (>= 2.0.0)
822
832
  cucumber
823
833
  dco
@@ -841,7 +851,6 @@ DEPENDENCIES
841
851
  listen
842
852
  mixlib-install
843
853
  mixlib-versioning
844
- molinillo (< 0.6.0)
845
854
  nokogiri
846
855
  ohai (>= 13.1.0)
847
856
  opscode-pushy-client (>= 2.3.0)
@@ -859,6 +868,7 @@ DEPENDENCIES
859
868
  rubocop
860
869
  ruby-prof
861
870
  ruby-shadow
871
+ stove
862
872
  test-kitchen
863
873
  win32-api
864
874
  win32-dir
@@ -873,4 +883,4 @@ DEPENDENCIES
873
883
  yard
874
884
 
875
885
  BUNDLED WITH
876
- 1.15.3
886
+ 1.15.4
data/README.md CHANGED
@@ -321,13 +321,13 @@ packaging, and building works.
321
321
  - - -
322
322
 
323
323
  [Berkshelf]: https://docs.chef.io/berkshelf.html "Berkshelf"
324
- [Chef]: https://www.chef.io "Chef"
324
+ [Chef]: https://www.chef.io/chef/ "Chef"
325
325
  [ChefDK]: https://downloads.chef.io/chefdk "Chef Development Kit"
326
326
  [Chef Documentation]: https://docs.chef.io "Chef Documentation"
327
- [ChefSpec]: http://sethvargo.github.io/chefspec/ "ChefSpec"
327
+ [ChefSpec]: http://chefspec.github.io/chefspec/ "ChefSpec"
328
328
  [Cookstyle]: https://docs.chef.io/cookstyle.html "Cookstyle"
329
329
  [Foodcritic]: http://foodcritic.io "Foodcritic"
330
330
  [Learn Chef]: https://learn.chef.io "Learn Chef"
331
331
  [Test Kitchen]: http://kitchen.ci "Test Kitchen"
332
- [Delivery CLI]: https://docs.chef.io/ctl_delivery.html "Delivery CLI"
332
+ [Delivery CLI]: https://docs.chef.io/delivery_cli.html "Delivery CLI"
333
333
  [Push Jobs Client]: https://docs.chef.io/push_jobs.html#push-jobs-client "Push Jobs Client"
@@ -9,22 +9,21 @@ GIT
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- addressable (2.5.1)
13
- public_suffix (~> 2.0, >= 2.0.2)
12
+ addressable (2.5.2)
13
+ public_suffix (>= 2.0.2, < 4.0)
14
14
  artifactory (2.8.2)
15
- aws-sdk (2.10.10)
16
- aws-sdk-resources (= 2.10.10)
17
- aws-sdk-core (2.10.10)
15
+ aws-sdk (2.10.44)
16
+ aws-sdk-resources (= 2.10.44)
17
+ aws-sdk-core (2.10.44)
18
18
  aws-sigv4 (~> 1.0)
19
19
  jmespath (~> 1.0)
20
- aws-sdk-resources (2.10.10)
21
- aws-sdk-core (= 2.10.10)
22
- aws-sigv4 (1.0.1)
23
- berkshelf (6.2.0)
24
- addressable (~> 2.3, >= 2.3.4)
25
- berkshelf-api-client (>= 4.0.0)
20
+ aws-sdk-resources (2.10.44)
21
+ aws-sdk-core (= 2.10.44)
22
+ aws-sigv4 (1.0.2)
23
+ berkshelf (6.3.1)
26
24
  buff-config (~> 2.0)
27
25
  buff-extensions (~> 2.0)
26
+ chef (>= 12.7.2)
28
27
  cleanroom (~> 1.0)
29
28
  concurrent-ruby (~> 1.0)
30
29
  faraday (~> 0.9)
@@ -35,10 +34,8 @@ GEM
35
34
  octokit (~> 4.0)
36
35
  retryable (~> 2.0)
37
36
  ridley (~> 5.0)
38
- solve (> 2.0, < 4.0)
37
+ solve (~> 4.0)
39
38
  thor (~> 0.19, < 0.19.2)
40
- berkshelf-api-client (4.0.1)
41
- chef (>= 12.0)
42
39
  blankslate (2.1.2.4)
43
40
  buff-config (2.0.0)
44
41
  buff-extensions (~> 2.0)
@@ -92,15 +89,15 @@ GEM
92
89
  rack (< 2)
93
90
  uuidtools (~> 2.1)
94
91
  cleanroom (1.0.0)
95
- coderay (1.1.1)
92
+ coderay (1.1.2)
96
93
  concurrent-ruby (1.0.5)
97
94
  diff-lcs (1.3)
98
95
  docker-api (1.33.6)
99
96
  excon (>= 0.38.0)
100
97
  json
101
98
  erubis (2.7.0)
102
- excon (0.57.1)
103
- faraday (0.12.1)
99
+ excon (0.59.0)
100
+ faraday (0.13.1)
104
101
  multipart-post (>= 1.2, < 3)
105
102
  ffi (1.9.18)
106
103
  ffi-yajl (2.3.1)
@@ -112,11 +109,11 @@ GEM
112
109
  builder (>= 2.1.2)
113
110
  hashie (3.5.6)
114
111
  highline (1.7.8)
115
- hitimes (1.2.5)
112
+ hitimes (1.2.6)
116
113
  htmlentities (4.3.4)
117
114
  httpclient (2.8.3)
118
115
  iniparse (1.4.4)
119
- inspec (1.31.1)
116
+ inspec (1.36.1)
120
117
  addressable (~> 2.4)
121
118
  faraday (>= 0.9.0)
122
119
  hashie (~> 3.4)
@@ -135,7 +132,7 @@ GEM
135
132
  sslshake (~> 1.2)
136
133
  thor (~> 0.19)
137
134
  toml (~> 0.1)
138
- train (>= 0.24.0, < 1.0)
135
+ train (~> 0.26)
139
136
  ipaddress (0.8.3)
140
137
  jmespath (1.3.1)
141
138
  json (2.1.0)
@@ -149,7 +146,7 @@ GEM
149
146
  hashie (~> 3.4)
150
147
  inspec (>= 0.34.0, < 2.0.0)
151
148
  test-kitchen (~> 1.6)
152
- kitchen-vagrant (1.1.0)
149
+ kitchen-vagrant (1.2.1)
153
150
  test-kitchen (~> 1.4)
154
151
  libyajl2 (1.2.0)
155
152
  little-plugger (1.1.4)
@@ -160,8 +157,7 @@ GEM
160
157
  minitar (0.6.1)
161
158
  mixlib-archive (0.4.1)
162
159
  mixlib-log
163
- mixlib-authentication (1.4.1)
164
- mixlib-log
160
+ mixlib-authentication (1.4.2)
165
161
  mixlib-cli (1.7.0)
166
162
  mixlib-config (2.2.4)
167
163
  mixlib-install (1.2.3)
@@ -169,10 +165,10 @@ GEM
169
165
  mixlib-shellout
170
166
  mixlib-versioning
171
167
  mixlib-log (1.7.1)
172
- mixlib-shellout (2.2.7)
173
- mixlib-versioning (1.1.0)
174
- molinillo (0.5.7)
175
- multi_json (1.12.1)
168
+ mixlib-shellout (2.3.2)
169
+ mixlib-versioning (1.2.2)
170
+ molinillo (0.6.3)
171
+ multi_json (1.12.2)
176
172
  multipart-post (2.0.0)
177
173
  net-scp (1.2.1)
178
174
  net-ssh (>= 2.6.5)
@@ -201,7 +197,7 @@ GEM
201
197
  plist (~> 3.1)
202
198
  systemu (~> 2.6.4)
203
199
  wmi-lite (~> 1.0)
204
- parallel (1.11.2)
200
+ parallel (1.12.0)
205
201
  parslet (1.5.0)
206
202
  blankslate (~> 2.0)
207
203
  plist (3.3.0)
@@ -210,7 +206,7 @@ GEM
210
206
  coderay (~> 1.1.0)
211
207
  method_source (~> 0.8.1)
212
208
  slop (~> 3.4)
213
- public_suffix (2.0.5)
209
+ public_suffix (3.0.0)
214
210
  rack (1.6.8)
215
211
  rainbow (2.1.0)
216
212
  retryable (2.0.4)
@@ -258,17 +254,17 @@ GEM
258
254
  addressable (>= 2.3.5, < 2.6)
259
255
  faraday (~> 0.8, < 1.0)
260
256
  semverse (2.0.0)
261
- serverspec (2.39.1)
257
+ serverspec (2.40.0)
262
258
  multi_json
263
259
  rspec (~> 3.0)
264
260
  rspec-its
265
261
  specinfra (~> 2.68)
266
262
  sfl (2.3)
267
263
  slop (3.6.0)
268
- solve (3.1.0)
269
- molinillo (>= 0.5)
264
+ solve (4.0.0)
265
+ molinillo (~> 0.6)
270
266
  semverse (>= 1.1, < 3.0)
271
- specinfra (2.68.2)
267
+ specinfra (2.71.2)
272
268
  net-scp
273
269
  net-ssh (>= 2.7, < 5.0)
274
270
  net-telnet
@@ -276,7 +272,7 @@ GEM
276
272
  sslshake (1.2.0)
277
273
  syslog-logger (1.6.8)
278
274
  systemu (2.6.5)
279
- test-kitchen (1.16.0)
275
+ test-kitchen (1.17.0)
280
276
  mixlib-install (>= 1.2, < 3.0)
281
277
  mixlib-shellout (>= 1.2, < 3.0)
282
278
  net-scp (~> 1.1)
@@ -289,7 +285,7 @@ GEM
289
285
  hitimes
290
286
  toml (0.1.2)
291
287
  parslet (~> 1.5.0)
292
- train (0.25.0)
288
+ train (0.26.2)
293
289
  docker-api (~> 1.26)
294
290
  json (>= 1.8, < 3.0)
295
291
  mixlib-shellout (~> 2.0)
@@ -340,4 +336,4 @@ DEPENDENCIES
340
336
  winrm-fs
341
337
 
342
338
  BUNDLED WITH
343
- 1.15.1
339
+ 1.15.4
@@ -44,7 +44,7 @@ Gem::Specification.new do |gem|
44
44
  gem.add_dependency "ffi-yajl", ">= 1.0", "< 3.0"
45
45
  gem.add_dependency "minitar", "~> 0.5.4"
46
46
  gem.add_dependency "chef", "~> 13.0"
47
- gem.add_dependency "solve", "< 4.0", "> 2.0"
47
+ gem.add_dependency "solve", "< 5.0", "> 2.0"
48
48
  gem.add_dependency "addressable", ">= 2.3.5", "< 2.6"
49
49
  gem.add_dependency "cookbook-omnifetch", "~> 0.5"
50
50
  gem.add_dependency "diff-lcs", "~> 1.0"
@@ -23,7 +23,7 @@ require "chef-dk/command/generator_commands/cookbook"
23
23
  require "chef-dk/command/generator_commands/app"
24
24
  require "chef-dk/command/generator_commands/attribute"
25
25
  require "chef-dk/command/generator_commands/cookbook_file"
26
- require 'chef-dk/command/generator_commands/helpers'
26
+ require "chef-dk/command/generator_commands/helpers"
27
27
  require "chef-dk/command/generator_commands/resource"
28
28
  require "chef-dk/command/generator_commands/recipe"
29
29
  require "chef-dk/command/generator_commands/template"
@@ -15,7 +15,7 @@
15
15
  # limitations under the License.
16
16
  #
17
17
 
18
- require 'chef-dk/command/generator_commands/cookbook_code_file'
18
+ require "chef-dk/command/generator_commands/cookbook_code_file"
19
19
 
20
20
  module ChefDK
21
21
  module Command
@@ -28,7 +28,7 @@ module ChefDK
28
28
  options.merge!(SharedGeneratorOptions.options)
29
29
 
30
30
  def recipe
31
- 'helpers'
31
+ "helpers"
32
32
  end
33
33
  end
34
34
  end
@@ -384,7 +384,7 @@ E
384
384
  ui.err("The --no-policy flag cannot be combined with policyfile arguments")
385
385
  ui.err("")
386
386
  ui.err(opt_parser)
387
- return false
387
+ false
388
388
  end
389
389
  end
390
390
 
@@ -52,7 +52,7 @@ module ChefDK
52
52
  end
53
53
 
54
54
  def fingerprint_text
55
- files_with_checksums.sort { |a, b| a[0] <=> b[0] }.inject("") do |fingerprint, file_spec|
55
+ files_with_checksums.sort_by { |a| a[0] }.inject("") do |fingerprint, file_spec|
56
56
  fingerprint << "#{file_spec[0]}:#{file_spec[1]}\n"
57
57
  end
58
58
  end
@@ -51,7 +51,7 @@ module ChefDK
51
51
  end
52
52
 
53
53
  class OmnibusInstallNotFound < RuntimeError
54
- def initialize()
54
+ def initialize
55
55
  super("Can not find omnibus installation directory for Chef.")
56
56
  end
57
57
  end
@@ -163,8 +163,8 @@ module ChefDK
163
163
  # This method resets all the instance variables used. It
164
164
  # should only be used for testing
165
165
  def reset!
166
- self.instance_variables.each do |ivar|
167
- self.instance_variable_set(ivar, nil)
166
+ instance_variables.each do |ivar|
167
+ instance_variable_set(ivar, nil)
168
168
  end
169
169
  end
170
170
 
@@ -85,7 +85,7 @@ module ChefDK
85
85
  private
86
86
 
87
87
  def http_connection_for(base_url)
88
- headers = { 'X-Jfrog-Art-API' => chef_config.artifactory_api_key || ENV["ARTIFACTORY_API_KEY"] }
88
+ headers = { "X-Jfrog-Art-API" => chef_config.artifactory_api_key || ENV["ARTIFACTORY_API_KEY"] }
89
89
  @http_connections[base_url] ||= Chef::HTTP::Simple.new(base_url, headers: headers)
90
90
  end
91
91
 
@@ -122,7 +122,7 @@ module ChefDK
122
122
  end
123
123
 
124
124
  def transitive_deps(names)
125
- require 'set'
125
+ require "set"
126
126
  deps = Set.new
127
127
  to_explore = names.dup
128
128
  until to_explore.empty?
@@ -46,8 +46,8 @@ module ChefDK
46
46
  def validate
47
47
  super
48
48
 
49
- unless VALID_SCHEMES.include?(self.scheme)
50
- raise InvalidPolicyfileSourceURI.new(self, "invalid URI scheme '#{self.scheme}'. Valid schemes: #{VALID_SCHEMES}")
49
+ unless VALID_SCHEMES.include?(scheme)
50
+ raise InvalidPolicyfileSourceURI.new(self, "invalid URI scheme '#{scheme}'. Valid schemes: #{VALID_SCHEMES}")
51
51
  end
52
52
  rescue Addressable::URI::InvalidURIError => ex
53
53
  raise InvalidPolicyfileSourceURI.new(self, ex)
@@ -347,9 +347,9 @@ module ChefDK
347
347
  def best_source_for(cookbook_name)
348
348
  preferred = default_source.find { |s| s.preferred_source_for?(cookbook_name) }
349
349
  if preferred.nil?
350
- default_source.find { |s|
350
+ default_source.find do |s|
351
351
  s.universe_graph.has_key?(cookbook_name)
352
- }
352
+ end
353
353
  else
354
354
  preferred
355
355
  end
@@ -12,7 +12,7 @@ provisioner:
12
12
 
13
13
  platforms:
14
14
  - name: ubuntu-16.04
15
- - name: centos-7.3
15
+ - name: centos-7
16
16
 
17
17
  suites:
18
18
  - name: default
@@ -5,7 +5,9 @@
5
5
  "path": ".delivery/build_cookbook"
6
6
  },
7
7
  "delivery-truck": {
8
- "enable_cookstyle": true
8
+ "lint": {
9
+ "enable_cookstyle": true
10
+ }
9
11
  },
10
12
  "skip_phases": [],
11
13
  "job_dispatch": {
@@ -8,6 +8,7 @@
8
8
 
9
9
  # Bundler
10
10
  Gemfile.lock
11
+ gems.locked
11
12
  bin/*
12
13
  .bundle/*
13
14
 
@@ -57,6 +57,13 @@ else
57
57
 
58
58
  end
59
59
 
60
+ # LICENSE
61
+ template "#{cookbook_dir}/LICENSE" do
62
+ helpers(ChefDK::Generator::TemplateHelper)
63
+ source "LICENSE.#{context.license}.erb"
64
+ action :create_if_missing
65
+ end
66
+
60
67
  # Test Kitchen
61
68
  template "#{cookbook_dir}/.kitchen.yml" do
62
69
  if context.use_berkshelf
@@ -14,7 +14,7 @@ verifier:
14
14
 
15
15
  platforms:
16
16
  - name: ubuntu-16.04
17
- - name: centos-7.3
17
+ - name: centos-7
18
18
 
19
19
  suites:
20
20
  - name: default
@@ -23,7 +23,7 @@ verifier:
23
23
 
24
24
  platforms:
25
25
  - name: ubuntu-16.04
26
- - name: centos-7.3
26
+ - name: centos-7
27
27
 
28
28
  suites:
29
29
  - name: default
@@ -16,5 +16,5 @@
16
16
  #
17
17
 
18
18
  module ChefDK
19
- VERSION = "2.1.11"
19
+ VERSION = "2.3.1"
20
20
  end
@@ -1,7 +1,7 @@
1
1
  # THIS IS NOW HAND MANAGED, JUST EDIT THE THING
2
2
  # .travis.yml and appveyor.yml consume this,
3
3
  # try to keep it machine-parsable.
4
- override :rubygems, version: "2.6.11"
4
+ override :rubygems, version: "2.6.13"
5
5
  override :bundler, version: "1.15.1"
6
6
  override "libffi", version: "3.2.1"
7
7
  override "libiconv", version: "1.15"
@@ -13,7 +13,7 @@ override "libyaml", version: "0.1.6"
13
13
  override "makedepend", version: "1.0.5"
14
14
  override "ncurses", version: "5.9"
15
15
  override "pkg-config-lite", version: "0.28-1"
16
- override "ruby", version: "2.4.1"
16
+ override "ruby", version: "2.4.2"
17
17
  override "ruby-windows-devkit-bash", version: "3.1.23-4-msys-1.0.18"
18
18
  override "util-macros", version: "1.19.0"
19
19
  override "xproto", version: "7.0.28"
@@ -125,7 +125,7 @@ E
125
125
  let(:argv) { %w{-v} }
126
126
  let(:delivery_version) { "master (454c3f37819ed508a49c971f38e42267ce8a47de)" }
127
127
 
128
- let(:tools) {
128
+ let(:tools) do
129
129
  {
130
130
  "chef-client" => {
131
131
  "version_output" => "Chef: 12.0.3",
@@ -145,10 +145,10 @@ E
145
145
  },
146
146
  "inspec" => {
147
147
  "version_output" => "1.19.1\n\nYour version of InSpec is out of date! The latest version is 1.21.0.",
148
- "expected_version" => "1.19.1"
149
- }
148
+ "expected_version" => "1.19.1",
149
+ },
150
150
  }
151
- }
151
+ end
152
152
 
153
153
  it "does not print versions of tools with missing or errored tools" do
154
154
  full_version_message = version_message
@@ -134,7 +134,7 @@ describe ChefDK::Command::GeneratorCommands::Base do
134
134
  end
135
135
  end
136
136
 
137
- describe '#have_git?' do
137
+ describe "#have_git?" do
138
138
  let(:cmd) { described_class.new([]) }
139
139
  let(:path) { "bin_path" }
140
140
 
@@ -310,7 +310,7 @@ METADATA
310
310
 
311
311
  git!("init .")
312
312
  git!("add .")
313
- git!("commit -m \"initial commit\"")
313
+ git!("commit --no-gpg-sign -m \"initial commit\"")
314
314
 
315
315
  Dir.chdir(tempdir) do
316
316
  allow(cookbook_generator.chef_runner).to receive(:stdout).and_return(stdout_io)
@@ -344,7 +344,7 @@ METADATA
344
344
 
345
345
  git!("init .")
346
346
  git!("add .")
347
- git!("commit -m \"initial commit\"")
347
+ git!("commit --no-gpg-sign -m \"initial commit\"")
348
348
 
349
349
  Dir.chdir(tempdir) do
350
350
  allow(cookbook_generator.chef_runner).to receive(:stdout).and_return(stdout_io)
@@ -38,6 +38,7 @@ describe ChefDK::Command::GeneratorCommands::Cookbook do
38
38
  test/smoke/default/default_test.rb
39
39
  Berksfile
40
40
  chefignore
41
+ LICENSE
41
42
  metadata.rb
42
43
  README.md
43
44
  recipes
@@ -236,7 +237,9 @@ PROJECT_DOT_TOML
236
237
  "path": ".delivery/build_cookbook"
237
238
  },
238
239
  "delivery-truck": {
239
- "enable_cookstyle": true
240
+ "lint": {
241
+ "enable_cookstyle": true
242
+ }
240
243
  },
241
244
  "skip_phases": [],
242
245
  "job_dispatch": {
@@ -575,7 +578,7 @@ verifier:
575
578
 
576
579
  platforms:
577
580
  - name: ubuntu-16.04
578
- - name: centos-7.3
581
+ - name: centos-7
579
582
 
580
583
  suites:
581
584
  - name: default
@@ -652,7 +655,7 @@ verifier:
652
655
 
653
656
  platforms:
654
657
  - name: ubuntu-16.04
655
- - name: centos-7.3
658
+ - name: centos-7
656
659
 
657
660
  suites:
658
661
  - name: default
@@ -15,9 +15,9 @@
15
15
  # limitations under the License.
16
16
  #
17
17
 
18
- require 'spec_helper'
19
- require 'shared/a_file_generator'
20
- require 'chef-dk/command/generator_commands/helpers'
18
+ require "spec_helper"
19
+ require "shared/a_file_generator"
20
+ require "chef-dk/command/generator_commands/helpers"
21
21
 
22
22
  describe ChefDK::Command::GeneratorCommands::Helpers do
23
23
 
@@ -24,11 +24,12 @@ describe ChefDK::Command::GeneratorCommands::Recipe do
24
24
  include_examples "a file generator" do
25
25
 
26
26
  let(:generator_name) { "recipe" }
27
- let(:generated_files) { [ "recipes/new_recipe.rb",
27
+ let(:generated_files) do
28
+ [ "recipes/new_recipe.rb",
28
29
  "spec/spec_helper.rb",
29
30
  "spec/unit/recipes/new_recipe_spec.rb",
30
31
  "test/smoke/default/new_recipe_test.rb",
31
- ] }
32
+ ] end
32
33
  let(:new_file_name) { "new_recipe" }
33
34
 
34
35
  end
@@ -107,6 +107,7 @@ describe ChefDK::CookbookProfiler::Git do
107
107
  edit_repo
108
108
  system_command('git config --local user.name "Alice"', cwd: cookbook_path).error!
109
109
  system_command('git config --local user.email "alice@example.com"', cwd: cookbook_path).error!
110
+ system_command('git config --local commit.gpgsign "false"', cwd: cookbook_path).error!
110
111
  system_command('git commit -a -m "update readme" --author "Alice <alice@example.com>"', cwd: cookbook_path).error!
111
112
  end
112
113
 
@@ -67,7 +67,7 @@ describe ChefDK::Generator::TemplateHelper do
67
67
  end
68
68
 
69
69
  it "should comment if requested" do
70
- expect(helper.license_description('#')).to match(/^# Copyright/)
70
+ expect(helper.license_description("#")).to match(/^# Copyright/)
71
71
  end
72
72
  end
73
73
 
@@ -78,7 +78,7 @@ describe ChefDK::Generator::TemplateHelper do
78
78
  end
79
79
 
80
80
  it "should comment if requested" do
81
- expect(helper.license_description('#')).to match(/# Licensed under the Apache/)
81
+ expect(helper.license_description("#")).to match(/# Licensed under the Apache/)
82
82
  end
83
83
  end
84
84
 
@@ -89,7 +89,7 @@ describe ChefDK::Generator::TemplateHelper do
89
89
  end
90
90
 
91
91
  it "should comment if requested" do
92
- expect(helper.license_description('#')).to match(/# Permission is hereby granted/)
92
+ expect(helper.license_description("#")).to match(/# Permission is hereby granted/)
93
93
  end
94
94
  end
95
95
 
@@ -100,7 +100,7 @@ describe ChefDK::Generator::TemplateHelper do
100
100
  end
101
101
 
102
102
  it "should comment if requested" do
103
- expect(helper.license_description('#')).to match(/# This program is free software;/)
103
+ expect(helper.license_description("#")).to match(/# This program is free software;/)
104
104
  end
105
105
  end
106
106
 
@@ -111,7 +111,7 @@ describe ChefDK::Generator::TemplateHelper do
111
111
  end
112
112
 
113
113
  it "should comment if requested" do
114
- expect(helper.license_description('#')).to match(/# This program is free software:/)
114
+ expect(helper.license_description("#")).to match(/# This program is free software:/)
115
115
  end
116
116
  end
117
117
  end
@@ -20,13 +20,13 @@ require "chef-dk/policyfile/chef_repo_cookbook_source"
20
20
 
21
21
  describe ChefDK::Policyfile::ChefRepoCookbookSource do
22
22
 
23
- let(:repo_path) {
23
+ let(:repo_path) do
24
24
  File.expand_path("spec/unit/fixtures/local_path_cookbooks", project_root)
25
- }
25
+ end
26
26
 
27
27
  let(:cookbook_source) { ChefDK::Policyfile::ChefRepoCookbookSource.new(repo_path) }
28
28
 
29
- let(:local_repo_universe) {
29
+ let(:local_repo_universe) do
30
30
  {
31
31
  "another-local-cookbook" => {
32
32
  "0.1.0" => [],
@@ -41,7 +41,7 @@ describe ChefDK::Policyfile::ChefRepoCookbookSource do
41
41
  "0.1.0" => [],
42
42
  },
43
43
  }
44
- }
44
+ end
45
45
 
46
46
  it "gives the set of arguments to `default_source` used to create it" do
47
47
  expect(cookbook_source.default_source_args).to eq([:chef_repo, repo_path])
@@ -69,7 +69,7 @@ describe ChefDK::Policyfile::SolutionDependencies do
69
69
 
70
70
  end
71
71
 
72
- context 'when populated with dependency data from a complex lockfile' do
72
+ context "when populated with dependency data from a complex lockfile" do
73
73
  let(:dependency_data) do
74
74
  {
75
75
  "Policyfile" => [
@@ -88,9 +88,9 @@ describe ChefDK::Policyfile::SolutionDependencies do
88
88
  it "can compute list of transitive dependencies" do
89
89
 
90
90
  expect(solution_dependencies.transitive_deps(["e"])).to eq(["e"])
91
- expect(solution_dependencies.transitive_deps(["c"])).to eq(["c", "e"])
92
- expect(solution_dependencies.transitive_deps(["c", "d"])).to eq(["c", "d", "e"])
93
- expect(solution_dependencies.transitive_deps(["a"])).to eq(["a", "c", "d", "e"])
91
+ expect(solution_dependencies.transitive_deps(["c"])).to eq(%w{c e})
92
+ expect(solution_dependencies.transitive_deps(%w{c d})).to eq(%w{c d e})
93
+ expect(solution_dependencies.transitive_deps(["a"])).to eq(%w{a c d e})
94
94
  end
95
95
  end
96
96
 
@@ -22,7 +22,7 @@ require "chef-dk/policyfile/source_uri"
22
22
  describe ChefDK::Policyfile::SourceURI do
23
23
  subject { described_class.parse(source_uri) }
24
24
 
25
- describe '#validate' do
25
+ describe "#validate" do
26
26
  context "when the scheme is not https" do
27
27
  let(:source_uri) { "ftp://chef.example.com" }
28
28
 
@@ -45,8 +45,9 @@ describe ChefDK::Policyfile::Uploader do
45
45
  }
46
46
  end
47
47
 
48
- let(:policyfile_lock) { instance_double("ChefDK::PolicyfileLock", name: "example",
49
- to_lock: policyfile_lock_data) }
48
+ let(:policyfile_lock) do
49
+ instance_double("ChefDK::PolicyfileLock", name: "example",
50
+ to_lock: policyfile_lock_data) end
50
51
 
51
52
  let(:policy_group) { "unit-test" }
52
53
 
@@ -867,7 +867,6 @@ MESSAGE
867
867
  "remote-cb (0.1.0)" => [],
868
868
  },
869
869
 
870
-
871
870
  }
872
871
  expect(policyfile.solution_dependencies.to_lock).to eq(expected_solution_deps)
873
872
  end
@@ -674,7 +674,6 @@ REVISION_STRING
674
674
  "source_options" => nil,
675
675
  },
676
676
 
677
-
678
677
  },
679
678
 
680
679
  "default_attributes" => {},
@@ -15,11 +15,10 @@
15
15
  # limitations under the License.
16
16
  #
17
17
 
18
- require 'spec_helper'
18
+ require "spec_helper"
19
19
  require "chef-dk/policyfile_services/install"
20
20
  require "chef-dk/policyfile/cookbook_sources"
21
21
 
22
-
23
22
  describe ChefDK::PolicyfileServices::Install do
24
23
 
25
24
  include ChefDK::Helpers
@@ -70,8 +69,8 @@ EOH
70
69
  "origin" => "https://supermarket.chef.io:443/api/v1/cookbooks/#{name}/versions/#{version}/download",
71
70
  "source_options" => {
72
71
  "artifactserver" => "https://supermarket.chef.io:443/api/v1/cookbooks/#{name}/versions/#{version}/download",
73
- "version" => version
74
- }
72
+ "version" => version,
73
+ },
75
74
  }
76
75
  end
77
76
 
@@ -84,7 +83,7 @@ EOH
84
83
  "top-level" => cookbook_lock("top-level", "1.2.0"),
85
84
  "a" => cookbook_lock("a", "2.1.0"),
86
85
  "b" => cookbook_lock("b", "1.2.3"),
87
- "top-level-bis" => cookbook_lock("top-level-bis", "1.0.0")
86
+ "top-level-bis" => cookbook_lock("top-level-bis", "1.0.0"),
88
87
  },
89
88
  "default_attributes" => {},
90
89
  "override_attributes" => {},
@@ -99,13 +98,12 @@ EOH
99
98
  "top-level (1.2.0)" => [ [ "a", "~> 2.1" ], [ "b", "~> 1.0" ] ],
100
99
  "a (2.1.0)" => [],
101
100
  "b (1.2.3)" => [],
102
- "top-level-bis (1.0.0)" => []
103
- }
104
- }
101
+ "top-level-bis (1.0.0)" => [],
102
+ },
103
+ },
105
104
  }.to_json
106
105
  end
107
106
 
108
-
109
107
  context "when given one cookbook to update" do
110
108
  before(:each) do
111
109
  # stub access to Policyfile.rb and Policyfile.lock.json
@@ -115,7 +113,6 @@ EOH
115
113
  expect(IO).to receive(:read).with(policyfile_rb_path).and_return(policyfile_content)
116
114
  expect(IO).to receive(:read).with(policyfile_lock_path).and_return(policyfile_lock_content)
117
115
 
118
-
119
116
  # lock generation is a no-op. Its behavior is already tested
120
117
  # elsewhere. We only check constraints changes
121
118
  expect(install_service).to receive(:generate_lock_and_install)
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2016 Chef Software Inc.
2
+ # Copyright:: Copyright (c) 2016-2017, Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -24,7 +24,6 @@ class ReleaseAnnouncement
24
24
 
25
25
  def initialize(version, date, type)
26
26
  @version = version
27
- @maj_minor = version.split(".")[0..1].join(".")
28
27
  @date = Date.parse(date) unless date.nil?
29
28
  @release_notes = release_notes_from_file
30
29
  @type = type
@@ -41,7 +40,7 @@ class ReleaseAnnouncement
41
40
  end
42
41
 
43
42
  def release_notes_from_file
44
- File.read("RELEASE_NOTES.md").match(/^# ChefDK #{@maj_minor} Release Notes\n\n(.*)/m)[1]
43
+ File.read("RELEASE_NOTES.md").match(/^# ChefDK #{@version} Release Notes\n\n(.*)/m)[1]
45
44
  end
46
45
  end
47
46
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-dk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.11
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel DeLeo
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-08-11 00:00:00.000000000 Z
13
+ date: 2017-09-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mixlib-cli
@@ -94,7 +94,7 @@ dependencies:
94
94
  requirements:
95
95
  - - "<"
96
96
  - !ruby/object:Gem::Version
97
- version: '4.0'
97
+ version: '5.0'
98
98
  - - ">"
99
99
  - !ruby/object:Gem::Version
100
100
  version: '2.0'
@@ -104,7 +104,7 @@ dependencies:
104
104
  requirements:
105
105
  - - "<"
106
106
  - !ruby/object:Gem::Version
107
- version: '4.0'
107
+ version: '5.0'
108
108
  - - ">"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '2.0'
@@ -636,7 +636,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
636
636
  version: '0'
637
637
  requirements: []
638
638
  rubyforge_project:
639
- rubygems_version: 2.6.11
639
+ rubygems_version: 2.6.13
640
640
  signing_key:
641
641
  specification_version: 4
642
642
  summary: A streamlined development and deployment workflow for Chef platform.