inch 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -0
  3. data/README.md +335 -3
  4. data/Rakefile +8 -0
  5. data/TODOS.md +12 -0
  6. data/bin/inch +17 -0
  7. data/inch.gemspec +7 -2
  8. data/lib/inch.rb +6 -1
  9. data/lib/inch/cli.rb +24 -0
  10. data/lib/inch/cli/arguments.rb +45 -0
  11. data/lib/inch/cli/command.rb +29 -0
  12. data/lib/inch/cli/command/base.rb +62 -0
  13. data/lib/inch/cli/command/base_list.rb +75 -0
  14. data/lib/inch/cli/command/base_object.rb +40 -0
  15. data/lib/inch/cli/command/console.rb +22 -0
  16. data/lib/inch/cli/command/inspect.rb +20 -0
  17. data/lib/inch/cli/command/list.rb +25 -0
  18. data/lib/inch/cli/command/options/base.rb +137 -0
  19. data/lib/inch/cli/command/options/base_list.rb +84 -0
  20. data/lib/inch/cli/command/options/base_object.rb +47 -0
  21. data/lib/inch/cli/command/options/console.rb +26 -0
  22. data/lib/inch/cli/command/options/inspect.rb +25 -0
  23. data/lib/inch/cli/command/options/list.rb +30 -0
  24. data/lib/inch/cli/command/options/show.rb +27 -0
  25. data/lib/inch/cli/command/options/stats.rb +20 -0
  26. data/lib/inch/cli/command/options/suggest.rb +61 -0
  27. data/lib/inch/cli/command/output/base.rb +32 -0
  28. data/lib/inch/cli/command/output/console.rb +45 -0
  29. data/lib/inch/cli/command/output/inspect.rb +129 -0
  30. data/lib/inch/cli/command/output/list.rb +87 -0
  31. data/lib/inch/cli/command/output/show.rb +79 -0
  32. data/lib/inch/cli/command/output/stats.rb +111 -0
  33. data/lib/inch/cli/command/output/suggest.rb +104 -0
  34. data/lib/inch/cli/command/show.rb +20 -0
  35. data/lib/inch/cli/command/stats.rb +20 -0
  36. data/lib/inch/cli/command/suggest.rb +104 -0
  37. data/lib/inch/cli/command_parser.rb +82 -0
  38. data/lib/inch/cli/sparkline_helper.rb +31 -0
  39. data/lib/inch/cli/trace_helper.rb +42 -0
  40. data/lib/inch/cli/yardopts_helper.rb +49 -0
  41. data/lib/inch/code_object.rb +8 -0
  42. data/lib/inch/code_object/docstring.rb +97 -0
  43. data/lib/inch/code_object/nodoc_helper.rb +84 -0
  44. data/lib/inch/code_object/proxy.rb +37 -0
  45. data/lib/inch/code_object/proxy/base.rb +194 -0
  46. data/lib/inch/code_object/proxy/class_object.rb +9 -0
  47. data/lib/inch/code_object/proxy/constant_object.rb +8 -0
  48. data/lib/inch/code_object/proxy/method_object.rb +118 -0
  49. data/lib/inch/code_object/proxy/method_parameter_object.rb +81 -0
  50. data/lib/inch/code_object/proxy/module_object.rb +8 -0
  51. data/lib/inch/code_object/proxy/namespace_object.rb +38 -0
  52. data/lib/inch/core_ext.rb +2 -0
  53. data/lib/inch/core_ext/string.rb +3 -0
  54. data/lib/inch/core_ext/yard.rb +4 -0
  55. data/lib/inch/evaluation.rb +35 -0
  56. data/lib/inch/evaluation/base.rb +60 -0
  57. data/lib/inch/evaluation/class_object.rb +6 -0
  58. data/lib/inch/evaluation/constant_object.rb +34 -0
  59. data/lib/inch/evaluation/file.rb +66 -0
  60. data/lib/inch/evaluation/method_object.rb +127 -0
  61. data/lib/inch/evaluation/module_object.rb +6 -0
  62. data/lib/inch/evaluation/namespace_object.rb +94 -0
  63. data/lib/inch/evaluation/role/base.rb +49 -0
  64. data/lib/inch/evaluation/role/constant.rb +43 -0
  65. data/lib/inch/evaluation/role/method.rb +60 -0
  66. data/lib/inch/evaluation/role/method_parameter.rb +46 -0
  67. data/lib/inch/evaluation/role/missing.rb +20 -0
  68. data/lib/inch/evaluation/role/namespace.rb +58 -0
  69. data/lib/inch/evaluation/role/object.rb +64 -0
  70. data/lib/inch/evaluation/score_range.rb +26 -0
  71. data/lib/inch/rake.rb +1 -0
  72. data/lib/inch/rake/suggest.rb +26 -0
  73. data/lib/inch/source_parser.rb +36 -0
  74. data/lib/inch/version.rb +1 -1
  75. data/test/fixtures/code_examples/lib/foo.rb +87 -0
  76. data/test/fixtures/readme/lib/foo.rb +17 -0
  77. data/test/fixtures/simple/README +25 -0
  78. data/test/fixtures/simple/lib/broken.rb +10 -0
  79. data/test/fixtures/simple/lib/foo.rb +214 -0
  80. data/test/fixtures/simple/lib/role_methods.rb +78 -0
  81. data/test/fixtures/simple/lib/role_namespaces.rb +68 -0
  82. data/test/fixtures/visibility/lib/foo.rb +18 -0
  83. data/test/fixtures/yardopts/.yardopts +1 -0
  84. data/test/fixtures/yardopts/foo/bar.rb +6 -0
  85. data/test/inch/cli/arguments_test.rb +70 -0
  86. data/test/inch/cli/command/console_test.rb +59 -0
  87. data/test/inch/cli/command/inspect_test.rb +59 -0
  88. data/test/inch/cli/command/list_test.rb +61 -0
  89. data/test/inch/cli/command/show_test.rb +59 -0
  90. data/test/inch/cli/command/stats_test.rb +57 -0
  91. data/test/inch/cli/command/suggest_test.rb +57 -0
  92. data/test/inch/cli/command_parser_test.rb +33 -0
  93. data/test/inch/cli/yardopts_helper_test.rb +84 -0
  94. data/test/inch/code_object/docstring_test.rb +204 -0
  95. data/test/inch/code_object/nodoc_helper_test.rb +38 -0
  96. data/test/inch/code_object/proxy_test.rb +188 -0
  97. data/test/inch/source_parser_test.rb +23 -0
  98. data/test/integration/stats_options_test.rb +34 -0
  99. data/test/integration/visibility_options_test.rb +79 -0
  100. data/test/test_helper.rb +21 -0
  101. metadata +184 -7
@@ -0,0 +1,188 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../../test_helper')
2
+
3
+ describe ::Inch::CodeObject::Proxy::Base do
4
+ before do
5
+ Dir.chdir fixture_path(:simple)
6
+ @source_parser ||= Inch::SourceParser.run(["lib/**/*.rb"])
7
+ end
8
+
9
+ def test_method_without_doc
10
+ m = @source_parser.find_object("Foo::Bar#method_without_doc")
11
+ refute m.has_doc?
12
+ refute m.has_parameters?
13
+ refute m.return_mentioned?
14
+ assert m.undocumented?
15
+
16
+ assert_equal 0, m.score
17
+ end
18
+
19
+ def test_method_with_missing_param_doc
20
+ m = @source_parser.find_object("Foo::Bar#method_with_missing_param_doc")
21
+ assert m.has_doc?
22
+ assert m.has_parameters?
23
+ assert m.return_mentioned?
24
+
25
+ assert_equal 3, m.parameters.size
26
+ p = m.parameter(:param1)
27
+ assert p.mentioned?
28
+ p = m.parameter(:param2)
29
+ assert p.mentioned?
30
+ p = m.parameter(:param3)
31
+ refute p.mentioned?
32
+
33
+ assert m.score
34
+ end
35
+
36
+ def test_method_with_wrong_doc
37
+ m = @source_parser.find_object("Foo::Bar#method_with_wrong_doc")
38
+ assert m.has_doc?
39
+ assert m.has_parameters?
40
+ assert m.return_mentioned?
41
+
42
+ assert_equal 4, m.parameters.size
43
+ p = m.parameter(:param1)
44
+ assert p.mentioned? # mentioned in docs, correctly
45
+ refute p.wrongly_mentioned?
46
+ p = m.parameter(:param2)
47
+ refute p.mentioned?
48
+ refute p.wrongly_mentioned? # not mentioned in docs at all
49
+ p = m.parameter(:param3)
50
+ refute p.mentioned?
51
+ refute p.wrongly_mentioned? # not mentioned in docs at all
52
+ p = m.parameter(:param4)
53
+ assert p.mentioned?
54
+ assert p.wrongly_mentioned? # mentioned in docs, but not present
55
+
56
+ assert m.score
57
+ end
58
+
59
+ def test_method_with_full_doc
60
+ m = @source_parser.find_object("Foo::Bar#method_with_full_doc")
61
+ assert m.has_doc?
62
+ assert m.has_parameters?
63
+ assert m.return_mentioned?
64
+
65
+ assert_equal 2, m.parameters.size
66
+ m.parameters.each do |param|
67
+ assert param.mentioned?
68
+ assert param.typed?
69
+ assert param.described?
70
+ refute param.wrongly_mentioned?
71
+ end
72
+
73
+ assert_equal 100, m.score
74
+ end
75
+
76
+ def test_method_without_params_or_return_type
77
+ m = @source_parser.find_object("Foo::Bar#method_without_params_or_return_type")
78
+ assert m.has_doc?
79
+ refute m.has_parameters?
80
+ refute m.return_mentioned?
81
+
82
+ assert m.score
83
+ end
84
+
85
+ def test_method_without_docstring
86
+ m = @source_parser.find_object("Foo::Bar#method_without_docstring")
87
+ refute m.has_doc?
88
+ assert m.has_parameters?
89
+ assert m.return_mentioned?
90
+
91
+ assert m.score
92
+ end
93
+
94
+ def test_method_without_params_or_docstring
95
+ m = @source_parser.find_object("Foo::Bar#method_without_params_or_docstring")
96
+ refute m.has_doc?
97
+ refute m.has_parameters?
98
+ assert m.return_mentioned?
99
+
100
+ assert m.score
101
+ end
102
+
103
+ def test_method_with_rdoc_doc
104
+ m = @source_parser.find_object("Foo::Bar#method_with_rdoc_doc")
105
+ assert m.has_doc?
106
+ assert m.has_parameters?
107
+ p = m.parameter(:param1)
108
+ assert p.mentioned? # mentioned in docs, correctly
109
+ refute m.return_mentioned?
110
+
111
+ assert m.score
112
+ end
113
+
114
+ def test_method_with_other_rdoc_doc
115
+ m = @source_parser.find_object("Foo::Bar#method_with_other_rdoc_doc")
116
+ assert m.has_doc?
117
+ assert m.has_parameters?
118
+ p = m.parameter(:param1)
119
+ assert p.mentioned? # mentioned in docs, correctly
120
+ p = m.parameter(:param2)
121
+ assert p.mentioned? # mentioned in docs, correctly
122
+ p = m.parameter(:param3)
123
+ assert p.mentioned? # mentioned in docs, correctly
124
+ refute m.return_mentioned?
125
+
126
+ assert m.score
127
+ end
128
+
129
+ def test_method_with_unstructured_doc
130
+ m = @source_parser.find_object("Foo::Bar#method_with_unstructured_doc")
131
+ assert m.has_doc?
132
+ assert m.has_parameters?
133
+ p = m.parameter(:param1)
134
+ assert p.mentioned? # mentioned in docs, correctly
135
+ refute m.return_mentioned?
136
+
137
+ assert m.score
138
+ end
139
+
140
+ def test_method_with_unstructured_doc_missing_params
141
+ m = @source_parser.find_object("Foo::Bar#method_with_unstructured_doc_missing_params")
142
+ assert m.has_doc?
143
+ assert m.has_parameters?
144
+ p = m.parameter(:format)
145
+ refute p.mentioned? # mentioned in docs, correctly
146
+ refute m.return_mentioned?
147
+
148
+ assert m.score
149
+ end
150
+ end
151
+
152
+ describe ::Inch::CodeObject::Proxy::Base do
153
+ before do
154
+ Dir.chdir fixture_path(:code_examples)
155
+ @source_parser = Inch::SourceParser.run(["lib/**/*.rb"])
156
+ end
157
+
158
+ def test_method_with_code_example
159
+ m = @source_parser.find_object("Foo::Bar#method_with_code_example")
160
+ assert m.has_code_example?
161
+ end
162
+
163
+ def test_method_with_code_example2
164
+ m = @source_parser.find_object("Foo::Bar#method_with_code_example2")
165
+ assert m.has_code_example?
166
+ end
167
+
168
+ def test_method_with_code_examples
169
+ m = @source_parser.find_object("Foo::Bar#method_with_one_example")
170
+ assert m.has_code_example?
171
+ refute m.has_multiple_code_examples?
172
+ end
173
+
174
+ def test_method_with_code_examples
175
+ m = @source_parser.find_object("Foo::Bar#method_with_examples")
176
+ assert m.has_multiple_code_examples?
177
+ end
178
+
179
+ def test_method_with_code_examples
180
+ m = @source_parser.find_object("Foo::Bar#method_with_tagged_example")
181
+ assert m.has_multiple_code_examples?
182
+ end
183
+
184
+ def test_method_with_code_examples
185
+ m = @source_parser.find_object("Foo::Bar#method_with_2tagged_examples")
186
+ assert m.has_multiple_code_examples?
187
+ end
188
+ end
@@ -0,0 +1,23 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
2
+
3
+ describe ::Inch::SourceParser do
4
+ before do
5
+ Dir.chdir fixture_path(:simple)
6
+ @source_parser = Inch::SourceParser.run(["lib/**/*.rb"])
7
+ end
8
+
9
+ it "should parse all objects" do
10
+ refute_nil @source_parser.find_object("Foo")
11
+ refute_nil @source_parser.find_object("Foo::Bar")
12
+ refute_nil @source_parser.find_object("Foo::Bar#method_without_doc")
13
+ refute_nil @source_parser.find_object("Foo::Bar#method_with_missing_param_doc")
14
+ refute_nil @source_parser.find_object("Foo::Bar#method_with_wrong_doc")
15
+ refute_nil @source_parser.find_object("Foo::Bar#method_with_full_doc")
16
+ end
17
+
18
+ it "should return the correct depth for each object" do
19
+ assert_equal 1, @source_parser.find_object("Foo").depth
20
+ assert_equal 2, @source_parser.find_object("Foo::Bar").depth
21
+ assert_equal 3, @source_parser.find_object("Foo::Bar#method_without_doc").depth
22
+ end
23
+ end
@@ -0,0 +1,34 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
2
+
3
+ #
4
+ # These format tests also broke things in the regular testsuite.
5
+ # See ./list_options_test.rb
6
+ #
7
+ # Therefore, here are some integration tests:
8
+ #
9
+ describe ::Inch::CLI::Command::List do
10
+ before do
11
+ Dir.chdir fixture_path(:simple)
12
+ @command = "bundle exec inch stats"
13
+ end
14
+
15
+ def assert_parsed_output(parsed)
16
+ assert parsed.size > 0
17
+ assert parsed["ranges"]
18
+ assert parsed["scores"]
19
+ assert parsed["priorities"]
20
+ end
21
+
22
+ it "should run with --no-private switch" do
23
+ out = %x|#{@command} --format json|
24
+ refute out.empty?, "there should be some output"
25
+ assert_parsed_output JSON[out]
26
+ end
27
+
28
+ it "should run with --no-protected switch" do
29
+ out = %x|#{@command} --format yaml|
30
+ refute out.empty?, "there should be some output"
31
+ assert_parsed_output YAML.load(out)
32
+ end
33
+
34
+ end
@@ -0,0 +1,79 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
2
+
3
+ #
4
+ # Tests with the YARD specific --no-public, --no-protected and --private
5
+ # switches can't be run in one test instance. The flags seem to add up after
6
+ # being called. In combination with a random test order this resulted in ever
7
+ # different failure outputs.
8
+ #
9
+ # Therefore, here are some integration tests:
10
+ #
11
+ describe ::Inch::CLI::Command::List do
12
+ before do
13
+ Dir.chdir fixture_path(:visibility)
14
+ @command = "bundle exec inch list"
15
+ end
16
+
17
+ it "should run without visibility switches" do
18
+ out = %x|#{@command} --all|
19
+ refute out.empty?, "there should be some output"
20
+ assert_match /\bFoo#public_method\b/, out
21
+ assert_match /\bFoo#protected_method\b/, out
22
+ refute_match /\bFoo#private_method\b/, out # has @private tag
23
+ refute_match /\bFoo#method_with_private_tag\b/, out # has @private tag
24
+ end
25
+
26
+ it "should run with --no-protected switch" do
27
+ out = %x|#{@command} --all --no-protected|
28
+ refute out.empty?, "there should be some output"
29
+ assert_match /\bFoo#public_method\b/, out
30
+ refute_match /\bFoo#protected_method\b/, out
31
+ refute_match /\bFoo#private_method\b/, out # has @private tag
32
+ refute_match /\bFoo#method_with_private_tag\b/, out # has @private tag
33
+ end
34
+
35
+ it "should run with --no-public switch" do
36
+ out = %x|#{@command} --all --no-public|
37
+ refute out.empty?, "there should be some output"
38
+ refute_match /\bFoo#public_method\b/, out
39
+ assert_match /\bFoo#protected_method\b/, out
40
+ refute_match /\bFoo#private_method\b/, out # has @private tag
41
+ refute_match /\bFoo#method_with_private_tag\b/, out # has @private tag
42
+ end
43
+
44
+ it "should run with --no-public --no-protected switch" do
45
+ out = %x|#{@command} --all --no-public --no-protected|
46
+ assert out.empty?, "there should be no output"
47
+ refute_match /\bFoo#public_method\b/, out
48
+ refute_match /\bFoo#protected_method\b/, out
49
+ refute_match /\bFoo#private_method\b/, out # has @private tag
50
+ refute_match /\bFoo#method_with_private_tag\b/, out # has a @private tag, but is really :public
51
+ end
52
+
53
+ it "should run with --no-public --no-protected --private switch" do
54
+ out = %x|#{@command} --all --no-public --no-protected --private|
55
+ refute out.empty?, "there should be some output"
56
+ refute_match /\bFoo#public_method\b/, out
57
+ refute_match /\bFoo#protected_method\b/, out
58
+ assert_match /\bFoo#private_method\b/, out # has @private tag
59
+ refute_match /\bFoo#method_with_private_tag\b/, out # has a @private tag, but is really :public
60
+ end
61
+
62
+ it "should run with --no-public switch" do
63
+ out = %x|#{@command} --all --no-public|
64
+ refute out.empty?, "there should be some output"
65
+ refute_match /\bFoo#public_method\b/, out
66
+ assert_match /\bFoo#protected_method\b/, out
67
+ refute_match /\bFoo#private_method\b/, out # has @private tag
68
+ refute_match /\bFoo#method_with_private_tag\b/, out # has a @private tag, but is really :public
69
+ end
70
+
71
+ it "should run with --no-protected switch" do
72
+ out = %x|#{@command} --all --no-protected|
73
+ refute out.empty?, "there should be some output"
74
+ assert_match /\bFoo#public_method\b/, out
75
+ refute_match /\bFoo#protected_method\b/, out
76
+ refute_match /\bFoo#private_method\b/, out # has @private tag
77
+ refute_match /\bFoo#method_with_private_tag\b/, out # has a @private tag, but is really :public
78
+ end
79
+ end
@@ -0,0 +1,21 @@
1
+ require 'simplecov'
2
+ SimpleCov.start
3
+
4
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
5
+
6
+ require 'minitest/spec'
7
+ require 'minitest/autorun'
8
+ require 'bundler'
9
+ Bundler.require
10
+ require 'inch'
11
+
12
+ def fixture_path(name)
13
+ File.join(File.dirname(__FILE__), "fixtures", name.to_s)
14
+ end
15
+
16
+ def in_fixture_path(name, &block)
17
+ old_dir = Dir.pwd
18
+ Dir.chdir fixture_path(name)
19
+ yield
20
+ Dir.chdir old_dir
21
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - René Föhring
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-11 00:00:00.000000000 Z
11
+ date: 2014-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,10 +38,67 @@ dependencies:
38
38
  - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- description: Wrapper for YARD
41
+ - !ruby/object:Gem::Dependency
42
+ name: yard
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 0.8.7
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 0.8.7
55
+ - !ruby/object:Gem::Dependency
56
+ name: term-ansicolor
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: sparkr
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: 0.2.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: 0.2.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: pry
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description: Documentation measurement tool for Ruby, based on YARD.
42
98
  email:
43
99
  - rf@bamaru.de
44
- executables: []
100
+ executables:
101
+ - inch
45
102
  extensions: []
46
103
  extra_rdoc_files: []
47
104
  files:
@@ -52,9 +109,102 @@ files:
52
109
  - LICENSE
53
110
  - README.md
54
111
  - Rakefile
112
+ - TODOS.md
113
+ - bin/inch
55
114
  - inch.gemspec
56
115
  - lib/inch.rb
116
+ - lib/inch/cli.rb
117
+ - lib/inch/cli/arguments.rb
118
+ - lib/inch/cli/command.rb
119
+ - lib/inch/cli/command/base.rb
120
+ - lib/inch/cli/command/base_list.rb
121
+ - lib/inch/cli/command/base_object.rb
122
+ - lib/inch/cli/command/console.rb
123
+ - lib/inch/cli/command/inspect.rb
124
+ - lib/inch/cli/command/list.rb
125
+ - lib/inch/cli/command/options/base.rb
126
+ - lib/inch/cli/command/options/base_list.rb
127
+ - lib/inch/cli/command/options/base_object.rb
128
+ - lib/inch/cli/command/options/console.rb
129
+ - lib/inch/cli/command/options/inspect.rb
130
+ - lib/inch/cli/command/options/list.rb
131
+ - lib/inch/cli/command/options/show.rb
132
+ - lib/inch/cli/command/options/stats.rb
133
+ - lib/inch/cli/command/options/suggest.rb
134
+ - lib/inch/cli/command/output/base.rb
135
+ - lib/inch/cli/command/output/console.rb
136
+ - lib/inch/cli/command/output/inspect.rb
137
+ - lib/inch/cli/command/output/list.rb
138
+ - lib/inch/cli/command/output/show.rb
139
+ - lib/inch/cli/command/output/stats.rb
140
+ - lib/inch/cli/command/output/suggest.rb
141
+ - lib/inch/cli/command/show.rb
142
+ - lib/inch/cli/command/stats.rb
143
+ - lib/inch/cli/command/suggest.rb
144
+ - lib/inch/cli/command_parser.rb
145
+ - lib/inch/cli/sparkline_helper.rb
146
+ - lib/inch/cli/trace_helper.rb
147
+ - lib/inch/cli/yardopts_helper.rb
148
+ - lib/inch/code_object.rb
149
+ - lib/inch/code_object/docstring.rb
150
+ - lib/inch/code_object/nodoc_helper.rb
151
+ - lib/inch/code_object/proxy.rb
152
+ - lib/inch/code_object/proxy/base.rb
153
+ - lib/inch/code_object/proxy/class_object.rb
154
+ - lib/inch/code_object/proxy/constant_object.rb
155
+ - lib/inch/code_object/proxy/method_object.rb
156
+ - lib/inch/code_object/proxy/method_parameter_object.rb
157
+ - lib/inch/code_object/proxy/module_object.rb
158
+ - lib/inch/code_object/proxy/namespace_object.rb
159
+ - lib/inch/core_ext.rb
160
+ - lib/inch/core_ext/string.rb
161
+ - lib/inch/core_ext/yard.rb
162
+ - lib/inch/evaluation.rb
163
+ - lib/inch/evaluation/base.rb
164
+ - lib/inch/evaluation/class_object.rb
165
+ - lib/inch/evaluation/constant_object.rb
166
+ - lib/inch/evaluation/file.rb
167
+ - lib/inch/evaluation/method_object.rb
168
+ - lib/inch/evaluation/module_object.rb
169
+ - lib/inch/evaluation/namespace_object.rb
170
+ - lib/inch/evaluation/role/base.rb
171
+ - lib/inch/evaluation/role/constant.rb
172
+ - lib/inch/evaluation/role/method.rb
173
+ - lib/inch/evaluation/role/method_parameter.rb
174
+ - lib/inch/evaluation/role/missing.rb
175
+ - lib/inch/evaluation/role/namespace.rb
176
+ - lib/inch/evaluation/role/object.rb
177
+ - lib/inch/evaluation/score_range.rb
178
+ - lib/inch/rake.rb
179
+ - lib/inch/rake/suggest.rb
180
+ - lib/inch/source_parser.rb
57
181
  - lib/inch/version.rb
182
+ - test/fixtures/code_examples/lib/foo.rb
183
+ - test/fixtures/readme/lib/foo.rb
184
+ - test/fixtures/simple/README
185
+ - test/fixtures/simple/lib/broken.rb
186
+ - test/fixtures/simple/lib/foo.rb
187
+ - test/fixtures/simple/lib/role_methods.rb
188
+ - test/fixtures/simple/lib/role_namespaces.rb
189
+ - test/fixtures/visibility/lib/foo.rb
190
+ - test/fixtures/yardopts/.yardopts
191
+ - test/fixtures/yardopts/foo/bar.rb
192
+ - test/inch/cli/arguments_test.rb
193
+ - test/inch/cli/command/console_test.rb
194
+ - test/inch/cli/command/inspect_test.rb
195
+ - test/inch/cli/command/list_test.rb
196
+ - test/inch/cli/command/show_test.rb
197
+ - test/inch/cli/command/stats_test.rb
198
+ - test/inch/cli/command/suggest_test.rb
199
+ - test/inch/cli/command_parser_test.rb
200
+ - test/inch/cli/yardopts_helper_test.rb
201
+ - test/inch/code_object/docstring_test.rb
202
+ - test/inch/code_object/nodoc_helper_test.rb
203
+ - test/inch/code_object/proxy_test.rb
204
+ - test/inch/source_parser_test.rb
205
+ - test/integration/stats_options_test.rb
206
+ - test/integration/visibility_options_test.rb
207
+ - test/test_helper.rb
58
208
  homepage: ''
59
209
  licenses:
60
210
  - MIT
@@ -75,8 +225,35 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
225
  version: '0'
76
226
  requirements: []
77
227
  rubyforge_project:
78
- rubygems_version: 2.0.5
228
+ rubygems_version: 2.0.3
79
229
  signing_key:
80
230
  specification_version: 4
81
- summary: Wrapper for YARD
82
- test_files: []
231
+ summary: Documentation measurement tool for Ruby
232
+ test_files:
233
+ - test/fixtures/code_examples/lib/foo.rb
234
+ - test/fixtures/readme/lib/foo.rb
235
+ - test/fixtures/simple/README
236
+ - test/fixtures/simple/lib/broken.rb
237
+ - test/fixtures/simple/lib/foo.rb
238
+ - test/fixtures/simple/lib/role_methods.rb
239
+ - test/fixtures/simple/lib/role_namespaces.rb
240
+ - test/fixtures/visibility/lib/foo.rb
241
+ - test/fixtures/yardopts/.yardopts
242
+ - test/fixtures/yardopts/foo/bar.rb
243
+ - test/inch/cli/arguments_test.rb
244
+ - test/inch/cli/command/console_test.rb
245
+ - test/inch/cli/command/inspect_test.rb
246
+ - test/inch/cli/command/list_test.rb
247
+ - test/inch/cli/command/show_test.rb
248
+ - test/inch/cli/command/stats_test.rb
249
+ - test/inch/cli/command/suggest_test.rb
250
+ - test/inch/cli/command_parser_test.rb
251
+ - test/inch/cli/yardopts_helper_test.rb
252
+ - test/inch/code_object/docstring_test.rb
253
+ - test/inch/code_object/nodoc_helper_test.rb
254
+ - test/inch/code_object/proxy_test.rb
255
+ - test/inch/source_parser_test.rb
256
+ - test/integration/stats_options_test.rb
257
+ - test/integration/visibility_options_test.rb
258
+ - test/test_helper.rb
259
+ has_rdoc: