simple_po_parser 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b7a33f4b10faa83677bce933ae9a517130e7b69
4
- data.tar.gz: 3c79c5d7e32c58db9a1556b8681bb52743214b85
3
+ metadata.gz: 145b9c1db6de2e03d5eab7a4b04297cb418af047
4
+ data.tar.gz: f6cbc4211bc7bb482794c7d620585f8cab1dddba
5
5
  SHA512:
6
- metadata.gz: 18cd57e0e5fd0d05926eef3c400430fced95ee98201c29b9b61e41d258245f3dd12baefd29a2dc5caefd7ca8ef4979b49a6ca8c9a726432a0f2560b72cbc0987
7
- data.tar.gz: 35450f6ea2e0e0ab58bedd3458681a66d05fa75eddfa6ad3b9be31b7a65f2621caab70b79859c7a04f3002b503e8390b740f0a8349a13ba5fe824b745d7b9501
6
+ metadata.gz: 60479f02418e32487fa9151b8c4a44cc38e3a701174d4201d4335668e4fb08674810ad6a759e2e3aed0979e457a17ed430ea90ed12ef3386e34069539e51407f
7
+ data.tar.gz: 16984994b33283f09fe363d204f7830351ccd11fe9293ab32c380c534970d7c76d4d36bc69a3fe917c788c3268aaeeef5408b7a348e0a047cfd43a3c5525ece2
data/README.md CHANGED
@@ -6,6 +6,8 @@
6
6
 
7
7
  This is a simple PO file to ruby hash parser, which complies with [GNU PO file specification](https://www.gnu.org/software/gettext/manual/html_node/PO-Files.html). Tested with the msgcat (GNU gettext-tools) 0.18.3 tool.
8
8
 
9
+ The parser is probably as optimized for speed as possible with pure ruby, while parsing all different PO types into seperate keys. It was written as a "core-replacement" for an equivalent parslet PEG parser for [arashm/PoParser](https://github.com/arashm/PoParser) and benchmarked about 500 times faster.
10
+
9
11
  ## Usage
10
12
 
11
13
  The parser can be used in two ways:
data/Rakefile CHANGED
@@ -1,13 +1,12 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'rubygems'
2
4
  require 'rake'
3
5
  require 'rspec/core/rake_task'
6
+ require 'bundler/gem_tasks'
4
7
 
5
- RSpec::Core::RakeTask.new(:spec)
6
8
  task :default => :spec
7
9
 
8
- require 'geminabox-release'
9
- GeminaboxRelease.patch(:use_config => true, :remove_release => false)
10
-
11
10
  desc "Generate a random po file to \"test/benchmark.po\". Takes optional rake args for number of entries"
12
11
  task 'generate_random_pofile', :messages, :obsoletes do |t, args|
13
12
  args.with_defaults(:messages => "200", :obsoletes => "10")
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'simple_po_parser/error'
2
4
  require 'simple_po_parser/parser'
3
5
  require 'simple_po_parser/tokenizer'
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  module SimplePoParser
2
4
  class ParserError < StandardError
3
5
  end
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  module SimplePoParser
2
4
  # Fast parser directly using Rubys powerful StringScanner (strscan)
3
5
  #
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  module SimplePoParser
2
4
  # Split a PO file into single PO message entities (a message is seperated by two newline)
3
5
  class Tokenizer
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  module SimplePoParser
2
- VERSION = "1.1.2"
4
+ VERSION = "1.1.3"
3
5
  end
@@ -21,6 +21,4 @@ Gem::Specification.new do |spec|
21
21
  # Development deps
22
22
  spec.add_development_dependency "bundler", ">= 0"
23
23
  spec.add_development_dependency "rake", ">= 0"
24
- # geminabox release
25
- spec.add_development_dependency 'geminabox-release', "0.2.1"
26
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_po_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dennis-Florian Herr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-31 00:00:00.000000000 Z
11
+ date: 2017-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: geminabox-release
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - '='
46
- - !ruby/object:Gem::Version
47
- version: 0.2.1
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - '='
53
- - !ruby/object:Gem::Version
54
- version: 0.2.1
55
41
  description: A simple PO file to ruby hash parser . PO files are translation files
56
42
  generated by GNU/Gettext tool.
57
43
  email:
@@ -65,7 +51,6 @@ files:
65
51
  - ".travis.yml"
66
52
  - CHANGELOG.md
67
53
  - Gemfile
68
- - Gemfile.lock
69
54
  - LICENSE.txt
70
55
  - README.md
71
56
  - Rakefile
@@ -105,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
90
  version: '0'
106
91
  requirements: []
107
92
  rubyforge_project:
108
- rubygems_version: 2.4.5.2
93
+ rubygems_version: 2.6.11
109
94
  signing_key:
110
95
  specification_version: 4
111
96
  summary: A simple PO file to ruby hash parser