rails_i18n_routes 1.1.6 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rails_i18n_routes/{action_controller.rb → action_controller/base.rb} +1 -1
- data/lib/rails_i18n_routes/{action_dispatch.rb → action_dispatch/mapper.rb} +21 -36
- data/lib/rails_i18n_routes/action_dispatch/route_set/named_route_collection.rb +28 -0
- data/lib/rails_i18n_routes/railtie.rb +3 -3
- data/lib/rails_i18n_routes/version.rb +1 -1
- data/lib/rails_i18n_routes.rb +4 -2
- data/test/dummy/config/locales/en-US.yml +2 -0
- data/test/dummy/config/locales/es-AR.yml +2 -0
- data/test/dummy/config/locales/es-UY.yml +2 -0
- data/test/dummy/config/routes.rb +3 -0
- data/test/dummy/log/development.log +63 -0
- data/test/dummy/log/test.log +159 -0
- data/test/rails_i18n_routes_test.rb +1 -1
- data/test/{action_dispatch_test.rb → routes_test.rb} +1 -1
- data/test/{action_controller_test.rb → selection_test.rb} +1 -1
- metadata +9 -8
@@ -1,6 +1,6 @@
|
|
1
1
|
module RailsI18nRoutes
|
2
2
|
module ActionDispatch
|
3
|
-
module
|
3
|
+
module Mapper
|
4
4
|
|
5
5
|
def localized
|
6
6
|
@locales = I18n.available_locales.dup
|
@@ -18,18 +18,21 @@ module RailsI18nRoutes
|
|
18
18
|
|
19
19
|
def add_route(action, options)
|
20
20
|
if @locales
|
21
|
-
scope = @scope.dup
|
22
21
|
@locales.each do |locale|
|
23
|
-
|
22
|
+
path = @scope[:path].dup if @scope[:path].present?
|
23
|
+
path_names = @scope[:path_names].dup
|
24
|
+
@scope[:path] = i18n_path(path, locale) if @scope[:path].present?
|
25
|
+
@scope[:path_names].each { |key, value| @scope[:path_names][key] = I18n.t("routes.#{key}", :locale => locale, :default => value) }
|
24
26
|
super(*[i18n_path(action, locale), i18n_options(options, locale)])
|
27
|
+
@scope[:path] = path if @scope[:path].present?
|
28
|
+
@scope[:path_names] = path_names
|
25
29
|
end
|
26
|
-
@set.named_routes.define_i18n_route_helper @scope[:as] ? "#{@scope[:as]}_#{options[:as]}" : options[:as]
|
27
|
-
@scope = scope
|
30
|
+
@set.named_routes.define_i18n_route_helper @scope[:as] ? "#{@scope[:as]}_#{options[:as]}" : options[:as] unless @scope[:scope_level_resource].present?
|
28
31
|
return
|
29
32
|
end
|
30
33
|
super
|
31
|
-
end
|
32
|
-
|
34
|
+
end
|
35
|
+
|
33
36
|
protected
|
34
37
|
|
35
38
|
def i18n_options(options, locale)
|
@@ -50,37 +53,19 @@ module RailsI18nRoutes
|
|
50
53
|
end
|
51
54
|
|
52
55
|
def i18n_path(path, locale)
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
56
|
+
unless path.is_a? Symbol
|
57
|
+
i18n_path = []
|
58
|
+
path.split('/').each do |part|
|
59
|
+
next if part == ''
|
60
|
+
part.gsub!(/-/, '_')
|
61
|
+
i18n_path << ((part[0] == ':' or part[0] == '*') ? part : I18n.t("routes.#{part}", :locale => locale, :default => part.gsub(/_/, '-')))
|
62
|
+
end
|
63
|
+
i18n_path.join('/')
|
64
|
+
else
|
65
|
+
path
|
66
|
+
end
|
60
67
|
end
|
61
68
|
|
62
69
|
end
|
63
|
-
module NamedRouteCollectionMethods
|
64
|
-
|
65
|
-
def define_i18n_route_helper(name)
|
66
|
-
['url', 'path'].each do |kind|
|
67
|
-
selector = url_helper_name(name, kind)
|
68
|
-
@module.module_eval <<-END_EVAL, __FILE__, __LINE__ + 1
|
69
|
-
remove_possible_method :#{selector}
|
70
|
-
def #{selector}(*args)
|
71
|
-
options = args.extract_options!
|
72
|
-
if Rails.application.config.i18n_routes.selection == :subdomain
|
73
|
-
suffix = (options[:subdomain] ? options[:subdomain] : request.subdomain)
|
74
|
-
else
|
75
|
-
suffix = (options[:locale] ? options[:locale] : I18n.locale).to_s.gsub('-', '_').downcase
|
76
|
-
end
|
77
|
-
send ("#{name}_" + suffix.to_s + "_#{kind}"), *(args << options)
|
78
|
-
end
|
79
|
-
END_EVAL
|
80
|
-
helpers << selector
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
end
|
85
70
|
end
|
86
71
|
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module RailsI18nRoutes
|
2
|
+
module ActionDispatch
|
3
|
+
module RouteSet
|
4
|
+
module NamedRouteCollection
|
5
|
+
|
6
|
+
def define_i18n_route_helper(name)
|
7
|
+
['url', 'path'].each do |kind|
|
8
|
+
selector = url_helper_name(name, kind)
|
9
|
+
@module.module_eval <<-END_EVAL, __FILE__, __LINE__ + 1
|
10
|
+
remove_possible_method :#{selector}
|
11
|
+
def #{selector}(*args)
|
12
|
+
options = args.extract_options!
|
13
|
+
if Rails.application.config.i18n_routes.selection == :subdomain
|
14
|
+
suffix = (options[:subdomain] ? options[:subdomain] : request.subdomain)
|
15
|
+
else
|
16
|
+
suffix = (options[:locale] ? options[:locale] : I18n.locale).to_s.gsub('-', '_').downcase
|
17
|
+
end
|
18
|
+
send ("#{name}_" + suffix.to_s + "_#{kind}"), *(args << options)
|
19
|
+
end
|
20
|
+
END_EVAL
|
21
|
+
helpers << selector
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -5,9 +5,9 @@ module RailsI18nRoutes
|
|
5
5
|
config.i18n_routes.selection = :prefix
|
6
6
|
|
7
7
|
initializer 'rails_i18n_routes' do
|
8
|
-
::ActionDispatch::Routing::Mapper.send :include, RailsI18nRoutes::ActionDispatch::
|
9
|
-
::ActionDispatch::Routing::RouteSet::NamedRouteCollection.send :include, RailsI18nRoutes::ActionDispatch::
|
10
|
-
::ActionController::Base.send :include, RailsI18nRoutes::ActionController::
|
8
|
+
::ActionDispatch::Routing::Mapper.send :include, RailsI18nRoutes::ActionDispatch::Mapper
|
9
|
+
::ActionDispatch::Routing::RouteSet::NamedRouteCollection.send :include, RailsI18nRoutes::ActionDispatch::RouteSet::NamedRouteCollection
|
10
|
+
::ActionController::Base.send :include, RailsI18nRoutes::ActionController::Base
|
11
11
|
end
|
12
12
|
|
13
13
|
end
|
data/lib/rails_i18n_routes.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
-
require 'rails_i18n_routes/action_controller'
|
2
|
-
require 'rails_i18n_routes/action_dispatch'
|
1
|
+
require 'rails_i18n_routes/action_controller/base'
|
2
|
+
require 'rails_i18n_routes/action_dispatch/route_set/named_route_collection'
|
3
|
+
require 'rails_i18n_routes/action_dispatch/mapper'
|
3
4
|
require 'rails_i18n_routes/railtie'
|
5
|
+
require 'rails_i18n_routes/version'
|
4
6
|
|
5
7
|
module RailsI18nRoutes
|
6
8
|
end
|
data/test/dummy/config/routes.rb
CHANGED
@@ -34,3 +34,66 @@ Connecting to database specified by database.yml
|
|
34
34
|
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
35
35
|
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
36
36
|
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
37
|
+
Connecting to database specified by database.yml
|
38
|
+
Connecting to database specified by database.yml
|
39
|
+
Connecting to database specified by database.yml
|
40
|
+
Connecting to database specified by database.yml
|
41
|
+
Connecting to database specified by database.yml
|
42
|
+
Connecting to database specified by database.yml
|
43
|
+
Connecting to database specified by database.yml
|
44
|
+
Connecting to database specified by database.yml
|
45
|
+
Connecting to database specified by database.yml
|
46
|
+
Connecting to database specified by database.yml
|
47
|
+
Connecting to database specified by database.yml
|
48
|
+
Connecting to database specified by database.yml
|
49
|
+
Connecting to database specified by database.yml
|
50
|
+
Connecting to database specified by database.yml
|
51
|
+
Connecting to database specified by database.yml
|
52
|
+
Connecting to database specified by database.yml
|
53
|
+
Connecting to database specified by database.yml
|
54
|
+
Connecting to database specified by database.yml
|
55
|
+
Connecting to database specified by database.yml
|
56
|
+
Connecting to database specified by database.yml
|
57
|
+
Connecting to database specified by database.yml
|
58
|
+
Connecting to database specified by database.yml
|
59
|
+
Connecting to database specified by database.yml
|
60
|
+
Connecting to database specified by database.yml
|
61
|
+
Connecting to database specified by database.yml
|
62
|
+
Connecting to database specified by database.yml
|
63
|
+
Connecting to database specified by database.yml
|
64
|
+
Connecting to database specified by database.yml
|
65
|
+
Connecting to database specified by database.yml
|
66
|
+
Connecting to database specified by database.yml
|
67
|
+
Connecting to database specified by database.yml
|
68
|
+
Connecting to database specified by database.yml
|
69
|
+
Connecting to database specified by database.yml
|
70
|
+
Connecting to database specified by database.yml
|
71
|
+
Connecting to database specified by database.yml
|
72
|
+
Connecting to database specified by database.yml
|
73
|
+
Connecting to database specified by database.yml
|
74
|
+
Connecting to database specified by database.yml
|
75
|
+
Connecting to database specified by database.yml
|
76
|
+
Connecting to database specified by database.yml
|
77
|
+
Connecting to database specified by database.yml
|
78
|
+
Connecting to database specified by database.yml
|
79
|
+
Connecting to database specified by database.yml
|
80
|
+
Connecting to database specified by database.yml
|
81
|
+
Connecting to database specified by database.yml
|
82
|
+
Connecting to database specified by database.yml
|
83
|
+
Connecting to database specified by database.yml
|
84
|
+
Connecting to database specified by database.yml
|
85
|
+
Connecting to database specified by database.yml
|
86
|
+
Connecting to database specified by database.yml
|
87
|
+
Connecting to database specified by database.yml
|
88
|
+
Connecting to database specified by database.yml
|
89
|
+
Connecting to database specified by database.yml
|
90
|
+
Connecting to database specified by database.yml
|
91
|
+
Connecting to database specified by database.yml
|
92
|
+
Connecting to database specified by database.yml
|
93
|
+
Connecting to database specified by database.yml
|
94
|
+
Connecting to database specified by database.yml
|
95
|
+
Connecting to database specified by database.yml
|
96
|
+
Connecting to database specified by database.yml
|
97
|
+
Connecting to database specified by database.yml
|
98
|
+
Connecting to database specified by database.yml
|
99
|
+
Connecting to database specified by database.yml
|
data/test/dummy/log/test.log
CHANGED
@@ -4397,3 +4397,162 @@ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
|
|
4397
4397
|
[1m[35m (0.1ms)[0m rollback transaction
|
4398
4398
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4399
4399
|
[1m[35m (0.0ms)[0m rollback transaction
|
4400
|
+
Connecting to database specified by database.yml
|
4401
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
4402
|
+
Processing by SimplesController#show as HTML
|
4403
|
+
Parameters: {"locale"=>"en-US"}
|
4404
|
+
Rendered simples/show.html.erb within layouts/application (6.6ms)
|
4405
|
+
Completed 200 OK in 64ms (Views: 63.1ms | ActiveRecord: 0.0ms)
|
4406
|
+
Processing by SimplesController#show as HTML
|
4407
|
+
Parameters: {"locale"=>"en-US"}
|
4408
|
+
Rendered simples/show.html.erb within layouts/application (0.4ms)
|
4409
|
+
Completed 200 OK in 4ms (Views: 4.2ms | ActiveRecord: 0.0ms)
|
4410
|
+
Processing by SimplesController#show as HTML
|
4411
|
+
Parameters: {"locale"=>"en-US"}
|
4412
|
+
Rendered simples/show.html.erb within layouts/application (0.4ms)
|
4413
|
+
Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)
|
4414
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4415
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4416
|
+
Processing by SimplesController#show as HTML
|
4417
|
+
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
|
4418
|
+
Processing by SimplesController#show as HTML
|
4419
|
+
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
|
4420
|
+
Processing by SimplesController#show as HTML
|
4421
|
+
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
|
4422
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4423
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4424
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4425
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4426
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4427
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4428
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4429
|
+
Connecting to database specified by database.yml
|
4430
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
4431
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4432
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4433
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4434
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4435
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4436
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4437
|
+
Processing by SimplesController#show as HTML
|
4438
|
+
Parameters: {"locale"=>"en-US"}
|
4439
|
+
Completed 200 OK in 152ms (Views: 151.8ms | ActiveRecord: 0.0ms)
|
4440
|
+
Processing by SimplesController#show as HTML
|
4441
|
+
Parameters: {"locale"=>"en-US"}
|
4442
|
+
Completed 200 OK in 4ms (Views: 4.2ms | ActiveRecord: 0.0ms)
|
4443
|
+
Processing by SimplesController#show as HTML
|
4444
|
+
Parameters: {"locale"=>"en-US"}
|
4445
|
+
Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)
|
4446
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4447
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4448
|
+
Processing by SimplesController#show as HTML
|
4449
|
+
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
|
4450
|
+
Processing by SimplesController#show as HTML
|
4451
|
+
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
|
4452
|
+
Processing by SimplesController#show as HTML
|
4453
|
+
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
|
4454
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4455
|
+
Connecting to database specified by database.yml
|
4456
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
4457
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4458
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4459
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4460
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4461
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4462
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4463
|
+
Processing by SimplesController#show as HTML
|
4464
|
+
Parameters: {"locale"=>"en-US"}
|
4465
|
+
Completed 200 OK in 173ms (Views: 172.4ms | ActiveRecord: 0.0ms)
|
4466
|
+
Processing by SimplesController#show as HTML
|
4467
|
+
Parameters: {"locale"=>"en-US"}
|
4468
|
+
Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms)
|
4469
|
+
Processing by SimplesController#show as HTML
|
4470
|
+
Parameters: {"locale"=>"en-US"}
|
4471
|
+
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)
|
4472
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4473
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4474
|
+
Processing by SimplesController#show as HTML
|
4475
|
+
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
|
4476
|
+
Processing by SimplesController#show as HTML
|
4477
|
+
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
|
4478
|
+
Processing by SimplesController#show as HTML
|
4479
|
+
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
|
4480
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4481
|
+
Connecting to database specified by database.yml
|
4482
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
4483
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4484
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4485
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4486
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4487
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4488
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4489
|
+
Processing by SimplesController#show as HTML
|
4490
|
+
Parameters: {"locale"=>"en-US"}
|
4491
|
+
Completed 200 OK in 46ms (Views: 45.5ms | ActiveRecord: 0.0ms)
|
4492
|
+
Processing by SimplesController#show as HTML
|
4493
|
+
Parameters: {"locale"=>"en-US"}
|
4494
|
+
Completed 200 OK in 4ms (Views: 4.2ms | ActiveRecord: 0.0ms)
|
4495
|
+
Processing by SimplesController#show as HTML
|
4496
|
+
Parameters: {"locale"=>"en-US"}
|
4497
|
+
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)
|
4498
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4499
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4500
|
+
Processing by SimplesController#show as HTML
|
4501
|
+
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
|
4502
|
+
Processing by SimplesController#show as HTML
|
4503
|
+
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
|
4504
|
+
Processing by SimplesController#show as HTML
|
4505
|
+
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
|
4506
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4507
|
+
Connecting to database specified by database.yml
|
4508
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
4509
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4510
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4511
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4512
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4513
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4514
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4515
|
+
Processing by SimplesController#show as HTML
|
4516
|
+
Parameters: {"locale"=>"en-US"}
|
4517
|
+
Completed 200 OK in 18ms (Views: 17.3ms | ActiveRecord: 0.0ms)
|
4518
|
+
Processing by SimplesController#show as HTML
|
4519
|
+
Parameters: {"locale"=>"en-US"}
|
4520
|
+
Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms)
|
4521
|
+
Processing by SimplesController#show as HTML
|
4522
|
+
Parameters: {"locale"=>"en-US"}
|
4523
|
+
Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)
|
4524
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4525
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4526
|
+
Processing by SimplesController#show as HTML
|
4527
|
+
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
|
4528
|
+
Processing by SimplesController#show as HTML
|
4529
|
+
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
|
4530
|
+
Processing by SimplesController#show as HTML
|
4531
|
+
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
|
4532
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4533
|
+
Connecting to database specified by database.yml
|
4534
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
4535
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4536
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4537
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4538
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4539
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4540
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4541
|
+
Processing by SimplesController#show as HTML
|
4542
|
+
Parameters: {"locale"=>"en-US"}
|
4543
|
+
Completed 200 OK in 17ms (Views: 16.8ms | ActiveRecord: 0.0ms)
|
4544
|
+
Processing by SimplesController#show as HTML
|
4545
|
+
Parameters: {"locale"=>"en-US"}
|
4546
|
+
Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)
|
4547
|
+
Processing by SimplesController#show as HTML
|
4548
|
+
Parameters: {"locale"=>"en-US"}
|
4549
|
+
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)
|
4550
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4551
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4552
|
+
Processing by SimplesController#show as HTML
|
4553
|
+
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
|
4554
|
+
Processing by SimplesController#show as HTML
|
4555
|
+
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
|
4556
|
+
Processing by SimplesController#show as HTML
|
4557
|
+
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
|
4558
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_i18n_routes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -51,16 +51,15 @@ executables: []
|
|
51
51
|
extensions: []
|
52
52
|
extra_rdoc_files: []
|
53
53
|
files:
|
54
|
-
- lib/rails_i18n_routes/action_controller.rb
|
55
|
-
- lib/rails_i18n_routes/action_dispatch.rb
|
54
|
+
- lib/rails_i18n_routes/action_controller/base.rb
|
55
|
+
- lib/rails_i18n_routes/action_dispatch/mapper.rb
|
56
|
+
- lib/rails_i18n_routes/action_dispatch/route_set/named_route_collection.rb
|
56
57
|
- lib/rails_i18n_routes/railtie.rb
|
57
58
|
- lib/rails_i18n_routes/version.rb
|
58
59
|
- lib/rails_i18n_routes.rb
|
59
60
|
- MIT-LICENSE
|
60
61
|
- Rakefile
|
61
62
|
- README.rdoc
|
62
|
-
- test/action_controller_test.rb
|
63
|
-
- test/action_dispatch_test.rb
|
64
63
|
- test/dummy/app/assets/javascripts/application.js
|
65
64
|
- test/dummy/app/assets/stylesheets/application.css
|
66
65
|
- test/dummy/app/controllers/application_controller.rb
|
@@ -104,6 +103,8 @@ files:
|
|
104
103
|
- test/dummy/README.rdoc
|
105
104
|
- test/dummy/script/rails
|
106
105
|
- test/rails_i18n_routes_test.rb
|
106
|
+
- test/routes_test.rb
|
107
|
+
- test/selection_test.rb
|
107
108
|
- test/test_helper.rb
|
108
109
|
homepage: https://github.com/mattways/rails_i18n_routes
|
109
110
|
licenses: []
|
@@ -130,8 +131,6 @@ signing_key:
|
|
130
131
|
specification_version: 3
|
131
132
|
summary: Toolkit for Rails i18n routes.
|
132
133
|
test_files:
|
133
|
-
- test/action_controller_test.rb
|
134
|
-
- test/action_dispatch_test.rb
|
135
134
|
- test/dummy/app/assets/javascripts/application.js
|
136
135
|
- test/dummy/app/assets/stylesheets/application.css
|
137
136
|
- test/dummy/app/controllers/application_controller.rb
|
@@ -175,4 +174,6 @@ test_files:
|
|
175
174
|
- test/dummy/README.rdoc
|
176
175
|
- test/dummy/script/rails
|
177
176
|
- test/rails_i18n_routes_test.rb
|
177
|
+
- test/routes_test.rb
|
178
|
+
- test/selection_test.rb
|
178
179
|
- test/test_helper.rb
|