pdqtest 2.0.4 → 2.0.5

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
  SHA256:
3
- metadata.gz: fb022660430b67858a7a902212d5339a7b98c7bbaaa3a7dec021b714b1a71b83
4
- data.tar.gz: 1b58a1ddd5f16e86bc0589f36fb68447c1c8771c0abf3aff5ab198d2dad49b83
3
+ metadata.gz: 91ea474de70e66b184f983da16bf89b56b6a3c5662c74033f208388a27610748
4
+ data.tar.gz: 9e713c1a7c1e8b372fdde740e170cee7ce251335317abebc6eed7cd8f064c1ee
5
5
  SHA512:
6
- metadata.gz: 11cb853ccef6d4c73fd7e4cff7aaf52fe6a45620b4b3b7a4c2db57e5414534d9710e287ee95270a4fd97e7cac3e12abc49523334e878a7203b7778ac490acaf0
7
- data.tar.gz: 16a88709c7b68ad932f8715773896d57079283921843f792b7583d6636d9d43c21dc7d5227f705cb4b8a59753da859c9b34f663e07cdfd31c95028597cfa3db3
6
+ metadata.gz: 7b21e8f78a680345692273cbfc91987225f18fe414906c054dcd6e9925a6a02a9380d66171c623f511b169eafb567070494999d82b8febecaddf794172bafb48
7
+ data.tar.gz: 57a3ed28066149ee2f3b90a132a404c83414ee6aa6f875a99ba6063ea5d955994596f96cee8891ac38dfeb159948b130037882920b1f0a776183fe177b41e050
data/lib/pdqtest/pdk.rb CHANGED
@@ -59,6 +59,13 @@ module PDQTest
59
59
  def self.amend_sync_yml(data)
60
60
  if File.exist? SYNC_YML
61
61
  sync = YAML.load_file(SYNC_YML)
62
+
63
+ # PDQTest < 2.0.4 mistakenly dropped an array into
64
+ # .sync.yml[.gitattributes][include] that will crash PDK on upgrade
65
+ # nuke this key on sight to fix
66
+ if sync.dig(".gitattributes", "include").is_a? Array
67
+ sync[".gitattributes"].delete("include")
68
+ end
62
69
  else
63
70
  sync = {}
64
71
  end
@@ -52,13 +52,13 @@ module PDQTest
52
52
  ],
53
53
  },
54
54
  ".gitattributes" => {
55
- "include" => [
56
- "*.epp eol=lf",
57
- "*.json eol=lf",
58
- "*.yaml eol=lf",
59
- "*.yml eol=lf",
60
- "*.md eol=lf",
61
- ]
55
+ "include" => {
56
+ "*.epp" => "eol=lf",
57
+ "*.json"=> "eol=lf",
58
+ "*.yaml"=> "eol=lf",
59
+ "*.yml" => "eol=lf",
60
+ "*.md" => "eol=lf",
61
+ }
62
62
  }
63
63
  }.freeze
64
64
 
@@ -1,3 +1,3 @@
1
1
  module PDQTest
2
- VERSION = "2.0.4"
2
+ VERSION = "2.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdqtest
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoff Williams
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-31 00:00:00.000000000 Z
11
+ date: 2019-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler