acts-as-taggable-on 8.0.0 → 8.1.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
  SHA256:
3
- metadata.gz: 9a4ab64bc795a1e9596de357c7dad4cc014e4049f6990b478cbfd5423aeea166
4
- data.tar.gz: b5efae9e459d67584920ad0cf8aa4dac8e8889ea70897941ad580fa4cfe58508
3
+ metadata.gz: 86ed71e7fcf66346a4afcaac85e33d318aafb9d6dcf58a787511161f57908be9
4
+ data.tar.gz: add5ececd0bd17f3942ee5cbd102e9de65a46ed74e1382c87cb7ba0e3a071d87
5
5
  SHA512:
6
- metadata.gz: f3456a0521ea9e853afdb316792fdbbdef01c6cbc354b34b46b7916e9ce5111c9a85085c029deb0191f93f32993cebeb3b565ed865090633892584c67e017db5
7
- data.tar.gz: b392a57b1f80e17e88766db866bb9e802dfd8924ae175c31032e98414aef48f213f007f0b93c7ca3d272540ea40579a26b8aa8e42a6d0874cc502dea7448b1fe
6
+ metadata.gz: afdaa14e7584c82b022c0f763528eb09dbfb9e928fcefee8810649b7fc55d4d0035fb273d413d378404575aa7a49fa0d927042c170c86ae1af138674c752aa08
7
+ data.tar.gz: 79d100efe8a7f140f73058cb54ef365251642e9668fc492923ff09348a3f42e0c66ba011afcbe494393778b598d1fb2fc804727239d046491b66bb9d5d7d80aa
data/CHANGELOG.md CHANGED
@@ -10,6 +10,11 @@ Each change should fall into categories that would affect whether the release is
10
10
 
11
11
  As such, _Breaking Changes_ are major. _Features_ would map to either major or minor. _Fixes_, _Performance_, and _Misc_ are either minor or patch, the difference being kind of fuzzy for the purposes of history. Adding _Documentation_ (including tests) would be patch level.
12
12
 
13
+ ### [v8.1.0) / 2021-06-19](https://github.com/mbleigh/acts-as-taggable-on/compare/v8.0.0...v8.1.0)
14
+ * Fixes
15
+ * [@ngouy Fix rollbackable tenant migrations](https://github.com/mbleigh/acts-as-taggable-on/pull/1038)
16
+ * [@ngouy Fix gem conflict with already existing tenant model](https://github.com/mbleigh/acts-as-taggable-on/pull/1037)
17
+
13
18
  ### [v8.0.0) / 2021-06-07](https://github.com/mbleigh/acts-as-taggable-on/compare/v7.0.0...v8.0.0)
14
19
  * Features
15
20
  * [@lunaru Support tenants for taggings](https://github.com/mbleigh/acts-as-taggable-on/pull/1000)
data/Gemfile CHANGED
@@ -7,5 +7,6 @@ group :local_development do
7
7
  gem 'guard-rspec'
8
8
  gem 'appraisal'
9
9
  gem 'rake'
10
+ gem 'sqlite3'
10
11
  gem 'byebug', platforms: [:mri]
11
12
  end
@@ -10,7 +10,7 @@ AddTenantToTaggings.class_eval do
10
10
  end
11
11
 
12
12
  def self.down
13
- remove_column :taggings, :tenant
14
13
  remove_index :taggings, :tenant
14
+ remove_column :taggings, :tenant
15
15
  end
16
16
  end
@@ -214,9 +214,9 @@ module ActsAsTaggableOn::Taggable
214
214
  self.class.tag_types.map(&:to_s) + custom_contexts
215
215
  end
216
216
 
217
- def tenant
217
+ def taggable_tenant
218
218
  if self.class.tenant_column
219
- read_attribute(self.class.tenant_column)
219
+ public_send(self.class.tenant_column)
220
220
  end
221
221
  end
222
222
 
@@ -278,8 +278,8 @@ module ActsAsTaggableOn::Taggable
278
278
 
279
279
  # Create new taggings:
280
280
  new_tags.each do |tag|
281
- if tenant
282
- taggings.create!(tag_id: tag.id, context: context.to_s, taggable: self, tenant: tenant)
281
+ if taggable_tenant
282
+ taggings.create!(tag_id: tag.id, context: context.to_s, taggable: self, tenant: taggable_tenant)
283
283
  else
284
284
  taggings.create!(tag_id: tag.id, context: context.to_s, taggable: self)
285
285
  end
@@ -1,3 +1,3 @@
1
1
  module ActsAsTaggableOn
2
- VERSION = '8.0.0'
2
+ VERSION = '8.1.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts-as-taggable-on
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.0
4
+ version: 8.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bleigh
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-06-07 00:00:00.000000000 Z
12
+ date: 2021-06-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord