MotionLocalize 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 754d015dc32549b998d58b7ba69f1252b1278131
4
- data.tar.gz: d74c78c051da4eff580b71b9732494f579bf1cf1
3
+ metadata.gz: c31834ea2e5bcf2a5d66dec7180b0426383a3ba7
4
+ data.tar.gz: e06f5fe72bc1b4b5536be358dc87b59d801d9d74
5
5
  SHA512:
6
- metadata.gz: e2c6ff480f5e454c028f1519492b97e0fd0a8eaf4cf20bc1117d19a1d63c4f5f6b6f5f1e23100522e0d56daea01657597e997c1bdffaa9a85b16b1006a5d8067
7
- data.tar.gz: 567293377b9855103d9f47d95ed85567bb2cb299df27a0a5259b5256ed5fcc70fcdaa434f168ed343f283b12f830ab472bff044b040f9945c95d585eadc9c9ab
6
+ metadata.gz: 56a09a52f0af3e3549ac68184274ae7ccf6d1f9dd6f9d50d5d92cb158639b6bd4735c8b1ce3d6e57b7dac0fda0ca3d442fad6dc12d1c5c43655fe8cb0bd537e9
7
+ data.tar.gz: 3d045d05c839210e47b0f661546d70cea3fc341348b19a92d8a707bb9f6bdf2b12442fa279a1e8d5f0e8e2fb3c4181c9bf13619dee06e924866a2b4d47dd18fd
@@ -10,7 +10,7 @@ Motion::Project::App.setup do |app|
10
10
  app.files << File.join(lib_dir_path, "MotionLocalize/symbol.rb")
11
11
  if App.template.to_s =~ /\bios|osx\b/
12
12
  # remove localization from sugarcube
13
- app.files.reject! {|file| /sugarcube-localized/ =~ file }
13
+ app.files.flatten.reject! {|file| /sugarcube-localized/ =~ file }
14
14
  app.files << File.join(lib_dir_path, "MotionLocalize/cocoa/ns_string.rb")
15
15
  elsif App.template.to_s =~ /\bandroid\b/
16
16
  app.files << File.join(lib_dir_path, "MotionLocalize/android/string.rb")
@@ -2,10 +2,8 @@ desc "Convert translations to iOS or Android format"
2
2
  task :localize do
3
3
  cocoa = App.template.to_s =~ /\bios|osx\b/
4
4
  android = App.template.to_s =~ /\bandroid\b/
5
- if android
6
- require File.dirname(__FILE__) + '/../MotionLocalize/android/yaml'
7
- end
8
5
 
6
+ require 'yaml'
9
7
  files = Dir.glob("config/locales/*.yml")
10
8
 
11
9
  files.each do |file|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: MotionLocalize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Michotte
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-01 00:00:00.000000000 Z
11
+ date: 2015-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: motion-yaml
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '1.4'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '1.4'
41
27
  description: Easy localization for RubyMotion.
42
28
  email:
43
29
  - bmichotte@gmail.com
@@ -48,7 +34,6 @@ files:
48
34
  - README.md
49
35
  - lib/MotionLocalize.rb
50
36
  - lib/MotionLocalize/android/string.rb
51
- - lib/MotionLocalize/android/yaml.rb
52
37
  - lib/MotionLocalize/cocoa/ns_string.rb
53
38
  - lib/MotionLocalize/motion_localize.rb
54
39
  - lib/MotionLocalize/symbol.rb
@@ -1,15 +0,0 @@
1
- class YAML
2
- def self.load(content)
3
- hash = {}
4
- content.split("\n").each do |line|
5
- split = line.split(':')
6
- key = split[0].strip
7
- split[0] = nil
8
- value = split.compact.join(':').strip
9
-
10
- hash[key] = value
11
- end
12
-
13
- hash
14
- end
15
- end