govuk_content_models 41.1.0 → 41.1.1

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: dbcfb829a13e415c1340980483a7fdc28a46b852
4
- data.tar.gz: d8a1ae1a225355001e6455992ca58d41d728dad8
3
+ metadata.gz: f62fa6f0be7b191abab1031c90c07477b6f441e9
4
+ data.tar.gz: 740a4a1599e10251153f14593c6030be11fafbb2
5
5
  SHA512:
6
- metadata.gz: 84a2db1e3826a777476146dc6900127b9b8554c675024de35aeef93af1a9c1fa5ec193b3f584f5d76b01062f0f2838c2664af23d4cf0f5a764223d5aee6f6a57
7
- data.tar.gz: 3676a0785f93ebcd0164a294d6a5a8dce86d803ec05530f2018ba090389683c6c2bf02fd93f1695aa5e012d86f236b915109238304bdcb37686a72fb6cb59ee8
6
+ metadata.gz: 83a2942d1809c38aeebc939ac2f216264f6379322b34443e6ebc487f4b80fb0de3b8d0ae5afd19d7fbbe3d4c3f7ef36cc0ea0625e7179e213befa083f64ddd3e
7
+ data.tar.gz: e4cb4108fbd8dc79627ea0916e7ed8e72ac55e2388c0c32a8a9ea5bd55d1d8ee51ae3614de2d83f7349516a4e16af250592eb67e55aa740d4e3b803ff06bec8c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 41.1.1
4
+
5
+ - Use `require_dependency` to avoid warnings in publisher sidekiq in development mode
6
+
3
7
  ## 41.1.0
4
8
 
5
9
  - Adds 'skip review' Edition workflow processor
data/app/models/action.rb CHANGED
@@ -1,4 +1,4 @@
1
- require "safe_html"
1
+ require_dependency "safe_html"
2
2
 
3
3
  class Action
4
4
  include Mongoid::Document
@@ -1,7 +1,7 @@
1
1
  require "plek"
2
2
  require "traits/taggable"
3
3
  require "artefact_action" # Require this when running outside Rails
4
- require "safe_html"
4
+ require_dependency "safe_html"
5
5
 
6
6
  class CannotEditSlugIfEverPublished < ActiveModel::Validator
7
7
  def validate(record)
@@ -1,4 +1,4 @@
1
- require "safe_html"
1
+ require_dependency "safe_html"
2
2
 
3
3
  class ArtefactAction
4
4
  include Mongoid::Document
@@ -1,5 +1,5 @@
1
1
  require "traits/taggable"
2
- require "safe_html"
2
+ require_dependency "safe_html"
3
3
 
4
4
  class CuratedList
5
5
  include Mongoid::Document
@@ -1,4 +1,4 @@
1
- require "workflow"
1
+ require_dependency "workflow"
2
2
 
3
3
  class Edition
4
4
  include Mongoid::Document
@@ -1,5 +1,5 @@
1
1
  require "csv"
2
- require "safe_html"
2
+ require_dependency "safe_html"
3
3
 
4
4
  class LocalService
5
5
  include Mongoid::Document
@@ -1,4 +1,4 @@
1
- require "safe_html"
1
+ require_dependency "safe_html"
2
2
 
3
3
  class OverviewDashboard
4
4
  include Mongoid::Document
data/app/models/part.rb CHANGED
@@ -1,4 +1,4 @@
1
- require "safe_html"
1
+ require_dependency "safe_html"
2
2
 
3
3
  class Part
4
4
  include Mongoid::Document
data/app/models/parted.rb CHANGED
@@ -1,4 +1,4 @@
1
- require "part"
1
+ require_dependency "part"
2
2
 
3
3
  module Parted
4
4
  def self.included(klass)
@@ -1,6 +1,6 @@
1
1
  require "edition"
2
- require_relative 'simple_smart_answer_edition/node'
3
- require_relative 'simple_smart_answer_edition/node/option'
2
+ require_dependency 'simple_smart_answer_edition/node'
3
+ require_dependency 'simple_smart_answer_edition/node/option'
4
4
 
5
5
  class SimpleSmartAnswerEdition < Edition
6
6
  include Mongoid::Document
data/app/models/tag.rb CHANGED
@@ -1,4 +1,4 @@
1
- require "safe_html"
1
+ require_dependency "safe_html"
2
2
  require 'tag_id_validator'
3
3
  require 'state_machines-mongoid'
4
4
 
@@ -1,7 +1,7 @@
1
1
  require 'attachable'
2
2
  require 'parted'
3
3
  require 'state_machines-mongoid'
4
- require 'safe_html'
4
+ require_dependency 'safe_html'
5
5
 
6
6
  class TravelAdviceEdition
7
7
  include Mongoid::Document
data/app/models/user.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require "digest/md5"
2
2
  require "cgi"
3
3
  require "gds-sso/user"
4
- require "safe_html"
4
+ require_dependency "safe_html"
5
5
 
6
6
  class User
7
7
  include Mongoid::Document
@@ -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 = "41.1.0"
3
+ VERSION = "41.1.1"
4
4
  end
data/test/test_helper.rb CHANGED
@@ -3,6 +3,15 @@ ENV["RACK_ENV"] = "test"
3
3
  require "bundler/setup"
4
4
 
5
5
  require "active_support/test_case"
6
+
7
+ # NOTE: this test_helper does not introduce enough of rails to make
8
+ # require_dependency to be available, requiring "active_support/dependencies"
9
+ # causes the tests to fail, so we introduce our own require_dependency
10
+ # that simply passes through to require
11
+ def require_dependency(*args)
12
+ require(*args)
13
+ end
14
+
6
15
  require "shoulda/context"
7
16
  require "minitest/autorun"
8
17
  require "mocha/mini_test"
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: 41.1.0
4
+ version: 41.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Battley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-13 00:00:00.000000000 Z
11
+ date: 2016-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bson_ext