i18n_tyml 0.1.0 → 0.1.1

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: 47e8bbaaab4574efa9947e3b2754cb592fc5cee4
4
- data.tar.gz: 0cf63c876e223019c086a34b9d1f151f17c2cc5c
3
+ metadata.gz: 00df807ca8a1ea169a2a1a263e82b9431db48d1d
4
+ data.tar.gz: d1a771759a6617d377fc22f3b20a663608787106
5
5
  SHA512:
6
- metadata.gz: 7fb4aa855ff70b47831d3969688fdb487b1260b519e8d586df58d10cd017af41c98b89da39974e2c46cf0adb35a68319f1f0d1a10433cf75e55acaa0aea8f818
7
- data.tar.gz: 83048ec30caa158a77e1808cf98d10d58e9a3646d388cbd543b981638f34fa0cd00c4f79acbb11d169f79e64a6c42e494ac38b64f6eb6fb2e23efb97b7088a8d
6
+ metadata.gz: 121d91216a4379544a8ca1f5a61b683c491ede23da080e9986a51183bf6187bdee24f74b392fbb80149949622fd4747b07a239e6b7a95bec86d1db8ddd897408
7
+ data.tar.gz: aeae24a7567edef024f6b9ed5e7a1c8b268e01d0fe94a15e50de39e9b84a94595c7b8c7f4c2af7c26c866258110999788ec18c56343c2d70450e8bb80761c4ca
data/.gitignore CHANGED
@@ -12,3 +12,4 @@
12
12
  *.o
13
13
  *.a
14
14
  mkmf.log
15
+ *.gem
@@ -1,3 +1,3 @@
1
1
  module I18nTyml
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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
- [path, Dir.glob("#{path}/**/*.erb"), Dir.glob("#{path}/**/*.rb") ].flatten
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.0
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-01-21 00:00:00.000000000 Z
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.2.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: