govuk_content_models 32.1.0 → 32.2.0

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: e1cf903c765eb0fc8a68cc9f8924b85054c13bbd
4
- data.tar.gz: 6d397d3891fcb8c25594a87f10d245cff6de0f06
3
+ metadata.gz: aa9614ff18d6424badcb16a5a972bf66e13e121b
4
+ data.tar.gz: 106c23fef7501232f6193eaf7c8d34c03b04e11b
5
5
  SHA512:
6
- metadata.gz: 5c6f0b8ba9a6e550f6d0ed0de0237be9a9bc9908c39bb468c2a2ffca322a937240da7b1ed6dc90882d37afca0063223e1b45fcbe4743d2cd4a03d3607e92a1e9
7
- data.tar.gz: d9a05ab4a03b66a0608078785e7db503a19c5bf43d613a5b3706b45054df0bf00611ef0a7fb197ed42cabaa078d8e68601e1fa3097daf239768cf95014d01c68
6
+ metadata.gz: f1137d9954ddf99cd1bb814638f23b77921520c06ed205dd83d0e2c7e666391bf0938433ea9f7c6a14e7c74dc4930656237782d690aab8097933c6d8323f6e8c
7
+ data.tar.gz: 3c161e491c8b70c2e3f6e28cbdf41cf1809dd126ef246fcc246139904d985c6c495d0e0f98f51df7140605b78d8ec5e0abaa0527262ba7971ded35ea04107373
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 32.2.0
4
+
5
+ - Add `homepage_url` attribute to `LocalAuthority` model
6
+
3
7
  ## 32.1.0
4
8
 
5
9
  - Add GDS-SSO `User` linting and required `User#organisation_content_id` attribute
@@ -15,6 +15,7 @@ class LocalAuthority
15
15
  field :contact_url, type: String
16
16
  field :contact_phone, type: String
17
17
  field :contact_email, type: String
18
+ field :homepage_url, type: String
18
19
 
19
20
  validates_uniqueness_of :snac
20
21
  validates_presence_of :snac, :local_directgov_id, :name, :tier
@@ -1,4 +1,4 @@
1
1
  module GovukContentModels
2
2
  # Changing this causes Jenkins to tag and release the gem into the wild
3
- VERSION = "32.1.0"
3
+ VERSION = "32.2.0"
4
4
  end
@@ -16,7 +16,8 @@ describe LocalAuthority do
16
16
  contact_address: ["Line one", "line two", "line three"],
17
17
  contact_url: "http://example.gov/contact",
18
18
  contact_phone: "0000000000",
19
- contact_email: "contact@example.gov")
19
+ contact_email: "contact@example.gov",
20
+ homepage_url: 'http://example.gov/')
20
21
  authority = LocalAuthority.first
21
22
  assert_equal "Example", authority.name
22
23
  assert_equal "AA00", authority.snac
@@ -26,6 +27,7 @@ describe LocalAuthority do
26
27
  assert_equal "http://example.gov/contact", authority.contact_url
27
28
  assert_equal "0000000000", authority.contact_phone
28
29
  assert_equal "contact@example.gov", authority.contact_email
30
+ assert_equal "http://example.gov/", authority.homepage_url
29
31
  end
30
32
 
31
33
  describe "validating local_interactions" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_content_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 32.1.0
4
+ version: 32.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Battley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-18 00:00:00.000000000 Z
11
+ date: 2016-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bson_ext