flog 4.2.1 → 4.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.txt +6 -0
- data/lib/flog.rb +1 -1
- data/lib/flog_task.rb +8 -7
- metadata +4 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7164552a7156897301ba299604902f2230a47c90
|
4
|
+
data.tar.gz: ec5a616e57fd906490079dc7f40003f76fca94cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f1a01fc14ad0442a714aa7e62a8f9da87a6c50cade7128aec32813a48d39add2c8c898df61a2e799e6ec402daf2bfd325c5a68d901c626f6696e2eec1b48e94
|
7
|
+
data.tar.gz: d35c36c2e072e08c4306e52965ce2b3dc6629ff48d4d6776ebc6ff4874327a632e6c8fc2f16e360039fa6bc656601e171983666884e52b56854f042773847b33
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
data/lib/flog.rb
CHANGED
data/lib/flog_task.rb
CHANGED
@@ -30,12 +30,13 @@ class FlogTask < Rake::TaskLib
|
|
30
30
|
# Creates a new FlogTask instance with given +name+, +threshold+,
|
31
31
|
# +dirs+, and +method+.
|
32
32
|
|
33
|
-
def initialize name = :flog, threshold = 200, dirs = nil, method = nil
|
34
|
-
@name
|
35
|
-
@dirs
|
36
|
-
@threshold
|
37
|
-
@method
|
38
|
-
@verbose
|
33
|
+
def initialize name = :flog, threshold = 200, dirs = nil, method = nil, methods_only = false
|
34
|
+
@name = name
|
35
|
+
@dirs = dirs || %w(app bin lib spec test)
|
36
|
+
@threshold = threshold
|
37
|
+
@method = method || :total_score
|
38
|
+
@verbose = Rake.application.options.trace
|
39
|
+
@methods_only = methods_only
|
39
40
|
|
40
41
|
yield self if block_given?
|
41
42
|
|
@@ -51,7 +52,7 @@ class FlogTask < Rake::TaskLib
|
|
51
52
|
desc "Analyze for code complexity in: #{dirs.join(', ')}"
|
52
53
|
task name do
|
53
54
|
require "flog_cli"
|
54
|
-
flog = FlogCLI.new :continue => true, :quiet => true
|
55
|
+
flog = FlogCLI.new :continue => true, :quiet => true, :methods => @methods_only
|
55
56
|
flog.flog(*dirs)
|
56
57
|
|
57
58
|
desc, score = flog.send method
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
29
29
|
Y4evBVezr3SjXz08vPqRO5YRdO3zfeMT8gBjRqZjWJGMZ2lD4XNfrs7eky74CyZw
|
30
30
|
xx3n58i0lQkBE1EpKE0lFu/y
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date: 2014-
|
32
|
+
date: 2014-07-18 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: sexp_processor
|
@@ -71,14 +71,14 @@ dependencies:
|
|
71
71
|
requirements:
|
72
72
|
- - ~>
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '5.
|
74
|
+
version: '5.4'
|
75
75
|
type: :development
|
76
76
|
prerelease: false
|
77
77
|
version_requirements: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
79
|
- - ~>
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '5.
|
81
|
+
version: '5.4'
|
82
82
|
- !ruby/object:Gem::Dependency
|
83
83
|
name: rdoc
|
84
84
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|