i18n_backend_sequel 0.1.0 → 0.2.0
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.
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/i18n_backend_sequel.gemspec +21 -20
- data/lib/{i18n_backend_sequel.rb → i18n/backend/sequel.rb} +6 -3
- data/lib/{i18n_backend_sequel → i18n/backend/sequel}/missing.rb +1 -1
- data/lib/{i18n_backend_sequel → i18n/backend/sequel}/store_procs.rb +0 -0
- data/lib/{i18n_backend_sequel → i18n/backend/sequel}/translation.rb +0 -0
- metadata +27 -13
- data/.gitignore +0 -21
data/Rakefile
CHANGED
@@ -12,6 +12,7 @@ begin
|
|
12
12
|
gem.summary = 'I18n backend which uses a Sequel Model'
|
13
13
|
gem.description = 'I18n backend which allows to store/get the translations from a database using a sequel.'
|
14
14
|
gem.add_dependency "sequel", ">= 3.0.0"
|
15
|
+
gem.add_dependency "i18n", ">= 0.5.0"
|
15
16
|
gem.add_development_dependency "rspec", ">= 1.2.9"
|
16
17
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
17
18
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
data/i18n_backend_sequel.gemspec
CHANGED
@@ -1,45 +1,43 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{i18n_backend_sequel}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.2.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Corin Langosch"]
|
12
|
-
s.date = %q{2010-09
|
12
|
+
s.date = %q{2010-12-09}
|
13
13
|
s.description = %q{I18n backend which allows to store/get the translations from a database using a sequel.}
|
14
14
|
s.email = %q{info@netskin.com}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
17
|
-
|
17
|
+
"README.rdoc"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
"spec/spec_helper.rb"
|
21
|
+
"LICENSE",
|
22
|
+
"README.rdoc",
|
23
|
+
"Rakefile",
|
24
|
+
"VERSION",
|
25
|
+
"i18n_backend_sequel.gemspec",
|
26
|
+
"lib/i18n/backend/sequel.rb",
|
27
|
+
"lib/i18n/backend/sequel/missing.rb",
|
28
|
+
"lib/i18n/backend/sequel/store_procs.rb",
|
29
|
+
"lib/i18n/backend/sequel/translation.rb",
|
30
|
+
"spec/i18n_backend_sequel_spec.rb",
|
31
|
+
"spec/spec.opts",
|
32
|
+
"spec/spec_helper.rb"
|
34
33
|
]
|
35
34
|
s.homepage = %q{http://github.com/gucki/i18n_backend_sequel}
|
36
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
37
35
|
s.require_paths = ["lib"]
|
38
36
|
s.rubygems_version = %q{1.3.7}
|
39
37
|
s.summary = %q{I18n backend which uses a Sequel Model}
|
40
38
|
s.test_files = [
|
41
|
-
"spec/
|
42
|
-
|
39
|
+
"spec/i18n_backend_sequel_spec.rb",
|
40
|
+
"spec/spec_helper.rb"
|
43
41
|
]
|
44
42
|
|
45
43
|
if s.respond_to? :specification_version then
|
@@ -48,13 +46,16 @@ Gem::Specification.new do |s|
|
|
48
46
|
|
49
47
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
50
48
|
s.add_runtime_dependency(%q<sequel>, [">= 3.0.0"])
|
49
|
+
s.add_runtime_dependency(%q<i18n>, [">= 0.5.0"])
|
51
50
|
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
52
51
|
else
|
53
52
|
s.add_dependency(%q<sequel>, [">= 3.0.0"])
|
53
|
+
s.add_dependency(%q<i18n>, [">= 0.5.0"])
|
54
54
|
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
55
55
|
end
|
56
56
|
else
|
57
57
|
s.add_dependency(%q<sequel>, [">= 3.0.0"])
|
58
|
+
s.add_dependency(%q<i18n>, [">= 0.5.0"])
|
58
59
|
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
59
60
|
end
|
60
61
|
end
|
@@ -1,9 +1,12 @@
|
|
1
|
+
require 'i18n'
|
2
|
+
require 'i18n/backend/base'
|
3
|
+
|
1
4
|
module I18n
|
2
5
|
module Backend
|
3
6
|
class Sequel
|
4
|
-
autoload :Missing, '
|
5
|
-
autoload :StoreProcs, '
|
6
|
-
autoload :Translation, '
|
7
|
+
autoload :Missing, 'i18n/backend/sequel/missing'
|
8
|
+
autoload :StoreProcs, 'i18n/backend/sequel/store_procs'
|
9
|
+
autoload :Translation, 'i18n/backend/sequel/translation'
|
7
10
|
|
8
11
|
module Implementation
|
9
12
|
include Base, Flatten
|
@@ -41,7 +41,7 @@ module I18n
|
|
41
41
|
key = normalize_flat_keys(locale, key, scope, separator)
|
42
42
|
|
43
43
|
if Sequel::Translation.locale(locale).lookup(key).empty?
|
44
|
-
interpolations = options.keys -
|
44
|
+
interpolations = options.keys - I18n::RESERVED_KEYS
|
45
45
|
keys = count ? I18n.t('i18n.plural.keys', :locale => locale).map { |k| [key, k].join(FLATTEN_SEPARATOR) } : [key]
|
46
46
|
keys.each { |key| store_default_translation(locale, key, interpolations) }
|
47
47
|
end
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
7
|
+
- 2
|
8
8
|
- 0
|
9
|
-
version: 0.
|
9
|
+
version: 0.2.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Corin Langosch
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-09
|
17
|
+
date: 2010-12-09 00:00:00 +00:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -33,9 +33,24 @@ dependencies:
|
|
33
33
|
type: :runtime
|
34
34
|
version_requirements: *id001
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
36
|
+
name: i18n
|
37
37
|
prerelease: false
|
38
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
segments:
|
44
|
+
- 0
|
45
|
+
- 5
|
46
|
+
- 0
|
47
|
+
version: 0.5.0
|
48
|
+
type: :runtime
|
49
|
+
version_requirements: *id002
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: rspec
|
52
|
+
prerelease: false
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
39
54
|
none: false
|
40
55
|
requirements:
|
41
56
|
- - ">="
|
@@ -46,7 +61,7 @@ dependencies:
|
|
46
61
|
- 9
|
47
62
|
version: 1.2.9
|
48
63
|
type: :development
|
49
|
-
version_requirements: *
|
64
|
+
version_requirements: *id003
|
50
65
|
description: I18n backend which allows to store/get the translations from a database using a sequel.
|
51
66
|
email: info@netskin.com
|
52
67
|
executables: []
|
@@ -58,16 +73,15 @@ extra_rdoc_files:
|
|
58
73
|
- README.rdoc
|
59
74
|
files:
|
60
75
|
- .document
|
61
|
-
- .gitignore
|
62
76
|
- LICENSE
|
63
77
|
- README.rdoc
|
64
78
|
- Rakefile
|
65
79
|
- VERSION
|
66
80
|
- i18n_backend_sequel.gemspec
|
67
|
-
- lib/
|
68
|
-
- lib/
|
69
|
-
- lib/
|
70
|
-
- lib/
|
81
|
+
- lib/i18n/backend/sequel.rb
|
82
|
+
- lib/i18n/backend/sequel/missing.rb
|
83
|
+
- lib/i18n/backend/sequel/store_procs.rb
|
84
|
+
- lib/i18n/backend/sequel/translation.rb
|
71
85
|
- spec/i18n_backend_sequel_spec.rb
|
72
86
|
- spec/spec.opts
|
73
87
|
- spec/spec_helper.rb
|
@@ -76,8 +90,8 @@ homepage: http://github.com/gucki/i18n_backend_sequel
|
|
76
90
|
licenses: []
|
77
91
|
|
78
92
|
post_install_message:
|
79
|
-
rdoc_options:
|
80
|
-
|
93
|
+
rdoc_options: []
|
94
|
+
|
81
95
|
require_paths:
|
82
96
|
- lib
|
83
97
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -104,5 +118,5 @@ signing_key:
|
|
104
118
|
specification_version: 3
|
105
119
|
summary: I18n backend which uses a Sequel Model
|
106
120
|
test_files:
|
107
|
-
- spec/spec_helper.rb
|
108
121
|
- spec/i18n_backend_sequel_spec.rb
|
122
|
+
- spec/spec_helper.rb
|