puppet 3.7.5-x86-mingw32 → 3.8.1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of puppet might be problematic. Click here for more details.

Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/ext/build_defaults.yaml +5 -5
  3. data/lib/hiera/puppet_function.rb +15 -4
  4. data/lib/puppet.rb +5 -2
  5. data/lib/puppet/application/agent.rb +5 -0
  6. data/lib/puppet/application/apply.rb +5 -0
  7. data/lib/puppet/application/device.rb +8 -3
  8. data/lib/puppet/application/master.rb +5 -0
  9. data/lib/puppet/defaults.rb +8 -0
  10. data/lib/puppet/error.rb +27 -1
  11. data/lib/puppet/file_system.rb +13 -0
  12. data/lib/puppet/file_system/file19windows.rb +8 -0
  13. data/lib/puppet/file_system/file_impl.rb +4 -0
  14. data/lib/puppet/file_system/memory_impl.rb +4 -0
  15. data/lib/puppet/functions.rb +25 -3
  16. data/lib/puppet/functions/defined.rb +130 -0
  17. data/lib/puppet/functions/hiera_include.rb +1 -1
  18. data/lib/puppet/node/environment.rb +4 -0
  19. data/lib/puppet/parser/compiler.rb +5 -2
  20. data/lib/puppet/parser/functions/defined.rb +26 -1
  21. data/lib/puppet/parser/functions/file.rb +3 -1
  22. data/lib/puppet/parser/templatewrapper.rb +2 -1
  23. data/lib/puppet/pops.rb +5 -0
  24. data/lib/puppet/pops/evaluator/access_operator.rb +25 -5
  25. data/lib/puppet/pops/evaluator/collector_transformer.rb +1 -11
  26. data/lib/puppet/pops/evaluator/compare_operator.rb +43 -0
  27. data/lib/puppet/pops/evaluator/evaluator_impl.rb +43 -28
  28. data/lib/puppet/pops/evaluator/runtime3_support.rb +9 -5
  29. data/lib/puppet/pops/functions/dispatch.rb +6 -1
  30. data/lib/puppet/pops/issue_reporter.rb +42 -16
  31. data/lib/puppet/pops/issues.rb +96 -0
  32. data/lib/puppet/pops/loader/module_loaders.rb +3 -1
  33. data/lib/puppet/pops/loaders.rb +6 -4
  34. data/lib/puppet/pops/migration/migration_checker.rb +45 -0
  35. data/lib/puppet/pops/model/factory.rb +1 -1
  36. data/lib/puppet/pops/model/model_meta.rb +1 -1
  37. data/lib/puppet/pops/parser/egrammar.ra +1 -1
  38. data/lib/puppet/pops/parser/eparser.rb +1 -1
  39. data/lib/puppet/pops/parser/epp_support.rb +18 -9
  40. data/lib/puppet/pops/parser/evaluating_parser.rb +7 -1
  41. data/lib/puppet/pops/parser/heredoc_support.rb +12 -11
  42. data/lib/puppet/pops/parser/interpolation_support.rb +7 -1
  43. data/lib/puppet/pops/parser/lexer2.rb +8 -8
  44. data/lib/puppet/pops/parser/lexer_support.rb +46 -20
  45. data/lib/puppet/pops/parser/parser_support.rb +11 -14
  46. data/lib/puppet/pops/parser/slurp_support.rb +22 -6
  47. data/lib/puppet/pops/types/type_calculator.rb +156 -55
  48. data/lib/puppet/pops/types/type_factory.rb +67 -14
  49. data/lib/puppet/pops/types/type_parser.rb +22 -13
  50. data/lib/puppet/pops/types/types.rb +21 -3
  51. data/lib/puppet/pops/types/types_meta.rb +13 -2
  52. data/lib/puppet/pops/validation.rb +25 -2
  53. data/lib/puppet/pops/validation/checker4_0.rb +25 -5
  54. data/lib/puppet/provider/group/windows_adsi.rb +18 -6
  55. data/lib/puppet/provider/mount/parsed.rb +145 -2
  56. data/lib/puppet/provider/package/pip.rb +4 -5
  57. data/lib/puppet/provider/package/zypper.rb +17 -7
  58. data/lib/puppet/provider/scheduled_task/win32_taskscheduler.rb +35 -10
  59. data/lib/puppet/provider/service/init.rb +7 -0
  60. data/lib/puppet/provider/user/windows_adsi.rb +8 -1
  61. data/lib/puppet/provider/zpool/zpool.rb +7 -2
  62. data/lib/puppet/resource.rb +1 -1
  63. data/lib/puppet/type/group.rb +1 -1
  64. data/lib/puppet/type/mount.rb +14 -3
  65. data/lib/puppet/type/scheduled_task.rb +21 -6
  66. data/lib/puppet/util/log.rb +50 -8
  67. data/lib/puppet/util/log/destinations.rb +23 -2
  68. data/lib/puppet/util/logging.rb +37 -1
  69. data/lib/puppet/util/windows/adsi.rb +36 -11
  70. data/lib/puppet/version.rb +1 -1
  71. data/spec/fixtures/unit/provider/mount/parsed/aix.filesystems +93 -85
  72. data/spec/fixtures/unit/provider/mount/parsed/aix.mount +11 -7
  73. data/spec/integration/parser/collector_spec.rb +7 -0
  74. data/spec/integration/parser/future_compiler_spec.rb +9 -0
  75. data/spec/integration/parser/resource_expressions_spec.rb +3 -0
  76. data/spec/unit/file_system_spec.rb +38 -0
  77. data/spec/unit/functions/defined_spec.rb +291 -0
  78. data/spec/unit/functions/hiera_spec.rb +8 -6
  79. data/spec/unit/functions4_spec.rb +97 -2
  80. data/spec/unit/parser/functions/file_spec.rb +8 -2
  81. data/spec/unit/parser/functions/template_spec.rb +1 -1
  82. data/spec/unit/parser/templatewrapper_spec.rb +1 -1
  83. data/spec/unit/pops/evaluator/access_ops_spec.rb +19 -0
  84. data/spec/unit/pops/evaluator/evaluating_parser_spec.rb +61 -8
  85. data/spec/unit/pops/issues_spec.rb +16 -16
  86. data/spec/unit/pops/loaders/module_loaders_spec.rb +5 -0
  87. data/spec/unit/pops/migration_spec.rb +180 -0
  88. data/spec/unit/pops/parser/lexer2_spec.rb +152 -1
  89. data/spec/unit/pops/parser/parse_heredoc_spec.rb +26 -0
  90. data/spec/unit/pops/transformer/transform_calls_spec.rb +1 -1
  91. data/spec/unit/pops/types/type_calculator_spec.rb +204 -11
  92. data/spec/unit/pops/validation_spec.rb +66 -0
  93. data/spec/unit/provider/group/windows_adsi_spec.rb +65 -1
  94. data/spec/unit/provider/mount/parsed_spec.rb +31 -5
  95. data/spec/unit/provider/package/pip_spec.rb +19 -7
  96. data/spec/unit/provider/package/zypper_spec.rb +25 -14
  97. data/spec/unit/provider/scheduled_task/win32_taskscheduler_spec.rb +312 -70
  98. data/spec/unit/provider/service/base_spec.rb +42 -31
  99. data/spec/unit/provider/service/freebsd_spec.rb +1 -0
  100. data/spec/unit/provider/service/gentoo_spec.rb +1 -0
  101. data/spec/unit/provider/service/init_spec.rb +18 -0
  102. data/spec/unit/provider/service/openbsd_spec.rb +1 -0
  103. data/spec/unit/provider/service/redhat_spec.rb +1 -0
  104. data/spec/unit/provider/user/windows_adsi_spec.rb +21 -0
  105. data/spec/unit/provider/zpool/zpool_spec.rb +47 -10
  106. data/spec/unit/util/log_spec.rb +113 -0
  107. data/spec/unit/util/windows/adsi_spec.rb +106 -26
  108. metadata +10 -2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.5
4
+ version: 3.8.1
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Puppet Labs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-25 00:00:00.000000000 Z
11
+ date: 2015-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: facter
@@ -358,6 +358,7 @@ files:
358
358
  - lib/puppet/forge/repository.rb
359
359
  - lib/puppet/functions.rb
360
360
  - lib/puppet/functions/assert_type.rb
361
+ - lib/puppet/functions/defined.rb
361
362
  - lib/puppet/functions/each.rb
362
363
  - lib/puppet/functions/epp.rb
363
364
  - lib/puppet/functions/filter.rb
@@ -755,6 +756,7 @@ files:
755
756
  - lib/puppet/pops/loader/static_loader.rb
756
757
  - lib/puppet/pops/loader/uri_helper.rb
757
758
  - lib/puppet/pops/loaders.rb
759
+ - lib/puppet/pops/migration/migration_checker.rb
758
760
  - lib/puppet/pops/model/ast_transformer.rb
759
761
  - lib/puppet/pops/model/ast_tree_dumper.rb
760
762
  - lib/puppet/pops/model/factory.rb
@@ -2071,6 +2073,7 @@ files:
2071
2073
  - spec/unit/forge/repository_spec.rb
2072
2074
  - spec/unit/forge_spec.rb
2073
2075
  - spec/unit/functions/assert_type_spec.rb
2076
+ - spec/unit/functions/defined_spec.rb
2074
2077
  - spec/unit/functions/each_spec.rb
2075
2078
  - spec/unit/functions/epp_spec.rb
2076
2079
  - spec/unit/functions/filter_spec.rb
@@ -2357,6 +2360,7 @@ files:
2357
2360
  - spec/unit/pops/loaders/loaders_spec.rb
2358
2361
  - spec/unit/pops/loaders/module_loaders_spec.rb
2359
2362
  - spec/unit/pops/loaders/static_loader_spec.rb
2363
+ - spec/unit/pops/migration_spec.rb
2360
2364
  - spec/unit/pops/model/ast_transformer_spec.rb
2361
2365
  - spec/unit/pops/model/model_spec.rb
2362
2366
  - spec/unit/pops/parser/epp_parser_spec.rb
@@ -2382,6 +2386,7 @@ files:
2382
2386
  - spec/unit/pops/types/type_factory_spec.rb
2383
2387
  - spec/unit/pops/types/type_parser_spec.rb
2384
2388
  - spec/unit/pops/utils_spec.rb
2389
+ - spec/unit/pops/validation_spec.rb
2385
2390
  - spec/unit/pops/validator/validator_spec.rb
2386
2391
  - spec/unit/pops/visitor_spec.rb
2387
2392
  - spec/unit/property/boolean_spec.rb
@@ -3163,6 +3168,7 @@ test_files:
3163
3168
  - spec/unit/forge/repository_spec.rb
3164
3169
  - spec/unit/forge_spec.rb
3165
3170
  - spec/unit/functions/assert_type_spec.rb
3171
+ - spec/unit/functions/defined_spec.rb
3166
3172
  - spec/unit/functions/each_spec.rb
3167
3173
  - spec/unit/functions/epp_spec.rb
3168
3174
  - spec/unit/functions/filter_spec.rb
@@ -3449,6 +3455,7 @@ test_files:
3449
3455
  - spec/unit/pops/loaders/loaders_spec.rb
3450
3456
  - spec/unit/pops/loaders/module_loaders_spec.rb
3451
3457
  - spec/unit/pops/loaders/static_loader_spec.rb
3458
+ - spec/unit/pops/migration_spec.rb
3452
3459
  - spec/unit/pops/model/ast_transformer_spec.rb
3453
3460
  - spec/unit/pops/model/model_spec.rb
3454
3461
  - spec/unit/pops/parser/epp_parser_spec.rb
@@ -3474,6 +3481,7 @@ test_files:
3474
3481
  - spec/unit/pops/types/type_factory_spec.rb
3475
3482
  - spec/unit/pops/types/type_parser_spec.rb
3476
3483
  - spec/unit/pops/utils_spec.rb
3484
+ - spec/unit/pops/validation_spec.rb
3477
3485
  - spec/unit/pops/validator/validator_spec.rb
3478
3486
  - spec/unit/pops/visitor_spec.rb
3479
3487
  - spec/unit/property/boolean_spec.rb