flog 4.3.0 → 4.3.1

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: 7164552a7156897301ba299604902f2230a47c90
4
- data.tar.gz: ec5a616e57fd906490079dc7f40003f76fca94cb
3
+ metadata.gz: df213d334fdd9f08d6b58cce39c7a45869e6a589
4
+ data.tar.gz: 5ea3b3c219510b877d49802d0298afa6f6808a64
5
5
  SHA512:
6
- metadata.gz: 0f1a01fc14ad0442a714aa7e62a8f9da87a6c50cade7128aec32813a48d39add2c8c898df61a2e799e6ec402daf2bfd325c5a68d901c626f6696e2eec1b48e94
7
- data.tar.gz: d35c36c2e072e08c4306e52965ce2b3dc6629ff48d4d6776ebc6ff4874327a632e6c8fc2f16e360039fa6bc656601e171983666884e52b56854f042773847b33
6
+ metadata.gz: 7e8084dd8e4a740b39e62f6a1e910c213e57f8f28cd2fa788ec1c5f7dae30b4727375f7fe596480347359b2ab94b73cd49b82ff7e154f35a17627347fc591499
7
+ data.tar.gz: 9489b3e51cd09670284113728b7cf4c76ab7c4e6470c006a2249bdc0060ba7f385f084628645c29101b26d3651786c6ce6ddd39dab2d4fa10b581dc5ae68f307
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,9 @@
1
+ === 4.3.1 / 2015-01-09
2
+
3
+ * 1 bug fix:
4
+
5
+ * Fixed to_proc_normal scoring on ruby 2.2+. (teoljungberg)
6
+
1
7
  === 4.3.0 / 2014-07-18
2
8
 
3
9
  * 1 minor enhancement:
data/Rakefile CHANGED
@@ -31,9 +31,12 @@ task :debug do
31
31
 
32
32
  file = ENV["F"]
33
33
  ruby = ENV["R"]
34
+ details = ENV["D"]
34
35
 
35
36
  flog = FlogCLI.new :parser => RubyParser
36
37
 
38
+ flog.option[:details] = true if details
39
+
37
40
  if file then
38
41
  flog.flog file
39
42
  else
@@ -11,7 +11,7 @@ class File
11
11
  end
12
12
 
13
13
  class Flog < MethodBasedSexpProcessor
14
- VERSION = "4.3.0" # :nodoc:
14
+ VERSION = "4.3.1" # :nodoc:
15
15
 
16
16
  ##
17
17
  # Cut off point where the report should stop unless --all given.
@@ -47,7 +47,7 @@ class Flog < MethodBasedSexpProcessor
47
47
  2
48
48
  when /^1\.9/ then
49
49
  1.5
50
- when /^2\.[01]/ then
50
+ when /^2\./ then
51
51
  1
52
52
  else
53
53
  5
@@ -135,7 +135,8 @@ class TestFlog < FlogTest
135
135
  bonus = case RUBY_VERSION
136
136
  when /^1\.8\.7/ then 0.4
137
137
  when /^1\.9/ then 0.3
138
- when /^2\.[01]/ then 0.2
138
+ when /^2\./ then 0.2
139
+ else raise "Unhandled version #{RUBY_VERSION}"
139
140
  end
140
141
 
141
142
  bonus += Flog::OTHER_SCORES[:to_proc_normal]
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.3.0
4
+ version: 4.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -10,9 +10,9 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDPjCCAiagAwIBAgIBATANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
13
+ MIIDPjCCAiagAwIBAgIBAjANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
14
14
  ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
15
- GRYDY29tMB4XDTEzMDkxNjIzMDQxMloXDTE0MDkxNjIzMDQxMlowRTETMBEGA1UE
15
+ GRYDY29tMB4XDTE0MDkxNzIzMDcwN1oXDTE1MDkxNzIzMDcwN1owRTETMBEGA1UE
16
16
  AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
17
17
  JomT8ixkARkWA2N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AO
30
+ VpzF30vNaJK6ZT7xlIsIlwmH
31
31
  -----END CERTIFICATE-----
32
- date: 2014-07-18 00:00:00.000000000 Z
32
+ date: 2015-01-10 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.4'
74
+ version: '5.5'
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.4'
81
+ version: '5.5'
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: rdoc
84
84
  requirement: !ruby/object:Gem::Requirement
@@ -99,14 +99,14 @@ dependencies:
99
99
  requirements:
100
100
  - - ~>
101
101
  - !ruby/object:Gem::Version
102
- version: '3.12'
102
+ version: '3.13'
103
103
  type: :development
104
104
  prerelease: false
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - ~>
108
108
  - !ruby/object:Gem::Version
109
- version: '3.12'
109
+ version: '3.13'
110
110
  description: |-
111
111
  Flog reports the most tortured code in an easy to read pain
112
112
  report. The higher the score, the more pain the code is in.
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  version: '0'
156
156
  requirements: []
157
157
  rubyforge_project:
158
- rubygems_version: 2.2.1
158
+ rubygems_version: 2.4.1
159
159
  signing_key:
160
160
  specification_version: 4
161
161
  summary: Flog reports the most tortured code in an easy to read pain report
metadata.gz.sig CHANGED
Binary file