tb_redirects 1.0.2 → 1.0.3

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
- SHA1:
3
- metadata.gz: ef488cb3a8986ef8df495d71c8b505394287e7d9
4
- data.tar.gz: f32e512ee7a31b3eeca5a4f9ee87347e3319dcf0
2
+ SHA256:
3
+ metadata.gz: c5794e7a4afcdd9b77bc96e1fa4e5ba0e24c8f053651ccb0eb3d58fff149906a
4
+ data.tar.gz: ae74ab3f527137512614933614f060ae952f2ebf4b4583df54ae0cf012b24713
5
5
  SHA512:
6
- metadata.gz: 07ef44c39418c85be40b3a567072d54476be43a48dafa0c2efbb2bbc32dbf463dba8fd7408141a2d95cbe0cfb779f390dbd0da1cc1bbea4a259843ac1a7a6070
7
- data.tar.gz: 2c993f4706e08b88f53f3b7faa0877099832d68e68ce422254bc07c5e6805275cf366482c70937cdfb3d43d166837908b2c256a7f68801391f95aca47ab284bf
6
+ metadata.gz: 54da901e7526ac9971a68845c10c898b878a5856d307f96a9e8195d3d1ad2841270833152338b99cd1e4f18e205cc507f9bbf72ea5e86f5b8922db0f14cad878
7
+ data.tar.gz: e084fd5c551afa849e8de9ac0e4de170b76bb26c6eb7ec2d57258e25787c45aa263839a8247c06d261651c760c65e4feb5310dd2b9cb75eb50b19de8509f336e
@@ -2,7 +2,10 @@ class TbRedirect < ActiveRecord::Base
2
2
  scope :ordered, -> { order('source desc') }
3
3
  scope :search, ->(term) { where('source LIKE ?', "%#{term}%") }
4
4
 
5
- belongs_to :owner, polymorphic: true, inverse_of: :tb_redirects
5
+ belongs_to :owner,
6
+ polymorphic: true,
7
+ inverse_of: :tb_redirects,
8
+ optional: true
6
9
 
7
10
  validates :source, :destination, :created_by, presence: true
8
11
  validates :source, uniqueness: true
@@ -1,3 +1,3 @@
1
1
  module TbRedirects
2
- VERSION = '1.0.2'.freeze
2
+ VERSION = '1.0.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tb_redirects
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Woods
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-23 00:00:00.000000000 Z
11
+ date: 2019-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tb_core
@@ -252,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
252
252
  version: '0'
253
253
  requirements: []
254
254
  rubyforge_project:
255
- rubygems_version: 2.6.13
255
+ rubygems_version: 2.7.7
256
256
  signing_key:
257
257
  specification_version: 4
258
258
  summary: Simple redirect management for Twice Baked