message_train 0.6.6 → 0.6.7

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
  SHA1:
3
- metadata.gz: 33ddfafe50e968dbebb7d0f65a55def458397731
4
- data.tar.gz: 43acb5695c306986fa89f1c7f6029bd076b2544a
3
+ metadata.gz: 4d757134cad1d008553e317a501152cff6883c0c
4
+ data.tar.gz: c16084eff35f58f678b14b3499fe13ccc2a04da6
5
5
  SHA512:
6
- metadata.gz: 88f7f70f312809905d60ad876686053e5c959487d3d7a2a30cc69164ff98fe96ef83cab703ba06bb75c917245fa04aa63cdf68e781f7af68f2ebd5423d35071c
7
- data.tar.gz: e8521a53a2d8e1ba10b01ac3cf8f8ebacb0d715129bb3a9eb2a77c854ab902af885a1d40489c0c21999fb4226fc5bcc67ed0155573ab99621bde24554bff59bd
6
+ metadata.gz: f4c7d4c51747f5ac698b3d202a06f9579cfad32d3ab34e855fb9dc5f97ae82189c04664585d76abf7dccb4963e78dac9d67993700553f92984488ff8d06c8921
7
+ data.tar.gz: 2086118ead92034bbb176954109ad36b48c6e39e83a50856442a1888f1ab13081ab4eea7cf979e7c4f2d238372e46f27ce6c0a0d93e1083c6d54139e32ba6e11
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.6
1
+ 0.6.7
@@ -65,10 +65,13 @@ module MessageTrain
65
65
  @box_user
66
66
  ]
67
67
  updated_at = boxes.collect do |x|
68
- x.conversations && x.conversations.maximum(:updated_at)
68
+ x.conversations && [
69
+ x.conversations.maximum(:updated_at),
70
+ x.conversations.maximum(:created_at)
71
+ ].max
69
72
  end.compact
70
73
  logger.debug("updated_at #{updated_at.inspect}")
71
- updated_at && parts << [
74
+ updated_at.any? && parts << [
72
75
  updated_at.max
73
76
  ]
74
77
  logger.debug("parts #{parts.inspect}")
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: message_train 0.6.6 ruby lib
5
+ # stub: message_train 0.6.7 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "message_train"
9
- s.version = "0.6.6"
9
+ s.version = "0.6.7"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: message_train
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.6
4
+ version: 0.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karen Lundgren