parliament-routes 0.6.30 → 0.6.31

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: 74c48a18125735359a483a199c404e0101a986d9
4
- data.tar.gz: 8083f9dffc3fa44f2f92b9ae5e822ba182e8360e
3
+ metadata.gz: f63d8364feaf04e56f7b8c3edf2ec67d69407028
4
+ data.tar.gz: 37b0a7741fd83b9536ed4fa533b3bb8a787326cb
5
5
  SHA512:
6
- metadata.gz: 61a76d7efa19e4cc0e7b5bc9e7b1be03cf7759e9f7d2a05a175cdab34fa113761f3d6a5c4a195ff607aefb0e02248f7e7dfd9cf34ec57f774d1c256095ab9f30
7
- data.tar.gz: 8076a9b22d49ffebbf8d8482d11b5f309b6b5e4f41830af7a081215ba158bb88848194fbb0183e2492cf439595a38020641e6bcb4c8b528e0ec55b708a2e2092
6
+ metadata.gz: 2c832a60e5e6b7d7385e691932304fa8ba73511c01a1fe7a5e0b5119ce6de5d7d49d2b01a852acc37c730415bc86842e2c0c7657e507a1f8bb67bb23c7b1d874
7
+ data.tar.gz: 451e98ddb188f7f41e8055a1597a49ca24d97569599d44ee3b4ec0ab344931dc5abc0fa9d9babec7609ccd838c0c160d687e7aa61100bb6eb748a55581c758e2
@@ -4,7 +4,7 @@ module ActionDispatch
4
4
  # Mapper class provides methods for routes.rb
5
5
  ID_FORMAT_REGEX = /\w{8}/
6
6
  ID_OR_SCHEMA_FORMAT_REGEX = /\w{8}|schema\/\w+/
7
- PAPER_TYPES = ['statutory-instruments', 'proposed-negative-statutory-instruments'].freeze
7
+ PAPER_TYPES = ['statutory-instruments', 'proposed-negative-statutory-instruments', 'treaties'].freeze
8
8
 
9
9
  # @since 0.0.1
10
10
  # Creates routes for listables
@@ -701,4 +701,22 @@ Rails.application.routes.draw do
701
701
  get '/', to: 'laid_papers#show'
702
702
  end
703
703
  end
704
+
705
+ # /treaties
706
+ scope '/treaties', as: 'treaties' do
707
+ build_default_routes('treaties', current: false, lookup: true, postcode: false)
708
+ end
709
+
710
+ # /treaties/:treaty_id
711
+ scope '/treaties', as: 'treaty' do
712
+ scope '/:treaty_id' do
713
+ get '/', to: 'treaties#show'
714
+
715
+ # /treaties/:treaty_id/work-packages
716
+ scope '/work-packages', as: 'work_packages' do
717
+ get '/', to: 'treaties/work_packages#index'
718
+ end
719
+ end
720
+ end
704
721
  end
722
+
@@ -1,5 +1,5 @@
1
1
  module Parliament
2
2
  module Engine
3
- VERSION = '0.6.30'.freeze
3
+ VERSION = '0.6.31'.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.30
4
+ version: 0.6.31
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-12-19 00:00:00.000000000 Z
11
+ date: 2019-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails