aaf-gumboot 1.1.0 → 1.2.0

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: 52e23f002b6d20c1fba12e280d0e29c9bc83100c
4
- data.tar.gz: a7bdbb8590251322dbee584a1b2a002377fdb465
3
+ metadata.gz: 1acb02138f631452d9e9d665923e263bcf0de5dc
4
+ data.tar.gz: 47af2f04bfa951e5de7fb96faf43bd8eea1b67e8
5
5
  SHA512:
6
- metadata.gz: cea623e1c262ac3d6cf901a19d1a21f8c4a8bf40950da383a62497e23b3a1211fbd579b11e9448b740ecea912495fbf2b54ff833e5b4cf9a8e7aeaf2f5b66dea
7
- data.tar.gz: 748e84bca55148e59168e3bca922d88aab8b99750eb22d88bf2fed361016b7e0d960da6988615b6d5ca430f7bc9d9da3448aaecbe1131dd9e4c6b8ed9230ceb2
6
+ metadata.gz: b347601bd717ab8dd876814f2a353f63ba744d29db58f26cd2323a1cbbaf8f048e1e1e7cf888481842c386512bd7e9d34ed38be9e4728a041d421a1b550a0677
7
+ data.tar.gz: 25d285e0a94b94a0784e63e92cdd7cb3ff292257e9a856653f21d9ab124f9141452067895597fafb1588af0133445e4362a15bfbd86aab9cf0be1a741ea894f9
@@ -1,7 +1,7 @@
1
1
  inherit_from:
2
2
  - aaf-rubocop.yml
3
3
 
4
- Style/FileName:
4
+ Naming/FileName:
5
5
  Exclude:
6
6
  - lib/aaf-gumboot.rb
7
7
 
@@ -1,4 +1,3 @@
1
- # coding: utf-8
2
1
  # frozen_string_literal: true
3
2
 
4
3
  lib = File.expand_path('../lib', __FILE__)
@@ -4,7 +4,6 @@
4
4
  # you must add the pre-existing exceptions found here as well.
5
5
 
6
6
  AllCops:
7
- TargetRubyVersion: 2.3
8
7
  Exclude:
9
8
  - db/schema.rb
10
9
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gumboot
4
- VERSION = '1.1.0'
4
+ VERSION = '1.2.0'.freeze
5
5
  end
@@ -5,8 +5,8 @@ require 'accession'
5
5
  class APISubject < ApplicationRecord
6
6
  include Accession::Principal
7
7
 
8
- has_many :api_subject_roles
9
- has_many :roles, through: :api_subject_roles
8
+ has_many :api_subject_roles, dependent: :destroy
9
+ has_many :roles, through: :api_subject_roles, dependent: :destroy
10
10
 
11
11
  valhammer
12
12
  validates :x509_cn, format: { with: /\A[\w-]+\z/ }
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Role < ApplicationRecord
4
- has_many :api_subject_roles
5
- has_many :api_subjects, through: :api_subject_roles
4
+ has_many :api_subject_roles, dependent: :destroy
5
+ has_many :api_subjects, through: :api_subject_roles, dependent: :destroy
6
6
 
7
- has_many :subject_roles
8
- has_many :subjects, through: :subject_roles
7
+ has_many :subject_roles, dependent: :destroy
8
+ has_many :subjects, through: :subject_roles, dependent: :destroy
9
9
 
10
- has_many :permissions
10
+ has_many :permissions, dependent: :destroy
11
11
 
12
12
  valhammer
13
13
  end
@@ -3,8 +3,8 @@
3
3
  class Subject < ApplicationRecord
4
4
  include Accession::Principal
5
5
 
6
- has_many :subject_roles
7
- has_many :roles, through: :subject_roles
6
+ has_many :subject_roles, dependent: :destroy
7
+ has_many :roles, through: :subject_roles, dependent: :destroy
8
8
 
9
9
  valhammer
10
10
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aaf-gumboot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bradley Beddoes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-21 00:00:00.000000000 Z
11
+ date: 2017-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: accession
@@ -383,7 +383,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
383
383
  version: '0'
384
384
  requirements: []
385
385
  rubyforge_project:
386
- rubygems_version: 2.6.12
386
+ rubygems_version: 2.6.13
387
387
  signing_key:
388
388
  specification_version: 4
389
389
  summary: Kick off subject and API structure for AAF applications