parliament-routes 0.6.27 → 0.6.29

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: edef85eefe60e438ec750e60741138ac5fad80a9
4
- data.tar.gz: 3c9f4abac1c2f1e761a90b68d94eae57e2b64295
3
+ metadata.gz: f75ce54a643b648284bfa0cb2d31109a0b2bca92
4
+ data.tar.gz: 43e5ad3e9c0b56eec2f62e9837df2d793cae1069
5
5
  SHA512:
6
- metadata.gz: 57b9bc4d94b4eff0e3178743223236eeab3781f78432bc6a0c26ba4df3f44d229fe7be16f352e27e0e6bde82ac63c2249804bf3624dd3c17e842322702a001ca
7
- data.tar.gz: 6d6b6b6b0c690277ebfee0d18de220e2a538c7e788c736af22b5fb7f6748a2487a72a6cc2d4b67807b0530b88188e17a4bb23527165fb3a26b2bdee33ad9ae3f
6
+ metadata.gz: 03e10e7398326d91cadf9f622913c6ad2a874843ca2a7e748d3e27caed9e5fa77fc79d3e2f62f5b22009692c7a1d7e978e204c87ccf2090061e3b8b6610250bd
7
+ data.tar.gz: 9de5d7fe8e9582382694c20975141f240aad3b129408bc3d8d3f5451bde734f0859168bd85202f855222d832618c43865c3549d4500876c0e27ae828998e44dd
data/config/routes.rb CHANGED
@@ -35,11 +35,37 @@ Rails.application.routes.draw do
35
35
 
36
36
  ### Proposed Negative Statutory Instruments ###
37
37
  get '/proposed-negative-statutory-instruments', to: 'proposed_negative_statutory_instruments#index', as: :proposed_negative_statutory_instruments
38
- get '/proposed-negative-statutory-instruments/:proposed_negative_statutory_instrument_id', to: 'proposed_negative_statutory_instruments#show', as: :proposed_negative_statutory_instrument
38
+
39
+ ## Proposed Negative Statutory Instrument
40
+ scope '/proposed-negative-statutory-instruments', as: 'proposed_negative_statutory_instrument' do
41
+
42
+ # /proposed-negative-statutory-instruments/:proposed_negative_statutory_instrument_id
43
+ scope '/:proposed_negative_statutory_instrument_id' do
44
+ get '/', to: 'proposed_negative_statutory_instruments#show'
45
+
46
+ # /proposed-negative-statutory-instruments/:proposed_negative_statutory_instrument_id/work-packages
47
+ scope '/work-packages', as: 'work_packages' do
48
+ get '/', to: 'proposed_negative_statutory_instruments/work_packages#index'
49
+ end
50
+ end
51
+ end
39
52
 
40
53
  ### Statutory Instruments ###
41
54
  get '/statutory-instruments', to: 'statutory_instruments#index', as: :statutory_instruments
42
- get '/statutory-instruments/:statutory_instrument_id', to: 'statutory_instruments#show', as: :statutory_instrument
55
+
56
+ ## Statutory Instrument
57
+ scope '/statutory-instruments', as: 'statutory_instrument' do
58
+
59
+ # /statutory-instruments/:statutory_instrument_id
60
+ scope '/:statutory_instrument_id' do
61
+ get '/', to: 'statutory_instruments#show'
62
+
63
+ # /statutory-instruments/:statutory_instrument_id/work-packages
64
+ scope '/work-packages', as: 'work_packages' do
65
+ get '/', to: 'statutory_instruments/work_packages#index'
66
+ end
67
+ end
68
+ end
43
69
 
44
70
  ### Articles ###
45
71
  get '/articles/:article_id', to: 'articles#show', article_id: id_format_regex, as: :article
@@ -1,5 +1,5 @@
1
1
  module Parliament
2
2
  module Engine
3
- VERSION = '0.6.27'.freeze
3
+ VERSION = '0.6.29'.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.27
4
+ version: 0.6.29
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-21 00:00:00.000000000 Z
11
+ date: 2018-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails