goodcheck 2.1.1 → 2.1.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
1
  ---
2
2
  SHA256:
3
- metadata.gz: b55685cfc689ed8aa037daa6bff7cc2012cb4d92e905e3cbeee07d13ef2b6d7a
4
- data.tar.gz: 495ffb584f5886b4ee767994a315b83e8d371ddc8dd035d7378ed02096e69682
3
+ metadata.gz: 94606f9fbcb649e4d2d9a2b3303eb996ff6e6ff32eb2cdb1c8af04c960c472d3
4
+ data.tar.gz: a94dd27179da152c24ee0d8e05c6769c3ac9affcdc2f9f584eae7ab71634b25d
5
5
  SHA512:
6
- metadata.gz: 9b032e6dffb2d0df33bd0eaea991d1175723df5f741bc190d792062629687dcde70c7153cb86f1ceee48c420472f106b6e6046adaf9de316018b16243a724dbb
7
- data.tar.gz: 69ee77829739d940cba31b97427d5667d785fbffdcb672b584e33123d6c16cacaefd9265ca2c0aa1af8057b7159fe2c8ebf8139008a44801998c45a0643820a4
6
+ metadata.gz: d2cf09aae369a903f182badb6c55cf23c1d510cd097f91b646adb091f623beaca27e062c7324abd7cbe028b586ff845fba791bb005ea189a76a8b4f5af78faa0
7
+ data.tar.gz: bae1cb3da7f6d92b7bd2f5d10b0f466e49b3a7aabc8bf46d3641cdc31b3e1b66aa48f355927b4b0bd743818b12db7b9e5b3a7bcf408ff62e22965a7a86fd537e
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 2.1.2 (2019-06-14)
6
+
7
+ * Let `rules` in configuration be optional
8
+
5
9
  ## 2.1.1 (2019-06-11)
6
10
 
7
11
  * Let `:int` variable match with `0`
data/README.md CHANGED
@@ -277,7 +277,6 @@ If your `pattern` definition includes `glob`, swithing `trigger` would make sens
277
277
  `goodcheck.yml` can have optional `import` attribute.
278
278
 
279
279
  ```yaml
280
- rules: []
281
280
  import:
282
281
  - /usr/share/goodcheck/rules.yml
283
282
  - lib/goodcheck/rules.yml
@@ -297,7 +296,6 @@ The rules file is a YAML file with array of rules.
297
296
  `goodcheck.yml` can have optional `exclude` attribute.
298
297
 
299
298
  ```yaml
300
- rules: []
301
299
  exclude:
302
300
  - node_modules
303
301
  - vendor
@@ -191,7 +191,7 @@ module Goodcheck
191
191
  let :exclude, array_or(string)
192
192
 
193
193
  let :config, object(
194
- rules: rules,
194
+ rules: optional(rules),
195
195
  import: optional(imports),
196
196
  exclude: optional(exclude)
197
197
  )
@@ -218,7 +218,7 @@ module Goodcheck
218
218
 
219
219
  rules = []
220
220
 
221
- load_rules(rules, content[:rules])
221
+ load_rules(rules, array(content[:rules]))
222
222
 
223
223
  Array(content[:import]).each do |import|
224
224
  load_import rules, import
@@ -1,3 +1,3 @@
1
1
  module Goodcheck
2
- VERSION = "2.1.1"
2
+ VERSION = "2.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: goodcheck
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Soutaro Matsumoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-11 00:00:00.000000000 Z
11
+ date: 2019-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler