govuk_content_models 6.0.6 → 6.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md ADDED
@@ -0,0 +1,4 @@
1
+ ## 6.1.0
2
+
3
+ makes this gem compatible with gds-sso (9.2.0)
4
+ by adding the organisation_slug to User.
data/app/models/user.rb CHANGED
@@ -22,6 +22,7 @@ class User
22
22
  field "email", type: String
23
23
  field "permissions", type: Array
24
24
  field "remotely_signed_out", type: Boolean, default: false
25
+ field "organisation_slug", type: String
25
26
 
26
27
  GOVSPEAK_FIELDS = []
27
28
 
@@ -33,12 +34,6 @@ class User
33
34
 
34
35
  validates_with SafeHtml
35
36
 
36
- # GDS::SSO specifically looks for find_by_uid within warden
37
- # when loading authentication user from session
38
- def self.find_by_uid(uid)
39
- where(uid: uid).first
40
- end
41
-
42
37
  def to_s
43
38
  name || email || ""
44
39
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
19
19
  gem.add_dependency "differ"
20
20
  gem.add_dependency "gds-api-adapters"
21
21
 
22
- gem.add_dependency "gds-sso", ">= 3.0.0", "< 4.0.0"
22
+ gem.add_dependency "gds-sso", ">= 7.0.0", "< 10.0.0"
23
23
  gem.add_dependency "govspeak", ">= 1.0.1", "< 2.0.0"
24
24
  # Mongoid 2.5.0 supports the newer 1.7.x and 1.8.x Mongo drivers
25
25
  gem.add_dependency "mongoid", "~> 2.5"
@@ -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 = "6.0.6"
3
+ VERSION = "6.1.0"
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: 6.0.6
4
+ version: 6.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-01-14 00:00:00.000000000 Z
12
+ date: 2014-01-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bson_ext
@@ -66,10 +66,10 @@ dependencies:
66
66
  requirements:
67
67
  - - ! '>='
68
68
  - !ruby/object:Gem::Version
69
- version: 3.0.0
69
+ version: 7.0.0
70
70
  - - <
71
71
  - !ruby/object:Gem::Version
72
- version: 4.0.0
72
+ version: 10.0.0
73
73
  type: :runtime
74
74
  prerelease: false
75
75
  version_requirements: !ruby/object:Gem::Requirement
@@ -77,10 +77,10 @@ dependencies:
77
77
  requirements:
78
78
  - - ! '>='
79
79
  - !ruby/object:Gem::Version
80
- version: 3.0.0
80
+ version: 7.0.0
81
81
  - - <
82
82
  - !ruby/object:Gem::Version
83
- version: 4.0.0
83
+ version: 10.0.0
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: govspeak
86
86
  requirement: !ruby/object:Gem::Requirement
@@ -337,6 +337,7 @@ files:
337
337
  - .gitignore
338
338
  - .ruby-version
339
339
  - .travis.yml
340
+ - CHANGELOG.md
340
341
  - CONTRIBUTING.md
341
342
  - Gemfile
342
343
  - LICENSE
@@ -453,7 +454,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
453
454
  version: '0'
454
455
  segments:
455
456
  - 0
456
- hash: 2437937241290914475
457
+ hash: -3811890245827365006
457
458
  required_rubygems_version: !ruby/object:Gem::Requirement
458
459
  none: false
459
460
  requirements:
@@ -462,7 +463,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
462
463
  version: '0'
463
464
  segments:
464
465
  - 0
465
- hash: 2437937241290914475
466
+ hash: -3811890245827365006
466
467
  requirements: []
467
468
  rubyforge_project:
468
469
  rubygems_version: 1.8.23