govuk-dummy_content_store 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b081d12826eefc5fe190b6c7d36f0d5c96593a8
4
- data.tar.gz: 4a193693c70393bfbb66c42aa49c3be00d00baa4
3
+ metadata.gz: a6568800eda7308cdddb115c43972e14110aeece
4
+ data.tar.gz: c06ef281194d2537403066b4a47f1e2bf88cf317
5
5
  SHA512:
6
- metadata.gz: 3b73ed6185b928e4398d99cf6fe1846ebd532d923e30d697b9de107ce9d3d95766689df5be624c6d1f722a568bc2e1ed8e5e9321a373e8f900e65ca18f1bc7bb
7
- data.tar.gz: f4a85a4a4e9b63391879af3a488d82e326b0e6f46b391177f7507638b83fc34a4883436fcc3ac056b5a1c4442cdacd16a2ee9e8484265c7d3a89b548e89f8658
6
+ metadata.gz: d2cce3ebbf7c39365eb1cbb90c9b53eb4572107191f12b31021ea8572862c98e972b3a70eaa801b5aecff3307122f7825631151fab47a5d1e05ab1b18cf6e26f
7
+ data.tar.gz: 137a42ab511a188587daea7350b5a0ed87394a49e94a0a7ad894f706eeefb6141b970a898ffaa0bb56d41cfe475f580ad269883ca6aa14fb394072e9596c0ca0
data/README.md CHANGED
@@ -16,12 +16,20 @@ Start the server using:
16
16
 
17
17
  $ dummy_content_store
18
18
 
19
- By default it will look for the schemas:
19
+ It will look for the schema files in the following locations:
20
20
 
21
21
  1. at the path specified by the `GOVUK_CONTENT_SCHEMAS_PATH` environment variable
22
22
  2. in the current directory
23
23
  3. at the path specified in the first argument
24
24
 
25
+ ## Configuration
26
+
27
+ By default the dummy content store runs on port 3068 which is the same port as
28
+ content store. If you want run it on a different port you can configure it
29
+ using the `PORT` environment variable:
30
+
31
+ $ PORT=9999 dummy_content_store
32
+
25
33
  ## Contributing
26
34
 
27
35
  1. Fork it ( https://github.com/alphagov/govuk-dummy_content_store/fork )
@@ -16,4 +16,4 @@ if ARGV.size == 1
16
16
  ENV['GOVUK_CONTENT_SCHEMAS_PATH'] = ARGV.first
17
17
  end
18
18
 
19
- Rack::Server.start(config: File.dirname(__FILE__) + "/../config.ru")
19
+ Rack::Server.start(config: File.dirname(__FILE__) + "/../config.ru", Port: ENV['PORT'] || 3068)
data/config.ru CHANGED
@@ -1,4 +1,3 @@
1
- #\ -p 3068
2
1
  $LOAD_PATH << File.dirname(__FILE__) + "/lib"
3
2
  require 'govuk/dummy_content_store'
4
3
 
@@ -1,5 +1,5 @@
1
1
  module Govuk
2
2
  module DummyContentStore
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
data/public/styles.css CHANGED
@@ -1,2 +1,27 @@
1
- table tbody tr:nth-child(odd) { background-color:#eee; }
2
- table tbody tr:nth-child(even) { background-color:#fff; }
1
+ body {
2
+ margin: 0 auto;
3
+ padding: 0 1em 3em;
4
+ max-width: 80em;
5
+ color: #111;
6
+ background: #fff;
7
+ font: medium 'Helvetica Neue', Helvetica, Arial, sans-serif;
8
+ }
9
+
10
+ table {
11
+ border-collapse: collapse;
12
+ }
13
+
14
+ table th,
15
+ table td {
16
+ padding: .75em 1.2em;
17
+ border-bottom: 1px solid #ddd;
18
+ }
19
+
20
+ table th {
21
+ text-align: left;
22
+ border-bottom: 2px solid #ddd;
23
+ }
24
+
25
+ table tbody tr:nth-child(odd) {
26
+ background-color: #fafafa;
27
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk-dummy_content_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heath
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-29 00:00:00.000000000 Z
11
+ date: 2015-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack