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 +4 -4
- data/lib/MotionLocalize.rb +1 -1
- data/lib/tasks/localize.rb +1 -3
- metadata +2 -17
- data/lib/MotionLocalize/android/yaml.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c31834ea2e5bcf2a5d66dec7180b0426383a3ba7
|
4
|
+
data.tar.gz: e06f5fe72bc1b4b5536be358dc87b59d801d9d74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56a09a52f0af3e3549ac68184274ae7ccf6d1f9dd6f9d50d5d92cb158639b6bd4735c8b1ce3d6e57b7dac0fda0ca3d442fad6dc12d1c5c43655fe8cb0bd537e9
|
7
|
+
data.tar.gz: 3d045d05c839210e47b0f661546d70cea3fc341348b19a92d8a707bb9f6bdf2b12442fa279a1e8d5f0e8e2fb3c4181c9bf13619dee06e924866a2b4d47dd18fd
|
data/lib/MotionLocalize.rb
CHANGED
@@ -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")
|
data/lib/tasks/localize.rb
CHANGED
@@ -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.
|
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-
|
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
|