rails_locale_detection 2.0.0.pre2 → 2.0.0.pre3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +3 -34
- data/Appraisals +7 -0
- data/Gemfile.lock +9 -6
- data/Rakefile +1 -0
- data/gemfiles/rails3.gemfile +7 -0
- data/gemfiles/rails3.gemfile.lock +118 -0
- data/gemfiles/rails4.gemfile +7 -0
- data/gemfiles/rails4.gemfile.lock +113 -0
- data/lib/rails_locale_detection/locale_detector.rb +5 -1
- data/lib/rails_locale_detection/version.rb +1 -1
- data/rails_locale_detection.gemspec +5 -4
- data/spec/rails_locale_detection/locale_detector_spec.rb +9 -9
- data/spec/support/mocks.rb +5 -7
- metadata +50 -50
- data/.rvmrc +0 -1
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f86d31c9f62322933b0d6b1ab2aeb773b53a8cb8
|
4
|
+
data.tar.gz: 70d94b42812d83072538b2204a16fd59c58e88c7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 70d52d1836f9d832c55ff04a048a0bde90eb778a6aaf6e520c42a6bf49ead73ecab98e0bf23725e2510496b161e22ef18b5013c56bc67bc4f1d05ec2348f00c5
|
7
|
+
data.tar.gz: 33a312f812e637293de1c83d4b0cfc0bd320332b8cd08e93aeee830a654c166fb438efb2faf986601422f8fa1bb118a3c4306c5c431e8eba80811138385cb4f4
|
data/.gitignore
CHANGED
@@ -14,37 +14,6 @@ doc
|
|
14
14
|
# jeweler generated
|
15
15
|
pkg
|
16
16
|
|
17
|
-
#
|
18
|
-
|
19
|
-
|
20
|
-
# * Include files you want ignored
|
21
|
-
# * Run: git config --global core.excludesfile ~/.gitignore
|
22
|
-
#
|
23
|
-
# After doing this, these files will be ignored in all your git projects,
|
24
|
-
# saving you from having to 'pollute' every project you touch with them
|
25
|
-
#
|
26
|
-
# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
|
27
|
-
#
|
28
|
-
# For MacOS:
|
29
|
-
#
|
30
|
-
#.DS_Store
|
31
|
-
|
32
|
-
# For TextMate
|
33
|
-
#*.tmproj
|
34
|
-
#tmtags
|
35
|
-
|
36
|
-
# For emacs:
|
37
|
-
#*~
|
38
|
-
#\#*
|
39
|
-
#.\#*
|
40
|
-
|
41
|
-
# For vim:
|
42
|
-
#*.swp
|
43
|
-
|
44
|
-
# For redcar:
|
45
|
-
#.redcar
|
46
|
-
|
47
|
-
# For rubinius:
|
48
|
-
#*.rbc
|
49
|
-
|
50
|
-
/.rvmrc
|
17
|
+
# rvm
|
18
|
+
.rvmrc
|
19
|
+
.ruby-*
|
data/Appraisals
ADDED
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rails_locale_detection (2.0.0.
|
4
|
+
rails_locale_detection (2.0.0.pre2)
|
5
5
|
http_accept_language (~> 1.0.2)
|
6
|
-
rails (>= 3.2.
|
6
|
+
rails (>= 3.2.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
@@ -35,6 +35,9 @@ GEM
|
|
35
35
|
activesupport (3.2.13)
|
36
36
|
i18n (= 0.6.1)
|
37
37
|
multi_json (~> 1.0)
|
38
|
+
appraisal (0.5.2)
|
39
|
+
bundler
|
40
|
+
rake
|
38
41
|
arel (3.0.2)
|
39
42
|
builder (3.0.4)
|
40
43
|
diff-lcs (1.2.1)
|
@@ -45,11 +48,10 @@ GEM
|
|
45
48
|
i18n (0.6.1)
|
46
49
|
journey (1.0.4)
|
47
50
|
json (1.7.7)
|
48
|
-
mail (2.5.
|
49
|
-
i18n (>= 0.4.0)
|
51
|
+
mail (2.5.4)
|
50
52
|
mime-types (~> 1.16)
|
51
53
|
treetop (~> 1.4.8)
|
52
|
-
mime-types (1.
|
54
|
+
mime-types (1.23)
|
53
55
|
multi_json (1.7.2)
|
54
56
|
polyglot (0.3.3)
|
55
57
|
rack (1.4.5)
|
@@ -96,7 +98,7 @@ GEM
|
|
96
98
|
thor (0.18.1)
|
97
99
|
tilt (1.3.6)
|
98
100
|
timecop (0.6.1)
|
99
|
-
treetop (1.4.
|
101
|
+
treetop (1.4.14)
|
100
102
|
polyglot
|
101
103
|
polyglot (>= 0.3.1)
|
102
104
|
tzinfo (0.3.37)
|
@@ -105,6 +107,7 @@ PLATFORMS
|
|
105
107
|
ruby
|
106
108
|
|
107
109
|
DEPENDENCIES
|
110
|
+
appraisal (~> 0.5.2)
|
108
111
|
bundler (~> 1.3.4)
|
109
112
|
gem-release (~> 0.5.3)
|
110
113
|
i18n (~> 0.6.1)
|
data/Rakefile
CHANGED
@@ -0,0 +1,118 @@
|
|
1
|
+
PATH
|
2
|
+
remote: /Users/mateo/Code/rails_locale_detection
|
3
|
+
specs:
|
4
|
+
rails_locale_detection (2.0.0.pre2)
|
5
|
+
http_accept_language (~> 1.0.2)
|
6
|
+
rails (>= 3.2.0)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
actionmailer (3.2.14)
|
12
|
+
actionpack (= 3.2.14)
|
13
|
+
mail (~> 2.5.4)
|
14
|
+
actionpack (3.2.14)
|
15
|
+
activemodel (= 3.2.14)
|
16
|
+
activesupport (= 3.2.14)
|
17
|
+
builder (~> 3.0.0)
|
18
|
+
erubis (~> 2.7.0)
|
19
|
+
journey (~> 1.0.4)
|
20
|
+
rack (~> 1.4.5)
|
21
|
+
rack-cache (~> 1.2)
|
22
|
+
rack-test (~> 0.6.1)
|
23
|
+
sprockets (~> 2.2.1)
|
24
|
+
activemodel (3.2.14)
|
25
|
+
activesupport (= 3.2.14)
|
26
|
+
builder (~> 3.0.0)
|
27
|
+
activerecord (3.2.14)
|
28
|
+
activemodel (= 3.2.14)
|
29
|
+
activesupport (= 3.2.14)
|
30
|
+
arel (~> 3.0.2)
|
31
|
+
tzinfo (~> 0.3.29)
|
32
|
+
activeresource (3.2.14)
|
33
|
+
activemodel (= 3.2.14)
|
34
|
+
activesupport (= 3.2.14)
|
35
|
+
activesupport (3.2.14)
|
36
|
+
i18n (~> 0.6, >= 0.6.4)
|
37
|
+
multi_json (~> 1.0)
|
38
|
+
appraisal (0.5.2)
|
39
|
+
bundler
|
40
|
+
rake
|
41
|
+
arel (3.0.2)
|
42
|
+
builder (3.0.4)
|
43
|
+
diff-lcs (1.2.4)
|
44
|
+
erubis (2.7.0)
|
45
|
+
gem-release (0.5.5)
|
46
|
+
hike (1.2.3)
|
47
|
+
http_accept_language (1.0.2)
|
48
|
+
i18n (0.6.4)
|
49
|
+
journey (1.0.4)
|
50
|
+
json (1.8.0)
|
51
|
+
mail (2.5.4)
|
52
|
+
mime-types (~> 1.16)
|
53
|
+
treetop (~> 1.4.8)
|
54
|
+
mime-types (1.23)
|
55
|
+
multi_json (1.7.7)
|
56
|
+
polyglot (0.3.3)
|
57
|
+
rack (1.4.5)
|
58
|
+
rack-cache (1.2)
|
59
|
+
rack (>= 0.4)
|
60
|
+
rack-ssl (1.3.3)
|
61
|
+
rack
|
62
|
+
rack-test (0.6.2)
|
63
|
+
rack (>= 1.0)
|
64
|
+
rails (3.2.14)
|
65
|
+
actionmailer (= 3.2.14)
|
66
|
+
actionpack (= 3.2.14)
|
67
|
+
activerecord (= 3.2.14)
|
68
|
+
activeresource (= 3.2.14)
|
69
|
+
activesupport (= 3.2.14)
|
70
|
+
bundler (~> 1.0)
|
71
|
+
railties (= 3.2.14)
|
72
|
+
railties (3.2.14)
|
73
|
+
actionpack (= 3.2.14)
|
74
|
+
activesupport (= 3.2.14)
|
75
|
+
rack-ssl (~> 1.3.2)
|
76
|
+
rake (>= 0.8.7)
|
77
|
+
rdoc (~> 3.4)
|
78
|
+
thor (>= 0.14.6, < 2.0)
|
79
|
+
rake (10.0.4)
|
80
|
+
rdoc (3.12.2)
|
81
|
+
json (~> 1.4)
|
82
|
+
rspec-core (2.13.1)
|
83
|
+
rspec-expectations (2.13.0)
|
84
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
85
|
+
rspec-mocks (2.13.1)
|
86
|
+
rspec-rails (2.13.2)
|
87
|
+
actionpack (>= 3.0)
|
88
|
+
activesupport (>= 3.0)
|
89
|
+
railties (>= 3.0)
|
90
|
+
rspec-core (~> 2.13.0)
|
91
|
+
rspec-expectations (~> 2.13.0)
|
92
|
+
rspec-mocks (~> 2.13.0)
|
93
|
+
sprockets (2.2.2)
|
94
|
+
hike (~> 1.2)
|
95
|
+
multi_json (~> 1.0)
|
96
|
+
rack (~> 1.0)
|
97
|
+
tilt (~> 1.1, != 1.3.0)
|
98
|
+
thor (0.18.1)
|
99
|
+
tilt (1.4.1)
|
100
|
+
timecop (0.6.2.2)
|
101
|
+
treetop (1.4.14)
|
102
|
+
polyglot
|
103
|
+
polyglot (>= 0.3.1)
|
104
|
+
tzinfo (0.3.37)
|
105
|
+
|
106
|
+
PLATFORMS
|
107
|
+
ruby
|
108
|
+
|
109
|
+
DEPENDENCIES
|
110
|
+
appraisal (~> 0.5.2)
|
111
|
+
bundler (~> 1.3.4)
|
112
|
+
gem-release (~> 0.5.3)
|
113
|
+
i18n (~> 0.6.1)
|
114
|
+
rails (= 3.2.14)
|
115
|
+
rails_locale_detection!
|
116
|
+
rake (~> 10.0.4)
|
117
|
+
rspec-rails (~> 2.13.0)
|
118
|
+
timecop (~> 0.6.1)
|
@@ -0,0 +1,113 @@
|
|
1
|
+
PATH
|
2
|
+
remote: /Users/mateo/Code/rails_locale_detection
|
3
|
+
specs:
|
4
|
+
rails_locale_detection (2.0.0.pre2)
|
5
|
+
http_accept_language (~> 1.0.2)
|
6
|
+
rails (>= 3.2.0)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
actionmailer (4.0.0)
|
12
|
+
actionpack (= 4.0.0)
|
13
|
+
mail (~> 2.5.3)
|
14
|
+
actionpack (4.0.0)
|
15
|
+
activesupport (= 4.0.0)
|
16
|
+
builder (~> 3.1.0)
|
17
|
+
erubis (~> 2.7.0)
|
18
|
+
rack (~> 1.5.2)
|
19
|
+
rack-test (~> 0.6.2)
|
20
|
+
activemodel (4.0.0)
|
21
|
+
activesupport (= 4.0.0)
|
22
|
+
builder (~> 3.1.0)
|
23
|
+
activerecord (4.0.0)
|
24
|
+
activemodel (= 4.0.0)
|
25
|
+
activerecord-deprecated_finders (~> 1.0.2)
|
26
|
+
activesupport (= 4.0.0)
|
27
|
+
arel (~> 4.0.0)
|
28
|
+
activerecord-deprecated_finders (1.0.3)
|
29
|
+
activesupport (4.0.0)
|
30
|
+
i18n (~> 0.6, >= 0.6.4)
|
31
|
+
minitest (~> 4.2)
|
32
|
+
multi_json (~> 1.3)
|
33
|
+
thread_safe (~> 0.1)
|
34
|
+
tzinfo (~> 0.3.37)
|
35
|
+
appraisal (0.5.2)
|
36
|
+
bundler
|
37
|
+
rake
|
38
|
+
arel (4.0.0)
|
39
|
+
atomic (1.1.10)
|
40
|
+
builder (3.1.4)
|
41
|
+
diff-lcs (1.2.4)
|
42
|
+
erubis (2.7.0)
|
43
|
+
gem-release (0.5.5)
|
44
|
+
hike (1.2.3)
|
45
|
+
http_accept_language (1.0.2)
|
46
|
+
i18n (0.6.4)
|
47
|
+
mail (2.5.4)
|
48
|
+
mime-types (~> 1.16)
|
49
|
+
treetop (~> 1.4.8)
|
50
|
+
mime-types (1.23)
|
51
|
+
minitest (4.7.5)
|
52
|
+
multi_json (1.7.7)
|
53
|
+
polyglot (0.3.3)
|
54
|
+
rack (1.5.2)
|
55
|
+
rack-test (0.6.2)
|
56
|
+
rack (>= 1.0)
|
57
|
+
rails (4.0.0)
|
58
|
+
actionmailer (= 4.0.0)
|
59
|
+
actionpack (= 4.0.0)
|
60
|
+
activerecord (= 4.0.0)
|
61
|
+
activesupport (= 4.0.0)
|
62
|
+
bundler (>= 1.3.0, < 2.0)
|
63
|
+
railties (= 4.0.0)
|
64
|
+
sprockets-rails (~> 2.0.0)
|
65
|
+
railties (4.0.0)
|
66
|
+
actionpack (= 4.0.0)
|
67
|
+
activesupport (= 4.0.0)
|
68
|
+
rake (>= 0.8.7)
|
69
|
+
thor (>= 0.18.1, < 2.0)
|
70
|
+
rake (10.0.4)
|
71
|
+
rspec-core (2.13.1)
|
72
|
+
rspec-expectations (2.13.0)
|
73
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
74
|
+
rspec-mocks (2.13.1)
|
75
|
+
rspec-rails (2.13.2)
|
76
|
+
actionpack (>= 3.0)
|
77
|
+
activesupport (>= 3.0)
|
78
|
+
railties (>= 3.0)
|
79
|
+
rspec-core (~> 2.13.0)
|
80
|
+
rspec-expectations (~> 2.13.0)
|
81
|
+
rspec-mocks (~> 2.13.0)
|
82
|
+
sprockets (2.10.0)
|
83
|
+
hike (~> 1.2)
|
84
|
+
multi_json (~> 1.0)
|
85
|
+
rack (~> 1.0)
|
86
|
+
tilt (~> 1.1, != 1.3.0)
|
87
|
+
sprockets-rails (2.0.0)
|
88
|
+
actionpack (>= 3.0)
|
89
|
+
activesupport (>= 3.0)
|
90
|
+
sprockets (~> 2.8)
|
91
|
+
thor (0.18.1)
|
92
|
+
thread_safe (0.1.2)
|
93
|
+
atomic
|
94
|
+
tilt (1.4.1)
|
95
|
+
timecop (0.6.2.2)
|
96
|
+
treetop (1.4.14)
|
97
|
+
polyglot
|
98
|
+
polyglot (>= 0.3.1)
|
99
|
+
tzinfo (0.3.37)
|
100
|
+
|
101
|
+
PLATFORMS
|
102
|
+
ruby
|
103
|
+
|
104
|
+
DEPENDENCIES
|
105
|
+
appraisal (~> 0.5.2)
|
106
|
+
bundler (~> 1.3.4)
|
107
|
+
gem-release (~> 0.5.3)
|
108
|
+
i18n (~> 0.6.1)
|
109
|
+
rails (= 4.0.0)
|
110
|
+
rails_locale_detection!
|
111
|
+
rake (~> 10.0.4)
|
112
|
+
rspec-rails (~> 2.13.0)
|
113
|
+
timecop (~> 0.6.1)
|
@@ -5,12 +5,16 @@ module RailsLocaleDetection
|
|
5
5
|
|
6
6
|
attr_reader :controller
|
7
7
|
|
8
|
-
delegate :
|
8
|
+
delegate :params, :request, :default_url_options, :user_locale, :to => :controller
|
9
9
|
|
10
10
|
def initialize(controller = nil)
|
11
11
|
@controller = controller
|
12
12
|
end
|
13
13
|
|
14
|
+
def cookies
|
15
|
+
request.cookie_jar
|
16
|
+
end
|
17
|
+
|
14
18
|
def locale_key
|
15
19
|
RailsLocaleDetection.locale_key
|
16
20
|
end
|
@@ -17,13 +17,14 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ['lib']
|
19
19
|
|
20
|
-
gem.add_dependency('rails', '>= 3.2.13')
|
21
20
|
gem.add_dependency('http_accept_language', '~> 1.0.2')
|
21
|
+
gem.add_dependency('rails', '>= 3.2.0')
|
22
22
|
|
23
|
-
gem.add_development_dependency('
|
24
|
-
gem.add_development_dependency('timecop', '~> 0.6.1')
|
25
|
-
gem.add_development_dependency('rspec-rails', '~> 2.13.0')
|
23
|
+
gem.add_development_dependency('appraisal', '~> 0.5.2')
|
26
24
|
gem.add_development_dependency('bundler', '~> 1.3.4')
|
25
|
+
gem.add_development_dependency('i18n', '~> 0.6.1')
|
27
26
|
gem.add_development_dependency('gem-release', '~> 0.5.3')
|
28
27
|
gem.add_development_dependency('rake', '~> 10.0.4')
|
28
|
+
gem.add_development_dependency('rspec-rails', '~> 2.13.0')
|
29
|
+
gem.add_development_dependency('timecop', '~> 0.6.1')
|
29
30
|
end
|
@@ -57,12 +57,12 @@ describe RailsLocaleDetection::LocaleDetector do
|
|
57
57
|
|
58
58
|
describe '#locale_from_cookie' do
|
59
59
|
it "returns en if the param set was valid" do
|
60
|
-
controller.
|
60
|
+
controller.request.cookie_jar[:locale] = 'en'
|
61
61
|
locale_detector.locale_from_cookie.should eq(:en)
|
62
62
|
end
|
63
63
|
|
64
64
|
it "returns nil if the param set was not" do
|
65
|
-
controller.
|
65
|
+
controller.request.cookie_jar[:locale] = 'es'
|
66
66
|
locale_detector.locale_from_cookie.should be_nil
|
67
67
|
end
|
68
68
|
|
@@ -102,7 +102,7 @@ describe RailsLocaleDetection::LocaleDetector do
|
|
102
102
|
describe '#locale_from' do
|
103
103
|
before :each do
|
104
104
|
controller.params[:locale] = 'en'
|
105
|
-
controller.
|
105
|
+
controller.request.cookie_jar[:locale] = 'fr'
|
106
106
|
end
|
107
107
|
|
108
108
|
it "returns the locale set in the param" do
|
@@ -130,7 +130,7 @@ describe RailsLocaleDetection::LocaleDetector do
|
|
130
130
|
end
|
131
131
|
|
132
132
|
it "returns fr if the cookie is set to fr" do
|
133
|
-
controller.
|
133
|
+
controller.request.cookie_jar[:locale] = "fr"
|
134
134
|
locale_detector.detect_locale.should eq(:fr)
|
135
135
|
end
|
136
136
|
|
@@ -161,7 +161,7 @@ describe RailsLocaleDetection::LocaleDetector do
|
|
161
161
|
end
|
162
162
|
|
163
163
|
it "skips cookie" do
|
164
|
-
controller.
|
164
|
+
controller.request.cookie_jar[:locale] = "fr"
|
165
165
|
locale_detector.detect_locale.should eq(:en)
|
166
166
|
end
|
167
167
|
|
@@ -252,7 +252,7 @@ describe RailsLocaleDetection::LocaleDetector do
|
|
252
252
|
end
|
253
253
|
|
254
254
|
it "sets the language" do
|
255
|
-
controller.
|
255
|
+
controller.request.cookie_jar[:locale].should eq(:fr)
|
256
256
|
end
|
257
257
|
|
258
258
|
it "sets the default_url_options" do
|
@@ -273,7 +273,7 @@ describe RailsLocaleDetection::LocaleDetector do
|
|
273
273
|
end
|
274
274
|
|
275
275
|
it "sets the cookier locale" do
|
276
|
-
controller.
|
276
|
+
controller.request.cookie_jar[:locale].should eq(:fr)
|
277
277
|
end
|
278
278
|
|
279
279
|
it "doesn't set the default_url_options" do
|
@@ -294,7 +294,7 @@ describe RailsLocaleDetection::LocaleDetector do
|
|
294
294
|
end
|
295
295
|
|
296
296
|
it "sets the cookie locale" do
|
297
|
-
controller.
|
297
|
+
controller.request.cookie_jar[:locale].should eq(:en)
|
298
298
|
end
|
299
299
|
|
300
300
|
it "doesn't set the default_url_options" do
|
@@ -315,7 +315,7 @@ describe RailsLocaleDetection::LocaleDetector do
|
|
315
315
|
end
|
316
316
|
|
317
317
|
it "sets the cookie locale" do
|
318
|
-
controller.
|
318
|
+
controller.request.cookie_jar[:locale].should eq(:fr)
|
319
319
|
end
|
320
320
|
|
321
321
|
it "doesn't set the default_url_options" do
|
data/spec/support/mocks.rb
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
class MockRequest
|
2
2
|
include HttpAcceptLanguage
|
3
3
|
|
4
|
-
attr_accessor :env
|
4
|
+
attr_accessor :env, :cookies, :cookie_jar
|
5
5
|
|
6
6
|
def initialize
|
7
7
|
@env = {'HTTP_ACCEPT_LANGUAGE' => ''}
|
8
|
+
@cookies = {}
|
9
|
+
@cookie_jar = ActionDispatch::Cookies::CookieJar.build(self)
|
8
10
|
end
|
9
11
|
|
10
12
|
def host
|
@@ -14,10 +16,7 @@ class MockRequest
|
|
14
16
|
def ssl?
|
15
17
|
false
|
16
18
|
end
|
17
|
-
|
18
|
-
def cookies
|
19
|
-
{}
|
20
|
-
end
|
19
|
+
|
21
20
|
end
|
22
21
|
|
23
22
|
class MockUser
|
@@ -30,11 +29,10 @@ end
|
|
30
29
|
|
31
30
|
class MockController
|
32
31
|
|
33
|
-
attr_accessor :request, :params, :
|
32
|
+
attr_accessor :request, :params, :default_url_options, :user
|
34
33
|
|
35
34
|
def initialize(request)
|
36
35
|
@request = request
|
37
|
-
@cookies = ActionDispatch::Cookies::CookieJar.build(request)
|
38
36
|
@default_url_options = @params = {}
|
39
37
|
end
|
40
38
|
|
metadata
CHANGED
@@ -1,68 +1,74 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_locale_detection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
5
|
-
prerelease: 6
|
4
|
+
version: 2.0.0.pre3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Mateo Murphy
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-07-27 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: http_accept_language
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.0.2
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.0.2
|
14
27
|
- !ruby/object:Gem::Dependency
|
15
28
|
name: rails
|
16
29
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
30
|
requirements:
|
19
|
-
- -
|
31
|
+
- - '>='
|
20
32
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.2.
|
33
|
+
version: 3.2.0
|
22
34
|
type: :runtime
|
23
35
|
prerelease: false
|
24
36
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
37
|
requirements:
|
27
|
-
- -
|
38
|
+
- - '>='
|
28
39
|
- !ruby/object:Gem::Version
|
29
|
-
version: 3.2.
|
40
|
+
version: 3.2.0
|
30
41
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
42
|
+
name: appraisal
|
32
43
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
44
|
requirements:
|
35
45
|
- - ~>
|
36
46
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
38
|
-
type: :
|
47
|
+
version: 0.5.2
|
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
|
-
version:
|
54
|
+
version: 0.5.2
|
46
55
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
56
|
+
name: bundler
|
48
57
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
58
|
requirements:
|
51
59
|
- - ~>
|
52
60
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
61
|
+
version: 1.3.4
|
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
|
-
version:
|
68
|
+
version: 1.3.4
|
62
69
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
70
|
+
name: i18n
|
64
71
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
72
|
requirements:
|
67
73
|
- - ~>
|
68
74
|
- !ruby/object:Gem::Version
|
@@ -70,75 +76,66 @@ dependencies:
|
|
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.6.1
|
78
83
|
- !ruby/object:Gem::Dependency
|
79
|
-
name:
|
84
|
+
name: gem-release
|
80
85
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
86
|
requirements:
|
83
87
|
- - ~>
|
84
88
|
- !ruby/object:Gem::Version
|
85
|
-
version:
|
89
|
+
version: 0.5.3
|
86
90
|
type: :development
|
87
91
|
prerelease: false
|
88
92
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
93
|
requirements:
|
91
94
|
- - ~>
|
92
95
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
96
|
+
version: 0.5.3
|
94
97
|
- !ruby/object:Gem::Dependency
|
95
|
-
name:
|
98
|
+
name: rake
|
96
99
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
100
|
requirements:
|
99
101
|
- - ~>
|
100
102
|
- !ruby/object:Gem::Version
|
101
|
-
version:
|
103
|
+
version: 10.0.4
|
102
104
|
type: :development
|
103
105
|
prerelease: false
|
104
106
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
107
|
requirements:
|
107
108
|
- - ~>
|
108
109
|
- !ruby/object:Gem::Version
|
109
|
-
version:
|
110
|
+
version: 10.0.4
|
110
111
|
- !ruby/object:Gem::Dependency
|
111
|
-
name:
|
112
|
+
name: rspec-rails
|
112
113
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
114
|
requirements:
|
115
115
|
- - ~>
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 2.13.0
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
121
|
requirements:
|
123
122
|
- - ~>
|
124
123
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
124
|
+
version: 2.13.0
|
126
125
|
- !ruby/object:Gem::Dependency
|
127
|
-
name:
|
126
|
+
name: timecop
|
128
127
|
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
128
|
requirements:
|
131
129
|
- - ~>
|
132
130
|
- !ruby/object:Gem::Version
|
133
|
-
version:
|
131
|
+
version: 0.6.1
|
134
132
|
type: :development
|
135
133
|
prerelease: false
|
136
134
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
135
|
requirements:
|
139
136
|
- - ~>
|
140
137
|
- !ruby/object:Gem::Version
|
141
|
-
version:
|
138
|
+
version: 0.6.1
|
142
139
|
description: Sets the current locale of a request using a combination of params, cookies,
|
143
140
|
and http headers
|
144
141
|
email:
|
@@ -150,12 +147,16 @@ files:
|
|
150
147
|
- .document
|
151
148
|
- .gitignore
|
152
149
|
- .rspec
|
153
|
-
-
|
150
|
+
- Appraisals
|
154
151
|
- Gemfile
|
155
152
|
- Gemfile.lock
|
156
153
|
- LICENSE
|
157
154
|
- README.md
|
158
155
|
- Rakefile
|
156
|
+
- gemfiles/rails3.gemfile
|
157
|
+
- gemfiles/rails3.gemfile.lock
|
158
|
+
- gemfiles/rails4.gemfile
|
159
|
+
- gemfiles/rails4.gemfile.lock
|
159
160
|
- lib/rails_locale_detection.rb
|
160
161
|
- lib/rails_locale_detection/controller_methods.rb
|
161
162
|
- lib/rails_locale_detection/detection_methods.rb
|
@@ -174,27 +175,26 @@ files:
|
|
174
175
|
- spec/support/rails.rb
|
175
176
|
homepage: https://github.com/mateomurphy/rails_locale_detection
|
176
177
|
licenses: []
|
178
|
+
metadata: {}
|
177
179
|
post_install_message:
|
178
180
|
rdoc_options: []
|
179
181
|
require_paths:
|
180
182
|
- lib
|
181
183
|
required_ruby_version: !ruby/object:Gem::Requirement
|
182
|
-
none: false
|
183
184
|
requirements:
|
184
|
-
- -
|
185
|
+
- - '>='
|
185
186
|
- !ruby/object:Gem::Version
|
186
187
|
version: '0'
|
187
188
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
188
|
-
none: false
|
189
189
|
requirements:
|
190
|
-
- -
|
190
|
+
- - '>'
|
191
191
|
- !ruby/object:Gem::Version
|
192
192
|
version: 1.3.1
|
193
193
|
requirements: []
|
194
194
|
rubyforge_project:
|
195
|
-
rubygems_version:
|
195
|
+
rubygems_version: 2.0.0
|
196
196
|
signing_key:
|
197
|
-
specification_version:
|
197
|
+
specification_version: 4
|
198
198
|
summary: Locale setting for rails project
|
199
199
|
test_files:
|
200
200
|
- spec/controllers/callback_tests_controller_spec.rb
|
data/.rvmrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
rvm use 2.0.0@rails_locale_detection --create
|