globalize3 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +5 -2
- data/lib/globalize/active_record/class_methods.rb +5 -1
- data/lib/globalize3/version.rb +1 -1
- metadata +10 -8
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
globalize3 (0.0.
|
4
|
+
globalize3 (0.0.9)
|
5
5
|
activemodel (>= 3.0.0)
|
6
6
|
activerecord (>= 3.0.0)
|
7
7
|
|
@@ -44,10 +44,13 @@ PLATFORMS
|
|
44
44
|
DEPENDENCIES
|
45
45
|
activemodel (>= 3.0.0)
|
46
46
|
activerecord (>= 3.0.0)
|
47
|
-
database_cleaner
|
47
|
+
database_cleaner (= 0.5.2)
|
48
48
|
globalize3!
|
49
49
|
mocha
|
50
50
|
pathname_local
|
51
51
|
ruby-debug
|
52
52
|
sqlite3-ruby
|
53
53
|
test_declarative
|
54
|
+
|
55
|
+
METADATA
|
56
|
+
version: 1.0.6
|
@@ -39,7 +39,11 @@ module Globalize
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def translation_class
|
42
|
-
klass = const_get(:Translation) rescue
|
42
|
+
klass = self.const_get(:Translation) rescue nil
|
43
|
+
if(klass.nil? || (klass.class_name != (self.class_name + "Translation")))
|
44
|
+
klass = self.const_set(:Translation, Class.new(Globalize::ActiveRecord::Translation))
|
45
|
+
end
|
46
|
+
|
43
47
|
if klass.table_name == 'translations'
|
44
48
|
klass.set_table_name(translation_options[:table_name])
|
45
49
|
klass.belongs_to name.underscore.gsub('/', '_')
|
data/lib/globalize3/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: globalize3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 10
|
10
|
+
version: 0.0.10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sven Fuchs
|
@@ -18,7 +18,7 @@ autorequire:
|
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
20
|
|
21
|
-
date: 2010-
|
21
|
+
date: 2010-11-30 00:00:00 +01:00
|
22
22
|
default_executable:
|
23
23
|
dependencies:
|
24
24
|
- !ruby/object:Gem::Dependency
|
@@ -59,12 +59,14 @@ dependencies:
|
|
59
59
|
requirement: &id003 !ruby/object:Gem::Requirement
|
60
60
|
none: false
|
61
61
|
requirements:
|
62
|
-
- - "
|
62
|
+
- - "="
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
hash:
|
64
|
+
hash: 15
|
65
65
|
segments:
|
66
66
|
- 0
|
67
|
-
|
67
|
+
- 5
|
68
|
+
- 2
|
69
|
+
version: 0.5.2
|
68
70
|
type: :development
|
69
71
|
version_requirements: *id003
|
70
72
|
- !ruby/object:Gem::Dependency
|
@@ -170,7 +172,7 @@ files:
|
|
170
172
|
- Rakefile
|
171
173
|
- README.textile
|
172
174
|
has_rdoc: true
|
173
|
-
homepage: http://github.com/svenfuchs/
|
175
|
+
homepage: http://github.com/svenfuchs/globalize3
|
174
176
|
licenses: []
|
175
177
|
|
176
178
|
post_install_message:
|