parliament-routes 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/routes.rb +26 -58
- data/lib/parliament/engine/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e148940a4c2fa22f0ee3afa929f39327053c98f3
|
4
|
+
data.tar.gz: 2818177bb0eb566e7172d6b4acf21e90f95407cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 169988df897125b7e84c398bb15ad504c600837f411153e5b1b755eafff082968a72940a2e29fc043cc5ec6f60c706722e5c7384cf73141638b3280fc6cd7a9b
|
7
|
+
data.tar.gz: 8eec65fceaae54ebf5f825fe3182c5c9a043e8d2ed2245e698f3d521b8a0ff724253ac91d8f23ebafa3889c16d54822f875ba93d683b2deb3ac38ad6c448b089
|
data/config/routes.rb
CHANGED
@@ -93,6 +93,31 @@ Rails.application.routes.draw do
|
|
93
93
|
# /people/:person_id/parties
|
94
94
|
build_root_and_current_routes('people/parties', 'parties')
|
95
95
|
|
96
|
+
# /people/:person_id/associations
|
97
|
+
scope '/associations', as: 'associations' do
|
98
|
+
get '/', to: 'people/associations#index'
|
99
|
+
|
100
|
+
scope '/grouped-by', as: 'grouped_by' do
|
101
|
+
# /people/:person_id/associations/grouped-by
|
102
|
+
get '/', to: 'people/associations/grouped_by#index'
|
103
|
+
|
104
|
+
scope '/opposition', as: 'opposition' do
|
105
|
+
# /people/:person_id/associations/grouped-by/opposition
|
106
|
+
get '/', to: 'people/associations/grouped_by/opposition#index'
|
107
|
+
end
|
108
|
+
|
109
|
+
scope '/government', as: 'government' do
|
110
|
+
# /people/:person_id/associations/grouped-by/government
|
111
|
+
get '/', to: 'people/associations/grouped_by/government#index'
|
112
|
+
end
|
113
|
+
|
114
|
+
scope '/formal-bodies', as: 'formal_bodies' do
|
115
|
+
# /people/:person_id/associations/grouped-by/formal-bodies
|
116
|
+
get '/', to: 'people/associations/grouped_by/formal_bodies#index'
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
96
121
|
# /people/:person_id/committees
|
97
122
|
scope '/committees', as: 'committees' do
|
98
123
|
get '/', to: 'people/committees#index'
|
@@ -448,7 +473,7 @@ Rails.application.routes.draw do
|
|
448
473
|
|
449
474
|
listable('groups#a_to_z', 'groups#letters')
|
450
475
|
|
451
|
-
# /groups/government-
|
476
|
+
# /groups/government-organisations
|
452
477
|
scope '/government-organisations', as: 'government_organisations' do
|
453
478
|
get '/', to: 'groups/government_organisations#index'
|
454
479
|
listable('groups/government_organisations#a_to_z', 'groups/government_organisations#letters')
|
@@ -480,61 +505,4 @@ Rails.application.routes.draw do
|
|
480
505
|
|
481
506
|
lookupable('groups#lookup_by_letters')
|
482
507
|
end
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
## Committees ##
|
487
|
-
scope '/committees', as: 'committees' do
|
488
|
-
# /committees
|
489
|
-
get '/', to: 'committees#index'
|
490
|
-
lookupable('committees#lookup_by_letters')
|
491
|
-
|
492
|
-
listable('committees#a_to_z', 'committees#letters')
|
493
|
-
|
494
|
-
# /committees/current
|
495
|
-
scope '/current', as: 'current' do
|
496
|
-
get '/', to: 'committees#current'
|
497
|
-
listable('committees#a_to_z_current', 'committees#current_letters')
|
498
|
-
end
|
499
|
-
|
500
|
-
# /committees/:committee_id
|
501
|
-
scope '/:committee_id', as: 'show' do
|
502
|
-
get '/', to: 'committees#show', committee_id: id_format_regex
|
503
|
-
|
504
|
-
# /committees/:committee_id/memberships
|
505
|
-
scope '/memberships', as: 'memberships' do
|
506
|
-
get '/', to: 'committees/memberships#index'
|
507
|
-
listable('committees/memberships#a_to_z', 'committees/memberships#letters')
|
508
|
-
|
509
|
-
# /committees/:committee_id/memberships/current
|
510
|
-
scope '/current', as: 'current' do
|
511
|
-
get '/', to: 'memberships#current'
|
512
|
-
end
|
513
|
-
end
|
514
|
-
|
515
|
-
# /committees/:committee_id/chairs
|
516
|
-
scope '/chairs', as: 'chairs' do
|
517
|
-
get '/', to: 'committees/chairs#index'
|
518
|
-
end
|
519
|
-
|
520
|
-
# /committees/:committee_id/sub-committees
|
521
|
-
scope '/sub-committees', as: 'sub_committees' do
|
522
|
-
get '/', to: 'committees/sub_committees#index'
|
523
|
-
|
524
|
-
scope '/current', as: 'current' do
|
525
|
-
get '/', to: 'sub_committees#current'
|
526
|
-
end
|
527
|
-
end
|
528
|
-
|
529
|
-
# /committees/:committee_id/houses
|
530
|
-
scope '/houses', as: 'houses' do
|
531
|
-
get '/', to: 'committees/houses#index'
|
532
|
-
end
|
533
|
-
|
534
|
-
# /committees/:committee_id/parent
|
535
|
-
scope '/parent', as: 'parent' do
|
536
|
-
get '/', to: 'committees#parent'
|
537
|
-
end
|
538
|
-
end
|
539
|
-
end
|
540
508
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parliament-routes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryony Watson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06
|
11
|
+
date: 2018-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|