parliament-routes 0.5.1 → 0.5.2

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: 1a0af25dde8ed172584e410ab8bf3943ef2d70d3
4
- data.tar.gz: b29d1773d93f56240fab011bd2425717152ae8fb
3
+ metadata.gz: 95822a87220db89bc48e206217dbac29d355902a
4
+ data.tar.gz: 335ba5162b7653c1f6c3d25fad3f7e8abbbfeeb6
5
5
  SHA512:
6
- metadata.gz: 91da793c17287b07bd62d083be1a53e88d0abe70b01191125adab5d6a777b6f2876591a474ddc7b8b37a1ef57c6a2fd2f71615fa4acddba8b96bafa2c94d9a0d
7
- data.tar.gz: 0d53fa53a13f839d19c2fce8f90c20c2b8ee480c74a5287ac82dc9c6739d6146fcfa5b77c29b4736085399442664b8d19893b4ff0d2242e89dab576849c52665
6
+ metadata.gz: 12a016b8789db9e4b5b273f1c6a5905096ec3dbcb81c38fb0d6f650626c3aff5aafdadf153992e9ae5d201a0ed952e4221873666ad1e6d3b27626f4c8761fb69
7
+ data.tar.gz: 003e648262a01e8cff1c0b552d57ee8124e0ac8c720bb6017ac4f0b0861539ce95829e8d42e6d8d2b9d298a625f4262258393e92b4d3728d359e81acae8ba90b
@@ -25,12 +25,18 @@ Rails.application.routes.draw do
25
25
  get '/who-should-i-contact-with-my-issue', to: 'meta#who_should_i_contact_with_my_issue'
26
26
 
27
27
 
28
+ ### Articles ###
29
+ # /articles/:id
30
+ get '/articles/:article_id', to: 'articles#show', article_id: id_format_regex, as: :article
31
+
28
32
  ### Hybrid Bill Petitions ###
29
33
  # /petition-a-hybrid-bill
30
- get '/petition-a-hybrid-bill', to: 'hybrid_bills#index', as: :hybrid_bills
31
- get '/petition-a-hybrid-bill/:bill_id', to: 'hybrid_bills#show', as: :hybrid_bill
32
- post '/petition-a-hybrid-bill/:bill_id', to: 'hybrid_bills#show'
33
- get '/petition-a-hybrid-bill/:bill_id/email-a-petition', to: 'hybrid_bills#email', as: :hybrid_bill_email
34
+ get '/petition-a-hybrid-bill', to: 'hybrid_bills#index', as: :hybrid_bills
35
+ get '/petition-a-hybrid-bill/:bill_id', to: 'hybrid_bills#show', as: :hybrid_bill
36
+ post '/petition-a-hybrid-bill/:bill_id', to: 'hybrid_bills#show'
37
+ get '/petition-a-hybrid-bill/:bill_id/email-a-petition', to: 'hybrid_bills#email', as: :hybrid_bill_email
38
+ post '/petition-a-hybrid-bill/:bill_id/email-a-petition', to: 'hybrid_bills#choose_type', as: :hybrid_bill_email_type
39
+ get '/petition-a-hybrid-bill/:bill_id/complete-your-petition-online', to: 'hybrid_bills#redirect', as: :hybrid_bill_redirect
34
40
 
35
41
 
36
42
  ### Search ###
@@ -1,5 +1,5 @@
1
1
  module Parliament
2
2
  module Engine
3
- VERSION = '0.5.1'.freeze
3
+ VERSION = '0.5.2'.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.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryony Watson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-10 00:00:00.000000000 Z
11
+ date: 2017-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails