govuk_content_models 17.0.0 → 17.1.0

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.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 17.1.0
2
+ * Added `in_beta` field to `Edition`
3
+
1
4
  ## 17.0.0
2
5
  * BREAKING CHANGE: Upgrade govspeak gem dependency.
3
6
  * This modifies how the SafeHtml validator will behave. It now permits tags
@@ -11,6 +11,7 @@ class Edition
11
11
  field :business_proposition, type: Boolean, default: false
12
12
 
13
13
  field :title, type: String
14
+ field :in_beta, type: Boolean, default: false
14
15
  field :created_at, type: DateTime, default: lambda { Time.zone.now }
15
16
  field :publish_at, type: DateTime
16
17
  field :overview, type: String
@@ -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 = "17.0.0"
3
+ VERSION = "17.1.0"
4
4
  end
@@ -54,6 +54,14 @@ class EditionTest < ActiveSupport::TestCase
54
54
  assert a.errors[:title].any?
55
55
  end
56
56
 
57
+ test "it is not in beta by default" do
58
+ refute FactoryGirl.build(:guide_edition).in_beta?
59
+ end
60
+
61
+ test "it can be in beta" do
62
+ assert FactoryGirl.build(:guide_edition, in_beta: true).in_beta?
63
+ end
64
+
57
65
  test "it should give a friendly (legacy supporting) description of its format" do
58
66
  a = LocalTransactionEdition.new
59
67
  assert_equal "LocalTransaction", a.format
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: 17.0.0
4
+ version: 17.1.0
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-08-04 00:00:00.000000000 Z
12
+ date: 2014-08-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bson_ext
@@ -460,7 +460,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
460
460
  version: '0'
461
461
  segments:
462
462
  - 0
463
- hash: -835940563832955529
463
+ hash: 282022386068419216
464
464
  required_rubygems_version: !ruby/object:Gem::Requirement
465
465
  none: false
466
466
  requirements:
@@ -469,7 +469,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
469
469
  version: '0'
470
470
  segments:
471
471
  - 0
472
- hash: -835940563832955529
472
+ hash: 282022386068419216
473
473
  requirements: []
474
474
  rubyforge_project:
475
475
  rubygems_version: 1.8.23