freeze_tag 0.1.4 → 0.1.5

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: 4efe3728e7ca3f3481063a4031f602f2c2f95667
4
- data.tar.gz: 0d346dfeea75f18484606ca6cf022fb58a8734ed
3
+ metadata.gz: 211af482396d9667075a43f5ec6d881fc6b2f2bc
4
+ data.tar.gz: 207a3373b4400315c198b2a7133954197ba6bd14
5
5
  SHA512:
6
- metadata.gz: 17397bdfd51dad209132c32c368a1c89b1ae86db33f202c243a2ac738dc184202f5789f5dd563f500755bf4d9bc59929f593b75dab377400c4bec1541575d022
7
- data.tar.gz: 59b40f8ba43789c5123224442724ac645e88586a9c440612c33b95b5e0df0b9efe97979f003f1c06721bef69959ba04d3c3cc1891cced787f1ef587bfbbce1c9
6
+ metadata.gz: 56977c250f89ef9188916e451faf02a7ddae7cbb1a8336cdf636893952736ef253df4731cb943d6bbe572511c8ec831be60b55f70d77be8fc75b4e9cbdbacb0c
7
+ data.tar.gz: 0516b7b91c5158026bc5a6dee6a2ed783f413e80168eb7fe8c0415b0c9c78bee5880674c49ee446ae780e8c9f25f73899eca004a64b3d462365e59d664d7edbf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- freeze_tag (0.1.3)
4
+ freeze_tag (0.1.4)
5
5
  rails (>= 4.2)
6
6
 
7
7
  GEM
@@ -57,7 +57,7 @@ module FreezeTag
57
57
 
58
58
  def expire_freeze_tag(tag: nil, date: nil, list: nil)
59
59
  tag = tag.downcase if self.try(:freeze_tag_case_sensitive)
60
- to_exp = freeze_tags.find_by(tag: tag, list: list)
60
+ to_exp = freeze_tags.find_by(tag: tag, list: list, expired_at: nil)
61
61
  return nil unless to_exp.present?
62
62
  exp_at = date.present? ? date : DateTime.now
63
63
  to_exp.expired_at = exp_at
@@ -1,3 +1,3 @@
1
1
  module FreezeTag
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: freeze_tag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Franzen