same_table_translation 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32e909e75cb3ca1b02336ac136e18b289cd91c49
|
4
|
+
data.tar.gz: 0b619b5980f9e4d10acabf905c53d87539f79c7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7399d7f4e2f347a8770c90ef01c4131622548f9cc2e0c66ad81547e04ec57cf4abc171669d1a9d2b8b6a17f424c2aeba37c125f4e50c522c39273f73e8d9489d
|
7
|
+
data.tar.gz: 65f015ea7292927e1833ca04b0d597457197f1865ffc91af24db92877317b7749c0b78b29251e3453df806d43d26b93f71b45dfb3a96eb7be9640861259ee998
|
@@ -16,8 +16,8 @@ module SameTableTranslation
|
|
16
16
|
Time.now.utc.strftime("%Y%m%d%H%M%S")
|
17
17
|
end
|
18
18
|
|
19
|
-
def
|
20
|
-
migration_template "translate_migration.rb.erb", "db/migrate/#{
|
19
|
+
def copy_migration
|
20
|
+
migration_template "translate_migration.rb.erb", "db/migrate/#{migration_name}.rb"
|
21
21
|
end
|
22
22
|
|
23
23
|
protected
|
@@ -26,12 +26,8 @@ module SameTableTranslation
|
|
26
26
|
"translate_#{attachment_names.join("_")}_to_#{name.underscore.pluralize}"
|
27
27
|
end
|
28
28
|
|
29
|
-
def migration_file_name
|
30
|
-
"#{migration_name}.rb"
|
31
|
-
end
|
32
|
-
|
33
29
|
def migration_class_name
|
34
30
|
migration_name.camelize
|
35
31
|
end
|
36
32
|
end
|
37
|
-
end
|
33
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: same_table_translation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- antho1404
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: 'Translate a simple attribute in all your locales '
|
14
14
|
email:
|
@@ -17,7 +17,7 @@ executables: []
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
-
- .gitignore
|
20
|
+
- ".gitignore"
|
21
21
|
- Gemfile
|
22
22
|
- LICENSE.txt
|
23
23
|
- README.md
|
@@ -37,17 +37,17 @@ require_paths:
|
|
37
37
|
- lib
|
38
38
|
required_ruby_version: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- -
|
40
|
+
- - ">="
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: '0'
|
43
43
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
requirements: []
|
49
49
|
rubyforge_project:
|
50
|
-
rubygems_version: 2.
|
50
|
+
rubygems_version: 2.2.2
|
51
51
|
signing_key:
|
52
52
|
specification_version: 4
|
53
53
|
summary: This is similar to most of other translation plugin in rails but usefull
|