parliament-routes 0.6.21 → 0.6.22

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 16fed93c785054eb1c34cf1fcbccdb896fe649a2
4
- data.tar.gz: 51099caf40e2817f9913ded4264d7319f4870486
3
+ metadata.gz: 191999d41ef1a5521469385245bec065ee02c761
4
+ data.tar.gz: fd30862c67c0fc9634930ac01d6082effc7e0b21
5
5
  SHA512:
6
- metadata.gz: 9781815e64700e644b999043a6ed420eec483579fd9d9a16d6a28e1d08e71885fa0670acdc86e6225a5ac10ff2d9d8c2696dd0807fad486fde5c51aa56adcbf2
7
- data.tar.gz: 403eddbc8295498320ecec90511228668633eb607a72374d8df7f53f40a77e0bc1f81840e0c48c36cda2e1ebe5a7af34a43866016d0f6c5db634aca9f3c8e735
6
+ metadata.gz: 3a66754631ef089e0f230d82ac3d62a1c332242f0c3f2c5798814a905f7b9abd4901c45a83a33089d51545ed9952b51d2f89833cfe63be2ce0a144d66334a4b6
7
+ data.tar.gz: 92f494c611e8ce3b3f074f4c2bdffe212c52f899888ae8e0ef47748e1961d888f86fd744b4c122023a42f41281c59eced92c3c51c017c715515d07a579a0b14d
data/config/routes.rb CHANGED
@@ -6,7 +6,7 @@ require_relative '../app/lib/ext/action_dispatch/routing/mapper.rb'
6
6
  # add to the host application's routes, not the engine's routes
7
7
 
8
8
  Rails.application.routes.draw do
9
- id_format_regex = self.class::ID_FORMAT_REGEX
9
+ id_format_regex = self.class::ID_FORMAT_REGEX
10
10
  id_or_schema_format_regex = self.class::ID_OR_SCHEMA_FORMAT_REGEX
11
11
 
12
12
  ### Root ###
@@ -40,10 +40,6 @@ Rails.application.routes.draw do
40
40
  get '/statutory-instruments', to: 'statutory_instruments#index', as: :statutory_instruments
41
41
  get '/statutory-instruments/:statutory_instrument_id', to: 'statutory_instruments#show', as: :statutory_instrument
42
42
 
43
- ## Procedures ##
44
- get '/procedures', to: 'procedures#index', as: :procedures
45
- get '/procedures/:procedure_id', to: 'procedures#show', as: :procedure
46
-
47
43
  ### Articles ###
48
44
  get '/articles/:article_id', to: 'articles#show', article_id: id_format_regex, as: :article
49
45
 
@@ -51,27 +47,27 @@ Rails.application.routes.draw do
51
47
  get '/questions/:question_id', to: 'questions#show', question_id: id_format_regex, as: :question
52
48
 
53
49
  ### Concepts ###
54
- get '/concepts', to: 'concepts#index', as: :concepts
55
- get '/concepts/:concept_id', to: 'concepts#show', as: :concept, concept_id: id_format_regex
50
+ get '/concepts', to: 'concepts#index', as: :concepts
51
+ get '/concepts/:concept_id', to: 'concepts#show', as: :concept, concept_id: id_format_regex
56
52
 
57
53
  ### Collections ###
58
- get '/collections', to: 'collections#index', as: :collections
59
- get '/collections/:collection_id', to: 'collections#show', as: :collection, collection_id: id_format_regex
54
+ get '/collections', to: 'collections#index', as: :collections
55
+ get '/collections/:collection_id', to: 'collections#show', as: :collection, collection_id: id_format_regex
60
56
 
61
57
  ### Hybrid Bill Petitions ###
62
58
  # /petition-a-hybrid-bill
63
- get '/petition-a-hybrid-bill', to: 'hybrid_bills#index', as: :hybrid_bills
64
- get '/petition-a-hybrid-bill/:bill_id', to: 'hybrid_bills#show', as: :hybrid_bill
65
- post '/petition-a-hybrid-bill/:bill_id', to: 'hybrid_bills#show'
66
- get '/petition-a-hybrid-bill/:bill_id/email-a-petition', to: 'hybrid_bills#email', as: :hybrid_bill_email
67
- post '/petition-a-hybrid-bill/:bill_id/email-a-petition', to: 'hybrid_bills#choose_type', as: :hybrid_bill_email_type
68
- get '/petition-a-hybrid-bill/:bill_id/complete-your-petition-online', to: 'hybrid_bills#redirect', as: :hybrid_bill_redirect
59
+ get '/petition-a-hybrid-bill', to: 'hybrid_bills#index', as: :hybrid_bills
60
+ get '/petition-a-hybrid-bill/:bill_id', to: 'hybrid_bills#show', as: :hybrid_bill
61
+ post '/petition-a-hybrid-bill/:bill_id', to: 'hybrid_bills#show'
62
+ get '/petition-a-hybrid-bill/:bill_id/email-a-petition', to: 'hybrid_bills#email', as: :hybrid_bill_email
63
+ post '/petition-a-hybrid-bill/:bill_id/email-a-petition', to: 'hybrid_bills#choose_type', as: :hybrid_bill_email_type
64
+ get '/petition-a-hybrid-bill/:bill_id/complete-your-petition-online', to: 'hybrid_bills#redirect', as: :hybrid_bill_redirect
69
65
 
70
66
  ### Search ###
71
67
  # /search
72
- get '/search', to: 'search#index', as: :search
68
+ get '/search', to: 'search#index', as: :search
73
69
  get '/search/opensearch', to: 'search#opensearch', as: :opensearch_description
74
- get '/search/redirect', to: 'search#redirect', as: :redirect
70
+ get '/search/redirect', to: 'search#redirect', as: :redirect
75
71
 
76
72
  ### People ###
77
73
  # /people (multiple 'people' scope)
@@ -609,4 +605,26 @@ Rails.application.routes.draw do
609
605
  get '/', to: 'work_packages#show'
610
606
  end
611
607
  end
608
+
609
+ # /procedures
610
+ scope '/procedures', as: 'procedures' do
611
+ get '/', to: 'procedures#index'
612
+ end
613
+
614
+ # /procedures/:procedure_id
615
+ scope '/procedures', as: 'procedure' do
616
+ scope '/:procedure_id' do
617
+ get '/', to: 'procedures#show'
618
+
619
+ # /procedures/:procedure_id/work-packages
620
+ scope '/work-packages', as: 'work_packages' do
621
+ get '/', to: 'procedures/work_packages#index'
622
+
623
+ # /procedures/:procedure_id/work-packages/current
624
+ scope '/current', as: 'current' do
625
+ get '/', to: 'procedures/work_packages#current'
626
+ end
627
+ end
628
+ end
629
+ end
612
630
  end
@@ -1,5 +1,5 @@
1
1
  module Parliament
2
2
  module Engine
3
- VERSION = '0.6.21'.freeze
3
+ VERSION = '0.6.22'.freeze
4
4
  end
5
5
  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.21
4
+ version: 0.6.22
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-11-06 00:00:00.000000000 Z
11
+ date: 2018-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails