![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package rubygem-flog for openSUSE:Factory checked in at 2015-02-11 16:45:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-flog (Old) and /work/SRC/openSUSE:Factory/.rubygem-flog.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "rubygem-flog" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-flog/rubygem-flog.changes 2014-10-15 16:21:45.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-flog.new/rubygem-flog.changes 2015-02-11 16:45:34.000000000 +0100 @@ -1,0 +2,8 @@ +Mon Feb 9 08:06:40 UTC 2015 - coolo@suse.com + +- updated to version 4.3.2 + * 1 bug fix: + * Fixed rdoc url (phiggins) + * Fixed to_proc_normal scoring on ruby 2.2+. (teoljungberg) + +------------------------------------------------------------------- Old: ---- flog-4.3.0.gem New: ---- flog-4.3.2.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-flog.spec ++++++ --- /var/tmp/diff_new_pack.baqHvc/_old 2015-02-11 16:45:35.000000000 +0100 +++ /var/tmp/diff_new_pack.baqHvc/_new 2015-02-11 16:45:35.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-flog # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ # Name: rubygem-flog -Version: 4.3.0 +Version: 4.3.2 Release: 0 %define mod_name flog %define mod_full_name %{mod_name}-%{version} ++++++ flog-4.3.0.gem -> flog-4.3.2.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.autotest new/.autotest --- old/.autotest 2014-07-19 01:17:07.000000000 +0200 +++ new/.autotest 2015-01-31 00:50:36.000000000 +0100 @@ -4,8 +4,6 @@ require 'autotest/rcov' if ENV['RCOV'] Autotest.add_hook :initialize do |at| - at.order = :random - at.libs << ":../../ruby_parser/dev/lib" at.libs << ":../../sexp_processor/dev/lib" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/History.txt new/History.txt --- old/History.txt 2014-07-19 01:17:07.000000000 +0200 +++ new/History.txt 2015-01-31 00:50:36.000000000 +0100 @@ -1,3 +1,15 @@ +=== 4.3.2 / 2015-01-30 + +* 1 bug fix: + + * Fixed rdoc url (phiggins) + +=== 4.3.1 / 2015-01-09 + +* 1 bug fix: + + * Fixed to_proc_normal scoring on ruby 2.2+. (teoljungberg) + === 4.3.0 / 2014-07-18 * 1 minor enhancement: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.txt new/README.txt --- old/README.txt 2014-07-19 01:17:07.000000000 +0200 +++ new/README.txt 2015-01-31 00:50:36.000000000 +0100 @@ -2,7 +2,7 @@ home :: http://ruby.sadi.st/ code :: https://github.com/seattlerb/flog -rdoc :: http://seattlerb.rubyforge.org/flog +rdoc :: http://docs.seattlerb.org/flog vim :: http://github.com/sentientmonkey/vim-flog == DESCRIPTION: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Rakefile new/Rakefile --- old/Rakefile 2014-07-19 01:17:07.000000000 +0200 +++ new/Rakefile 2015-01-31 00:50:36.000000000 +0100 @@ -31,9 +31,12 @@ file = ENV["F"] ruby = ENV["R"] + details = ENV["D"] flog = FlogCLI.new :parser => RubyParser + flog.option[:details] = true if details + if file then flog.flog file else Files old/checksums.yaml.gz and new/checksums.yaml.gz differ Files old/checksums.yaml.gz.sig and new/checksums.yaml.gz.sig differ Files old/data.tar.gz.sig and new/data.tar.gz.sig differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/flog.rb new/lib/flog.rb --- old/lib/flog.rb 2014-07-19 01:17:07.000000000 +0200 +++ new/lib/flog.rb 2015-01-31 00:50:36.000000000 +0100 @@ -11,7 +11,7 @@ end class Flog < MethodBasedSexpProcessor - VERSION = "4.3.0" # :nodoc: + VERSION = "4.3.2" # :nodoc: ## # Cut off point where the report should stop unless --all given. @@ -47,7 +47,7 @@ 2 when /^1\.9/ then 1.5 - when /^2\.[01]/ then + when /^2\./ then 1 else 5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2014-07-19 01:17:07.000000000 +0200 +++ new/metadata 2015-01-31 00:50:36.000000000 +0100 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: flog version: !ruby/object:Gem::Version - version: 4.3.0 + version: 4.3.2 platform: ruby authors: - Ryan Davis @@ -10,9 +10,9 @@ cert_chain: - | -----BEGIN CERTIFICATE----- - MIIDPjCCAiagAwIBAgIBATANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu + MIIDPjCCAiagAwIBAgIBAjANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB - GRYDY29tMB4XDTEzMDkxNjIzMDQxMloXDTE0MDkxNjIzMDQxMlowRTETMBEGA1UE + GRYDY29tMB4XDTE0MDkxNzIzMDcwN1oXDTE1MDkxNzIzMDcwN1owRTETMBEGA1UE AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx @@ -22,14 +22,14 @@ qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBBQUAA4IB - AQCFZ7JTzoy1gcG4d8A6dmOJy7ygtO5MFpRIz8HuKCF5566nOvpy7aHhDDzFmQuu - FX3zDU6ghx5cQIueDhf2SGOncyBmmJRRYawm3wI0o1MeN6LZJ/3cRaOTjSFy6+S6 - zqDmHBp8fVA2TGJtO0BLNkbGVrBJjh0UPmSoGzWlRhEVnYC33TpDAbNA+u39UrQI - ynwhNN7YbnmSR7+JU2cUjBFv2iPBO+TGuWC+9L2zn3NHjuc6tnmSYipA9y8Hv+As - Y4evBVezr3SjXz08vPqRO5YRdO3zfeMT8gBjRqZjWJGMZ2lD4XNfrs7eky74CyZw - xx3n58i0lQkBE1EpKE0lFu/y + AQAFoDJRokCQdxFfOrmsKX41KOFlU/zjrbDVM9hgB/Ur999M6OXGSi8FitXNtMwY + FVjsiAPeU7HaWVVcZkj6IhINelTkXsxgGz/qCzjHy3iUMuZWw36cS0fiWJ5rvH+e + hD7uXxJSFuyf1riDGI1aeWbQ74WMwvNstOxLUMiV5a1fzBhlxPqb537ubDjq/M/h + zPUFPVYeL5KjDHLCqI2FwIk2sEMOQgjpXHzl+3NlD2LUgUhHDMevmgVua0e2GT1B + xJcC6UN6NHMOVMyAXsr2HR0gRRx4ofN1LoP2KhXzSr8UMvQYlwPmE0N5GQv1b5AO + VpzF30vNaJK6ZT7xlIsIlwmH -----END CERTIFICATE----- -date: 2014-07-18 00:00:00.000000000 Z +date: 2015-01-30 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: sexp_processor @@ -71,14 +71,14 @@ requirements: - - ~> - !ruby/object:Gem::Version - version: '5.4' + version: '5.5' type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - ~> - !ruby/object:Gem::Version - version: '5.4' + version: '5.5' - !ruby/object:Gem::Dependency name: rdoc requirement: !ruby/object:Gem::Requirement @@ -99,14 +99,14 @@ requirements: - - ~> - !ruby/object:Gem::Version - version: '3.12' + version: '3.13' type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - ~> - !ruby/object:Gem::Version - version: '3.12' + version: '3.13' description: |- Flog reports the most tortured code in an easy to read pain report. The higher the score, the more pain the code is in. @@ -155,7 +155,7 @@ version: '0' requirements: [] rubyforge_project: -rubygems_version: 2.2.1 +rubygems_version: 2.4.5 signing_key: specification_version: 4 summary: Flog reports the most tortured code in an easy to read pain report diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata.gz.sig new/metadata.gz.sig --- old/metadata.gz.sig 2014-07-19 01:17:07.000000000 +0200 +++ new/metadata.gz.sig 2015-01-31 00:50:36.000000000 +0100 @@ -1,2 +1,2 @@ -]@_È¡©»|"KǪPX|þ 1VZeuO - ³ôÜ7gìA~£MIúÏ)ÇRã«ÔšÈA²æémÊŽ°ÿS]Ø.@SVÁçµdóõklâu¢Kohò×çÎÍ]äÁ°+2žuz~ï§Î|ó0a¥Qº]°KvZÍ»©áJaXt.E°`ÜkÑZx é"Î7~ãùAÓŸÃEsPDâuž9 g:7'¹ÜSc·€O§,r÷óÞKÎQïaâdÅåvÅ:šú «jaUò²vñ4É:U}I \ No newline at end of file +í{+BàãKŠ(+k>:ÂŽäš5¯ñ±°$zÉ×VÁ,P$á''ÐÞÑÜõoÏNªê âË|ÒgC²Œ%±J ü3'1ß©ÎŽÆ\ÂB"©t7Jå:ýLR§Ï:»ÑMAÇÅöÇX:·÷iñ£ž_xó]r§MF[GéSç,ÕÃͶØùçÒrÊâä'Ýô2+o³ÙÍXXÀØšHadÄ|ÄBŸ)PaëªTD¯më$g Ôþ0û÷[ +âÛö>VI°POÒF,·°Ooäçw×ÛjÿXyÏónʯrO \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_flog.rb new/test/test_flog.rb --- old/test/test_flog.rb 2014-07-19 01:17:07.000000000 +0200 +++ new/test/test_flog.rb 2015-01-31 00:50:36.000000000 +0100 @@ -91,13 +91,13 @@ def test_process_alias sexp = s(:alias, s(:lit, :a), s(:lit, :b)) - util_process sexp, 2.0, :alias => 2.0 + assert_process sexp, 2.0, :alias => 2.0 end def test_process_and sexp = s(:and, s(:lit, :a), s(:lit, :b)) - util_process sexp, 1.0, :branch => 1.0 + assert_process sexp, 1.0, :branch => 1.0 end def test_process_attrasgn @@ -108,15 +108,15 @@ s(:call, nil, :b)), s(:call, nil, :c)) - util_process(sexp, 3.162, - :c => 1.0, :b => 1.0, :a => 1.0, :assignment => 1.0) + assert_process(sexp, 3.162, + :c => 1.0, :b => 1.0, :a => 1.0, :assignment => 1.0) end # def test_process_attrset # sexp = s(:attrset, :@writer) # - # util_process(sexp, 3.162, - # :c => 1.0, :b => 1.0, :a => 1.0, :assignment => 1.0) + # assert_process(sexp, 3.162, + # :c => 1.0, :b => 1.0, :a => 1.0, :assignment => 1.0) # # flunk "Not yet" # end @@ -124,7 +124,7 @@ def test_process_block sexp = s(:block, s(:and, s(:lit, :a), s(:lit, :b))) - util_process sexp, 1.1, :branch => 1.1 # 10% penalty over process_and + assert_process sexp, 1.1, :branch => 1.1 # 10% penalty over process_and end def test_process_block_pass @@ -135,16 +135,17 @@ bonus = case RUBY_VERSION when /^1\.8\.7/ then 0.4 when /^1\.9/ then 0.3 - when /^2\.[01]/ then 0.2 + when /^2\./ then 0.2 + else raise "Unhandled version #{RUBY_VERSION}" end bonus += Flog::OTHER_SCORES[:to_proc_normal] - util_process(sexp, 3.4 + bonus, - :a => 1.0, - :block_pass => 1.2, - :b => 1.2, - :to_proc_normal => 0.0 + bonus) + assert_process(sexp, 3.4 + bonus, + :a => 1.0, + :block_pass => 1.2, + :b => 1.2, + :to_proc_normal => 0.0 + bonus) end def test_process_block_pass_colon2 @@ -152,21 +153,21 @@ s(:block_pass, s(:colon2, s(:const, :A), :B))) - util_process(sexp, 2.2, - :a => 1.0, - :block_pass => 1.2) + assert_process(sexp, 2.2, + :a => 1.0, + :block_pass => 1.2) end def test_process_block_pass_iter sexp = s(:block_pass, s(:iter, s(:call, nil, :lambda), nil, s(:lit, 1))) - util_process(sexp, 12.316, - :lit_fixnum => 0.275, - :block_pass => 1.0, - :lambda => 1.0, - :branch => 1.0, - :to_proc_icky! => 10.0) + assert_process(sexp, 12.316, + :lit_fixnum => 0.275, + :block_pass => 1.0, + :lambda => 1.0, + :branch => 1.0, + :to_proc_icky! => 10.0) end def test_process_block_pass_lasgn @@ -175,18 +176,18 @@ :b, s(:iter, s(:call, nil, :lambda), nil, s(:lit, 1)))) - util_process(sexp, 17.333, - :lit_fixnum => 0.275, - :block_pass => 1.0, - :lambda => 1.0, - :assignment => 1.0, - :branch => 1.0, - :to_proc_lasgn => 15.0) + assert_process(sexp, 17.333, + :lit_fixnum => 0.275, + :block_pass => 1.0, + :lambda => 1.0, + :assignment => 1.0, + :branch => 1.0, + :to_proc_lasgn => 15.0) end def test_process_call sexp = s(:call, nil, :a) - util_process sexp, 1.0, :a => 1.0 + assert_process sexp, 1.0, :a => 1.0 end def test_process_case @@ -201,7 +202,7 @@ s(:when, s(:array, s(:lit, :a)), s(:nil)), nil) - util_process sexp, 2.1, :branch => 2.1 + assert_process sexp, 2.1, :branch => 2.1 end def test_process_class @@ -211,7 +212,7 @@ s(:colon2, s(:const, :X), :Y), nil, s(:scope, s(:lit, 42))) - util_process sexp, 0.25, :lit_fixnum => 0.25 + assert_process sexp, 0.25, :lit_fixnum => 0.25 end # TODO: @@ -236,7 +237,7 @@ s(:block, s(:lit, 42)))) - util_process sexp, 0.275, :lit_fixnum => 0.275 + assert_process sexp, 0.275, :lit_fixnum => 0.275 end def test_process_defn_in_self @@ -281,7 +282,7 @@ s(:block, s(:lit, 42)))) - util_process sexp, 0.275, :lit_fixnum => 0.275 + assert_process sexp, 0.275, :lit_fixnum => 0.275 end # FIX: huh? over-refactored? @@ -294,7 +295,7 @@ s(:call, nil, :b), # outside block, not penalized s(:call, nil, :a), nil) - util_process sexp, 2.326, :branch => 1.0, :b => 1.0, :a => 1.1 + assert_process sexp, 2.326, :branch => 1.0, :b => 1.0, :a => 1.1 end def test_process_iter @@ -302,7 +303,7 @@ s(:call, nil, :loop), nil, s(:if, s(:true), s(:break), nil)) - util_process sexp, 2.326, :loop => 1.0, :branch => 2.1 + assert_process sexp, 2.326, :loop => 1.0, :branch => 2.1 end def test_process_iter_dsl @@ -317,7 +318,7 @@ @klass, @meth = "task", "#blah" - util_process sexp, 2.0, :something => 1.0, :task => 1.0 + assert_process sexp, 2.0, :something => 1.0, :task => 1.0 end def test_process_iter_dsl_regexp @@ -332,7 +333,7 @@ @klass, @meth = "task", "#/regexp/" - util_process sexp, 2.0, :something => 1.0, :task => 1.0 + assert_process sexp, 2.0, :something => 1.0, :task => 1.0 end def test_process_iter_dsl_hash @@ -347,7 +348,7 @@ @klass, @meth = "task", "#woot" - util_process sexp, 2.3, :something => 1.0, :task => 1.0, :lit_fixnum => 0.3 + assert_process sexp, 2.3, :something => 1.0, :task => 1.0, :lit_fixnum => 0.3 end def test_process_iter_dsl_namespaced @@ -389,17 +390,17 @@ def test_process_lit sexp = s(:lit, :y) - util_process sexp, 0.0 + assert_process sexp, 0.0 end def test_process_lit_int sexp = s(:lit, 42) - util_process sexp, 0.25, :lit_fixnum => 0.25 + assert_process sexp, 0.25, :lit_fixnum => 0.25 end def test_process_lit_float # and other lits sexp = s(:lit, 3.1415) # TODO: consider penalizing floats if not in cdecl - util_process sexp, 0.0 + assert_process sexp, 0.0 end def test_process_lit_bad @@ -413,7 +414,7 @@ s(:array, s(:lasgn, :a), s(:lasgn, :b)), s(:to_ary, s(:call, nil, :c))) - util_process sexp, 3.162, :c => 1.0, :assignment => 3.0 + assert_process sexp, 3.162, :c => 1.0, :assignment => 3.0 end def test_process_module @@ -423,20 +424,20 @@ s(:colon2, s(:const, :X), :Y), s(:scope, s(:lit, 42))) - util_process sexp, 0.25, :lit_fixnum => 0.25 + assert_process sexp, 0.25, :lit_fixnum => 0.25 end def test_process_sclass sexp = s(:sclass, s(:self), s(:scope, s(:lit, 42))) - util_process sexp, 5.375, :sclass => 5.0, :lit_fixnum => 0.375 + assert_process sexp, 5.375, :sclass => 5.0, :lit_fixnum => 0.375 end def test_process_super sexp = s(:super) - util_process sexp, 1.0, :super => 1.0 + assert_process sexp, 1.0, :super => 1.0 sexp = s(:super, s(:lit, 42)) - util_process sexp, 1.25, :super => 1.0, :lit_fixnum => 0.25 + assert_process sexp, 1.25, :super => 1.0, :lit_fixnum => 0.25 end def test_process_while @@ -445,18 +446,18 @@ s(:call, nil, :b), true) - util_process sexp, 2.417, :branch => 1.0, :a => 1.1, :b => 1.1 + assert_process sexp, 2.417, :branch => 1.0, :a => 1.1, :b => 1.1 end def test_process_yield sexp = s(:yield) - util_process sexp, 1.00, :yield => 1.0 + assert_process sexp, 1.00, :yield => 1.0 sexp = s(:yield, s(:lit, 4)) - util_process sexp, 1.25, :yield => 1.0, :lit_fixnum => 0.25 + assert_process sexp, 1.25, :yield => 1.0, :lit_fixnum => 0.25 sexp = s(:yield, s(:lit, 42), s(:lit, 24)) - util_process sexp, 1.50, :yield => 1.0, :lit_fixnum => 0.50 + assert_process sexp, 1.50, :yield => 1.0, :lit_fixnum => 0.50 end def test_score_method @@ -500,11 +501,11 @@ assert_equal exp.keys.sort_by(&:to_s), act.keys.sort_by(&:to_s) exp.keys.each do |k| - assert_in_epsilon exp[k], act[k], 0.001, k + assert_in_epsilon exp[k], act[k], 0.001, "key = #{k.inspect}" end end - def util_process sexp, score = -1, hash = {} + def assert_process sexp, score = -1, hash = {} setup @flog.process sexp