commit rubygem-text for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-text for openSUSE:Factory checked in at 2015-04-15 16:24:17 Comparing /work/SRC/openSUSE:Factory/rubygem-text (Old) and /work/SRC/openSUSE:Factory/.rubygem-text.new (New) Package is "rubygem-text" Changes: --- /work/SRC/openSUSE:Factory/rubygem-text/rubygem-text.changes 2015-02-11 16:45:43.0 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-text.new/rubygem-text.changes 2015-04-15 16:24:18.0 +0200 @@ -1,0 +2,5 @@ +Tue Apr 14 04:31:32 UTC 2015 - co...@suse.com + +- updated to version 1.3.1 + +--- Old: text-1.3.0.gem New: text-1.3.1.gem Other differences: -- ++ rubygem-text.spec ++ --- /var/tmp/diff_new_pack.tvF5l3/_old 2015-04-15 16:24:18.0 +0200 +++ /var/tmp/diff_new_pack.tvF5l3/_new 2015-04-15 16:24:18.0 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-text -Version:1.3.0 +Version:1.3.1 Release:0 %define mod_name text %define mod_full_name %{mod_name}-%{version} ++ text-1.3.0.gem -> text-1.3.1.gem ++ Files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/text/levenshtein.rb new/lib/text/levenshtein.rb --- old/lib/text/levenshtein.rb 2014-06-24 00:05:44.0 +0200 +++ new/lib/text/levenshtein.rb 2015-04-13 16:54:51.0 +0200 @@ -36,14 +36,15 @@ private def distance_with_maximum(str1, str2, max_distance) # :nodoc: -s, t = [str1, str2].sort_by(&:length). -map{ |str| str.encode(Encoding::UTF_8).unpack("U*") } +s = str1.encode(Encoding::UTF_8).unpack("U*") +t = str2.encode(Encoding::UTF_8).unpack("U*") + n = s.length m = t.length big_int = n * m -return m if n.zero? -return n if m.zero? -return 0 if s == t + +# Swap if necessary so that s is always the shorter of the two strings +s, t, n, m = t, s, m, n if m < n # If the length difference is already greater than the max_distance, then # there is nothing else to check @@ -51,6 +52,10 @@ return max_distance end +return 0 if s == t +return m if n.zero? +return n if m.zero? + # The values necessary for our threshold are written; the ones after must # be filled with large integers since the tailing member of the threshold # window in the bottom array will run min across them @@ -84,10 +89,12 @@ # computer science and computational biology. # Cambridge, UK: Cambridge University Press. ISBN 0-521-58519-8. # pp. 263–264. - min = [0, i - max_distance - 1].max - max = [m - 1, i + max_distance].min + min = i - max_distance - 1 + min = 0 if min < 0 + max = i + max_distance + max = m - 1 if max > m - 1 - (min .. max).each do |j| + min.upto(max) do |j| # If the diagonal value is already greater than the max_distance # then we can safety return: the diagonal will never go lower again. # See: http://www.levenshtein.net/ @@ -96,11 +103,11 @@ end cost = s[i] == t[j] ? 0 : 1 -x = [ - d[j+1] + 1, # insertion - e + 1, # deletion - d[j] + cost # substitution -].min +insertion = d[j + 1] + 1 +deletion = e + 1 +substitution = d[j] + cost +x = insertion < deletion ? insertion : deletion +x = substitution if substitution < x d[j] = e e = x @@ -116,9 +123,12 @@ end def distance_without_maximum(str1, str2) # :nodoc: -s, t = [str1, str2].map{ |str| str.encode(Encoding::UTF_8).unpack("U*") } +s = str1.encode(Encoding::UTF_8).unpack("U*") +t = str2.encode(Encoding::UTF_8).unpack("U*") + n = s.length m = t.length + return m if n.zero? return n if m.zero? @@ -128,12 +138,13 @@ n.times do |i| e = i + 1 m.times do |j| -cost = (s[i] == t[j]) ? 0 : 1 -x = [ - d[j+1] + 1, # insertion - e + 1, # deletion - d[j] + cost # substitution -].min +cost = s[i] == t[j] ? 0 : 1 +insertion = d[j + 1] + 1 +deletion = e + 1 +substitution = d[j] + cost +x = insertion < deletion ? insertion : deletion +x = substitution if substitution < x + d[j] = e e = x end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/text/version.rb new/lib/text/version.rb --- old/lib/text/version.rb 2014-06-24 00:05:44.0 +0200 +++ new/lib/text/version.rb
commit rubygem-text for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-text for openSUSE:Factory checked in at 2015-02-11 16:45:42 Comparing /work/SRC/openSUSE:Factory/rubygem-text (Old) and /work/SRC/openSUSE:Factory/.rubygem-text.new (New) Package is "rubygem-text" Changes: --- /work/SRC/openSUSE:Factory/rubygem-text/rubygem-text.changes 2014-10-14 07:13:13.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-text.new/rubygem-text.changes 2015-02-11 16:45:43.0 +0100 @@ -1,0 +2,5 @@ +Tue Feb 10 18:38:28 UTC 2015 - co...@suse.com + +- updated to version 1.3.0 + +--- Old: text-1.2.3.gem New: gem2rpm.yml text-1.3.0.gem Other differences: -- ++ rubygem-text.spec ++ --- /var/tmp/diff_new_pack.QPQY1Q/_old 2015-02-11 16:45:44.0 +0100 +++ /var/tmp/diff_new_pack.QPQY1Q/_new 2015-02-11 16:45:44.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-text # -# 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 @@ -16,23 +16,32 @@ # +# +# This file was generated with a gem2rpm.yml and not just plain gem2rpm. +# All sections marked as MANUAL, license headers, summaries and descriptions +# can be maintained in that file. Please consult this file before editing any +# of those fields +# + Name: rubygem-text -Version:1.2.3 +Version:1.3.0 Release:0 %define mod_name text %define mod_full_name %{mod_name}-%{version} - BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: %{rubygem gem2rpm} +BuildRequires: %{ruby} BuildRequires: ruby-macros >= 5 Url:http://github.com/threedaymonk/text Source: http://rubygems.org/gems/%{mod_full_name}.gem +Source1:gem2rpm.yml Summary:A collection of text algorithms License:MIT Group: Development/Languages/Ruby %description A collection of text algorithms: Levenshtein, Soundex, Metaphone, Double -Metaphone, Porter Stemming +Metaphone, Porter Stemming. %prep @@ -40,8 +49,7 @@ %install %gem_install \ - --symlink-binaries \ - --doc-files="README.rdoc" \ + --doc-files="COPYING.txt README.rdoc" \ -f %gem_packages ++ gem2rpm.yml ++ # --- # ## used by gem2rpm # :summary: this is a custom summary # ## used by gem2rpm # :description: |- # this is a custom description # # it can be multiline # ## used by gem2rpm # :license: MIT or Ruby # ## used by gem2rpm and gem_packages # :version_suffix: -x_y # ## used by gem2rpm and gem_packages # :disable_docs: true # ## used by gem2rpm # :disable_automatic_rdoc_dep: true # ## used by gem2rpm # :preamble: |- # BuildRequires: foobar # Requires: foobar # ## used by gem2rpm # :patches: # foo.patch: -p1 # bar.patch: # ## used by gem2rpm :sources: # - foo.desktop # - bar.desktop # :gem_install_args: '' # ## used by gem2rpm # :pre_install: |- # %if 0%{?use_system_libev} # export USE_VENDORED_LIBEV="no" # %endif # ## used by gem2rpm # :post_install: |- # # delete custom files here or do other fancy stuff # install -D -m 0644 %{S:1} %{buildroot}%{_bindir}/gem2rpm-opensuse # ## used by gem2rpm # :testsuite_command: |- # (pushd %{buildroot}%{gem_base}/gems/%{mod_full_name} && rake test) # ## used by gem2rpm # :filelist: |- # /usr/bin/gem2rpm-opensuse # ## used by gem2rpm # :scripts: # :post: |- # /bin/echo foo # ## used by gem_packages # :main: # :preamble: |- # Requires: util-linux # Recommends: pwgen # :filelist: |- # /usr/bin/gem2rpm-opensuse # ## used by gem_packages # :custom: # apache: # :preamble: |- # Requires: . # :filelist: |- # /etc/apache2/conf.d/passenger.conf # :summary: Custom summary is optional # :description: |- # Custom description is optional # # bar # :post: |- # /bin/echo foo # ++ text-1.2.3.gem -> text-1.3.0.gem ++ 1714 lines of diff (skipped) -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit rubygem-text for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-text for openSUSE:Factory checked in at 2014-10-14 07:12:20 Comparing /work/SRC/openSUSE:Factory/rubygem-text (Old) and /work/SRC/openSUSE:Factory/.rubygem-text.new (New) Package is "rubygem-text" Changes: --- /work/SRC/openSUSE:Factory/rubygem-text/rubygem-text.changes 2013-10-21 13:04:43.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-text.new/rubygem-text.changes 2014-10-14 07:13:13.0 +0200 @@ -1,0 +2,5 @@ +Mon Oct 13 07:18:07 UTC 2014 - adr...@suse.de + +- adapt to new rubygem packaging style + +--- Other differences: -- ++ rubygem-text.spec ++ --- /var/tmp/diff_new_pack.x8S1bh/_old 2014-10-14 07:13:15.0 +0200 +++ /var/tmp/diff_new_pack.x8S1bh/_new 2014-10-14 07:13:15.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-text # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -23,7 +23,7 @@ %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: ruby-macros >= 1 +BuildRequires: ruby-macros >= 5 Url:http://github.com/threedaymonk/text Source: http://rubygems.org/gems/%{mod_full_name}.gem Summary:A collection of text algorithms @@ -34,49 +34,16 @@ A collection of text algorithms: Levenshtein, Soundex, Metaphone, Double Metaphone, Porter Stemming -%package doc -Summary:RDoc documentation for %{mod_name} -Group: Development/Languages/Ruby -Requires: %{name} = %{version} - -%description doc -Documentation generated at gem installation time. -Usually in RDoc and RI formats. - -%package testsuite -Summary:Test suite for %{mod_name} -Group: Development/Languages/Ruby -Requires: %{name} = %{version} - -%description testsuite -Test::Unit or RSpec files, useful for developers. - %prep -#gem_unpack -#if you need patches, apply them here and replace the # with a % sign in the surrounding lines -#gem_build %build %install -%gem_install -f -mkdir -p %{buildroot}%{_docdir}/%{name} -ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/README.rdoc %buildroot/%{_docdir}/%{name}/README.rdoc - -%files -%defattr(-,root,root,-) -%{_docdir}/%{name} -%{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_full_name}.gem -%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/ -%exclude %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/test -%{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_full_name}.gemspec - -%files doc -%defattr(-,root,root,-) -%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_full_name}/ - -%files testsuite -%defattr(-,root,root,-) -%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/test +%gem_install \ + --symlink-binaries \ + --doc-files="README.rdoc" \ + -f + +%gem_packages %changelog -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit rubygem-text for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-text for openSUSE:Factory checked in at 2013-10-21 13:04:42 Comparing /work/SRC/openSUSE:Factory/rubygem-text (Old) and /work/SRC/openSUSE:Factory/.rubygem-text.new (New) Package is "rubygem-text" Changes: --- /work/SRC/openSUSE:Factory/rubygem-text/rubygem-text.changes 2013-05-16 16:20:22.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-text.new/rubygem-text.changes 2013-10-21 13:04:43.0 +0200 @@ -1,0 +2,11 @@ +Fri Aug 30 10:00:27 UTC 2013 - co...@suse.com + +- updated to version 1.2.3, no changelog +- license changed to MIT + +--- +Mon Aug 26 05:05:42 UTC 2013 - co...@suse.com + +- updated to version 1.2.2 + +--- Old: text-1.2.1.gem New: text-1.2.3.gem Other differences: -- ++ rubygem-text.spec ++ --- /var/tmp/diff_new_pack.0rI98R/_old 2013-10-21 13:04:43.0 +0200 +++ /var/tmp/diff_new_pack.0rI98R/_new 2013-10-21 13:04:43.0 +0200 @@ -17,7 +17,7 @@ Name: rubygem-text -Version:1.2.1 +Version:1.2.3 Release:0 %define mod_name text %define mod_full_name %{mod_name}-%{version} @@ -27,7 +27,7 @@ Url:http://github.com/threedaymonk/text Source: http://rubygems.org/gems/%{mod_full_name}.gem Summary:A collection of text algorithms -License:Ruby +License:MIT Group: Development/Languages/Ruby %description ++ text-1.2.1.gem -> text-1.2.3.gem ++ Files /work/SRC/openSUSE:Factory/rubygem-text/text-1.2.1.gem and /work/SRC/openSUSE:Factory/.rubygem-text.new/text-1.2.3.gem differ -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org