check_xcode_xmls 0.1.0 → 0.1.1

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: c81381382ef0b3eaee3a268b0e65e20c08d549fe
4
- data.tar.gz: 7e61924751d164938ff6feeed6a13a0ef9d49f2f
3
+ metadata.gz: 1d10a35d701af1df72ae34bfc635750f31305546
4
+ data.tar.gz: 2f63512816082f5019bc417898955be67cfe1967
5
5
  SHA512:
6
- metadata.gz: b6f9e57fc93518f3086acd5c825ed790b7b53ff1f7b4b27d9a2d3595e9316a9ae668a99e13d04aa76bc6aeeb5ec8704e4a95d4e076cc53cdecdd72d867cceaef
7
- data.tar.gz: 86598a83f9b6b5e229e9bb35495857c4783b64b5c7a058d85f473efd2d00898bfba07a15bd9e4ebc7a56bba0c59e7d8a9f3d3bef7ecbc52ee1c4cacacb4c76ce
6
+ metadata.gz: 423ed528e9ee24f24f0b7990bcb4126cd524b002116b029b303991ba23c112dccc89d5f4890bae0a74836b4c2d1d450c25b1c83287f68f575c6d8e69915d6b6c
7
+ data.tar.gz: 5ab7dc9c75e0a39c17a0561d71d89f0a867aebdf8ba19a0f7f72d58f4ce8989c09a5749f7cd0f4dcf69c661b096cc47eef9a13452640b704f274405c69e6f278
@@ -18,8 +18,8 @@ module CheckXcodeXmls
18
18
  options.input_directory
19
19
  )
20
20
 
21
- puts "#{$PROGRAM_NAME} #{arguments_string}"
22
- puts "Total issues: #{result.length || 0}"
21
+ puts "#{$PROGRAM_NAME} #{arguments_string}" if options.echo_invocation
22
+ puts "Total issues: #{result.length || 0}" if options.print_totals
23
23
  puts result unless result.nil?
24
24
  end
25
25
  end
@@ -4,6 +4,8 @@ require 'optparse'
4
4
  Options = Struct.new(
5
5
  :input_directory,
6
6
  :ignore_regex_string,
7
+ :echo_invocation,
8
+ :print_totals,
7
9
  :check_constraints_identifiers,
8
10
  :check_use_autolayout
9
11
  )
@@ -15,6 +17,8 @@ class Parser
15
17
  def self.default_options
16
18
  result = Options.new
17
19
  result.input_directory = '.'
20
+ result.echo_invocation = false
21
+ result.print_totals = false
18
22
  result.check_constraints_identifiers = false
19
23
  result.check_use_autolayout = false
20
24
  result
@@ -42,6 +46,18 @@ class Parser
42
46
  result.ignore_regex_string = v
43
47
  end
44
48
 
49
+ o.on('-e',
50
+ '--echo',
51
+ 'Echo invocation') do |_v|
52
+ result.echo_invocation = true
53
+ end
54
+
55
+ o.on('-t',
56
+ '--total',
57
+ 'Print total') do |_v|
58
+ result.print_totals = true
59
+ end
60
+
45
61
  o.on('--check-constraints-identifiers',
46
62
  'Check files for constraints that don\'t have identifiers') do |_v|
47
63
  result.check_constraints_identifiers = true
@@ -1,3 +1,3 @@
1
1
  module CheckXcodeXmls
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: check_xcode_xmls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrei Nagy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-10 00:00:00.000000000 Z
11
+ date: 2019-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '1.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement