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 CHANGED
Binary file
@@ -1,3 +1,13 @@
1
+ === 4.1.1 / 2013-07-11
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Added max_method to delegators.
6
+
7
+ * 1 bug fix:
8
+
9
+ * Fixed FlogTask to use FlogCLI. (envygeeks)
10
+
1
11
  === 4.1.0 / 2013-05-10
2
12
 
3
13
  * 3 minor enhancements:
@@ -11,7 +11,7 @@ class File
11
11
  end
12
12
 
13
13
  class Flog < SexpProcessor
14
- VERSION = "4.1.0" # :nodoc:
14
+ VERSION = "4.1.1" # :nodoc:
15
15
 
16
16
  ##
17
17
  # Cut off point where the report should stop unless --all given.
@@ -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.
@@ -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 "flog"
54
- flog = Flog.new :continue => true, :quiet => true
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
@@ -5,7 +5,7 @@ class Flog
5
5
  attr_writer :calls
6
6
  end
7
7
 
8
- class FlogTest < MiniTest::Unit::TestCase
8
+ class FlogTest < Minitest::Test
9
9
  def setup_flog
10
10
  old_stdin = $stdin
11
11
  $stdin = StringIO.new "2 + 3"
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: 59
4
+ hash: 57
5
5
  prerelease:
6
6
  segments:
7
7
  - 4
8
8
  - 1
9
- - 0
10
- version: 4.1.0
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-05-10 00:00:00 Z
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