parliament-routes 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -6
- data/config/routes.rb +2 -1
- data/lib/parliament/engine/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27abb278b5eb1fd42dc191691df8c50740dab948
|
4
|
+
data.tar.gz: 953ee70c0404bdbb042196aad82de4cff69bf923
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2650450df9b55b50185e43bea91d6a647fdd683ad6d229f29e0db336b7750701eecaf8278cb529560f480c2d79c81cf177f22723c9c5add8d4afc22487176192
|
7
|
+
data.tar.gz: b4d5f1b2409e637d2b37ea4f59e429cbfe7960eb480fb3cf17c8fc480b343593ed2fa9914b5558b206bdbc942f97d2d0ceaddc2213a04f5351b78eaeec3cd393
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# Parliament.uk-routes
|
2
2
|
|
3
|
-
[Parliament.uk-routes]
|
3
|
+
[Parliament.uk-routes][parliament.uk-routes] is an engine created by the [Parliamentary Digital Service][parliamentary-digital-service] that holds all of the routes for the UK parliament prototype website, which can then be called upon by any applications that include this gem.
|
4
|
+
|
5
|
+
[![License][shield-license]][info-license]
|
4
6
|
|
5
7
|
> **NOTE:** This gem is in active development and is likely to change at short notice. It is not recommended that you use this in any production environment.
|
6
8
|
|
@@ -15,9 +17,10 @@
|
|
15
17
|
- [License](#license)
|
16
18
|
|
17
19
|
## Requirements
|
18
|
-
[Parliament.uk-routes]
|
19
|
-
* [Ruby]
|
20
|
-
* [Bundler]
|
20
|
+
[Parliament.uk-routes][parliament.uk-routes] requires the following:
|
21
|
+
* [Ruby][ruby]
|
22
|
+
* [Bundler][bundler]
|
23
|
+
* [Rails][rails]
|
21
24
|
|
22
25
|
## Installation
|
23
26
|
Add this line to your application's Gemfile:
|
@@ -48,7 +51,7 @@ bundle install
|
|
48
51
|
```
|
49
52
|
|
50
53
|
### Running the tests
|
51
|
-
We use [RSpec]
|
54
|
+
We use [RSpec][rspec] as our testing framework and tests can be run using:
|
52
55
|
```bash
|
53
56
|
bundle exec rspec
|
54
57
|
```
|
@@ -64,4 +67,14 @@ If you wish to submit a bug fix or feature, you can create a pull request and it
|
|
64
67
|
1. Create a new Pull Request
|
65
68
|
|
66
69
|
## License
|
67
|
-
The gem is available as open source under the terms of the [
|
70
|
+
The gem is available as open source under the terms of the [Open Parliament Licence][info-license].
|
71
|
+
|
72
|
+
[parliament.uk-routes]: https://github.com/ukparliament/parliament.uk-routes
|
73
|
+
[parliamentary-digital-service]: https://github.com/ukparliament
|
74
|
+
[ruby]: https://www.ruby-lang.org/en/
|
75
|
+
[bundler]: http://bundler.io/
|
76
|
+
[rspec]: http://rspec.info
|
77
|
+
[rails]: http://rubyonrails.org
|
78
|
+
|
79
|
+
[info-license]: http://www.parliament.uk/site-information/copyright/open-parliament-licence/
|
80
|
+
[shield-license]: https://img.shields.io/badge/license-Open%20Parliament%20Licence-blue.svg
|
data/config/routes.rb
CHANGED
@@ -280,11 +280,12 @@ Rails.application.routes.draw do
|
|
280
280
|
get '/cookie-policy', to: 'meta#cookie_policy'
|
281
281
|
end
|
282
282
|
|
283
|
+
|
283
284
|
## Media
|
284
285
|
# /media/
|
285
286
|
scope '/media', as: 'media' do
|
286
287
|
get '/', to: 'media#index'
|
287
|
-
scope '/:medium_id' do
|
288
|
+
scope '/:medium_id', as: 'show' do
|
288
289
|
get '/', to: 'media#show', medium_id: id_format_regex
|
289
290
|
end
|
290
291
|
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.1.
|
4
|
+
version: 0.1.5
|
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
|
+
date: 2017-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
101
|
version: '0'
|
102
102
|
requirements: []
|
103
103
|
rubyforge_project:
|
104
|
-
rubygems_version: 2.6.
|
104
|
+
rubygems_version: 2.6.12
|
105
105
|
signing_key:
|
106
106
|
specification_version: 4
|
107
107
|
summary: Summary of routes.
|