inch_by_inch 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/.rubocop.yml +3 -0
- data/.rubocop_cocoapods.yml +126 -0
- data/.rubocop_todo.yml +22 -0
- data/CHANGELOG.md +6 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +54 -0
- data/LICENSE.txt +21 -0
- data/README.md +54 -0
- data/Rakefile +26 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/inch_by_inch.gemspec +27 -0
- data/lib/inch_by_inch.rb +5 -0
- data/lib/inch_by_inch/progress_enumerable.rb +16 -0
- data/lib/inch_by_inch/rake_task.rb +85 -0
- data/lib/inch_by_inch/version.rb +3 -0
- metadata +107 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6155ab24504649d54b3f3677b4ef7864f897db3f
|
4
|
+
data.tar.gz: 4f19858352bfb9b419f1d8197864d8c245ee0726
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4f3b14e50274f54c0ebdfad4e7f842dcb01273f277d3f7bcdbadb38b6ce4be126bd60f46d7d80c031eda5d1829bc3dd05063a237f4925a34a2017dfdc40f4e7d
|
7
|
+
data.tar.gz: 7f6881b6a0e0663dbf393b6902fa345451d07fecc4e4ad5c35d3f3c5eb91ed2738e66e6c278f64e54ad13e6396bc729c58fdccc4bfce596fc6a591fcf8f22dd7
|
data/.gitignore
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,126 @@
|
|
1
|
+
AllCops:
|
2
|
+
Include:
|
3
|
+
- ./Rakefile
|
4
|
+
- ./Gemfile
|
5
|
+
- ./*.gemspec
|
6
|
+
Exclude:
|
7
|
+
- ./spec/fixtures/**/*
|
8
|
+
- ./vendor/bundle/**/*
|
9
|
+
|
10
|
+
# At the moment not ready to be used
|
11
|
+
# https://github.com/bbatsov/rubocop/issues/947
|
12
|
+
Documentation:
|
13
|
+
Enabled: false
|
14
|
+
|
15
|
+
#- CocoaPods -----------------------------------------------------------------#
|
16
|
+
|
17
|
+
# We adopted raise instead of fail.
|
18
|
+
SignalException:
|
19
|
+
EnforcedStyle: only_raise
|
20
|
+
|
21
|
+
# They are idiomatic
|
22
|
+
AssignmentInCondition:
|
23
|
+
Enabled: false
|
24
|
+
|
25
|
+
# Allow backticks
|
26
|
+
AsciiComments:
|
27
|
+
Enabled: false
|
28
|
+
|
29
|
+
# Indentation clarifies logic branches in implementations
|
30
|
+
IfUnlessModifier:
|
31
|
+
Enabled: false
|
32
|
+
|
33
|
+
# No enforced convention here.
|
34
|
+
SingleLineBlockParams:
|
35
|
+
Enabled: false
|
36
|
+
|
37
|
+
# We only add the comment when needed.
|
38
|
+
Encoding:
|
39
|
+
Enabled: false
|
40
|
+
|
41
|
+
# Having these make it easier to *not* forget to add one when adding a new
|
42
|
+
# value and you can simply copy the previous line.
|
43
|
+
TrailingComma:
|
44
|
+
EnforcedStyleForMultiline: comma
|
45
|
+
|
46
|
+
Style/MultilineOperationIndentation:
|
47
|
+
EnforcedStyle: indented
|
48
|
+
|
49
|
+
# Clashes with CLAide Command#validate!
|
50
|
+
GuardClause:
|
51
|
+
Enabled: false
|
52
|
+
|
53
|
+
# Not always desirable: lib/claide/command/plugins_helper.rb:12:15
|
54
|
+
Next:
|
55
|
+
Enabled: false
|
56
|
+
|
57
|
+
# Arbitrary max lengths for classes simply do not work and enabling this will
|
58
|
+
# lead to a never ending stream of annoyance and changes.
|
59
|
+
Metrics/ClassLength:
|
60
|
+
Enabled: false
|
61
|
+
|
62
|
+
# Arbitrary max lengths for modules simply do not work and enabling this will
|
63
|
+
# lead to a never ending stream of annoyance and changes.
|
64
|
+
Metrics/ModuleLength:
|
65
|
+
Enabled: false
|
66
|
+
|
67
|
+
# Arbitrary max lengths for methods simply do not work and enabling this will
|
68
|
+
# lead to a never ending stream of annoyance and changes.
|
69
|
+
Metrics/MethodLength:
|
70
|
+
Enabled: false
|
71
|
+
|
72
|
+
# No enforced convention here.
|
73
|
+
Metrics/BlockNesting:
|
74
|
+
Enabled: false
|
75
|
+
|
76
|
+
# It will be obvious which code is complex, Rubocop should only lint simple
|
77
|
+
# rules for us.
|
78
|
+
Metrics/AbcSize:
|
79
|
+
Enabled: false
|
80
|
+
|
81
|
+
# It will be obvious which code is complex, Rubocop should only lint simple
|
82
|
+
# rules for us.
|
83
|
+
Metrics/CyclomaticComplexity:
|
84
|
+
Enabled: false
|
85
|
+
|
86
|
+
# It will be obvious which code is complex, Rubocop should only lint simple
|
87
|
+
# rules for us.
|
88
|
+
Metrics/PerceivedComplexity:
|
89
|
+
Enabled: false
|
90
|
+
|
91
|
+
#- CocoaPods support for Ruby 1.8.7 ------------------------------------------#
|
92
|
+
|
93
|
+
HashSyntax:
|
94
|
+
EnforcedStyle: hash_rockets
|
95
|
+
|
96
|
+
Lambda:
|
97
|
+
Enabled: false
|
98
|
+
|
99
|
+
DotPosition:
|
100
|
+
EnforcedStyle: trailing
|
101
|
+
|
102
|
+
EachWithObject:
|
103
|
+
Enabled: false
|
104
|
+
|
105
|
+
Style/SpecialGlobalVars:
|
106
|
+
Enabled: false
|
107
|
+
|
108
|
+
#- CocoaPods specs -----------------------------------------------------------#
|
109
|
+
|
110
|
+
# Allow for `should.match /regexp/`.
|
111
|
+
AmbiguousRegexpLiteral:
|
112
|
+
Exclude:
|
113
|
+
- spec/**/*
|
114
|
+
|
115
|
+
# Allow `object.should == object` syntax.
|
116
|
+
Void:
|
117
|
+
Exclude:
|
118
|
+
- spec/**/*
|
119
|
+
|
120
|
+
ClassAndModuleChildren:
|
121
|
+
Exclude:
|
122
|
+
- spec/**/*
|
123
|
+
|
124
|
+
UselessComparison:
|
125
|
+
Exclude:
|
126
|
+
- spec/**/*
|
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2015-12-05 15:50:06 -0600 using RuboCop version 0.34.2.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 1
|
10
|
+
Lint/NestedMethodDefinition:
|
11
|
+
Exclude:
|
12
|
+
- 'lib/inch_by_inch/rake_task.rb'
|
13
|
+
|
14
|
+
# Offense count: 5
|
15
|
+
# Configuration parameters: AllowURI, URISchemes.
|
16
|
+
Metrics/LineLength:
|
17
|
+
Max: 129
|
18
|
+
|
19
|
+
# Offense count: 1
|
20
|
+
Style/MultilineBlockChain:
|
21
|
+
Exclude:
|
22
|
+
- 'lib/inch_by_inch/progress_enumerable.rb'
|
data/CHANGELOG.md
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at segiddins@segiddins.me. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
inch_by_inch (1.0.0)
|
5
|
+
inch (~> 0.7.0)
|
6
|
+
rake (~> 10.0)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
ast (2.1.0)
|
12
|
+
astrolabe (1.3.1)
|
13
|
+
parser (~> 2.2)
|
14
|
+
coderay (1.1.0)
|
15
|
+
inch (0.7.0)
|
16
|
+
pry
|
17
|
+
sparkr (>= 0.2.0)
|
18
|
+
term-ansicolor
|
19
|
+
yard (~> 0.8.7.5)
|
20
|
+
method_source (0.8.2)
|
21
|
+
parser (2.2.3.0)
|
22
|
+
ast (>= 1.1, < 3.0)
|
23
|
+
powerpack (0.1.1)
|
24
|
+
pry (0.10.3)
|
25
|
+
coderay (~> 1.1.0)
|
26
|
+
method_source (~> 0.8.1)
|
27
|
+
slop (~> 3.4)
|
28
|
+
rainbow (2.0.0)
|
29
|
+
rake (10.4.2)
|
30
|
+
rubocop (0.35.1)
|
31
|
+
astrolabe (~> 1.3)
|
32
|
+
parser (>= 2.2.3.0, < 3.0)
|
33
|
+
powerpack (~> 0.1)
|
34
|
+
rainbow (>= 1.99.1, < 3.0)
|
35
|
+
ruby-progressbar (~> 1.7)
|
36
|
+
tins (<= 1.6.0)
|
37
|
+
ruby-progressbar (1.7.5)
|
38
|
+
slop (3.6.0)
|
39
|
+
sparkr (0.4.1)
|
40
|
+
term-ansicolor (1.3.2)
|
41
|
+
tins (~> 1.0)
|
42
|
+
tins (1.6.0)
|
43
|
+
yard (0.8.7.6)
|
44
|
+
|
45
|
+
PLATFORMS
|
46
|
+
ruby
|
47
|
+
|
48
|
+
DEPENDENCIES
|
49
|
+
bundler (~> 1.11.pre)
|
50
|
+
inch_by_inch!
|
51
|
+
rubocop
|
52
|
+
|
53
|
+
BUNDLED WITH
|
54
|
+
1.11.0.pre.2
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Marius Rackwitz, Samuel Giddins
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
# InchByInch
|
2
|
+
|
3
|
+
A rake task to make validating your documentation comments as easy as running
|
4
|
+
a single command.
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your application's `Gemfile`:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem 'inch_by_inch'
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
|
16
|
+
$ bundle
|
17
|
+
|
18
|
+
Or install it yourself as:
|
19
|
+
|
20
|
+
$ gem install inch_by_inch
|
21
|
+
|
22
|
+
## Usage
|
23
|
+
|
24
|
+
In your `Rakefile`, add the following:
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
# Rakefile
|
28
|
+
require 'inch_by_inch/rake_task'
|
29
|
+
InchByInch::RakeTask.new
|
30
|
+
```
|
31
|
+
|
32
|
+
## Development
|
33
|
+
|
34
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can
|
35
|
+
also run `bin/console` for an interactive prompt that will allow you to
|
36
|
+
experiment.
|
37
|
+
|
38
|
+
To install this gem onto your local machine, run `rake install`. To
|
39
|
+
release a new version, update the version number in `version.rb`, commit,
|
40
|
+
and then run `rake release`, which will create a git tag for the version, push
|
41
|
+
git commits and tags, and push the `.gem` file to
|
42
|
+
[rubygems.org](https://rubygems.org).
|
43
|
+
|
44
|
+
## Contributing
|
45
|
+
|
46
|
+
Bug reports and pull requests are welcome on GitHub at
|
47
|
+
https://github.com/[USERNAME]/inch_by_inch. This project is intended to be a
|
48
|
+
safe, welcoming space for collaboration, and contributors are expected to adhere
|
49
|
+
to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
50
|
+
|
51
|
+
## License
|
52
|
+
|
53
|
+
The gem is available as open source under the terms of the [MIT
|
54
|
+
License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
task :default => [:inch, :rubocop]
|
2
|
+
|
3
|
+
task :bootstrap do
|
4
|
+
sh 'bundle install'
|
5
|
+
end
|
6
|
+
|
7
|
+
begin
|
8
|
+
require 'bundler/gem_tasks'
|
9
|
+
require 'bundler/setup'
|
10
|
+
|
11
|
+
require 'inch_by_inch/rake_task'
|
12
|
+
InchByInch::RakeTask.new
|
13
|
+
|
14
|
+
require 'rubocop/rake_task'
|
15
|
+
RuboCop::RakeTask.new
|
16
|
+
rescue LoadError, NameError => e
|
17
|
+
$stderr.puts "\033[0;31m" \
|
18
|
+
'[!] Some Rake tasks haven been disabled because the environment' \
|
19
|
+
' couldn’t be loaded. Be sure to run `rake bootstrap` first or use the ' \
|
20
|
+
"VERBOSE environment variable to see errors.\e[0m"
|
21
|
+
if ENV['VERBOSE']
|
22
|
+
$stderr.puts e.message
|
23
|
+
$stderr.puts e.backtrace
|
24
|
+
$stderr.puts
|
25
|
+
end
|
26
|
+
end
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'inch_by_inch'
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require 'irb'
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'inch_by_inch/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'inch_by_inch'
|
8
|
+
spec.version = InchByInch::VERSION
|
9
|
+
spec.authors = ['Marius Rackwitz', 'Samuel Giddins']
|
10
|
+
spec.email = ['gems@mariusrackwitz.de', 'segiddins@segiddins.me']
|
11
|
+
|
12
|
+
spec.summary = 'A rake task to pretty-print documentation violations.'
|
13
|
+
spec.homepage = 'https://github.com/segiddins/inch_by_inch'
|
14
|
+
spec.license = 'MIT'
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
|
+
spec.bindir = 'exe'
|
18
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
|
+
spec.require_paths = ['lib']
|
20
|
+
|
21
|
+
spec.required_ruby_version = '>= 2.0.0'
|
22
|
+
|
23
|
+
spec.add_runtime_dependency 'inch', '~> 0.7.0'
|
24
|
+
spec.add_runtime_dependency 'rake', '~> 10.0'
|
25
|
+
|
26
|
+
spec.add_development_dependency 'bundler', '~> 1.11.pre'
|
27
|
+
end
|
data/lib/inch_by_inch.rb
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
require 'rake'
|
2
|
+
require 'rake/tasklib'
|
3
|
+
|
4
|
+
require 'inch_by_inch/progress_enumerable'
|
5
|
+
|
6
|
+
module InchByInch
|
7
|
+
class RakeTask < Rake::TaskLib
|
8
|
+
attr_accessor :failing_grades
|
9
|
+
attr_accessor :codebase_dir
|
10
|
+
|
11
|
+
# Initializes a rake task
|
12
|
+
#
|
13
|
+
# @param [#to_s] task_name
|
14
|
+
# the name of the rake task.
|
15
|
+
#
|
16
|
+
def initialize(task_name = :inch)
|
17
|
+
@failing_grades = %I(B C)
|
18
|
+
@codebase_dir = Dir.pwd
|
19
|
+
|
20
|
+
yield self if block_given?
|
21
|
+
|
22
|
+
install_task(task_name)
|
23
|
+
end
|
24
|
+
|
25
|
+
private
|
26
|
+
|
27
|
+
def install_task(task_name)
|
28
|
+
desc 'Lint the completeness of the documentation with Inch' unless ::Rake.application.last_comment
|
29
|
+
task(task_name) do
|
30
|
+
require 'inch'
|
31
|
+
require 'inch/cli'
|
32
|
+
verify_docs!
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
def verify_docs!
|
37
|
+
install_ui_hooks
|
38
|
+
|
39
|
+
puts 'Parsing docs…'
|
40
|
+
|
41
|
+
codebase = Inch::Codebase.parse(codebase_dir, Inch::Config.codebase)
|
42
|
+
context = Inch::API::List.new(codebase, {})
|
43
|
+
|
44
|
+
failing_grade_symbols = failing_grades.map(&:to_sym)
|
45
|
+
failing_grade_list = context.grade_lists.select { |g| failing_grade_symbols.include?(g.to_sym) }
|
46
|
+
Inch::CLI::Command::Output::List.new(options, context.objects, failing_grade_list) # just initializing will run the command
|
47
|
+
puts
|
48
|
+
if context.objects.any? { |o| failing_grade_symbols.include?(o.grade.to_sym) }
|
49
|
+
puts red('✗ Lint of Documentation failed: Please improve above suggestions.')
|
50
|
+
exit 1
|
51
|
+
else
|
52
|
+
puts green('✓ Nothing to improve detected.')
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
def install_ui_hooks
|
57
|
+
YARD::Parser::SourceParser.before_parse_file do |_|
|
58
|
+
print green('.') # Visualize progress
|
59
|
+
end
|
60
|
+
|
61
|
+
Inch::Codebase::Objects.class_eval do
|
62
|
+
alias_method :old_init, :initialize
|
63
|
+
def initialize(language, objects)
|
64
|
+
puts "\n\nEvaluating…"
|
65
|
+
old_init(language, ProgressEnumerable.new(objects))
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
def options
|
71
|
+
@options ||= Inch::CLI::Command::Options::List.new.tap do |options|
|
72
|
+
options.show_all = true
|
73
|
+
options.ui = Inch::Utils::UI.new
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
def green(string)
|
78
|
+
"\033[0;32m#{string}\e[0m"
|
79
|
+
end
|
80
|
+
|
81
|
+
def red(string)
|
82
|
+
"\033[0;31m#{string}\e[0m"
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
metadata
ADDED
@@ -0,0 +1,107 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: inch_by_inch
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Marius Rackwitz
|
8
|
+
- Samuel Giddins
|
9
|
+
autorequire:
|
10
|
+
bindir: exe
|
11
|
+
cert_chain: []
|
12
|
+
date: 2015-12-08 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: inch
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 0.7.0
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 0.7.0
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rake
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '10.0'
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '10.0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: bundler
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - "~>"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: 1.11.pre
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: 1.11.pre
|
56
|
+
description:
|
57
|
+
email:
|
58
|
+
- gems@mariusrackwitz.de
|
59
|
+
- segiddins@segiddins.me
|
60
|
+
executables: []
|
61
|
+
extensions: []
|
62
|
+
extra_rdoc_files: []
|
63
|
+
files:
|
64
|
+
- ".gitignore"
|
65
|
+
- ".rubocop.yml"
|
66
|
+
- ".rubocop_cocoapods.yml"
|
67
|
+
- ".rubocop_todo.yml"
|
68
|
+
- CHANGELOG.md
|
69
|
+
- CODE_OF_CONDUCT.md
|
70
|
+
- Gemfile
|
71
|
+
- Gemfile.lock
|
72
|
+
- LICENSE.txt
|
73
|
+
- README.md
|
74
|
+
- Rakefile
|
75
|
+
- bin/console
|
76
|
+
- bin/setup
|
77
|
+
- inch_by_inch.gemspec
|
78
|
+
- lib/inch_by_inch.rb
|
79
|
+
- lib/inch_by_inch/progress_enumerable.rb
|
80
|
+
- lib/inch_by_inch/rake_task.rb
|
81
|
+
- lib/inch_by_inch/version.rb
|
82
|
+
homepage: https://github.com/segiddins/inch_by_inch
|
83
|
+
licenses:
|
84
|
+
- MIT
|
85
|
+
metadata: {}
|
86
|
+
post_install_message:
|
87
|
+
rdoc_options: []
|
88
|
+
require_paths:
|
89
|
+
- lib
|
90
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 2.0.0
|
95
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0'
|
100
|
+
requirements: []
|
101
|
+
rubyforge_project:
|
102
|
+
rubygems_version: 2.5.0
|
103
|
+
signing_key:
|
104
|
+
specification_version: 4
|
105
|
+
summary: A rake task to pretty-print documentation violations.
|
106
|
+
test_files: []
|
107
|
+
has_rdoc:
|