flog 4.9.2 → 4.9.3
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 +4 -4
- checksums.yaml.gz.sig +2 -2
- data/History.rdoc +6 -0
- data/lib/flog.rb +2 -2
- data/test/test_flog.rb +12 -0
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8031dfa607d41e264121a14a84f9798425b87dffdce2a5bd8cabf15a6836e0f8
|
|
4
|
+
data.tar.gz: 95a6b848cbe35d02bae912cf8bd4871998b94bb9faeedc9f92a099c8b565f06a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0dc58926910d69b830974eeb0e9cac686fdcd8a49ee6f678e23f557daeb124d09568c7fe293d4b37cb5e6282de37f5ab6489b6d4ae0099b323445196511917d8
|
|
7
|
+
data.tar.gz: c7b1ea584cad2c550c1020057fe22ebfb6ed449705de797d0313cb87a7b90e479003f59055dd4889102159a42ba1efd0dc532c972688d1a421436e17d8dc3fed
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
η�L�X����X2�+�?�s�%Q\�� �C�9j���V!�_�]�������{,j(-LpɫN�L���p͊2���}���8^�g�^6��>���9D��\0����j��6���ϕz9d�������{��t�)=��Z���{�d�� u�$��GZ��b� ��$�R@� \]����*U�>�i�A��>�ݺ�E�nSn��n |�nzQg
|
|
2
|
+
,��%,~�y:L_�����R�kԊNi ���!c66�h
|
data/History.rdoc
CHANGED
data/lib/flog.rb
CHANGED
|
@@ -16,7 +16,7 @@ NotRubyParser = Class.new Prism::Translation::RubyParser
|
|
|
16
16
|
# thoroughly test.
|
|
17
17
|
|
|
18
18
|
class Flog < MethodBasedSexpProcessor
|
|
19
|
-
VERSION = "4.9.
|
|
19
|
+
VERSION = "4.9.3" # :nodoc:
|
|
20
20
|
|
|
21
21
|
##
|
|
22
22
|
# Cut off point where the report should stop unless --all given.
|
|
@@ -230,7 +230,7 @@ class Flog < MethodBasedSexpProcessor
|
|
|
230
230
|
|
|
231
231
|
def initialize option = {}
|
|
232
232
|
super()
|
|
233
|
-
@option = option.dup
|
|
233
|
+
@option = option = option.dup
|
|
234
234
|
@mass = {}
|
|
235
235
|
@parser = nil
|
|
236
236
|
@threshold = option[:threshold] || DEFAULT_THRESHOLD
|
data/test/test_flog.rb
CHANGED
|
@@ -697,3 +697,15 @@ class TestFlog < FlogTest
|
|
|
697
697
|
@flog.add_to_score "blah", 42
|
|
698
698
|
end
|
|
699
699
|
end
|
|
700
|
+
|
|
701
|
+
class TestFlogDefaultOptions < Minitest::Test
|
|
702
|
+
def test_flog_with_default_options
|
|
703
|
+
# Regression test for issue #84
|
|
704
|
+
# Flog should work with default options (no explicit parser)
|
|
705
|
+
flog = Flog.new
|
|
706
|
+
flog.flog_ruby "2 + 3", "test.rb"
|
|
707
|
+
flog.calculate_total_scores
|
|
708
|
+
|
|
709
|
+
assert_in_epsilon 1.6, flog.total_score
|
|
710
|
+
end
|
|
711
|
+
end
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|