aigu 0.4.2 → 0.4.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: 1df8fa29f2c2d4944edec253d55c2487878ed074
4
- data.tar.gz: b6a98ebf9faedfe1ccc062647c556241d9eed539
3
+ metadata.gz: eac535ebe6faefec0c2da69698309d5f2a98f6f6
4
+ data.tar.gz: 2746a44b55270cbf60a67edf5f9370a008da918f
5
5
  SHA512:
6
- metadata.gz: f0c6543b338326308b654c2c947cf6902f4ccf9a7183b6dd43247a66b47d3c361002fcddc0c7f66ebcbe859fb361707d0d483c89608b0a8a1f83702f06438c1c
7
- data.tar.gz: f5c31a55e98835fe503dcd68162ff2fd05a51f5df571af60b655bed95117f7f9610939e1058abca51588ff07b1f834b09d1cbfdea27c8b031d1f50a9fdcef561
6
+ metadata.gz: bbf11e1e3214c658c24f897ddb223a2710b508331e3f5198ff17952262eb19141021a4b56aa31633344e9f3638858fa49115de7e924e479ce9197cbcaec85065
7
+ data.tar.gz: ba28a3484fd6e84abd5b3b92add340ea64baba68e9aabb4017b3117ecf4b67fca79a666fc145006d88dd63b1ec0025eb13c0d8072e111b88666f1da06a7bdfcb
data/lib/aigu.rb CHANGED
@@ -5,6 +5,9 @@ require 'fileutils'
5
5
  require 'json'
6
6
  require 'yaml'
7
7
  require 'nokogiri'
8
+ require 'net/http'
9
+ require 'uri'
10
+ require 'openssl'
8
11
 
9
12
  require 'aigu/extensions/hash'
10
13
  require 'aigu/cli'
@@ -61,7 +61,7 @@ module Aigu
61
61
  if value.is_a?(Array)
62
62
  xml << ' <string-array name=' << key.encode(xml: :attr) << ">\n"
63
63
  value.each do |item|
64
- xml << ' <item>' << item.encode(xml: :text) << "</item>\n"
64
+ xml << ' <item>' << item.encode(xml: :text) << "</item>\n" if item
65
65
  end
66
66
  xml << " </string-array>\n"
67
67
  elsif value.is_a?(String)
@@ -1,6 +1,6 @@
1
1
  module Aigu
2
2
  class CoreExporter
3
- ENUM_LINE_REGEX = /^\s*(?<key>\w+)\s?\("(?<value_en>.*)",\s?"(?<value_fr>.*)"\),?\s$/
3
+ ENUM_LINE_REGEX = /^\s*(?<key>\w+)\s?\("(?<value_en>.*)",\s?"(?<value_fr>.*)"\)[,;]?\s$/
4
4
 
5
5
  def initialize(opts = {})
6
6
  @output_file = opts[:'output-file']
@@ -1,6 +1,6 @@
1
1
  module Aigu
2
2
  class CoreImporter
3
- ENUM_LINE_REGEX = /^\s*(?<key>\w+)\s?\("(?<value_en>.*)",\s?"(?<value_fr>.*)"\)(?<comma>,?)\s$/
3
+ ENUM_LINE_REGEX = /^\s*(?<key>\w+)\s?\("(?<value_en>.*)",\s?"(?<value_fr>.*)"\)(?<comma>[,;]?)\s$/
4
4
 
5
5
  def initialize(opts = {})
6
6
  @input_file = opts[:'input-file']
data/lib/aigu/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Aigu
2
- VERSION = '0.4.2'
2
+ VERSION = '0.4.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aigu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rémi Prévost
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-11-21 00:00:00.000000000 Z
12
+ date: 2015-03-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler