Hello community, here is the log from the commit of package rubygem-gettext_i18n_rails for openSUSE:Factory checked in at 2016-05-29 03:12:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-gettext_i18n_rails (Old) and /work/SRC/openSUSE:Factory/.rubygem-gettext_i18n_rails.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-gettext_i18n_rails" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-gettext_i18n_rails/rubygem-gettext_i18n_rails.changes 2016-04-28 16:53:01.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-gettext_i18n_rails.new/rubygem-gettext_i18n_rails.changes 2016-05-29 03:13:20.000000000 +0200 @@ -1,0 +2,12 @@ +Sat May 21 04:32:59 UTC 2016 - co...@suse.com + +- updated to version 1.7.2 + no changelog found + +------------------------------------------------------------------- +Tue May 10 04:37:06 UTC 2016 - co...@suse.com + +- updated to version 1.7.0 + no changelog found + +------------------------------------------------------------------- Old: ---- gettext_i18n_rails-1.5.0.gem New: ---- gettext_i18n_rails-1.7.2.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-gettext_i18n_rails.spec ++++++ --- /var/tmp/diff_new_pack.yUmneH/_old 2016-05-29 03:13:21.000000000 +0200 +++ /var/tmp/diff_new_pack.yUmneH/_new 2016-05-29 03:13:21.000000000 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-gettext_i18n_rails -Version: 1.5.0 +Version: 1.7.2 Release: 0 %define mod_name gettext_i18n_rails %define mod_full_name %{mod_name}-%{version} ++++++ gettext_i18n_rails-1.5.0.gem -> gettext_i18n_rails-1.7.2.gem ++++++ Files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/gettext_i18n_rails/base_parser.rb new/lib/gettext_i18n_rails/base_parser.rb --- old/lib/gettext_i18n_rails/base_parser.rb 2016-02-29 18:11:37.000000000 +0100 +++ new/lib/gettext_i18n_rails/base_parser.rb 2016-05-18 20:10:35.000000000 +0200 @@ -15,18 +15,30 @@ return msgids end + def self.libraries + [extension] + end + def self.load_library return true if @library_loaded - begin - require extension - rescue LoadError - puts "A #{extension} file was found, but #{extension} library could not be found, so nothing will be parsed..." + loaded = libraries.detect do |library| + if Gem::Specification.find_all_by_name(library).any? + require library + true + else + false + end + end + + unless loaded + puts "No #{extension} library could be found: #{libraries.join(" or ")}" + return false end require 'gettext_i18n_rails/ruby_gettext_extractor' - @library_loaded = true + @library_loaded = loaded end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/gettext_i18n_rails/haml_parser.rb new/lib/gettext_i18n_rails/haml_parser.rb --- old/lib/gettext_i18n_rails/haml_parser.rb 2016-02-29 18:11:37.000000000 +0100 +++ new/lib/gettext_i18n_rails/haml_parser.rb 2016-05-18 20:10:35.000000000 +0200 @@ -7,7 +7,16 @@ end def self.convert_to_code(text) - Haml::Engine.new(text).precompiled() + case @library_loaded + when "haml" + Haml::Engine.new(text).precompiled() + when "hamlit" + Hamlit::Engine.new.call(text) + end + end + + def self.libraries + ["haml", "hamlit"] end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/gettext_i18n_rails/railtie.rb new/lib/gettext_i18n_rails/railtie.rb --- old/lib/gettext_i18n_rails/railtie.rb 2016-02-29 18:11:37.000000000 +0100 +++ new/lib/gettext_i18n_rails/railtie.rb 2016-05-18 20:10:35.000000000 +0200 @@ -7,11 +7,8 @@ config.gettext_i18n_rails.use_for_active_record_attributes = true rake_tasks do - begin - gem "gettext", ">= 3.0.2" + if Gem::Specification.find_all_by_name("gettext", ">= 3.0.2").any? require 'gettext_i18n_rails/tasks' - rescue Gem::LoadError - # no gettext available, no tasks for you! end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/gettext_i18n_rails/tasks.rb new/lib/gettext_i18n_rails/tasks.rb --- old/lib/gettext_i18n_rails/tasks.rb 2016-02-29 18:11:37.000000000 +0100 +++ new/lib/gettext_i18n_rails/tasks.rb 2016-05-18 20:10:35.000000000 +0200 @@ -29,7 +29,7 @@ def gettext_msgcat_options config = (Rails.application.config.gettext_i18n_rails.msgcat if defined?(Rails.application)) - config || gettext_default_options + config || gettext_default_options - %w[--location] end def gettext_xgettext_options diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/gettext_i18n_rails/version.rb new/lib/gettext_i18n_rails/version.rb --- old/lib/gettext_i18n_rails/version.rb 2016-02-29 18:11:37.000000000 +0100 +++ new/lib/gettext_i18n_rails/version.rb 2016-05-18 20:10:35.000000000 +0200 @@ -1,3 +1,3 @@ module GettextI18nRails - Version = VERSION = '1.5.0' + Version = VERSION = '1.7.2' end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2016-02-29 18:11:37.000000000 +0100 +++ new/metadata 2016-05-18 20:10:35.000000000 +0200 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: gettext_i18n_rails version: !ruby/object:Gem::Version - version: 1.5.0 + version: 1.7.2 platform: ruby authors: - Michael Grosser autorequire: bindir: bin cert_chain: [] -date: 2016-02-29 00:00:00.000000000 Z +date: 2016-05-18 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: fast_gettext