guard-inch 0.1.2 → 0.2.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: 8ced9d4b67aa7eaf1573a23c68ef9bfca12c8cd4
4
- data.tar.gz: abdb27c001ba27c17d6d7357077a6d3122fdb485
3
+ metadata.gz: a2ce3d228d3cc76e34191429c090d49f7d178e17
4
+ data.tar.gz: 13e2289d27d376bd7274db0aa1a7edcfaca6dc00
5
5
  SHA512:
6
- metadata.gz: 955c80f7f596efd3915179b57bc2e159add133c2ba975a19a0360753ef94bd330f8c32f0a29517ee307354fb69b27d2062f0e8d9caea23fa15e8b2c54414dd86
7
- data.tar.gz: b3b14a66686aa71acc6ec1827c7217d7084b473f9a94733ad4f10e113a3e25f24da98488b3982934b3a41caaa7a6cfb36e70c3f9e66599da704f3950c2ac356e
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
 
@@ -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", "~> 0"
24
+ spec.add_runtime_dependency "guard", "~> 2"
25
25
  spec.add_runtime_dependency "inch", "~> 0"
26
26
  end
@@ -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
 
@@ -2,6 +2,6 @@
2
2
  module Guard
3
3
  # The Inch Plugin Version namespace
4
4
  module InchVersion
5
- VERSION = '0.1.2'
5
+ VERSION = '0.2.0'
6
6
  end
7
7
  end
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.1.2
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-09-21 00:00:00.000000000 Z
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: '0'
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: '0'
54
+ version: '2'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: inch
57
57
  requirement: !ruby/object:Gem::Requirement