Hello community,
here is the log from the commit of package rubygem-po_to_json for
openSUSE:Factory checked in at 2015-03-25 10:00:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-po_to_json (Old)
and /work/SRC/openSUSE:Factory/.rubygem-po_to_json.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-po_to_json"
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-po_to_json/rubygem-po_to_json.changes
2015-02-22 17:26:41.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-po_to_json.new/rubygem-po_to_json.changes
2015-03-25 10:00:32.000000000 +0100
@@ -1,0 +2,6 @@
+Fri Mar 20 20:42:31 UTC 2015 - [email protected]
+
+- updated to version 1.0.0
+ * BREAKING: Made result compatible to current Jed (#4)
+
+-------------------------------------------------------------------
Old:
----
po_to_json-0.1.0.gem
New:
----
po_to_json-1.0.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-po_to_json.spec ++++++
--- /var/tmp/diff_new_pack.ryBTjz/_old 2015-03-25 10:00:32.000000000 +0100
+++ /var/tmp/diff_new_pack.ryBTjz/_new 2015-03-25 10:00:32.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-po_to_json
#
-# Copyright (c) 2015 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,13 +24,13 @@
#
Name: rubygem-po_to_json
-Version: 0.1.0
+Version: 1.0.0
Release: 0
%define mod_name po_to_json
%define mod_full_name %{mod_name}-%{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
+BuildRequires: %{ruby >= 1.9.3}
BuildRequires: %{rubygem gem2rpm}
-BuildRequires: %{ruby}
BuildRequires: ruby-macros >= 5
Url: https://github.com/webhippie/po_to_json
Source: http://rubygems.org/gems/%{mod_full_name}.gem
@@ -49,7 +49,7 @@
%install
%gem_install \
- --doc-files="CHANGELOG.md README.md LICENSE" \
+ --doc-files="CHANGELOG.md LICENSE README.md" \
-f
%gem_packages
++++++ po_to_json-0.1.0.gem -> po_to_json-1.0.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 1970-01-01 01:00:00.000000000 +0100
+++ new/CHANGELOG.md 2015-03-19 11:51:25.000000000 +0100
@@ -1,5 +1,9 @@
# Changelog
+## [1.0.0](https://github.com/webhippie/po_to_json/releases/tag/v0.1.0) -
2015-03-19
+
+* BREAKING: Made result compatible to current Jed (#4)
+
## [0.1.0](https://github.com/webhippie/po_to_json/releases/tag/v0.1.0) -
2015-02-19
* Transfer from github.com/nubis/po_to_json
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/po_to_json/version.rb
new/lib/po_to_json/version.rb
--- old/lib/po_to_json/version.rb 1970-01-01 01:00:00.000000000 +0100
+++ new/lib/po_to_json/version.rb 2015-03-19 11:51:25.000000000 +0100
@@ -25,8 +25,8 @@
class PoToJson
class Version
- MAJOR = 0
- MINOR = 1
+ MAJOR = 1
+ MINOR = 0
PATCH = 0
PRE = nil
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/po_to_json.rb new/lib/po_to_json.rb
--- old/lib/po_to_json.rb 1970-01-01 01:00:00.000000000 +0100
+++ new/lib/po_to_json.rb 2015-03-19 11:51:25.000000000 +0100
@@ -98,7 +98,7 @@
def parse_header
return if reject_header
- values[""][1].split("\\n").each do |line|
+ values[""][0].split("\\n").each do |line|
next if line.empty?
build_header_for(line)
end
@@ -107,7 +107,7 @@
end
def reject_header
- if values[""].nil? || values[""][1].nil?
+ if values[""].nil? || values[""][0].nil?
values[""] = {}
true
else
@@ -173,11 +173,11 @@
trans[$1.to_i] = string if key.to_s.match(/^msgstr_(\d+)/)
end
- trans.unshift(detect_plural)
+ # trans.unshift(detect_plural) if detect_plural
end
def assign_trans
- values[detect_ctxt] = trans if trans.size > 1
+ values[detect_ctxt] = trans if trans.size > 0
end
def push_buffer(value, key = nil)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 1970-01-01 01:00:00.000000000 +0100
+++ new/metadata 2015-03-19 11:51:25.000000000 +0100
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: po_to_json
version: !ruby/object:Gem::Version
- version: 0.1.0
+ version: 1.0.0
platform: ruby
authors:
- Thomas Boerger
@@ -9,76 +9,76 @@
autorequire:
bindir: bin
cert_chain: []
-date: 2015-02-20 00:00:00.000000000 Z
+date: 2015-03-19 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: bundler
requirement: !ruby/object:Gem::Requirement
requirements:
- - - '>='
+ - - ">="
- !ruby/object:Gem::Version
version: '0'
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - - '>='
+ - - ">="
- !ruby/object:Gem::Version
version: '0'
- !ruby/object:Gem::Dependency
name: rake
requirement: !ruby/object:Gem::Requirement
requirements:
- - - '>='
+ - - ">="
- !ruby/object:Gem::Version
version: '0'
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - - '>='
+ - - ">="
- !ruby/object:Gem::Version
version: '0'
- !ruby/object:Gem::Dependency
name: yard
requirement: !ruby/object:Gem::Requirement
requirements:
- - - '>='
+ - - ">="
- !ruby/object:Gem::Version
version: '0'
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - - '>='
+ - - ">="
- !ruby/object:Gem::Version
version: '0'
- !ruby/object:Gem::Dependency
name: rspec
requirement: !ruby/object:Gem::Requirement
requirements:
- - - '>='
+ - - ">="
- !ruby/object:Gem::Version
version: '0'
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - - '>='
+ - - ">="
- !ruby/object:Gem::Version
version: '0'
- !ruby/object:Gem::Dependency
name: json
requirement: !ruby/object:Gem::Requirement
requirements:
- - - '>='
+ - - ">="
- !ruby/object:Gem::Version
version: 1.6.0
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - - '>='
+ - - ">="
- !ruby/object:Gem::Version
version: 1.6.0
description: |2
@@ -92,13 +92,13 @@
extra_rdoc_files: []
files:
- CHANGELOG.md
-- README.md
- LICENSE
+- README.md
- lib/po_to_json.rb
- lib/po_to_json/version.rb
-- spec/spec_helper.rb
- spec/fixtures/test.po
- spec/po_to_json_spec.rb
+- spec/spec_helper.rb
homepage: https://github.com/webhippie/po_to_json
licenses:
- MIT
@@ -109,22 +109,22 @@
- lib
required_ruby_version: !ruby/object:Gem::Requirement
requirements:
- - - '>='
+ - - ">="
- !ruby/object:Gem::Version
- version: '0'
+ version: 1.9.3
required_rubygems_version: !ruby/object:Gem::Requirement
requirements:
- - - '>='
+ - - ">="
- !ruby/object:Gem::Version
version: '0'
requirements: []
rubyforge_project:
-rubygems_version: 2.0.3
+rubygems_version: 2.4.5
signing_key:
specification_version: 4
summary: Convert gettext PO files to JSON
test_files:
-- spec/spec_helper.rb
- spec/fixtures/test.po
- spec/po_to_json_spec.rb
+- spec/spec_helper.rb
has_rdoc:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/spec/fixtures/test.po new/spec/fixtures/test.po
--- old/spec/fixtures/test.po 1970-01-01 01:00:00.000000000 +0100
+++ new/spec/fixtures/test.po 2015-03-19 11:51:25.000000000 +0100
@@ -12,17 +12,17 @@
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: app/helpers/translation_helper.rb:3
msgid "%{relative_time} ago"
msgstr "vor %{relative_time}"
#: app/views/cars/show.html.erb:5
-msgid "Axis"
-msgid_plural "Axis"
-msgstr[0] "Achse"
-msgstr[1] "Achsen"
+msgid "1 Axis"
+msgid_plural "%{num} Axis"
+msgstr[0] "1 Achse"
+msgstr[1] "%{num} Achsen"
#: app/controllers/cars_controller.rb:47
msgid "Car was successfully created."
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/spec/po_to_json_spec.rb new/spec/po_to_json_spec.rb
--- old/spec/po_to_json_spec.rb 1970-01-01 01:00:00.000000000 +0100
+++ new/spec/po_to_json_spec.rb 2015-03-19 11:51:25.000000000 +0100
@@ -45,71 +45,71 @@
it "should parse embedded variables" do
expect(subject["%{relative_time} ago"]).to(
- eq([nil, "vor %{relative_time}"])
+ eq(["vor %{relative_time}"])
)
end
it "should match pluralizations" do
- expect(subject["Axis"]).to(
- eq(["Axis", "Achse", "Achsen"])
+ expect(subject["1 Axis"]).to(
+ eq(["1 Achse", "%{num} Achsen"])
)
end
it "should match glued values" do
expect(subject["Car|Model"]).to(
- eq([nil, "Modell"])
+ eq(["Modell"])
)
end
it "should match embedded glue" do
expect(subject["Car|Wheels count"]).to(
- eq([nil, "Räderzahl"])
+ eq(["Räderzahl"])
)
end
it "should return empty strings as well" do
expect(subject["Untranslated"]).to(
- eq([nil, ""])
+ eq([""])
)
end
it "should match german umlauts" do
expect(subject["Umläüte"]).to(
- eq([nil, "Umlaute"])
+ eq(["Umlaute"])
)
end
it "should match escaped values" do
expect(subject["You should escape '\\\\' as '\\\\\\\\'."]).to(
- eq([nil, "Du solltest '\\\\' als '\\\\\\\\' escapen."])
+ eq(["Du solltest '\\\\' als '\\\\\\\\' escapen."])
)
end
it "should match multiline translations" do
expect(subject["this is a dynamic translation which was found!"]).to(
- eq([nil, "Dies ist eine dynamische Übersetzung, die gefunden wurde!"])
+ eq(["Dies ist eine dynamische Übersetzung, die gefunden wurde!"])
)
end
it "should match simple strings" do
expect(subject["Car was successfully created."]).to(
- eq([nil, "Auto wurde erfolgreich gespeichert"])
+ eq(["Auto wurde erfolgreich gespeichert"])
)
expect(subject["Car was successfully updated."]).to(
- eq([nil, "Auto wurde erfolgreich aktualisiert"])
+ eq(["Auto wurde erfolgreich aktualisiert"])
)
expect(subject["Created"]).to(
- eq([nil, "Erstellt"])
+ eq(["Erstellt"])
)
expect(subject["Month"]).to(
- eq([nil, "Monat"])
+ eq(["Monat"])
)
expect(subject["car"]).to(
- eq([nil, "Auto"])
+ eq(["Auto"])
)
end
end
@@ -139,7 +139,7 @@
end
it "should include pluralization" do
- val = '"plural_forms":"nplurals=INTEGER; plural=EXPRESSION;"'
+ val = '"plural_forms":"nplurals=2; plural=(n != 1);"'
expect(
subject.include? val
).to be_truthy
@@ -176,7 +176,7 @@
end
it "should include pluralization" do
- val = '"plural_forms": "nplurals=INTEGER; plural=EXPRESSION;"'
+ val = '"plural_forms": "nplurals=2; plural=(n != 1);"'
expect(
subject.include? val
).to be_truthy
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]