roodi 4.1.1 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -3
- data/README.md +4 -1
- data/bin/roodi +20 -6
- data/lib/roodi/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43e04e7d533cc31b00b4d05eb9f9bf0c5e31fd8e
|
4
|
+
data.tar.gz: 960c709a63f834f4dc81aecbdb5f6f08bca5027a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45d5066645aca3f39043dce9f7455959dbb6f061f88e3409807fe06c106ace3c619587ac4940689028de150ef57da3097895e3cd62ccdf39f5f02c362473a00e
|
7
|
+
data.tar.gz: b7ee9f7788507860d6cec62958a06d77b3799395915cb8f9d113b7a03eac8c218ee4a968126a58af970d94cbac3dfa4856b0510dced37e2b8f67967d0e86774b
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -62,6 +62,9 @@ or if you want to supply your own config file...
|
|
62
62
|
RoodiTask.new :config => 'config/roodi.yml'
|
63
63
|
task :default => [:roodi]
|
64
64
|
|
65
|
+
## Editor integration
|
66
|
+
You can run Roodi in Atom using the [linter-roodi](https://atom.io/packages/linter-roodi) package.
|
67
|
+
|
65
68
|
## Custom Configuration
|
66
69
|
|
67
70
|
To change the set of checks included, or to change the default values of the checks, you can provide your own config file. The config file is a YAML file that lists the checks to be included. Each check can optionally include a hash of options that are passed to the check to configure it. For example, the default config file looks like this:
|
@@ -132,7 +135,7 @@ Fantastic! Please follow this procedure:
|
|
132
135
|
|
133
136
|
(The MIT License)
|
134
137
|
|
135
|
-
Copyright (c)
|
138
|
+
Copyright (c) 2015 Marty Andrews, Peter Evjan
|
136
139
|
|
137
140
|
Permission is hereby granted, free of charge, to any person obtaining
|
138
141
|
a copy of this software and associated documentation files (the
|
data/bin/roodi
CHANGED
@@ -4,12 +4,26 @@ $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + "/../lib"))
|
|
4
4
|
|
5
5
|
require 'roodi'
|
6
6
|
|
7
|
-
runner = Roodi::Core::Runner.new
|
8
7
|
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
if ARGV.detect { |arg| arg == "-h" || arg == "--help" }
|
9
|
+
puts "Usage: roodi [options] [path1 path2 ...]"
|
10
|
+
puts
|
11
|
+
puts "By default Roodi looks for all **/*.rb files in the current directory."
|
12
|
+
puts
|
13
|
+
puts "Options are ..."
|
14
|
+
puts "-c, --config=FILE use FILE as the config file."
|
15
|
+
puts "-h, --help display this help."
|
16
|
+
puts "-v, --version display the program version."
|
17
|
+
elsif ARGV.detect { |arg| arg == "-v" || arg == "--version" }
|
18
|
+
puts Roodi::VERSION
|
19
|
+
else
|
20
|
+
runner = Roodi::Core::Runner.new
|
12
21
|
|
13
|
-
|
22
|
+
config_param = ARGV.detect { |arg| arg=~ /-c=.*/ || arg =~ /--config=.*/ }
|
23
|
+
runner.config = config_param.split("=")[1] if config_param
|
24
|
+
ARGV.delete config_param
|
14
25
|
|
15
|
-
|
26
|
+
runner.start(ARGV)
|
27
|
+
|
28
|
+
exit runner.errors.size
|
29
|
+
end
|
data/lib/roodi/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roodi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marty Andrews
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-05-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ruby_parser
|
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
126
|
version: '0'
|
127
127
|
requirements: []
|
128
128
|
rubyforge_project:
|
129
|
-
rubygems_version: 2.
|
129
|
+
rubygems_version: 2.4.5
|
130
130
|
signing_key:
|
131
131
|
specification_version: 4
|
132
132
|
summary: Roodi stands for Ruby Object Oriented Design Inferometer
|