govuk_content_models 44.2.1 → 44.3.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: dc29409abac87dff246390ac374e6c06d1fe8619
4
- data.tar.gz: 93f030bf67cf6c220499295df7f9af633abe1038
3
+ metadata.gz: 1c08eec470a7c068aedd65b2e7172c2daefc5fdf
4
+ data.tar.gz: 8756e6da209f9286c3cd2e80a65ad90574e7b2cd
5
5
  SHA512:
6
- metadata.gz: dd37dce7ac8cca6e05319172f71da03428aa7330edf103f2819fb753edfc1a339bd93b0dfd8b5df76a6edbfe01fcb16ec2c3f6342265ecd6ad2df3c24225d24a
7
- data.tar.gz: 83f0381142b9f47d331363494669f79302848868f2d82f2fc72651fbb814afd31f26a55782a2ac9c84b6ff6f016f6a0bd95cbee6262ccf3d12e2cff8da595fd2
6
+ metadata.gz: 8203f6f93f6dea9d07fda2b1726d7f9187faeb1a705051ab034f1f86bb1a1250c272d4ec6cbf23e18d6e661629ecef7a9d1bf1f5fedffb24e64de27ea1e76ded
7
+ data.tar.gz: 63a569ca2b276ae56cf52691236e50b94a0957f245377a72ffa5ce9cb16a9a45157f1a17f5456e1344647e659e7499a439930f8f402269da7a1c18fd9475c395
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 44.3.0
4
+
5
+ - Add mandatory lgil_code field for local transactions
6
+
3
7
  ## 44.2.1
4
8
 
5
9
  - Use #underscore instead of #downcase to convert retired format names to string
@@ -4,6 +4,7 @@ require "edition"
4
4
  class LocalTransactionEdition < Edition
5
5
  field :lgsl_code, type: Integer
6
6
  field :lgil_override, type: Integer
7
+ field :lgil_code, type: Integer
7
8
  field :introduction, type: String
8
9
  field :more_information, type: String
9
10
  field :need_to_know, type: String
@@ -11,6 +12,7 @@ class LocalTransactionEdition < Edition
11
12
  GOVSPEAK_FIELDS = [:introduction, :more_information, :need_to_know]
12
13
 
13
14
  validate :valid_lgsl_code
15
+ validates :lgil_code, numericality: { only_integer: true, message: "can only be whole number between 0 and 999." }
14
16
 
15
17
  def valid_lgsl_code
16
18
  if ! self.service
@@ -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 = "44.2.1"
3
+ VERSION = "44.3.0"
4
4
  end
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: 44.2.1
4
+ version: 44.3.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: 2017-03-29 00:00:00.000000000 Z
11
+ date: 2017-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bson_ext