i18n_tools 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/i18n_tools/railtie.rb +1 -1
- data/lib/i18n_tools/scanner.rb +6 -1
- data/lib/i18n_tools/tasks.rb +1 -0
- data/tasks/i18n_tools.rake +0 -2
- metadata +41 -31
data/lib/i18n_tools/railtie.rb
CHANGED
data/lib/i18n_tools/scanner.rb
CHANGED
@@ -3,7 +3,12 @@ module I18nTools
|
|
3
3
|
VIEW_REGEXPS = [/[^\w]t\(\"(.*?)\"(.*?)\)/, /[^\w]t\(\'(.*?)\'(.*?)\)/]
|
4
4
|
CODE_REGEXPS = [/I18n\.t\(\"(.*?)\"(.*?)\)/, /I18n\.t\(\'(.*?)\'(.*?)\)/]
|
5
5
|
|
6
|
-
|
6
|
+
def self.file_types
|
7
|
+
@@file_types
|
8
|
+
end
|
9
|
+
def self.file_types=(val)
|
10
|
+
@@file_types = val
|
11
|
+
end
|
7
12
|
self.file_types = ['controllers', 'helpers', 'models']
|
8
13
|
|
9
14
|
protected
|
@@ -0,0 +1 @@
|
|
1
|
+
Dir[File.join(File.dirname(__FILE__),'../../tasks/*.rake')].each { |f| load f }
|
data/tasks/i18n_tools.rake
CHANGED
metadata
CHANGED
@@ -1,66 +1,76 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: i18n_tools
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.2
|
3
|
+
version: !ruby/object:Gem::Version
|
5
4
|
prerelease:
|
5
|
+
version: 0.1.3
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Thomas Kadauke
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
12
|
+
|
13
|
+
date: 2013-05-17 00:00:00 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
15
16
|
name: ya2yaml
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
18
|
none: false
|
18
|
-
requirements:
|
19
|
-
- -
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version:
|
19
|
+
requirements:
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: "0"
|
22
23
|
type: :runtime
|
23
24
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ! '>='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
25
|
+
version_requirements: *id001
|
30
26
|
description:
|
31
27
|
email: thomas.kadauke@googlemail.com
|
32
28
|
executables: []
|
29
|
+
|
33
30
|
extensions: []
|
31
|
+
|
34
32
|
extra_rdoc_files: []
|
35
|
-
|
33
|
+
|
34
|
+
files:
|
36
35
|
- lib/i18n_tools/missing_scanner.rb
|
37
36
|
- lib/i18n_tools/railtie.rb
|
38
37
|
- lib/i18n_tools/scanner.rb
|
38
|
+
- lib/i18n_tools/tasks.rb
|
39
39
|
- lib/i18n_tools/unused_scanner.rb
|
40
40
|
- lib/i18n_tools.rb
|
41
41
|
- tasks/i18n_tools.rake
|
42
42
|
homepage:
|
43
43
|
licenses: []
|
44
|
+
|
44
45
|
post_install_message:
|
45
46
|
rdoc_options: []
|
46
|
-
|
47
|
+
|
48
|
+
require_paths:
|
47
49
|
- lib
|
48
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
50
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
49
51
|
none: false
|
50
|
-
requirements:
|
51
|
-
- -
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
|
54
|
-
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
hash: -1323069450172939162
|
56
|
+
segments:
|
57
|
+
- 0
|
58
|
+
version: "0"
|
59
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
60
|
none: false
|
56
|
-
requirements:
|
57
|
-
- -
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
hash: -1323069450172939162
|
65
|
+
segments:
|
66
|
+
- 0
|
67
|
+
version: "0"
|
60
68
|
requirements: []
|
69
|
+
|
61
70
|
rubyforge_project:
|
62
|
-
rubygems_version: 1.8.
|
71
|
+
rubygems_version: 1.8.19
|
63
72
|
signing_key:
|
64
73
|
specification_version: 3
|
65
74
|
summary: Tasks for extracting missing and unused translations from Rails projects
|
66
75
|
test_files: []
|
76
|
+
|