govuk_content_models 10.1.1 → 10.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,7 +1,15 @@
1
+ ## 10.1.2
2
+
3
+ * Use `\A\z` anchors instead of `^$` in need ID validation regex
4
+
1
5
  ## 10.1.1
2
6
 
3
7
  * Allow an artefact to be associated with multiple needs
4
8
 
9
+ ## 10.1.0
10
+
11
+ * Add `previous_edition_differences` method to simplify working with change histories.
12
+
5
13
  ## 10.0.0
6
14
 
7
15
  * Add validation for tag IDs
@@ -383,7 +383,7 @@ class Artefact
383
383
  def format_of_new_need_ids
384
384
  # http://api.rubyonrails.org/classes/ActiveModel/Dirty.html
385
385
  new_need_ids = need_ids_was.blank? ? need_ids : need_ids - need_ids_was
386
- errors.add(:need_ids, "must be six-digit integers") if new_need_ids.any? {|need_id| need_id !~ /^\d{6}$/ }
386
+ errors.add(:need_ids, "must be six-digit integers") if new_need_ids.any? {|need_id| need_id !~ /\A\d{6}\z/ }
387
387
  end
388
388
 
389
389
  def valid_url_path?(path)
@@ -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 = "10.1.1"
3
+ VERSION = "10.1.2"
4
4
  end
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: 10.1.1
4
+ version: 10.1.2
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-04-08 00:00:00.000000000 Z
12
+ date: 2014-04-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bson_ext
@@ -465,7 +465,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
465
465
  version: '0'
466
466
  segments:
467
467
  - 0
468
- hash: -3442913868239428672
468
+ hash: -2514232089714122932
469
469
  required_rubygems_version: !ruby/object:Gem::Requirement
470
470
  none: false
471
471
  requirements:
@@ -474,7 +474,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
474
474
  version: '0'
475
475
  segments:
476
476
  - 0
477
- hash: -3442913868239428672
477
+ hash: -2514232089714122932
478
478
  requirements: []
479
479
  rubyforge_project:
480
480
  rubygems_version: 1.8.23