rspec-puppet-utils 2.2.1 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
- ---
2
- SHA1:
3
- metadata.gz: e08e89143c357f05dd441df8a7a7d93030b52e4f
4
- data.tar.gz: 3868e611d7c5fb972bd371c398cbaa9727cfffdc
5
- SHA512:
6
- metadata.gz: 81e7ec6f4ced78eb17d9eb9813acd4bb6849abcaa9cdb347315d2c2a49ece444b24848b5ea189b262f37f929ea0e7583b3b310fdddca3880ab16a3051fe235c3
7
- data.tar.gz: fa03af629240818ca23d01b477fa8f4c6cdb460faa9f12128941bbdea2547292571f5aaa5df1281ce59aa529991cfc1b770e84ceba453455d7abbe4429661cd0
1
+ ---
2
+ SHA1:
3
+ metadata.gz: de78cb06b14b34d3a9193f34585c28b139181f3b
4
+ data.tar.gz: 880c5cb408b1821ede607aca8856b3f7faed8c2f
5
+ SHA512:
6
+ metadata.gz: f17a5991f2febc75f534c9f32d80cc4a2627985978fda0c5b3f85e52ddda198cdb205578375b4ad98f24dd6baa228640f15c0e03fd92d5f578d54d99e5188df7
7
+ data.tar.gz: 9735e55bb916dbd6eac1fee36dd649790be5b5caa153534ea69e5483e889d241898448cf51635cb30437384e2aea748201c861a26e2445d2cf423318950e9f10
data/Gemfile CHANGED
@@ -1,8 +1,3 @@
1
1
  source 'https://rubygems.org/'
2
2
 
3
- gem 'puppet', '~> 3'
4
- gem 'mocha'
5
- gem 'rspec', '3.1.0'
6
- gem 'rspec-puppet'
7
- gem 'puppetlabs_spec_helper'
8
- gem 'thor'
3
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,19 @@
1
+ The MIT License (MIT)
2
+ Copyright © 2017 Accuity Inc.
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ this software and associated documentation files (the “Software”), to deal in
6
+ the Software without restriction, including without limitation the rights to
7
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8
+ the Software, and to permit persons to whom the Software is furnished to do so,
9
+ subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in
12
+ all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
15
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
18
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/lib/mock_function.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'puppet'
2
- require 'mocha'
2
+ require 'mocha/api'
3
3
 
4
4
  module RSpec::Puppet
5
5
  module Support
@@ -1,14 +1,20 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |gem|
3
3
  gem.name = 'rspec-puppet-utils'
4
- gem.version = '2.2.1'
5
- gem.description = 'Helper classes for mock/stub functions, templates and hierdata'
4
+ gem.version = '2.2.2'
5
+ gem.description = 'Helper classes for mock/stub functions, templates and hieradata'
6
6
  gem.summary = ''
7
7
  gem.author = 'Tom Poulton'
8
- #gem.license = ''
8
+ gem.license = 'MIT'
9
9
 
10
10
  gem.homepage = 'https://github.com/Accuity/rspec-puppet-utils'
11
11
  gem.files = `git ls-files`.split($/)
12
12
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
13
13
  gem.require_paths = ['lib']
14
+
15
+ gem.add_dependency('puppet', '>= 3')
16
+ gem.add_dependency('rspec')
17
+ gem.add_dependency('rspec-puppet')
18
+ gem.add_dependency('puppetlabs_spec_helper')
19
+ gem.add_dependency('mocha')
14
20
  end
@@ -0,0 +1,9 @@
1
+ require 'mock_function'
2
+
3
+ describe 'requires' do
4
+ it 'requires mocha properly without the spec_helper' do
5
+ Puppet::Parser::Functions.reset
6
+ func = RSpecPuppetUtils::MockFunction.new 'func'
7
+ expect { func.stubbed }.not_to raise_error
8
+ end
9
+ end
data/spec/spec_helper.rb CHANGED
@@ -5,4 +5,4 @@ $LOAD_PATH.unshift '.'
5
5
 
6
6
  RSpec.configure do |c|
7
7
  c.color = true
8
- end
8
+ end
metadata CHANGED
@@ -1,28 +1,94 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rspec-puppet-utils
3
- version: !ruby/object:Gem::Version
4
- version: 2.2.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.2.2
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Tom Poulton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
-
12
- date: 2015-10-29 00:00:00 Z
13
- dependencies: []
14
-
15
- description: Helper classes for mock/stub functions, templates and hierdata
11
+ date: 2017-02-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: puppet
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '3'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec-puppet
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: puppetlabs_spec_helper
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: mocha
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: Helper classes for mock/stub functions, templates and hieradata
16
84
  email:
17
85
  executables: []
18
-
19
86
  extensions: []
20
-
21
87
  extra_rdoc_files: []
22
-
23
- files:
24
- - .gitignore
88
+ files:
89
+ - ".gitignore"
25
90
  - Gemfile
91
+ - LICENSE.txt
26
92
  - README.md
27
93
  - Rakefile
28
94
  - lib/hieradata/validator.rb
@@ -48,34 +114,33 @@ files:
48
114
  - spec/fixtures/hieradata/valid/sub2/nested.dot.yml
49
115
  - spec/fixtures/hieradata/valid/valid.yaml
50
116
  - spec/fixtures/templates/returns_elephant.erb
117
+ - spec/require_spec.rb
51
118
  - spec/spec_helper.rb
52
119
  homepage: https://github.com/Accuity/rspec-puppet-utils
53
- licenses: []
54
-
120
+ licenses:
121
+ - MIT
55
122
  metadata: {}
56
-
57
123
  post_install_message:
58
124
  rdoc_options: []
59
-
60
- require_paths:
125
+ require_paths:
61
126
  - lib
62
- required_ruby_version: !ruby/object:Gem::Requirement
63
- requirements:
64
- - &id001
65
- - ">="
66
- - !ruby/object:Gem::Version
67
- version: "0"
68
- required_rubygems_version: !ruby/object:Gem::Requirement
69
- requirements:
70
- - *id001
127
+ required_ruby_version: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ required_rubygems_version: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: '0'
71
137
  requirements: []
72
-
73
138
  rubyforge_project:
74
- rubygems_version: 2.0.14
139
+ rubygems_version: 2.4.6
75
140
  signing_key:
76
141
  specification_version: 4
77
- summary: ""
78
- test_files:
142
+ summary: ''
143
+ test_files:
79
144
  - spec/classes/hieradata/validator_spec.rb
80
145
  - spec/classes/hieradata/yaml_validator_spec.rb
81
146
  - spec/classes/mock_function_spec.rb
@@ -92,4 +157,5 @@ test_files:
92
157
  - spec/fixtures/hieradata/valid/sub2/nested.dot.yml
93
158
  - spec/fixtures/hieradata/valid/valid.yaml
94
159
  - spec/fixtures/templates/returns_elephant.erb
160
+ - spec/require_spec.rb
95
161
  - spec/spec_helper.rb