emipair-merb_global 0.0.3 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/.rvmrc +5 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +76 -0
- data/HISTORY +10 -0
- data/Rakefile +9 -40
- data/emipair-merb_global.gemspec +46 -0
- data/lib/merb_global/controller.rb +4 -4
- data/lib/merb_global/message_providers/yaml.rb +27 -29
- data/lib/merb_global/version.rb +5 -0
- data/spec/message_providers/gettext_spec.rb +1 -1
- data/spec/spec_helper.rb +2 -3
- metadata +281 -41
- data/VERSION +0 -1
- data/config/geminstaller.yml +0 -35
data/.gitignore
CHANGED
data/.rvmrc
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
emipair-merb_global (0.0.9)
|
5
|
+
merb-core (>= 0.9.1)
|
6
|
+
treetop (~> 1.2.3)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: http://rubygems.org/
|
10
|
+
specs:
|
11
|
+
abstract (1.0.0)
|
12
|
+
activerecord (2.3.4)
|
13
|
+
activesupport (= 2.3.4)
|
14
|
+
activesupport (2.3.4)
|
15
|
+
addressable (2.0.2)
|
16
|
+
composite_primary_keys (2.3.2)
|
17
|
+
activerecord (>= 2.3.2)
|
18
|
+
data_objects (0.9.11)
|
19
|
+
addressable (~> 2.0)
|
20
|
+
extlib (~> 0.9.9)
|
21
|
+
dm-aggregates (0.9.11)
|
22
|
+
dm-core (= 0.9.11)
|
23
|
+
dm-core (0.9.11)
|
24
|
+
addressable (~> 2.0.2)
|
25
|
+
data_objects (~> 0.9.11)
|
26
|
+
extlib (~> 0.9.11)
|
27
|
+
dm-validations (0.9.11)
|
28
|
+
dm-core (= 0.9.11)
|
29
|
+
do_sqlite3 (0.9.11)
|
30
|
+
data_objects (= 0.9.11)
|
31
|
+
erubis (2.6.6)
|
32
|
+
abstract (>= 1.0.0)
|
33
|
+
extlib (0.9.15)
|
34
|
+
gettext (2.0.4)
|
35
|
+
locale (>= 2.0.4)
|
36
|
+
locale (2.0.4)
|
37
|
+
merb-core (1.1.3)
|
38
|
+
bundler
|
39
|
+
erubis (>= 2.6.2)
|
40
|
+
extlib (>= 0.9.13)
|
41
|
+
mime-types (>= 1.16)
|
42
|
+
rack
|
43
|
+
rake
|
44
|
+
mime-types (1.16)
|
45
|
+
mocha (0.9.8)
|
46
|
+
rake
|
47
|
+
polyglot (0.3.1)
|
48
|
+
rack (1.2.1)
|
49
|
+
rake (0.8.7)
|
50
|
+
rcov (0.9.9)
|
51
|
+
rspec (1.3.0)
|
52
|
+
sequel (2.9.0)
|
53
|
+
sqlite3-ruby (1.3.2)
|
54
|
+
treetop (1.2.6)
|
55
|
+
polyglot (>= 0.2.5)
|
56
|
+
|
57
|
+
PLATFORMS
|
58
|
+
ruby
|
59
|
+
|
60
|
+
DEPENDENCIES
|
61
|
+
activerecord (= 2.3.4)
|
62
|
+
activesupport (= 2.3.4)
|
63
|
+
composite_primary_keys (= 2.3.2)
|
64
|
+
dm-aggregates (= 0.9.11)
|
65
|
+
dm-validations (= 0.9.11)
|
66
|
+
do_sqlite3 (= 0.9.11)
|
67
|
+
emipair-merb_global!
|
68
|
+
gettext (= 2.0.4)
|
69
|
+
locale (= 2.0.4)
|
70
|
+
merb-core (>= 0.9.1)
|
71
|
+
mocha (= 0.9.8)
|
72
|
+
rcov
|
73
|
+
rspec (= 1.3.0)
|
74
|
+
sequel (= 2.9.0)
|
75
|
+
sqlite3-ruby (= 1.3.2)
|
76
|
+
treetop (~> 1.2.3)
|
data/HISTORY
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
=== 0.0.9
|
2
|
+
* Convert to using bundler
|
3
|
+
|
4
|
+
=== 0.0.8
|
5
|
+
* merb_global/controller.rb convert before block into method (setup_language)
|
6
|
+
* merb_global/locale.rb add as_rfc1766
|
7
|
+
* add spec for using default locale when none of the ACCEPT_LANGUAGEs are supported
|
8
|
+
* merb_global/message_providers/yaml.rb factor out YAML file loading to allow for multiple files
|
9
|
+
* merb_global/message_providers/yaml.rb add #to_json for generating translation hash for use in JavaScript
|
10
|
+
|
1
11
|
=== 0.0.7
|
2
12
|
* More consistent configuration of supported languages
|
3
13
|
* JRuby Numeric provider
|
data/Rakefile
CHANGED
@@ -1,40 +1,10 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
require '
|
3
|
-
|
2
|
+
require 'bundler'
|
3
|
+
Bundler::GemHelper.install_tasks
|
4
4
|
|
5
|
-
|
6
|
-
NAME = "emipair-merb_global"
|
7
|
-
GEM_VERSION = "0.0.7"
|
8
|
-
AUTHORS = ["Matt Kent", "Ryan Dy"]
|
9
|
-
EMAIL = "eng@emimusic.com"
|
10
|
-
HOMEPAGE = "http://trac.ikonoklastik.com/merb_global/"
|
11
|
-
SUMMARY = "Localization (L10n) and Internationalization (i18n) support for the Merb MVC Framework"
|
12
|
-
|
13
|
-
begin
|
14
|
-
require 'jeweler'
|
15
|
-
Jeweler::Tasks.new do |gemspec|
|
16
|
-
gemspec.name = NAME
|
17
|
-
gemspec.summary = SUMMARY
|
18
|
-
gemspec.description = gemspec.summary
|
19
|
-
gemspec.email = EMAIL
|
20
|
-
gemspec.homepage = HOMEPAGE
|
21
|
-
gemspec.authors = AUTHORS
|
22
|
-
end
|
23
|
-
rescue LoadError
|
24
|
-
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
25
|
-
end
|
26
|
-
|
27
|
-
desc "Install merb_global"
|
28
|
-
task :install => [:package] do
|
29
|
-
sh %{gem install pkg/#{NAME}-#{GEM_VERSION}}
|
30
|
-
end
|
31
|
-
|
32
|
-
Rake::RDocTask.new do |rd|
|
33
|
-
rd.rdoc_dir = "doc"
|
34
|
-
rd.rdoc_files.include "lib/**/*.rb"
|
35
|
-
end
|
5
|
+
require 'spec/rake/spectask'
|
36
6
|
|
37
|
-
desc
|
7
|
+
desc 'Creates database for examples'
|
38
8
|
task :populate_db do
|
39
9
|
require 'fileutils'
|
40
10
|
pwd = File.dirname __FILE__
|
@@ -44,19 +14,18 @@ task :populate_db do
|
|
44
14
|
FileUtils.cp db, "#{pwd}/examples/data_mapper_example/database.db"
|
45
15
|
FileUtils.cp db, "#{pwd}/examples/sequel_example/database.db"
|
46
16
|
end
|
47
|
-
task "pkg/#{NAME}-#{GEM_VERSION}" => [:populate_db]
|
48
17
|
|
49
|
-
|
18
|
+
task :default => :spec
|
50
19
|
|
51
|
-
desc
|
52
|
-
Spec::Rake::SpecTask.new(
|
20
|
+
desc 'Run specs'
|
21
|
+
Spec::Rake::SpecTask.new(:spec) do |st|
|
53
22
|
st.libs = ['lib', 'spec']
|
54
23
|
st.spec_files = FileList['spec/**/*_spec.rb']
|
55
24
|
st.spec_opts = ['--format specdoc', '--color']
|
56
25
|
end
|
57
26
|
|
58
|
-
desc
|
59
|
-
Spec::Rake::SpecTask.new(
|
27
|
+
desc 'Run rcov'
|
28
|
+
Spec::Rake::SpecTask.new(:rcov) do |rct|
|
60
29
|
rct.libs = ['lib', 'spec']
|
61
30
|
rct.rcov = true
|
62
31
|
rct.rcov_opts = ['-x gems', '-x usr', '-x spec']
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$LOAD_PATH.push File.expand_path(File.join(File.dirname(__FILE__), 'lib'))
|
3
|
+
require 'merb_global/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = 'emipair-merb_global'
|
7
|
+
s.version = Merb::Global::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ['EMI Engineering']
|
10
|
+
s.email = 'platform-ops@emimusic.com'
|
11
|
+
s.homepage = 'https://github.com/emipair/merb_global'
|
12
|
+
s.summary = 'Localization (L10n) and Internationalization (i18n) support for the Merb MVC Framework'
|
13
|
+
s.description = s.summary
|
14
|
+
|
15
|
+
s.rubyforge_project = 'merb-global'
|
16
|
+
|
17
|
+
s.files = %w(LICENSE README Rakefile TODO HISTORY) + `git ls-files`.split("\n")
|
18
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
|
+
s.require_paths = ['lib']
|
20
|
+
s.required_rubygems_version = '>= 1.3.6'
|
21
|
+
|
22
|
+
# rdoc
|
23
|
+
s.has_rdoc = true
|
24
|
+
s.extra_rdoc_files = %w(README LICENSE TODO HISTORY)
|
25
|
+
|
26
|
+
s.add_dependency('merb-core', '>= 0.9.1')
|
27
|
+
s.add_dependency('treetop', '~> 1.2.3') # Tested on 1.2.3
|
28
|
+
|
29
|
+
s.add_development_dependency('rspec', '1.3.0')
|
30
|
+
s.add_development_dependency('rcov')
|
31
|
+
s.add_development_dependency('mocha', '0.9.8')
|
32
|
+
|
33
|
+
s.add_development_dependency('gettext', '2.0.4')
|
34
|
+
s.add_development_dependency('locale', '2.0.4')
|
35
|
+
|
36
|
+
s.add_development_dependency('composite_primary_keys', '2.3.2')
|
37
|
+
s.add_development_dependency('activesupport', '2.3.4')
|
38
|
+
s.add_development_dependency('activerecord', '2.3.4')
|
39
|
+
|
40
|
+
s.add_development_dependency('dm-aggregates', '0.9.11')
|
41
|
+
s.add_development_dependency('dm-validations', '0.9.11')
|
42
|
+
s.add_development_dependency('do_sqlite3', '0.9.11')
|
43
|
+
|
44
|
+
s.add_development_dependency('sequel', '2.9.0')
|
45
|
+
s.add_development_dependency('sqlite3-ruby', '1.3.2')
|
46
|
+
end
|
@@ -30,10 +30,10 @@ module Merb
|
|
30
30
|
accept_language = self.request.env['HTTP_ACCEPT_LANGUAGE']
|
31
31
|
Merb::Global::Locale.current =
|
32
32
|
(!params[:locale].nil? && params[:locale].to_s.length > 0 && Merb::Global::Locale.new(h(params[:locale]))) ||
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
33
|
+
(self._mg_locale &&
|
34
|
+
Merb::Global::Locale.new(self.instance_eval(&self._mg_locale))) ||
|
35
|
+
Merb::Global::Locale.from_accept_language(accept_language) ||
|
36
|
+
Merb::Global::Locale.new('en')
|
37
37
|
end
|
38
38
|
|
39
39
|
end
|
@@ -16,28 +16,12 @@ module Merb
|
|
16
16
|
@lang = Hash.new
|
17
17
|
end
|
18
18
|
|
19
|
-
def to_json(locale)
|
20
|
-
locale ||= Locale.new("en")
|
21
|
-
unless ["development", "test"].include?(Merb.environment)
|
22
|
-
lang = @lang
|
23
|
-
else
|
24
|
-
lang = {}
|
25
|
-
end
|
26
|
-
|
27
|
-
lang[locale] = yaml_data(locale) unless lang.include?(locale)
|
28
|
-
lang[locale].to_json
|
29
|
-
end
|
30
|
-
|
31
|
-
# Extracted yaml_data from this method to support looking through several yaml files.
|
32
19
|
def localize(singular, plural, n, locale)
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
lang = {}
|
37
|
-
end
|
38
|
-
|
20
|
+
lang = get_lang
|
21
|
+
|
22
|
+
# Extracted yaml_data from this method to support looking through several yaml files.
|
39
23
|
lang[locale] = yaml_data(locale) unless lang.include?(locale)
|
40
|
-
|
24
|
+
|
41
25
|
unless lang[locale].nil?
|
42
26
|
lang = lang[locale]
|
43
27
|
unless lang[singular].nil?
|
@@ -52,15 +36,6 @@ module Merb
|
|
52
36
|
return n > 1 ? plural : singular
|
53
37
|
end
|
54
38
|
|
55
|
-
def yaml_data(locale)
|
56
|
-
files_to_try = ["#{locale}.yaml", "#{locale.language}.yaml"]
|
57
|
-
files_to_try.each do |filename|
|
58
|
-
file = File.join(Merb::Global::MessageProviders.localedir, filename)
|
59
|
-
return YAML.load_file(file) if File.exist?(file)
|
60
|
-
end
|
61
|
-
nil
|
62
|
-
end
|
63
|
-
|
64
39
|
def create!
|
65
40
|
FileUtils.mkdir_p Merb::Global::MessageProviders.localedir
|
66
41
|
end
|
@@ -99,6 +74,29 @@ module Merb
|
|
99
74
|
lang_name + '.yaml')
|
100
75
|
end
|
101
76
|
end
|
77
|
+
|
78
|
+
def to_json(locale = Locale.new('en'))
|
79
|
+
lang = get_lang
|
80
|
+
|
81
|
+
# Extracted yaml_data from this method to support looking through several yaml files.
|
82
|
+
lang[locale] = yaml_data(locale) unless lang.include?(locale)
|
83
|
+
lang[locale].to_json
|
84
|
+
end
|
85
|
+
|
86
|
+
protected
|
87
|
+
|
88
|
+
def get_lang
|
89
|
+
['development', 'test'].include?(Merb.environment) ? {} : @lang
|
90
|
+
end
|
91
|
+
|
92
|
+
def yaml_data(locale)
|
93
|
+
files_to_try = ["#{locale}.yaml", "#{locale.language}.yaml"]
|
94
|
+
files_to_try.each do |filename|
|
95
|
+
file = File.join(Merb::Global::MessageProviders.localedir, filename)
|
96
|
+
return YAML.load_file(file) if File.exist?(file)
|
97
|
+
end
|
98
|
+
nil
|
99
|
+
end
|
102
100
|
end
|
103
101
|
end
|
104
102
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
|
3
|
-
$:.unshift(lib_dir);
|
2
|
+
require 'bundler/setup'
|
4
3
|
|
5
4
|
# Providers
|
6
5
|
def load_provider_lib(*libs)
|
@@ -8,7 +7,7 @@ def load_provider_lib(*libs)
|
|
8
7
|
libs.each {|lib| require lib}
|
9
8
|
true
|
10
9
|
rescue Gem::LoadError => e
|
11
|
-
warn "Could not load #{
|
10
|
+
warn "Could not load #{libs.inspect}: #{e}"
|
12
11
|
false
|
13
12
|
end
|
14
13
|
end
|
metadata
CHANGED
@@ -1,44 +1,289 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emipair-merb_global
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 13
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 9
|
10
|
+
version: 0.0.9
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
|
-
-
|
8
|
-
- Ryan Dy
|
13
|
+
- EMI Engineering
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
17
|
|
13
|
-
date:
|
18
|
+
date: 2011-01-06 00:00:00 -08:00
|
14
19
|
default_executable:
|
15
|
-
dependencies:
|
16
|
-
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: merb-core
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 57
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
- 9
|
33
|
+
- 1
|
34
|
+
version: 0.9.1
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: treetop
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 25
|
46
|
+
segments:
|
47
|
+
- 1
|
48
|
+
- 2
|
49
|
+
- 3
|
50
|
+
version: 1.2.3
|
51
|
+
type: :runtime
|
52
|
+
version_requirements: *id002
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: rspec
|
55
|
+
prerelease: false
|
56
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - "="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
hash: 27
|
62
|
+
segments:
|
63
|
+
- 1
|
64
|
+
- 3
|
65
|
+
- 0
|
66
|
+
version: 1.3.0
|
67
|
+
type: :development
|
68
|
+
version_requirements: *id003
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rcov
|
71
|
+
prerelease: false
|
72
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
hash: 3
|
78
|
+
segments:
|
79
|
+
- 0
|
80
|
+
version: "0"
|
81
|
+
type: :development
|
82
|
+
version_requirements: *id004
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: mocha
|
85
|
+
prerelease: false
|
86
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
87
|
+
none: false
|
88
|
+
requirements:
|
89
|
+
- - "="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
hash: 43
|
92
|
+
segments:
|
93
|
+
- 0
|
94
|
+
- 9
|
95
|
+
- 8
|
96
|
+
version: 0.9.8
|
97
|
+
type: :development
|
98
|
+
version_requirements: *id005
|
99
|
+
- !ruby/object:Gem::Dependency
|
100
|
+
name: gettext
|
101
|
+
prerelease: false
|
102
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
103
|
+
none: false
|
104
|
+
requirements:
|
105
|
+
- - "="
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
hash: 7
|
108
|
+
segments:
|
109
|
+
- 2
|
110
|
+
- 0
|
111
|
+
- 4
|
112
|
+
version: 2.0.4
|
113
|
+
type: :development
|
114
|
+
version_requirements: *id006
|
115
|
+
- !ruby/object:Gem::Dependency
|
116
|
+
name: locale
|
117
|
+
prerelease: false
|
118
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
119
|
+
none: false
|
120
|
+
requirements:
|
121
|
+
- - "="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
hash: 7
|
124
|
+
segments:
|
125
|
+
- 2
|
126
|
+
- 0
|
127
|
+
- 4
|
128
|
+
version: 2.0.4
|
129
|
+
type: :development
|
130
|
+
version_requirements: *id007
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: composite_primary_keys
|
133
|
+
prerelease: false
|
134
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
135
|
+
none: false
|
136
|
+
requirements:
|
137
|
+
- - "="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
hash: 7
|
140
|
+
segments:
|
141
|
+
- 2
|
142
|
+
- 3
|
143
|
+
- 2
|
144
|
+
version: 2.3.2
|
145
|
+
type: :development
|
146
|
+
version_requirements: *id008
|
147
|
+
- !ruby/object:Gem::Dependency
|
148
|
+
name: activesupport
|
149
|
+
prerelease: false
|
150
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
151
|
+
none: false
|
152
|
+
requirements:
|
153
|
+
- - "="
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
hash: 11
|
156
|
+
segments:
|
157
|
+
- 2
|
158
|
+
- 3
|
159
|
+
- 4
|
160
|
+
version: 2.3.4
|
161
|
+
type: :development
|
162
|
+
version_requirements: *id009
|
163
|
+
- !ruby/object:Gem::Dependency
|
164
|
+
name: activerecord
|
165
|
+
prerelease: false
|
166
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
167
|
+
none: false
|
168
|
+
requirements:
|
169
|
+
- - "="
|
170
|
+
- !ruby/object:Gem::Version
|
171
|
+
hash: 11
|
172
|
+
segments:
|
173
|
+
- 2
|
174
|
+
- 3
|
175
|
+
- 4
|
176
|
+
version: 2.3.4
|
177
|
+
type: :development
|
178
|
+
version_requirements: *id010
|
179
|
+
- !ruby/object:Gem::Dependency
|
180
|
+
name: dm-aggregates
|
181
|
+
prerelease: false
|
182
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
183
|
+
none: false
|
184
|
+
requirements:
|
185
|
+
- - "="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
hash: 45
|
188
|
+
segments:
|
189
|
+
- 0
|
190
|
+
- 9
|
191
|
+
- 11
|
192
|
+
version: 0.9.11
|
193
|
+
type: :development
|
194
|
+
version_requirements: *id011
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: dm-validations
|
197
|
+
prerelease: false
|
198
|
+
requirement: &id012 !ruby/object:Gem::Requirement
|
199
|
+
none: false
|
200
|
+
requirements:
|
201
|
+
- - "="
|
202
|
+
- !ruby/object:Gem::Version
|
203
|
+
hash: 45
|
204
|
+
segments:
|
205
|
+
- 0
|
206
|
+
- 9
|
207
|
+
- 11
|
208
|
+
version: 0.9.11
|
209
|
+
type: :development
|
210
|
+
version_requirements: *id012
|
211
|
+
- !ruby/object:Gem::Dependency
|
212
|
+
name: do_sqlite3
|
213
|
+
prerelease: false
|
214
|
+
requirement: &id013 !ruby/object:Gem::Requirement
|
215
|
+
none: false
|
216
|
+
requirements:
|
217
|
+
- - "="
|
218
|
+
- !ruby/object:Gem::Version
|
219
|
+
hash: 45
|
220
|
+
segments:
|
221
|
+
- 0
|
222
|
+
- 9
|
223
|
+
- 11
|
224
|
+
version: 0.9.11
|
225
|
+
type: :development
|
226
|
+
version_requirements: *id013
|
227
|
+
- !ruby/object:Gem::Dependency
|
228
|
+
name: sequel
|
229
|
+
prerelease: false
|
230
|
+
requirement: &id014 !ruby/object:Gem::Requirement
|
231
|
+
none: false
|
232
|
+
requirements:
|
233
|
+
- - "="
|
234
|
+
- !ruby/object:Gem::Version
|
235
|
+
hash: 43
|
236
|
+
segments:
|
237
|
+
- 2
|
238
|
+
- 9
|
239
|
+
- 0
|
240
|
+
version: 2.9.0
|
241
|
+
type: :development
|
242
|
+
version_requirements: *id014
|
243
|
+
- !ruby/object:Gem::Dependency
|
244
|
+
name: sqlite3-ruby
|
245
|
+
prerelease: false
|
246
|
+
requirement: &id015 !ruby/object:Gem::Requirement
|
247
|
+
none: false
|
248
|
+
requirements:
|
249
|
+
- - "="
|
250
|
+
- !ruby/object:Gem::Version
|
251
|
+
hash: 31
|
252
|
+
segments:
|
253
|
+
- 1
|
254
|
+
- 3
|
255
|
+
- 2
|
256
|
+
version: 1.3.2
|
257
|
+
type: :development
|
258
|
+
version_requirements: *id015
|
17
259
|
description: Localization (L10n) and Internationalization (i18n) support for the Merb MVC Framework
|
18
|
-
email:
|
260
|
+
email: platform-ops@emimusic.com
|
19
261
|
executables: []
|
20
262
|
|
21
263
|
extensions: []
|
22
264
|
|
23
265
|
extra_rdoc_files:
|
24
|
-
- LICENSE
|
25
266
|
- README
|
26
|
-
-
|
27
|
-
|
28
|
-
- .gitignore
|
29
|
-
- CONTRIBUTORS
|
267
|
+
- LICENSE
|
268
|
+
- TODO
|
30
269
|
- HISTORY
|
270
|
+
files:
|
31
271
|
- LICENSE
|
32
272
|
- README
|
33
|
-
- README.markdown
|
34
273
|
- Rakefile
|
35
274
|
- TODO
|
36
|
-
-
|
275
|
+
- HISTORY
|
276
|
+
- .gitignore
|
277
|
+
- .rvmrc
|
278
|
+
- CONTRIBUTORS
|
279
|
+
- Gemfile
|
280
|
+
- Gemfile.lock
|
281
|
+
- README.markdown
|
37
282
|
- activerecord_generators/translations_migration/USAGE
|
38
283
|
- activerecord_generators/translations_migration/templates/translations_migration.erb
|
39
284
|
- activerecord_generators/translations_migration/translations_migration_generator.rb
|
40
285
|
- benchmarks/database1.rb
|
41
|
-
-
|
286
|
+
- emipair-merb_global.gemspec
|
42
287
|
- examples/active_record_example/README.txt
|
43
288
|
- examples/active_record_example/application.rb
|
44
289
|
- examples/active_record_example/config/database.yml
|
@@ -100,6 +345,7 @@ files:
|
|
100
345
|
- lib/merb_global/plural.rb
|
101
346
|
- lib/merb_global/plural.treetop
|
102
347
|
- lib/merb_global/providers.rb
|
348
|
+
- lib/merb_global/version.rb
|
103
349
|
- sequel_generators/translations_migration/USAGE
|
104
350
|
- sequel_generators/translations_migration/templates/translations_migration.erb
|
105
351
|
- sequel_generators/translations_migration/translations_migration_generator.rb
|
@@ -122,30 +368,38 @@ files:
|
|
122
368
|
- spec/providers_spec.rb
|
123
369
|
- spec/spec_helper.rb
|
124
370
|
has_rdoc: true
|
125
|
-
homepage:
|
371
|
+
homepage: https://github.com/emipair/merb_global
|
126
372
|
licenses: []
|
127
373
|
|
128
374
|
post_install_message:
|
129
|
-
rdoc_options:
|
130
|
-
|
375
|
+
rdoc_options: []
|
376
|
+
|
131
377
|
require_paths:
|
132
378
|
- lib
|
133
379
|
required_ruby_version: !ruby/object:Gem::Requirement
|
380
|
+
none: false
|
134
381
|
requirements:
|
135
382
|
- - ">="
|
136
383
|
- !ruby/object:Gem::Version
|
384
|
+
hash: 3
|
385
|
+
segments:
|
386
|
+
- 0
|
137
387
|
version: "0"
|
138
|
-
version:
|
139
388
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
389
|
+
none: false
|
140
390
|
requirements:
|
141
391
|
- - ">="
|
142
392
|
- !ruby/object:Gem::Version
|
143
|
-
|
144
|
-
|
393
|
+
hash: 23
|
394
|
+
segments:
|
395
|
+
- 1
|
396
|
+
- 3
|
397
|
+
- 6
|
398
|
+
version: 1.3.6
|
145
399
|
requirements: []
|
146
400
|
|
147
|
-
rubyforge_project:
|
148
|
-
rubygems_version: 1.
|
401
|
+
rubyforge_project: merb-global
|
402
|
+
rubygems_version: 1.4.1
|
149
403
|
signing_key:
|
150
404
|
specification_version: 3
|
151
405
|
summary: Localization (L10n) and Internationalization (i18n) support for the Merb MVC Framework
|
@@ -153,6 +407,10 @@ test_files:
|
|
153
407
|
- spec/base_spec.rb
|
154
408
|
- spec/controller_spec.rb
|
155
409
|
- spec/date_providers_spec.rb
|
410
|
+
- spec/locale/merbapp.pot
|
411
|
+
- spec/locale/pl.po
|
412
|
+
- spec/locale/pl.yaml
|
413
|
+
- spec/locale/pl/LC_MESSAGES/merbapp.mo
|
156
414
|
- spec/message_providers/active_record_spec.rb
|
157
415
|
- spec/message_providers/data_mapper_spec.rb
|
158
416
|
- spec/message_providers/gettext_spec.rb
|
@@ -164,21 +422,3 @@ test_files:
|
|
164
422
|
- spec/plural_spec.rb
|
165
423
|
- spec/providers_spec.rb
|
166
424
|
- spec/spec_helper.rb
|
167
|
-
- examples/active_record_example/application.rb
|
168
|
-
- examples/active_record_example/config/framework.rb
|
169
|
-
- examples/active_record_example/config/init.rb
|
170
|
-
- examples/data_mapper_example/application.rb
|
171
|
-
- examples/data_mapper_example/config/framework.rb
|
172
|
-
- examples/data_mapper_example/config/init.rb
|
173
|
-
- examples/gettext_example/application.rb
|
174
|
-
- examples/gettext_example/config/framework.rb
|
175
|
-
- examples/gettext_example/config/init.rb
|
176
|
-
- examples/mock_example/application.rb
|
177
|
-
- examples/mock_example/config/framework.rb
|
178
|
-
- examples/mock_example/config/init.rb
|
179
|
-
- examples/sequel_example/application.rb
|
180
|
-
- examples/sequel_example/config/framework.rb
|
181
|
-
- examples/sequel_example/config/init.rb
|
182
|
-
- examples/yaml_example/application.rb
|
183
|
-
- examples/yaml_example/config/framework.rb
|
184
|
-
- examples/yaml_example/config/init.rb
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.0.3
|
data/config/geminstaller.yml
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
---
|
2
|
-
# You don't need all these gems to use merb_global, but you do need them
|
3
|
-
# to run the full test suite. This is incomplete, but it is a start.
|
4
|
-
defaults:
|
5
|
-
install_options: --no-rdoc --no-ri --ignore-dependencies
|
6
|
-
gemcutter_options: &gemcutter_options
|
7
|
-
install_options: --no-rdoc --no-ri --ignore-dependencies --source http://gemcutter.org
|
8
|
-
|
9
|
-
active_support_gems_version: &active_support_gems_version
|
10
|
-
version: 2.3.4
|
11
|
-
data_mapper_gems_version: &data_mapper_gems_version
|
12
|
-
version: 0.9.11
|
13
|
-
gettext_gems_version: &gettext_gems_version
|
14
|
-
version: 2.0.4
|
15
|
-
|
16
|
-
gems:
|
17
|
-
- name: activesupport
|
18
|
-
<<: *active_support_gems_version
|
19
|
-
- name: activerecord
|
20
|
-
<<: *active_support_gems_version
|
21
|
-
- name: locale
|
22
|
-
<<: *gettext_gems_version
|
23
|
-
- name: gettext
|
24
|
-
<<: *gettext_gems_version
|
25
|
-
# The sequel tests are failing; may need an older version?
|
26
|
-
# - name: sequel
|
27
|
-
# version: 3.6.0
|
28
|
-
- name: mocha
|
29
|
-
version: 0.9.8
|
30
|
-
- name: composite_primary_keys
|
31
|
-
version: 2.3.2
|
32
|
-
- name: do_sqlite3
|
33
|
-
<<: *data_mapper_gems_version
|
34
|
-
- name: data_objects
|
35
|
-
<<: *data_mapper_gems_version
|