flog 4.1.0 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data.tar.gz.sig +0 -0
- data/History.txt +10 -0
- data/lib/flog.rb +1 -1
- data/lib/flog_cli.rb +1 -0
- data/lib/flog_task.rb +2 -2
- data/test/test_flog.rb +1 -1
- metadata +4 -4
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
data/lib/flog.rb
CHANGED
data/lib/flog_cli.rb
CHANGED
@@ -10,6 +10,7 @@ class FlogCLI
|
|
10
10
|
def_delegators :@flog, :average, :calculate, :each_by_score, :option
|
11
11
|
def_delegators :@flog, :method_locations, :method_scores, :reset, :scores
|
12
12
|
def_delegators :@flog, :threshold, :total_score, :no_method, :calculate_total_scores
|
13
|
+
def_delegators :@flog, :max_method
|
13
14
|
|
14
15
|
##
|
15
16
|
# Expands +*dirs+ to all files within that match ruby and rake extensions.
|
data/lib/flog_task.rb
CHANGED
@@ -50,8 +50,8 @@ class FlogTask < Rake::TaskLib
|
|
50
50
|
def define
|
51
51
|
desc "Analyze for code complexity in: #{dirs.join(', ')}"
|
52
52
|
task name do
|
53
|
-
require "
|
54
|
-
flog =
|
53
|
+
require "flog_cli"
|
54
|
+
flog = FlogCLI.new :continue => true, :quiet => true
|
55
55
|
flog.flog(*dirs)
|
56
56
|
|
57
57
|
desc, score = flog.send method
|
data/test/test_flog.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 57
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 4
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 4.1.
|
9
|
+
- 1
|
10
|
+
version: 4.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ryan Davis
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
36
36
|
FBHgymkyj/AOSqKRIpXPhjC6
|
37
37
|
-----END CERTIFICATE-----
|
38
38
|
|
39
|
-
date: 2013-
|
39
|
+
date: 2013-07-11 00:00:00 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: sexp_processor
|
metadata.gz.sig
CHANGED
Binary file
|