Hello community, here is the log from the commit of package rubygem-gettext_i18n_rails_js for openSUSE:Factory checked in at 2017-04-12 17:31:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-gettext_i18n_rails_js (Old) and /work/SRC/openSUSE:Factory/.rubygem-gettext_i18n_rails_js.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-gettext_i18n_rails_js" Wed Apr 12 17:31:43 2017 rev:8 rq:481720 version:1.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-gettext_i18n_rails_js/rubygem-gettext_i18n_rails_js.changes 2016-11-07 12:23:21.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-gettext_i18n_rails_js.new/rubygem-gettext_i18n_rails_js.changes 2017-04-12 18:22:24.729388691 +0200 @@ -1,0 +2,12 @@ +Fri Mar 17 05:29:41 UTC 2017 - co...@suse.com + +- updated to version 1.3.0 + see installed CHANGELOG.md + + ## [1.3.0](https://github.com/webhippie/gettext_i18n_rails_js/releases/tag/v1.3.0) - 2017-03-16 + + * Fixed Handlebars translations with options (@mikezaby) + * Fixed latest Rubocop offenses (@mikezaby) + * Dropped failing coveralls, fixed codeclimate (@tboerger) + +------------------------------------------------------------------- Old: ---- gettext_i18n_rails_js-1.2.0.gem New: ---- gettext_i18n_rails_js-1.3.0.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-gettext_i18n_rails_js.spec ++++++ --- /var/tmp/diff_new_pack.tU1tIU/_old 2017-04-12 18:22:25.253314604 +0200 +++ /var/tmp/diff_new_pack.tU1tIU/_new 2017-04-12 18:22:25.253314604 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-gettext_i18n_rails_js # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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-gettext_i18n_rails_js -Version: 1.2.0 +Version: 1.3.0 Release: 0 %define mod_name gettext_i18n_rails_js %define mod_full_name %{mod_name}-%{version} ++++++ gettext_i18n_rails_js-1.2.0.gem -> gettext_i18n_rails_js-1.3.0.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md 2016-10-12 11:29:08.000000000 +0200 +++ new/CHANGELOG.md 2017-03-16 14:17:56.000000000 +0100 @@ -1,5 +1,11 @@ # Changelog +## [1.3.0](https://github.com/webhippie/gettext_i18n_rails_js/releases/tag/v1.3.0) - 2017-03-16 + +* Fixed Handlebars translations with options (@mikezaby) +* Fixed latest Rubocop offenses (@mikezaby) +* Dropped failing coveralls, fixed codeclimate (@tboerger) + ## [1.2.0](https://github.com/webhippie/gettext_i18n_rails_js/releases/tag/v1.2.0) - 2016-06-02 * Support for JSX files (@artemv) Binary 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_js/parser/handlebars.rb new/lib/gettext_i18n_rails_js/parser/handlebars.rb --- old/lib/gettext_i18n_rails_js/parser/handlebars.rb 2016-10-12 11:29:08.000000000 +0200 +++ new/lib/gettext_i18n_rails_js/parser/handlebars.rb 2017-03-16 14:17:57.000000000 +0100 @@ -62,15 +62,15 @@ # * Remaining arguments # * Function call closing parenthesis # - / \B[{]{2}( ([snN]?#{gettext_function}) \s+ ( - ".*?" - .*? + (["'])(?:\\?+.)*?\4 + (?:\s+(["'])(?:\\?+.)*?\5)? ) + .*? ) [}]{2} /x diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/gettext_i18n_rails_js/version.rb new/lib/gettext_i18n_rails_js/version.rb --- old/lib/gettext_i18n_rails_js/version.rb 2016-10-12 11:29:08.000000000 +0200 +++ new/lib/gettext_i18n_rails_js/version.rb 2017-03-16 14:17:57.000000000 +0100 @@ -26,7 +26,7 @@ module GettextI18nRailsJs class Version MAJOR = 1 - MINOR = 2 + MINOR = 3 PATCH = 0 PRE = nil diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2016-10-12 12:48:38.000000000 +0200 +++ new/metadata 2017-03-16 14:17:56.000000000 +0100 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: gettext_i18n_rails_js version: !ruby/object:Gem::Version - version: 1.2.0 + version: 1.3.0 platform: ruby authors: - Thomas Boerger @@ -9,7 +9,7 @@ autorequire: bindir: bin cert_chain: [] -date: 2016-10-12 00:00:00.000000000 Z +date: 2017-03-16 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: bundler @@ -178,18 +178,17 @@ version: '0' requirements: [] rubyforge_project: -rubygems_version: 2.2.5 +rubygems_version: 2.5.1 signing_key: specification_version: 4 summary: Extends gettext_i18n_rails making your .po files available to client side javascript as JSON test_files: -- spec/fixtures/example.js -- spec/fixtures/example.handlebars - spec/fixtures/example.coffee -- spec/support/with_file.rb -- spec/gettext_i18n_rails_js/parser/javascript_spec.rb +- spec/fixtures/example.handlebars +- spec/fixtures/example.js - spec/gettext_i18n_rails_js/parser/handlebars_spec.rb +- spec/gettext_i18n_rails_js/parser/javascript_spec.rb - spec/gettext_i18n_rails_js_spec.rb - spec/spec_helper.rb -has_rdoc: +- spec/support/with_file.rb diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/gettext_i18n_rails_js/parser/handlebars_spec.rb new/spec/gettext_i18n_rails_js/parser/handlebars_spec.rb --- old/spec/gettext_i18n_rails_js/parser/handlebars_spec.rb 2016-10-12 11:29:08.000000000 +0200 +++ new/spec/gettext_i18n_rails_js/parser/handlebars_spec.rb 2017-03-16 14:17:57.000000000 +0100 @@ -60,14 +60,14 @@ describe "#parse" do it "finds plural messages" do content = <<-EOF - <div>{{n__ "xxxx" "yyyy\" "zzzz" some_count}}</div> + <div>{{n__ "xxxx" "yyyy" some_count}}</div> EOF with_file content do |path| expect(parser.parse(path, [])).to( eq( [ - ["xxxx\000yyyy\000zzzz", "#{path}:1"] + ["xxxx\000yyyy", "#{path}:1"] ] ) ) @@ -76,7 +76,7 @@ it "finds namespaced messages" do content = <<-EOF - <div>{{__ "xxxx", "yyyy"}}</div> + <div>{{__ "xxxx" "yyyy"}}</div> EOF with_file content do |path| @@ -106,6 +106,22 @@ end end + it "finds single quote messages" do + content = <<-EOF + <div>{{__ 'blah'}}</div> + EOF + + with_file content do |path| + expect(parser.parse(path, [])).to( + eq( + [ + ["blah", "#{path}:1"] + ] + ) + ) + end + end + # it "finds messages with newlines/tabs" do # content = <<-EOF # bla = __("xxxx\n\tfoo") @@ -234,6 +250,24 @@ end end + it "does not parse options" do + content = <<-EOF + <div> + {{__ "test with %{param}" param="something"}} + </div> + EOF + + with_file content do |path| + expect(parser.parse(path, [])).to( + eq( + [ + ["test with %{param}", "#{path}:1"] + ] + ) + ) + end + end + # it "does not parse internal functions" do # content = <<-EOF # bla = n__("items (single)", "i (more)", item.count()) + __('foobar') @@ -279,7 +313,7 @@ <div> {{gettext \"Hello {yourname}\"}} <span> - {{ngettext \"item\", \"items\", 44}} + {{ngettext \"item\" \"items\" 44}} </span> </div> EOF diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/spec_helper.rb new/spec/spec_helper.rb --- old/spec/spec_helper.rb 2016-10-12 11:29:08.000000000 +0200 +++ new/spec/spec_helper.rb 2017-03-16 14:17:57.000000000 +0100 @@ -24,26 +24,10 @@ # require "simplecov" +require "codeclimate-test-reporter" if ENV["CODECLIMATE_REPO_TOKEN"] -if ENV["CODECLIMATE_REPO_TOKEN"] - require "coveralls" - require "codeclimate-test-reporter" - - Coveralls.wear! - CodeClimate::TestReporter.start - - SimpleCov.start do - add_filter "/spec" - - formatter SimpleCov::Formatter::MultiFormatter[ - SimpleCov::Formatter::HTMLFormatter, - CodeClimate::TestReporter::Formatter - ] - end -else - SimpleCov.start do - add_filter "/spec" - end +SimpleCov.start do + add_filter "/spec" end require "gettext_i18n_rails_js"