goodcheck 0.2.0 → 0.3.0

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: 99ec5bd2fd133d9b1b00c03c76fc42d1d1145eb1
4
- data.tar.gz: 91a7e9ca8954be3abc60fc2cd8e902943399b6eb
3
+ metadata.gz: 51ba6505565e37ab45a69ee8546dca2aad045398
4
+ data.tar.gz: 7e948f2977aede6e592799bb54d00f7dc95c557e
5
5
  SHA512:
6
- metadata.gz: 35e2e248ba0c857caf3cbb447e13aaf3526c099f7a0903af76e2aca1c8d9c0937e3567c3d5fe5274075f8a0d47c95dd91b97f3744c133c3083282d6aaba3d0e3
7
- data.tar.gz: 45d6962cdf723186df8ed0ac11ed7433645fdcb50e286c7c5686aa18bcf3d94024a347043c2b2c72f48de1c74a941afab48cf50d260c5bbb0da457c6d7405aef
6
+ metadata.gz: 0d871866ae66c5a778f7e2d07b5a4e3850a93bfec93391963ce72ff758505b17eae2848603cf4e4916fd97d9bebc79c808bc1872cefba7849f7bd901f224ba09
7
+ data.tar.gz: a90a39cd90898544b5c83799c6a608fe3114245e895307b852d35891a05a2c97ce21e110a1e67519f4577fa4208a8b4823c618eee9e0a0b5180977f45e11d20e
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 0.3.0 (2017-12-27)
6
+
7
+ * `check` ignores config file unless explicitly given by commandline #2
8
+
5
9
  ## 0.2.0 (2017-12-26)
6
10
 
7
11
  * Add `version` command
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- goodcheck (0.2.0)
4
+ goodcheck (0.3.0)
5
5
  activesupport (~> 5.0)
6
6
  rainbow (~> 3.0.0)
7
7
  strong_json (~> 0.5.0)
@@ -46,7 +46,7 @@ module Goodcheck
46
46
 
47
47
  def each_check
48
48
  targets.each do |target|
49
- each_file target do |path|
49
+ each_file target, immediate: true do |path|
50
50
  reporter.file(path) do
51
51
  buffers = {}
52
52
 
@@ -72,7 +72,7 @@ module Goodcheck
72
72
  end
73
73
  end
74
74
 
75
- def each_file(path, &block)
75
+ def each_file(path, immediate: false, &block)
76
76
  realpath = path.realpath
77
77
 
78
78
  case
@@ -81,7 +81,12 @@ module Goodcheck
81
81
  each_file(child, &block)
82
82
  end
83
83
  when realpath.file?
84
- yield path
84
+ if path == config_path
85
+ # Skip config file unless explicitly given by command line
86
+ yield path if immediate
87
+ else
88
+ yield path
89
+ end
85
90
  end
86
91
  end
87
92
  end
@@ -1,3 +1,3 @@
1
1
  module Goodcheck
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: goodcheck
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Soutaro Matsumoto