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 +4 -4
- data/lib/check_xcode_xmls.rb +2 -2
- data/lib/check_xcode_xmls/arguments_parser.rb +16 -0
- data/lib/check_xcode_xmls/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d10a35d701af1df72ae34bfc635750f31305546
|
4
|
+
data.tar.gz: 2f63512816082f5019bc417898955be67cfe1967
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 423ed528e9ee24f24f0b7990bcb4126cd524b002116b029b303991ba23c112dccc89d5f4890bae0a74836b4c2d1d450c25b1c83287f68f575c6d8e69915d6b6c
|
7
|
+
data.tar.gz: 5ab7dc9c75e0a39c17a0561d71d89f0a867aebdf8ba19a0f7f72d58f4ce8989c09a5749f7cd0f4dcf69c661b096cc47eef9a13452640b704f274405c69e6f278
|
data/lib/check_xcode_xmls.rb
CHANGED
@@ -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
|
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.
|
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-
|
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
|