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 +4 -4
- data/app/lib/ext/action_dispatch/routing/mapper.rb +1 -1
- data/config/routes.rb +18 -0
- 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: f63d8364feaf04e56f7b8c3edf2ec67d69407028
|
4
|
+
data.tar.gz: 37b0a7741fd83b9536ed4fa533b3bb8a787326cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/config/routes.rb
CHANGED
@@ -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
|
+
|
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.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:
|
11
|
+
date: 2019-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|