sublease 0.1.1 → 0.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ad7748b6dc95213d4e46cbf64197bac631e1aa8230ef85590e359c782727a79
4
- data.tar.gz: f05487133a6cb7f8edcae43dca0141301b7d76354cb85637fa8e01dc041e961c
3
+ metadata.gz: e185fc243886ba4f54463e0d92727b7feaa6c33f5234adf3cbb63be1f09d33c2
4
+ data.tar.gz: 05f1131baebb8aa22364f570b5cbbb6f76f944886ad6df061a85b866f2fefb6c
5
5
  SHA512:
6
- metadata.gz: c1d50ea38221d76794fe033006e209c7dbe4f6a045fa52e7e655762adaece85c9aa02dffa889f78cc79ef932dee87aaab49d070365079d986c43432753816d2e
7
- data.tar.gz: af9eb8a87708d98c03182c04ff84439daf25777eec49b72f8819cb1ef3a3f9434f92f949470c33daedb3ccc7df006abc434ea86992c5700837af6927c15b039c
6
+ metadata.gz: 555be3c212b512f4bcdacd047eb2d6e89cc3c994ace8e4444ccb4ad4e71ca5c7555b5483111a20f66ba5819035141716ca04b9941f00775dcb073e16c72b735f
7
+ data.tar.gz: bd97ba31310b3b3cdeb389d317fe56b3747acebdd47de10dbd67b48a8c4476443750ff91a588c9680bc279ea03a6420f698a4f7f7487467186ef654158f12d9f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ 0.2.0
2
+ -----
3
+ * Add validation of uniqueness of subdomain to domain in Sublease::Tenant.
4
+
5
+
1
6
  0.1.1
2
7
  -----
3
8
  * Removed dependency on request_store gem.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sublease (0.1.1)
4
+ sublease (0.2.0)
5
5
  rails (>= 4.1, < 6.0)
6
6
 
7
7
  GEM
@@ -4,6 +4,8 @@ module Sublease
4
4
  class Tenant < ActiveRecord::Base
5
5
  self.abstract_class = true
6
6
 
7
+ validates :subdomain, uniqueness: { scope: :domain }
8
+
7
9
  class << self
8
10
 
9
11
  # Overrides standard ActiveRecord::Relation delete to call destroy instead ensuring all callbacks are fired.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sublease
4
- VERSION = '0.1.1'
4
+ VERSION = '0.2.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sublease
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - bacrossland
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-01 00:00:00.000000000 Z
11
+ date: 2018-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails