puppet 3.7.3-x64-mingw32 → 3.7.4-x64-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 (57) hide show
  1. data/Gemfile +4 -0
  2. data/ext/build_defaults.yaml +2 -2
  3. data/ext/project_data.yaml +2 -2
  4. data/lib/puppet.rb +1 -1
  5. data/lib/puppet/configurer.rb +7 -4
  6. data/lib/puppet/environments.rb +68 -51
  7. data/lib/puppet/functions/scanf.rb +46 -0
  8. data/lib/puppet/network/http/webrick/rest.rb +3 -0
  9. data/lib/puppet/parser/ast/pops_bridge.rb +2 -1
  10. data/lib/puppet/parser/compiler.rb +11 -3
  11. data/lib/puppet/parser/functions/realize.rb +7 -2
  12. data/lib/puppet/parser/functions/scanf.rb +35 -0
  13. data/lib/puppet/parser/relationship.rb +21 -6
  14. data/lib/puppet/parser/resource.rb +11 -4
  15. data/lib/puppet/pops.rb +7 -0
  16. data/lib/puppet/pops/evaluator/access_operator.rb +1 -6
  17. data/lib/puppet/pops/evaluator/collector_transformer.rb +219 -0
  18. data/lib/puppet/pops/evaluator/collectors/abstract_collector.rb +86 -0
  19. data/lib/puppet/pops/evaluator/collectors/catalog_collector.rb +25 -0
  20. data/lib/puppet/pops/evaluator/collectors/exported_collector.rb +66 -0
  21. data/lib/puppet/pops/evaluator/collectors/fixed_set_collector.rb +37 -0
  22. data/lib/puppet/pops/evaluator/compare_operator.rb +8 -28
  23. data/lib/puppet/pops/evaluator/evaluator_impl.rb +4 -18
  24. data/lib/puppet/pops/evaluator/relationship_operator.rb +4 -0
  25. data/lib/puppet/pops/evaluator/runtime3_support.rb +2 -2
  26. data/lib/puppet/pops/parser/egrammar.ra +3 -3
  27. data/lib/puppet/pops/parser/eparser.rb +3 -3
  28. data/lib/puppet/pops/parser/evaluating_parser.rb +4 -0
  29. data/lib/puppet/pops/types/type_calculator.rb +19 -8
  30. data/lib/puppet/pops/types/type_parser.rb +1 -4
  31. data/lib/puppet/provider/service/redhat.rb +6 -3
  32. data/lib/puppet/resource/catalog.rb +12 -1
  33. data/lib/puppet/settings/environment_conf.rb +7 -8
  34. data/lib/puppet/type/cron.rb +5 -1
  35. data/lib/puppet/type/file/content.rb +1 -1
  36. data/lib/puppet/util/tagging.rb +21 -2
  37. data/lib/puppet/version.rb +1 -1
  38. data/spec/integration/indirector/catalog/compiler_spec.rb +11 -0
  39. data/spec/integration/parser/collector_spec.rb +41 -0
  40. data/spec/integration/parser/compiler_spec.rb +16 -0
  41. data/spec/integration/parser/future_compiler_spec.rb +1 -1
  42. data/spec/unit/environments_spec.rb +238 -118
  43. data/spec/unit/functions/scanf_spec.rb +36 -0
  44. data/spec/unit/network/http/rack/rest_spec.rb +11 -8
  45. data/spec/unit/network/http/webrick/rest_spec.rb +19 -0
  46. data/spec/unit/parser/compiler_spec.rb +0 -27
  47. data/spec/unit/pops/evaluator/access_ops_spec.rb +9 -9
  48. data/spec/unit/pops/evaluator/comparison_ops_spec.rb +14 -8
  49. data/spec/unit/pops/evaluator/evaluating_parser_spec.rb +20 -8
  50. data/spec/unit/pops/parser/parse_basic_expressions_spec.rb +10 -0
  51. data/spec/unit/pops/parser/parse_heredoc_spec.rb +30 -0
  52. data/spec/unit/pops/types/type_calculator_spec.rb +18 -0
  53. data/spec/unit/pops/types/type_parser_spec.rb +2 -2
  54. data/spec/unit/provider/service/redhat_spec.rb +2 -1
  55. data/spec/unit/type/cron_spec.rb +24 -24
  56. data/spec/unit/util/tagging_spec.rb +7 -0
  57. metadata +15 -6
@@ -88,6 +88,13 @@ describe Puppet::Util::Tagging do
88
88
  expect(tagger).to be_tagged("goodbye")
89
89
  end
90
90
 
91
+ it "downcases tag arguments" do
92
+ tagger.tag("hello")
93
+ tagger.tag("goodbye")
94
+ expect(tagger).to be_tagged(:HEllO)
95
+ expect(tagger).to be_tagged("GooDByE")
96
+ end
97
+
91
98
  it "accepts hyphenated tags" do
92
99
  tagger.tag("my-tag")
93
100
  expect(tagger).to be_tagged("my-tag")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.3
4
+ version: 3.7.4
5
5
  prerelease:
6
6
  platform: x64-mingw32
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-11-03 00:00:00.000000000 Z
12
+ date: 2015-01-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: facter
@@ -70,17 +70,17 @@ dependencies:
70
70
  requirement: !ruby/object:Gem::Requirement
71
71
  none: false
72
72
  requirements:
73
- - - '='
73
+ - - ~>
74
74
  - !ruby/object:Gem::Version
75
- version: 1.9.3
75
+ version: 1.9.5
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  none: false
80
80
  requirements:
81
- - - '='
81
+ - - ~>
82
82
  - !ruby/object:Gem::Version
83
- version: 1.9.3
83
+ version: 1.9.5
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: win32-dir
86
86
  requirement: !ruby/object:Gem::Requirement
@@ -999,6 +999,7 @@ files:
999
999
  - lib/puppet/parser/functions/reduce.rb
1000
1000
  - lib/puppet/parser/functions/shellquote.rb
1001
1001
  - lib/puppet/parser/functions/sprintf.rb
1002
+ - lib/puppet/parser/functions/scanf.rb
1002
1003
  - lib/puppet/parser/functions/md5.rb
1003
1004
  - lib/puppet/parser/functions/each.rb
1004
1005
  - lib/puppet/parser/functions/split.rb
@@ -1081,11 +1082,16 @@ files:
1081
1082
  - lib/puppet/pops/evaluator/evaluator_impl.rb
1082
1083
  - lib/puppet/pops/evaluator/closure.rb
1083
1084
  - lib/puppet/pops/evaluator/epp_evaluator.rb
1085
+ - lib/puppet/pops/evaluator/collector_transformer.rb
1084
1086
  - lib/puppet/pops/evaluator/callable_mismatch_describer.rb
1085
1087
  - lib/puppet/pops/evaluator/runtime3_support.rb
1086
1088
  - lib/puppet/pops/evaluator/relationship_operator.rb
1087
1089
  - lib/puppet/pops/evaluator/callable_signature.rb
1088
1090
  - lib/puppet/pops/evaluator/external_syntax_support.rb
1091
+ - lib/puppet/pops/evaluator/collectors/fixed_set_collector.rb
1092
+ - lib/puppet/pops/evaluator/collectors/catalog_collector.rb
1093
+ - lib/puppet/pops/evaluator/collectors/exported_collector.rb
1094
+ - lib/puppet/pops/evaluator/collectors/abstract_collector.rb
1089
1095
  - lib/puppet/pops/evaluator/compare_operator.rb
1090
1096
  - lib/puppet/pops/issues.rb
1091
1097
  - lib/puppet/pops/visitable.rb
@@ -1281,6 +1287,7 @@ files:
1281
1287
  - lib/puppet/functions/match.rb
1282
1288
  - lib/puppet/functions/filter.rb
1283
1289
  - lib/puppet/functions/reduce.rb
1290
+ - lib/puppet/functions/scanf.rb
1284
1291
  - lib/puppet/functions/each.rb
1285
1292
  - lib/puppet/functions/slice.rb
1286
1293
  - lib/puppet/functions/import.rb
@@ -2542,6 +2549,7 @@ files:
2542
2549
  - spec/unit/resource/type_collection_helper_spec.rb
2543
2550
  - spec/unit/resource/catalog_spec.rb
2544
2551
  - spec/unit/resource/type_spec.rb
2552
+ - spec/unit/functions/scanf_spec.rb
2545
2553
  - spec/unit/functions/with_spec.rb
2546
2554
  - spec/unit/functions/match_spec.rb
2547
2555
  - spec/unit/functions/slice_spec.rb
@@ -3625,6 +3633,7 @@ test_files:
3625
3633
  - spec/unit/resource/type_collection_helper_spec.rb
3626
3634
  - spec/unit/resource/catalog_spec.rb
3627
3635
  - spec/unit/resource/type_spec.rb
3636
+ - spec/unit/functions/scanf_spec.rb
3628
3637
  - spec/unit/functions/with_spec.rb
3629
3638
  - spec/unit/functions/match_spec.rb
3630
3639
  - spec/unit/functions/slice_spec.rb