flog 4.2.1 → 4.3.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5437bf1956f0917171e461fa6008b06c60b7582d
4
- data.tar.gz: 36b784fd5cfe0a7d61c4d4be4e24aaff42b4f3b8
3
+ metadata.gz: 7164552a7156897301ba299604902f2230a47c90
4
+ data.tar.gz: ec5a616e57fd906490079dc7f40003f76fca94cb
5
5
  SHA512:
6
- metadata.gz: 24306a923d5c1a3c27bd766de2c965ae4e48dfaa47120b95aff2226cbea42c35c9c1fed23c1e9181bf9a904b55046385d50da1d4c29dd2fdce466d241b61dc44
7
- data.tar.gz: e4d1db182c4c534053682ac012f1716770ddae9017a68194a333aaedce12efe3e78c4e9e7eb4b8d3a46a16bfda7982aae50abf22b62048def4a83eea96f5bd78
6
+ metadata.gz: 0f1a01fc14ad0442a714aa7e62a8f9da87a6c50cade7128aec32813a48d39add2c8c898df61a2e799e6ec402daf2bfd325c5a68d901c626f6696e2eec1b48e94
7
+ data.tar.gz: d35c36c2e072e08c4306e52965ce2b3dc6629ff48d4d6776ebc6ff4874327a632e6c8fc2f16e360039fa6bc656601e171983666884e52b56854f042773847b33
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,9 @@
1
+ === 4.3.0 / 2014-07-18
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Added methods_only param to FlogTask. (jocranford)
6
+
1
7
  === 4.2.1 / 2014-05-29
2
8
 
3
9
  * 2 bug fixes:
@@ -11,7 +11,7 @@ class File
11
11
  end
12
12
 
13
13
  class Flog < MethodBasedSexpProcessor
14
- VERSION = "4.2.1" # :nodoc:
14
+ VERSION = "4.3.0" # :nodoc:
15
15
 
16
16
  ##
17
17
  # Cut off point where the report should stop unless --all given.
@@ -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 = name
35
- @dirs = dirs || %w(app bin lib spec test)
36
- @threshold = threshold
37
- @method = method || :total_score
38
- @verbose = Rake.application.options.trace
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.2.1
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-05-30 00:00:00.000000000 Z
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.3'
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.3'
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