guard-inch 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/guard-inch.gemspec +1 -1
- data/lib/guard/inch.rb +2 -0
- data/lib/guard/inch/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2ce3d228d3cc76e34191429c090d49f7d178e17
|
4
|
+
data.tar.gz: 13e2289d27d376bd7274db0aa1a7edcfaca6dc00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37534cbecf655ed8c8a36570d44a8287ae378b9426978da206031100dadbab4ea0fc8035390efd3db8f658b297dfedec16e794a382cbe115e33a51c3b08fac67
|
7
|
+
data.tar.gz: b1dec51403c1c70d2cfc0b187ec7014d23cd48e3b05beb10f7c726e718ba6152cb889328ae32e2a91451f45e6efb93a9a017a5ef4536c8415b952149c392db55
|
data/README.md
CHANGED
@@ -37,13 +37,14 @@ and the tool will rerun `inch` on the files you are working with as you change t
|
|
37
37
|
|
38
38
|
Other options can be set in the Guardfile
|
39
39
|
|
40
|
-
guard :inch, pedantic: true, all_on_start: true, all_type: :stats do
|
40
|
+
guard :inch, pedantic: true, private: true, all_on_start: true, all_type: :stats do
|
41
41
|
watch(/.+\.rb/)
|
42
42
|
end
|
43
43
|
|
44
44
|
The above example shows use of several different options:
|
45
45
|
|
46
46
|
- pedantic: determines whether or not to use the pedantic flag for changed file runs
|
47
|
+
- private: as with `pedantic`, but for the private command-line flag
|
47
48
|
- all_on_start: determines whether or not to do a `run all` on startup
|
48
49
|
- all_type: specifies which run type should be used for `run all` with options mapping to those provided by inch
|
49
50
|
|
data/guard-inch.gemspec
CHANGED
@@ -21,6 +21,6 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.5"
|
22
22
|
spec.add_development_dependency "rake", "~> 1"
|
23
23
|
|
24
|
-
spec.add_runtime_dependency "guard", "~>
|
24
|
+
spec.add_runtime_dependency "guard", "~> 2"
|
25
25
|
spec.add_runtime_dependency "inch", "~> 0"
|
26
26
|
end
|
data/lib/guard/inch.rb
CHANGED
@@ -19,6 +19,7 @@ module Guard
|
|
19
19
|
def start
|
20
20
|
message = 'Guard::Inch is running'
|
21
21
|
message << ' in pedantic mode' if options[:pedantic]
|
22
|
+
message << ' and inspecting private fields' if options[:private]
|
22
23
|
::Guard::UI.info message
|
23
24
|
run_all if options[:all_on_start]
|
24
25
|
end
|
@@ -43,6 +44,7 @@ module Guard
|
|
43
44
|
def run_on_changes(paths)
|
44
45
|
flags = ''
|
45
46
|
flags << '--pedantic ' if options[:pedantic]
|
47
|
+
flags << '--private ' if options[:private]
|
46
48
|
run_inch "#{flags} #{paths.join(' ')}"
|
47
49
|
end
|
48
50
|
|
data/lib/guard/inch/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-inch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Craig Hills
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '2'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '2'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: inch
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|