roodi 3.3.1 → 4.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 +3 -0
- data/.travis.yml +0 -1
- data/History.txt +3 -0
- data/README.md +7 -1
- data/lib/roodi/version.rb +1 -1
- data/lib/roodi_task.rb +5 -5
- data/spec/roodi_task_spec.rb +11 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ab2ed299bfa842d1d9277298e935a13031c3c8e
|
4
|
+
data.tar.gz: f6dea634c1ac06362efa77deaa69a2d345124073
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca825a45d5228fae1e4433434b6b7e23b43a5555082ecee52056ed57c56ff6ee29fae6de60a6cdaade1b885f9c2d505860a841d89b65c94b0e07a14ea40e2494
|
7
|
+
data.tar.gz: ce3b701a23cf3f5a14e9d826e28a7f0f23fce0073a49f24350328e2b3f6e288b57aff18da7c34086d9078c1c8e72f284620a7582e347dd668fff2a55ce37a7df
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/History.txt
CHANGED
data/README.md
CHANGED
@@ -57,6 +57,12 @@ Add the following to your Rakefile:
|
|
57
57
|
RoodiTask.new
|
58
58
|
task :default => [:roodi]
|
59
59
|
|
60
|
+
or if you want to supply your own config file...
|
61
|
+
|
62
|
+
require 'roodi_task'
|
63
|
+
RoodiTask.new :config => 'config/roodi.yml'
|
64
|
+
task :default => [:roodi]
|
65
|
+
|
60
66
|
## Custom Configuration
|
61
67
|
|
62
68
|
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:
|
@@ -122,7 +128,7 @@ Fantastic! Please follow this procedure:
|
|
122
128
|
|
123
129
|
(The MIT License)
|
124
130
|
|
125
|
-
Copyright (c)
|
131
|
+
Copyright (c) 2014 Peter Evjan
|
126
132
|
|
127
133
|
Permission is hereby granted, free of charge, to any person obtaining
|
128
134
|
a copy of this software and associated documentation files (the
|
data/lib/roodi/version.rb
CHANGED
data/lib/roodi_task.rb
CHANGED
@@ -7,11 +7,11 @@ class RoodiTask < Rake::TaskLib
|
|
7
7
|
attr_accessor :config
|
8
8
|
attr_accessor :verbose
|
9
9
|
|
10
|
-
def initialize
|
11
|
-
@name
|
12
|
-
@patterns
|
13
|
-
@config
|
14
|
-
@verbose
|
10
|
+
def initialize(args = {})
|
11
|
+
@name = args[:name] || :roodi
|
12
|
+
@patterns = args[:patterns] || []
|
13
|
+
@config = args[:config]
|
14
|
+
@verbose = Rake.application.options.trace
|
15
15
|
|
16
16
|
yield self if block_given?
|
17
17
|
|
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: 4.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:
|
12
|
+
date: 2014-04-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ruby_parser
|
@@ -104,6 +104,7 @@ files:
|
|
104
104
|
- spec/roodi/checks/parameter_number_check_spec.rb
|
105
105
|
- spec/roodi/core/runner_spec.rb
|
106
106
|
- spec/roodi/roodi.yml
|
107
|
+
- spec/roodi_task_spec.rb
|
107
108
|
- spec/spec_helper.rb
|
108
109
|
homepage: http://github.com/roodi/roodi
|
109
110
|
licenses:
|
@@ -125,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
126
|
version: '0'
|
126
127
|
requirements: []
|
127
128
|
rubyforge_project:
|
128
|
-
rubygems_version: 2.0.
|
129
|
+
rubygems_version: 2.0.14
|
129
130
|
signing_key:
|
130
131
|
specification_version: 4
|
131
132
|
summary: Roodi stands for Ruby Object Oriented Design Inferometer
|
@@ -150,4 +151,5 @@ test_files:
|
|
150
151
|
- spec/roodi/checks/parameter_number_check_spec.rb
|
151
152
|
- spec/roodi/core/runner_spec.rb
|
152
153
|
- spec/roodi/roodi.yml
|
154
|
+
- spec/roodi_task_spec.rb
|
153
155
|
- spec/spec_helper.rb
|