puppetmodule-stdlib 4.0.1 → 4.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ 2013-04-12 - Jeff McCune <jeff@puppetlabs.com> - 4.0.2
2
+ * Update user information in gemspec to make the intent of the Gem clear.
3
+
1
4
  2013-04-11 - Jeff McCune <jeff@puppetlabs.com> - 4.0.1
2
5
  * Fix README function documentation (ab3e30c)
3
6
 
data/Modulefile CHANGED
@@ -1,5 +1,5 @@
1
1
  name 'puppetlabs-stdlib'
2
- version '4.0.1'
2
+ version '4.0.2'
3
3
  source 'git://github.com/puppetlabs/puppetlabs-stdlib.git'
4
4
  author 'puppetlabs'
5
5
  license 'Apache 2.0'
@@ -40,6 +40,12 @@ Enterprise 1.2.
40
40
 
41
41
  # Compatibility #
42
42
 
43
+ Puppet Versions | < 2.6 | 2.6 | 2.7 | 3.x |
44
+ :---------------|:-----:|:---:|:---:|:----:
45
+ **stdlib 2.x** | no | **yes** | **yes** | no
46
+ **stdlib 3.x** | no | no | **yes** | **yes**
47
+ **stdlib 4.x** | no | no | no | **yes**
48
+
43
49
  The stdlib module does not work with Puppet versions released prior to Puppet
44
50
  2.6.0.
45
51
 
@@ -38,4 +38,9 @@ Puppet::Type.newtype(:anchor) do
38
38
  desc "The name of the anchor resource."
39
39
  end
40
40
 
41
+ def refresh
42
+ # We don't do anything with them, but we need this to
43
+ # show that we are "refresh aware" and not break the
44
+ # chain of propagation.
45
+ end
41
46
  end
@@ -0,0 +1,32 @@
1
+ require 'puppet'
2
+ require 'rspec-puppet'
3
+
4
+ describe "anchorrefresh" do
5
+ let(:node) { 'testhost.example.com' }
6
+ let :pre_condition do
7
+ <<-ANCHORCLASS
8
+ class anchored {
9
+ anchor { 'anchored::begin': }
10
+ ~> anchor { 'anchored::end': }
11
+ }
12
+
13
+ class anchorrefresh {
14
+ notify { 'first': }
15
+ ~> class { 'anchored': }
16
+ ~> anchor { 'final': }
17
+ }
18
+ ANCHORCLASS
19
+ end
20
+
21
+ def apply_catalog_and_return_exec_rsrc
22
+ catalog = subject.to_ral
23
+ transaction = catalog.apply
24
+ transaction.resource_status("Anchor[final]")
25
+ end
26
+
27
+ it 'propagates events through the anchored class' do
28
+ resource = apply_catalog_and_return_exec_rsrc
29
+
30
+ expect(resource.restarted).to eq(true)
31
+ end
32
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppetmodule-stdlib
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,10 +9,14 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-10 00:00:00.000000000 Z
12
+ date: 2013-04-12 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: Puppet Labs Standard Library module
15
- email: support@puppetlabs.com
14
+ description: This Gem format of the stdlib module is intended to make it easier for
15
+ _module authors_ to resolve dependencies using a Gemfile when running automated
16
+ testing jobs like Travis or Jenkins. The recommended best practice for installation
17
+ by end users is to use the `puppet module install` command to install stdlib from
18
+ the [Puppet Forge](http://forge.puppetlabs.com/puppetlabs/stdlib).
19
+ email: puppet-dev@puppetlabs.com
16
20
  executables: []
17
21
  extensions: []
18
22
  extra_rdoc_files: []
@@ -124,6 +128,7 @@ files:
124
128
  - tests/has_ip_address.pp
125
129
  - tests/has_ip_network.pp
126
130
  - tests/init.pp
131
+ - spec/classes/anchor_spec.rb
127
132
  - spec/functions/defined_with_params_spec.rb
128
133
  - spec/functions/ensure_packages_spec.rb
129
134
  - spec/functions/ensure_resource_spec.rb
@@ -216,12 +221,12 @@ files:
216
221
  - spec/unit/puppet/type/anchor_spec.rb
217
222
  - spec/unit/puppet/type/file_line_spec.rb
218
223
  - spec/watchr.rb
219
- homepage: https://github.com/puppetlabs/puppetlabs-stdlib
224
+ homepage: http://forge.puppetlabs.com/puppetlabs/stdlib
220
225
  licenses: []
221
226
  post_install_message:
222
227
  rdoc_options:
223
228
  - --title
224
- - Puppet Standard Library Module
229
+ - Puppet Standard Library Development Gem
225
230
  - --main
226
231
  - README.markdown
227
232
  - --line-numbers
@@ -235,7 +240,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
235
240
  version: '0'
236
241
  segments:
237
242
  - 0
238
- hash: -1169862895975536617
243
+ hash: -2699750084598949787
239
244
  required_rubygems_version: !ruby/object:Gem::Requirement
240
245
  none: false
241
246
  requirements:
@@ -247,6 +252,6 @@ rubyforge_project: puppetmodule-stdlib
247
252
  rubygems_version: 1.8.25
248
253
  signing_key:
249
254
  specification_version: 3
250
- summary: This module provides a standard library of resources for developing Puppet
251
- Modules.
255
+ summary: This gem provides a way to make the standard library available for other
256
+ module spec testing tasks.
252
257
  test_files: []