jekyll_frontmatter_tests 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4487b50216c807a939eb3cfef2a03452454eb09f
4
- data.tar.gz: b5282b256753b7d09bf2f1b7de6869de8d78a095
3
+ metadata.gz: c4916b33ffb20666a1483d4204ac9a6412fca6c4
4
+ data.tar.gz: 3e2219857341480f9c4598d2824b8ffb46753ce7
5
5
  SHA512:
6
- metadata.gz: 5176b451341b3871085b631929469e4ba31e2686f9e4ae81cc78d016bc74085c250dede044e366857459b79513d623bcc003225e54f87df9528be71b7064382c
7
- data.tar.gz: bcd58e5fb6ad835d3c2c97a41bd6c3b70b8d83dbbdee7d615a674a8c56e4a9a64d350060cfa595e5b45d2fdb21a577df428a3a441043f9a96e3eebbf9477a7de
6
+ metadata.gz: 3dbdef302966a5ff16eddb6923a108ab7c58fb148cdc39f21f63c10e8bfdd6894be9b3f4aa938e6143d16ee3f614c1630e1f04e9f0c843804726cae7afa38153
7
+ data.tar.gz: bd31493b0e15a0f2b6f77f77028bad0d409558c492ac0c82cd6341c78acca6a4ab52d6106244fe4a66871f3924f89b7053cef1f8e0d3cb40c52b099b8d918d1d
@@ -86,7 +86,7 @@ class FrontmatterTests < Jekyll::Command
86
86
  # it.
87
87
  def test_posts
88
88
  puts 'testing posts'.green
89
- yepnope = process(loadschema('_posts.yml'))
89
+ yepnope = Array.new.push process(loadschema('_posts.yml'))
90
90
  puts 'Finished testing'.green
91
91
  yepnope
92
92
  end
@@ -137,17 +137,15 @@ class FrontmatterTests < Jekyll::Command
137
137
  # The test runner pushes the result of each test into a `results` array and # exits `1` if any tests fail or `0` if all is well.
138
138
  def test_frontmatter(args, options)
139
139
  puts 'starting tests'
140
- results = Array.new
141
140
  if options['posts']
142
- results.push test_posts
141
+ results = test_posts
143
142
  elsif options['collections']
144
143
  collections = options['collections'].split(',')
145
- results.push test_collections(collections)
144
+ results = test_collections(collections)
146
145
  else
147
- results.push test_everything
146
+ results = test_everything
148
147
  end
149
- results.keep_if { |t| t == false }
150
- if results.empty?
148
+ unless results.find_index{ |r| r == false }
151
149
  puts 'Tests finished!'
152
150
  exit 0
153
151
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll_frontmatter_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Boone