govuk_content_models 7.3.0 → 7.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -62,6 +62,12 @@ class SpecialistDocumentEdition
62
62
  }
63
63
 
64
64
  validates :title, presence: true
65
+ validates :summary, presence: true
66
+ validates :body, presence: true
67
+ validates :opened_date, presence: true
68
+ validates :market_sector, presence: true
69
+ validates :case_type, presence: true
70
+ validates :case_state, presence: true
65
71
  validates :version_number, presence: true
66
72
  validates :document_id, presence: true
67
73
  validates_with SafeHtml
@@ -38,5 +38,5 @@ Gem::Specification.new do |gem|
38
38
 
39
39
  # The following are added to help bundler resolve dependencies
40
40
  gem.add_development_dependency "rack", "~> 1.4.4"
41
- gem.add_development_dependency "rails", "= 3.2.13"
41
+ gem.add_development_dependency "rails", "= 3.2.17"
42
42
  end
@@ -253,6 +253,11 @@ FactoryGirl.define do
253
253
  sequence(:slug) {|n| "test-specialist-document-#{n}" }
254
254
  sequence(:title) {|n| "Test Specialist Document #{n}" }
255
255
  summary "My summary"
256
+ body "My body"
257
+ opened_date '2013-04-20'
258
+ market_sector 'some-market-sector'
259
+ case_type 'a-case-type'
260
+ case_state 'open'
256
261
  end
257
262
 
258
263
  factory :simple_smart_answer_edition do
@@ -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 = "7.3.0"
3
+ VERSION = "7.3.1"
4
4
  end
@@ -21,6 +21,11 @@ class SpecialistDocumentEditionTest < ActiveSupport::TestCase
21
21
  slug: 'cma-cases/merger-investigation-2014',
22
22
  title: "Merger Investigation 2014",
23
23
  summary: "This is the summary of stuff going on in the Merger Investigation 2014",
24
+ body: "A body",
25
+ opened_date: '2012-04-21',
26
+ market_sector: 'oil-and-gas',
27
+ case_type: 'some-case-type',
28
+ case_state: 'open',
24
29
  state: "published",
25
30
  document_id: 'a-document-id'
26
31
  )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_content_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.3.0
4
+ version: 7.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-02-22 00:00:00.000000000 Z
12
+ date: 2014-02-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bson_ext
@@ -318,7 +318,7 @@ dependencies:
318
318
  requirements:
319
319
  - - '='
320
320
  - !ruby/object:Gem::Version
321
- version: 3.2.13
321
+ version: 3.2.17
322
322
  type: :development
323
323
  prerelease: false
324
324
  version_requirements: !ruby/object:Gem::Requirement
@@ -326,7 +326,7 @@ dependencies:
326
326
  requirements:
327
327
  - - '='
328
328
  - !ruby/object:Gem::Version
329
- version: 3.2.13
329
+ version: 3.2.17
330
330
  description: Shared models for Panopticon and Publisher
331
331
  email:
332
332
  - pbattley@gmail.com
@@ -456,7 +456,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
456
456
  version: '0'
457
457
  segments:
458
458
  - 0
459
- hash: -2619611699370403934
459
+ hash: -1906730363946367284
460
460
  required_rubygems_version: !ruby/object:Gem::Requirement
461
461
  none: false
462
462
  requirements:
@@ -465,7 +465,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
465
465
  version: '0'
466
466
  segments:
467
467
  - 0
468
- hash: -2619611699370403934
468
+ hash: -1906730363946367284
469
469
  requirements: []
470
470
  rubyforge_project:
471
471
  rubygems_version: 1.8.23