pdqtest 0.1.18 → 0.1.19

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
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8813a69ebe812db855f57a54817a370106f1783
4
- data.tar.gz: 66449ccd6285d84da08e8092bd1077b58ba0f2a1
3
+ metadata.gz: 56e308974045957abc0f9063719b1749ac47471a
4
+ data.tar.gz: fd467093cbd3676063009c43aaf929a82e313165
5
5
  SHA512:
6
- metadata.gz: 9c3749923fbf07d6a323a30040f13142509da16b7d5b703a5a865421d22a74f3adb75e34f74a5dee3ddeab9172875f35896751c4d26b1c23f864a200d18bfe5c
7
- data.tar.gz: 5e02a0c32a1f12eeaf939ce6595cd6371ddbc850ec0699bce0dc92c17cb658dc4a4e81ad523c80cafe102a44f3fc184793d32e74e343bfec3c7bea5d278aacf4
6
+ metadata.gz: f4eb15204f30c43ac060d88cbdf43302dafe388707354dce7900002ca89a1f6c76dab0d53fe221a46a19bc7056d34604f20e34f67c34349a6a266f7472efc81d
7
+ data.tar.gz: 5eb125bd19cb025e1e2f77ccbfcd09cea1ab61bd32a55b561e0236bd9a3de40ba86ea0da244c2451939724685df34a237d53dc0ffc35a076977b63e58a2bcb66
@@ -11,7 +11,7 @@ module PDQTest
11
11
  SPEC_DIR = 'spec'
12
12
  ACCEPTANCE_DIR = File.join(SPEC_DIR, 'acceptance')
13
13
  CLASSES_DIR = File.join(SPEC_DIR, 'classes')
14
- SKELETON_DIR = File.join('res', 'skeleton')
14
+ SKELETON_DIR = 'skeleton'
15
15
  EXAMPLES_DIR = 'examples'
16
16
  GEMFILE = 'Gemfile'
17
17
  GEMFILE_LINE = "gem 'pdqtest', '#{PDQTest::VERSION}'"
@@ -20,13 +20,13 @@ module PDQTest
20
20
 
21
21
  def self.should_replace_file(target, skeleton)
22
22
  target_hash = Digest::SHA256.file target
23
- skeleton_hash = File.join(SKELETON_DIR, skeleton)
23
+ skeleton_hash = Digest::SHA256.file skeleton
24
24
 
25
25
  target_hash != skeleton_hash
26
26
  end
27
27
 
28
28
  def self.install_skeleton(target_file, skeleton, replace=true)
29
- skeleton_file = Util::resource_path(File.join('skeleton', skeleton))
29
+ skeleton_file = Util::resource_path(File.join(SKELETON_DIR, skeleton))
30
30
  if File.exists?(target_file) and replace and should_replace_file(target_file, skeleton_file)
31
31
  # move existing file out of the way
32
32
  FileUtils.mv(target_file, target_file + BACKUP_EXT)
@@ -42,8 +42,8 @@ module PDQTest
42
42
  def self.install_example
43
43
  example_file = File.join(EXAMPLES_DIR, 'init.pp')
44
44
  if ! File.exists?(example_file)
45
- init_pp = <<-END
46
- #{PDQTest::Puppet::MAGIC_MARKER}
45
+ init_pp = <<~END
46
+ ##{PDQTest::Puppet::MAGIC_MARKER}
47
47
  include #{PDQTest::Puppet.module_name}
48
48
  END
49
49
  File.write(example_file, init_pp)
@@ -1,3 +1,3 @@
1
1
  module PDQTest
2
- VERSION = "0.1.18"
2
+ VERSION = "0.1.19"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdqtest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoff Williams