puppet 3.7.3 → 3.7.4

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 +11 -2
@@ -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: ruby
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
@@ -887,6 +887,7 @@ files:
887
887
  - lib/puppet/parser/functions/reduce.rb
888
888
  - lib/puppet/parser/functions/shellquote.rb
889
889
  - lib/puppet/parser/functions/sprintf.rb
890
+ - lib/puppet/parser/functions/scanf.rb
890
891
  - lib/puppet/parser/functions/md5.rb
891
892
  - lib/puppet/parser/functions/each.rb
892
893
  - lib/puppet/parser/functions/split.rb
@@ -969,11 +970,16 @@ files:
969
970
  - lib/puppet/pops/evaluator/evaluator_impl.rb
970
971
  - lib/puppet/pops/evaluator/closure.rb
971
972
  - lib/puppet/pops/evaluator/epp_evaluator.rb
973
+ - lib/puppet/pops/evaluator/collector_transformer.rb
972
974
  - lib/puppet/pops/evaluator/callable_mismatch_describer.rb
973
975
  - lib/puppet/pops/evaluator/runtime3_support.rb
974
976
  - lib/puppet/pops/evaluator/relationship_operator.rb
975
977
  - lib/puppet/pops/evaluator/callable_signature.rb
976
978
  - lib/puppet/pops/evaluator/external_syntax_support.rb
979
+ - lib/puppet/pops/evaluator/collectors/fixed_set_collector.rb
980
+ - lib/puppet/pops/evaluator/collectors/catalog_collector.rb
981
+ - lib/puppet/pops/evaluator/collectors/exported_collector.rb
982
+ - lib/puppet/pops/evaluator/collectors/abstract_collector.rb
977
983
  - lib/puppet/pops/evaluator/compare_operator.rb
978
984
  - lib/puppet/pops/issues.rb
979
985
  - lib/puppet/pops/visitable.rb
@@ -1169,6 +1175,7 @@ files:
1169
1175
  - lib/puppet/functions/match.rb
1170
1176
  - lib/puppet/functions/filter.rb
1171
1177
  - lib/puppet/functions/reduce.rb
1178
+ - lib/puppet/functions/scanf.rb
1172
1179
  - lib/puppet/functions/each.rb
1173
1180
  - lib/puppet/functions/slice.rb
1174
1181
  - lib/puppet/functions/import.rb
@@ -2430,6 +2437,7 @@ files:
2430
2437
  - spec/unit/resource/type_collection_helper_spec.rb
2431
2438
  - spec/unit/resource/catalog_spec.rb
2432
2439
  - spec/unit/resource/type_spec.rb
2440
+ - spec/unit/functions/scanf_spec.rb
2433
2441
  - spec/unit/functions/with_spec.rb
2434
2442
  - spec/unit/functions/match_spec.rb
2435
2443
  - spec/unit/functions/slice_spec.rb
@@ -3513,6 +3521,7 @@ test_files:
3513
3521
  - spec/unit/resource/type_collection_helper_spec.rb
3514
3522
  - spec/unit/resource/catalog_spec.rb
3515
3523
  - spec/unit/resource/type_spec.rb
3524
+ - spec/unit/functions/scanf_spec.rb
3516
3525
  - spec/unit/functions/with_spec.rb
3517
3526
  - spec/unit/functions/match_spec.rb
3518
3527
  - spec/unit/functions/slice_spec.rb