i18n_tyml 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/i18n_tyml/version.rb +1 -1
- data/lib/i18n_tyml.rb +5 -2
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00df807ca8a1ea169a2a1a263e82b9431db48d1d
|
4
|
+
data.tar.gz: d1a771759a6617d377fc22f3b20a663608787106
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 121d91216a4379544a8ca1f5a61b683c491ede23da080e9986a51183bf6187bdee24f74b392fbb80149949622fd4747b07a239e6b7a95bec86d1db8ddd897408
|
7
|
+
data.tar.gz: aeae24a7567edef024f6b9ed5e7a1c8b268e01d0fe94a15e50de39e9b84a94595c7b8c7f4c2af7c26c866258110999788ec18c56343c2d70450e8bb80761c4ca
|
data/.gitignore
CHANGED
data/lib/i18n_tyml/version.rb
CHANGED
data/lib/i18n_tyml.rb
CHANGED
@@ -53,10 +53,13 @@ module I18nTyml
|
|
53
53
|
def target_files
|
54
54
|
path = @dest_path
|
55
55
|
path = path[0...-1] if path[-1..-1] == '/'
|
56
|
-
|
56
|
+
if File.directory?(path)
|
57
|
+
[Dir.glob("#{path}/**/*.erb"), Dir.glob("#{path}/**/*.rb") ].flatten
|
58
|
+
else
|
59
|
+
[path]
|
60
|
+
end
|
57
61
|
end
|
58
62
|
|
59
|
-
|
60
63
|
def read_content_of_file(file)
|
61
64
|
File.read(File.expand_path(file))
|
62
65
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: i18n_tyml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -94,11 +94,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
version: '0'
|
95
95
|
requirements: []
|
96
96
|
rubyforge_project:
|
97
|
-
rubygems_version: 2.
|
97
|
+
rubygems_version: 2.4.5
|
98
98
|
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: Parse I18n.t function call from view files, and output with yaml format.
|
101
101
|
test_files:
|
102
102
|
- spec/ruby_i18n_parser_spec.rb
|
103
103
|
- spec/spec_helper.rb
|
104
|
-
has_rdoc:
|