parliament-routes 0.2.0 → 0.2.1

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: 4062a71d3d5a375b7867e349028fa61129711a60
4
- data.tar.gz: 9f10b5d6678f2e77813c83899a567b34f7941095
3
+ metadata.gz: 7aa727606b5e4c97a0d9757153b5789029d48dec
4
+ data.tar.gz: 69a34d743844997daabdd84d5aabbe74c97a5507
5
5
  SHA512:
6
- metadata.gz: ec08560f988f0ef62f6d2cd81fb3c8f202bf651a8ccab98f97b5ccc0a4bf9e10a3ca1270b580fd1be559d05a310e7bf60a5f313ae337375aa0297df7956d4dcd
7
- data.tar.gz: ee6a6c4613d8b4c29b6d323421809d7b3d5f3f0d4dd7be37a8002849a3170ddf62833dfc5ae43c5ab9cc409caf440eabc325d0978555baa0afca66d6e4da9dd6
6
+ metadata.gz: 4de4eaf644725c0a269d754c9a9d4c69e0713ab4580eebff10662a4ccd0011116f7dc736dc427e8d83d224218caa5421efb8cab3216376d020f45bed8c9fb21f
7
+ data.tar.gz: d8e5e0a804101872ab1718b5e74710f63ffc2c503cbd366f5daabf31a3beabb7301d7fd6d251f5fea89e47b267620c7aafe6aa97d931d05d5bd2252166e8389c
data/config/routes.rb CHANGED
@@ -15,6 +15,14 @@ Rails.application.routes.draw do
15
15
  # /mps
16
16
  get '/mps', to: 'home#mps'
17
17
 
18
+ ### Find your constituency ###
19
+ # /find-your-constituency
20
+ get '/find-your-constituency', to: 'home#find_your_constituency'
21
+
22
+ ### Who should I contact with my issue? ###
23
+ # /who-should-i-contact-with-my-issue
24
+ get '/who-should-i-contact-with-my-issue', to: 'meta#who_should_i_contact_with_my_issue'
25
+
18
26
  ### Search ###
19
27
  # /search
20
28
  get '/search', to: 'search#index'
@@ -290,11 +298,14 @@ Rails.application.routes.draw do
290
298
  end
291
299
  end
292
300
 
293
- ## Places ##
301
+ ## Places
302
+ # /places
294
303
  scope '/places', as: 'places' do
295
304
  get '/', to: 'places#index'
296
305
  end
297
306
 
307
+
308
+ ## Places/regions
298
309
  # /places/regions
299
310
  scope '/places', as: 'places' do
300
311
  scope '/regions', as: 'regions' do
@@ -302,25 +313,18 @@ Rails.application.routes.draw do
302
313
  end
303
314
  end
304
315
 
305
- # scope '/places', as: 'places' do
306
- # # places/:place_id
307
- # scope '/:place_id', as: 'show' do
308
- # get '/', to: 'places#show'
309
- #
310
- # # places/:place_id/constituencies
311
- # scope '/constituencies', as: 'constituencies' do
312
- # get '/', to: 'places/constituencies#index'
313
- #
314
- # listable('places/constituencies#a_to_z', 'places/constituencies#letters')
315
- #
316
- # # places/:place_id/constituencies/current
317
- # scope '/current', as: 'current' do
318
- # get '/', to: 'places/constituencies#current'
319
- #
320
- # listable('places/constituencies#a_to_z_current', 'places/constituencies#current_letters')
321
- # end
322
- #
323
- # end
324
- # end
325
- # end
316
+ ## Places
317
+ scope '/places', as: 'places' do
318
+
319
+ # /places/:place_id
320
+ scope '/:place_id', as: 'show' do
321
+ get '/', to: 'places#show'
322
+
323
+ # /places/:place_id/constituencies
324
+ scope '/constituencies', as: 'constituencies' do
325
+ get '/', to: 'places/constituencies#index'
326
+ listable('places/constituencies#a_to_z', 'places/constituencies#letters')
327
+ end
328
+ end
329
+ end
326
330
  end
@@ -1,5 +1,5 @@
1
1
  module Parliament
2
2
  module Engine
3
- VERSION = '0.2.0'.freeze
3
+ VERSION = '0.2.1'.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.2.0
4
+ version: 0.2.1
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-08-17 00:00:00.000000000 Z
11
+ date: 2017-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails