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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1198718119d710dcb3015448c07d77e116591513
4
- data.tar.gz: 71694f061ebc61237edde951aca81185a195cddc
3
+ metadata.gz: 43e04e7d533cc31b00b4d05eb9f9bf0c5e31fd8e
4
+ data.tar.gz: 960c709a63f834f4dc81aecbdb5f6f08bca5027a
5
5
  SHA512:
6
- metadata.gz: bc67f4c9d7ee81326218b35beee39a7e6bf3a507e0fe6601b881428035cc2d139253377f2cae7905821b4b1085b45852b87903b6d49b0beb0617967e516969d9
7
- data.tar.gz: 37bff8fd7f7539128e1e30ffe1f735f0769583bbc9c096b383106f1230b5ba7f4f65394d4af0a39557d8fe99ceb53dfd065f6139a158934f9e77cce936814f0e
6
+ metadata.gz: 45d5066645aca3f39043dce9f7455959dbb6f061f88e3409807fe06c106ace3c619587ac4940689028de150ef57da3097895e3cd62ccdf39f5f02c362473a00e
7
+ data.tar.gz: b7ee9f7788507860d6cec62958a06d77b3799395915cb8f9d113b7a03eac8c218ee4a968126a58af970d94cbac3dfa4856b0510dced37e2b8f67967d0e86774b
data/.gitignore CHANGED
@@ -2,6 +2,4 @@ doc
2
2
  pkg
3
3
  Gemfile.lock
4
4
  coverage
5
-
6
- # Editor files
7
- .idea
5
+ .ruby-version
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) 2014 Peter Evjan
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
- config_param = ARGV.detect {|arg| arg =~ /-config=.*/}
10
- runner.config = config_param.split("=")[1] if config_param
11
- ARGV.delete config_param
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
- runner.start(ARGV)
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
- exit runner.errors.size
26
+ runner.start(ARGV)
27
+
28
+ exit runner.errors.size
29
+ end
@@ -1,3 +1,3 @@
1
1
  module Roodi
2
- VERSION = '4.1.1'
2
+ VERSION = '5.0.0'
3
3
  end
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.1.1
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-01-16 00:00:00.000000000 Z
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.2.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