flay 2.13.1 → 2.13.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/History.rdoc +13 -0
- data/lib/flay.rb +3 -3
- data/lib/flay_task.rb +1 -1
- data.tar.gz.sig +1 -2
- metadata +13 -13
- 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: f398ea8e7f796a1871faedb32dbee7d7377d30abcc91edd075f2015a6be95c74
|
4
|
+
data.tar.gz: cdb49c908285be2c5c40118a33e7d0227e4a32a4b31736b374aaf31a43e58ac6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c7f5b54202e563702d21ee8006d24124dd7810bb3518ae307a1eba17966a042864af2c0b772df9deab11517a8a6268159e5503d6fe70845722ef3544b7b84a9
|
7
|
+
data.tar.gz: 301d1e56ecfd1c12e8d41e826e56c44899598712aec55daac4ba55f74df547e5421250c3ea8dace955edaeacacd0a513c4a3e888f83aa47fddcfe340fb49c9b2
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/History.rdoc
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
=== 2.13.3 / 2024-05-21
|
2
|
+
|
3
|
+
* 2 bug fixes:
|
4
|
+
|
5
|
+
* Add secondary sort of score & files on output. (njhammond)
|
6
|
+
* Sort input files to make tracking progress easier.
|
7
|
+
|
8
|
+
=== 2.13.2 / 2024-02-05
|
9
|
+
|
10
|
+
* 1 bug fix:
|
11
|
+
|
12
|
+
* Pass dirs to Flay.run in FlayTask. (adam12)
|
13
|
+
|
1
14
|
=== 2.13.1 / 2023-07-20
|
2
15
|
|
3
16
|
* 1 minor enhancement:
|
data/lib/flay.rb
CHANGED
@@ -8,7 +8,7 @@ require "timeout"
|
|
8
8
|
require "zlib"
|
9
9
|
|
10
10
|
class Flay
|
11
|
-
VERSION = "2.13.
|
11
|
+
VERSION = "2.13.3" # :nodoc:
|
12
12
|
|
13
13
|
class Item < Struct.new(:structural_hash, :name, :bonus, :mass, :locations)
|
14
14
|
alias identical? bonus
|
@@ -26,7 +26,7 @@ class Flay
|
|
26
26
|
files = expander.filter_files expander.process, DEFAULT_IGNORE
|
27
27
|
|
28
28
|
flay = Flay.new Flay.parse_options args
|
29
|
-
flay.process(*files)
|
29
|
+
flay.process(*files.sort)
|
30
30
|
flay
|
31
31
|
end
|
32
32
|
|
@@ -484,7 +484,7 @@ class Flay
|
|
484
484
|
if option[:summary] then
|
485
485
|
io.puts
|
486
486
|
|
487
|
-
self.summary.sort_by { |
|
487
|
+
self.summary.sort_by { |f,v| [-v, f] }.each do |file, score|
|
488
488
|
io.puts "%8.2f: %s" % [score, file]
|
489
489
|
end
|
490
490
|
|
data/lib/flay_task.rb
CHANGED
@@ -45,7 +45,7 @@ class FlayTask < Rake::TaskLib
|
|
45
45
|
desc "Analyze for code duplication in: #{dirs.join(", ")}"
|
46
46
|
task name do
|
47
47
|
require "flay"
|
48
|
-
flay = Flay.run
|
48
|
+
flay = Flay.run(dirs)
|
49
49
|
flay.report if verbose
|
50
50
|
|
51
51
|
raise "Flay total too high! #{flay.total} > #{threshold}" if
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
��-�LiU�bC��8�2�tK�Cb�{���J�S
|
1
|
+
B�`����6�����}�aeHy���0�?$Kh48��/���u��F0P^JToV)���~�>ѿ2�/��4�0kk����`�C�n�Jc�ܸ�bT�{���>���S�lW��~����g���������p��?����s?��u֯��0����$�y^��5��cEv`q�U�`8SӄqG#.�HSf�e@�I�R� �'ŝ~�"�݆�p��sib�t����8
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.13.
|
4
|
+
version: 2.13.3
|
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
|
-
|
13
|
+
MIIDPjCCAiagAwIBAgIBCDANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
|
14
14
|
ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
|
15
|
-
|
15
|
+
GRYDY29tMB4XDTI0MDEwMjIxMjEyM1oXDTI1MDEwMTIxMjEyM1owRTETMBEGA1UE
|
16
16
|
AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
|
17
17
|
JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
|
18
18
|
b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
|
@@ -22,14 +22,14 @@ cert_chain:
|
|
22
22
|
qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
|
23
23
|
gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
|
24
24
|
HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBCwUAA4IB
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
25
|
+
AQCygvpmncmkiSs9r/Kceo4bBPDszhTv6iBi4LwMReqnFrpNLMOWJw7xi8x+3eL2
|
26
|
+
XS09ZPNOt2zm70KmFouBMgOysnDY4k2dE8uF6B8JbZOO8QfalW+CoNBliefOTcn2
|
27
|
+
bg5IOP7UoGM5lC174/cbDJrJnRG9bzig5FAP0mvsgA8zgTRXQzIUAZEo92D5K7p4
|
28
|
+
B4/O998ho6BSOgYBI9Yk1ttdCtti6Y+8N9+fZESsjtWMykA+WXWeGUScHqiU+gH8
|
29
|
+
S7043fq9EbQdBr2AXdj92+CDwuTfHI6/Hj5FVBDULufrJaan4xUgL70Hvc6pTTeW
|
30
|
+
deKfBjgVAq7EYHu1AczzlUly
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date:
|
32
|
+
date: 2024-05-22 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: sexp_processor
|
@@ -141,14 +141,14 @@ dependencies:
|
|
141
141
|
requirements:
|
142
142
|
- - "~>"
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: '4.
|
144
|
+
version: '4.2'
|
145
145
|
type: :development
|
146
146
|
prerelease: false
|
147
147
|
version_requirements: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
149
|
- - "~>"
|
150
150
|
- !ruby/object:Gem::Version
|
151
|
-
version: '4.
|
151
|
+
version: '4.2'
|
152
152
|
description: |-
|
153
153
|
Flay analyzes code for structural similarities. Differences in literal
|
154
154
|
values, variable, class, method names, whitespace, programming style,
|
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
196
196
|
- !ruby/object:Gem::Version
|
197
197
|
version: '0'
|
198
198
|
requirements: []
|
199
|
-
rubygems_version: 3.
|
199
|
+
rubygems_version: 3.5.3
|
200
200
|
signing_key:
|
201
201
|
specification_version: 4
|
202
202
|
summary: Flay analyzes code for structural similarities
|
metadata.gz.sig
CHANGED
Binary file
|