activerecord_translatable 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.rdoc +42 -22
- data/lib/activerecord_translatable.rb +18 -1
- data/lib/activerecord_translatable/extension.rb +48 -20
- data/lib/version.rb +5 -0
- data/spec/activerecord_translateable_spec.rb +61 -4
- data/spec/dummy/app/models/foo.rb +2 -0
- data/spec/dummy/app/models/noarraything.rb +4 -0
- data/spec/dummy/app/models/something.rb +0 -2
- data/spec/dummy/config/database.yml +3 -3
- data/spec/dummy/db/migrate/20130124094113_create_foo.rb +7 -0
- data/spec/dummy/db/migrate/20130124100555_create_noarraythings.rb +9 -0
- data/spec/dummy/db/schema.rb +12 -1
- data/spec/dummy/log/development.log +373 -46
- data/spec/dummy/log/test.log +5991 -0
- metadata +36 -29
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord_translatable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Philipp Fehre
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-06-10 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rails
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,57 +20,64 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 3.2.8
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activerecord
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
30
41
|
- !ruby/object:Gem::Dependency
|
31
42
|
name: pg
|
32
43
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
44
|
requirements:
|
35
|
-
- -
|
45
|
+
- - '>='
|
36
46
|
- !ruby/object:Gem::Version
|
37
47
|
version: '0'
|
38
48
|
type: :development
|
39
49
|
prerelease: false
|
40
50
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
51
|
requirements:
|
43
|
-
- -
|
52
|
+
- - '>='
|
44
53
|
- !ruby/object:Gem::Version
|
45
54
|
version: '0'
|
46
55
|
- !ruby/object:Gem::Dependency
|
47
56
|
name: activerecord-postgres-array
|
48
57
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
58
|
requirements:
|
51
|
-
- -
|
59
|
+
- - '>='
|
52
60
|
- !ruby/object:Gem::Version
|
53
61
|
version: '0'
|
54
62
|
type: :development
|
55
63
|
prerelease: false
|
56
64
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
65
|
requirements:
|
59
|
-
- -
|
66
|
+
- - '>='
|
60
67
|
- !ruby/object:Gem::Version
|
61
68
|
version: '0'
|
62
69
|
- !ruby/object:Gem::Dependency
|
63
70
|
name: rspec-rails
|
64
71
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
72
|
requirements:
|
67
|
-
- -
|
73
|
+
- - '>='
|
68
74
|
- !ruby/object:Gem::Version
|
69
75
|
version: '0'
|
70
76
|
type: :development
|
71
77
|
prerelease: false
|
72
78
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
79
|
requirements:
|
75
|
-
- -
|
80
|
+
- - '>='
|
76
81
|
- !ruby/object:Gem::Version
|
77
82
|
version: '0'
|
78
83
|
description: translatable activerecord attributes
|
@@ -84,6 +89,7 @@ extra_rdoc_files: []
|
|
84
89
|
files:
|
85
90
|
- lib/activerecord_translatable/extension.rb
|
86
91
|
- lib/activerecord_translatable.rb
|
92
|
+
- lib/version.rb
|
87
93
|
- MIT-LICENSE
|
88
94
|
- Rakefile
|
89
95
|
- README.rdoc
|
@@ -92,6 +98,8 @@ files:
|
|
92
98
|
- spec/dummy/app/assets/stylesheets/application.css
|
93
99
|
- spec/dummy/app/controllers/application_controller.rb
|
94
100
|
- spec/dummy/app/helpers/application_helper.rb
|
101
|
+
- spec/dummy/app/models/foo.rb
|
102
|
+
- spec/dummy/app/models/noarraything.rb
|
95
103
|
- spec/dummy/app/models/something.rb
|
96
104
|
- spec/dummy/app/views/layouts/application.html.erb
|
97
105
|
- spec/dummy/config/application.rb
|
@@ -112,6 +120,8 @@ files:
|
|
112
120
|
- spec/dummy/config/routes.rb
|
113
121
|
- spec/dummy/config.ru
|
114
122
|
- spec/dummy/db/migrate/20121015083259_create_somethings.rb
|
123
|
+
- spec/dummy/db/migrate/20130124094113_create_foo.rb
|
124
|
+
- spec/dummy/db/migrate/20130124100555_create_noarraythings.rb
|
115
125
|
- spec/dummy/db/schema.rb
|
116
126
|
- spec/dummy/log/development.log
|
117
127
|
- spec/dummy/log/test.log
|
@@ -125,33 +135,26 @@ files:
|
|
125
135
|
- spec/spec_helper.rb
|
126
136
|
homepage: http://github.com/sideshowcoder/activerecord_translatable
|
127
137
|
licenses: []
|
138
|
+
metadata: {}
|
128
139
|
post_install_message:
|
129
140
|
rdoc_options: []
|
130
141
|
require_paths:
|
131
142
|
- lib
|
132
143
|
required_ruby_version: !ruby/object:Gem::Requirement
|
133
|
-
none: false
|
134
144
|
requirements:
|
135
|
-
- -
|
145
|
+
- - '>='
|
136
146
|
- !ruby/object:Gem::Version
|
137
147
|
version: '0'
|
138
|
-
segments:
|
139
|
-
- 0
|
140
|
-
hash: -3909879885711798376
|
141
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
|
-
none: false
|
143
149
|
requirements:
|
144
|
-
- -
|
150
|
+
- - '>='
|
145
151
|
- !ruby/object:Gem::Version
|
146
152
|
version: '0'
|
147
|
-
segments:
|
148
|
-
- 0
|
149
|
-
hash: -3909879885711798376
|
150
153
|
requirements: []
|
151
154
|
rubyforge_project:
|
152
|
-
rubygems_version:
|
155
|
+
rubygems_version: 2.0.0
|
153
156
|
signing_key:
|
154
|
-
specification_version:
|
157
|
+
specification_version: 4
|
155
158
|
summary: make attributes of active record translatable via the normal i18n backend
|
156
159
|
test_files:
|
157
160
|
- spec/activerecord_translateable_spec.rb
|
@@ -159,6 +162,8 @@ test_files:
|
|
159
162
|
- spec/dummy/app/assets/stylesheets/application.css
|
160
163
|
- spec/dummy/app/controllers/application_controller.rb
|
161
164
|
- spec/dummy/app/helpers/application_helper.rb
|
165
|
+
- spec/dummy/app/models/foo.rb
|
166
|
+
- spec/dummy/app/models/noarraything.rb
|
162
167
|
- spec/dummy/app/models/something.rb
|
163
168
|
- spec/dummy/app/views/layouts/application.html.erb
|
164
169
|
- spec/dummy/config/application.rb
|
@@ -179,6 +184,8 @@ test_files:
|
|
179
184
|
- spec/dummy/config/routes.rb
|
180
185
|
- spec/dummy/config.ru
|
181
186
|
- spec/dummy/db/migrate/20121015083259_create_somethings.rb
|
187
|
+
- spec/dummy/db/migrate/20130124094113_create_foo.rb
|
188
|
+
- spec/dummy/db/migrate/20130124100555_create_noarraythings.rb
|
182
189
|
- spec/dummy/db/schema.rb
|
183
190
|
- spec/dummy/log/development.log
|
184
191
|
- spec/dummy/log/test.log
|