trackoid 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -315,7 +315,10 @@ Trackoid will correctly translate dates for you (hopefully) if you pass a date t
315
315
 
316
316
  = Revision History
317
317
 
318
- 0.3.4 - Fixed midnight calculation for Time.whole_day
318
+ 0.3.5 - BUGFIX: ReaderExtender "+" acted like an accumulator. Problem more
319
+ evident when using ActiveSupport "sum" for arrays.
320
+
321
+ 0.3.4 - BUGFIX: Fixed midnight calculation for Time.whole_day
319
322
 
320
323
  0.3.3 - as_json should take a "options" hash as optional parameter.
321
324
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.4
1
+ 0.3.5
@@ -46,10 +46,7 @@ module Mongoid #:nodoc:
46
46
 
47
47
  def +(other)
48
48
  return @total + other unless other.is_a?(ReaderExtender)
49
-
50
- @total = @total + other
51
- @hours = @hours.zip(other.hourly).map!(&:sum)
52
- self
49
+ self.class.new(@total + other, @hours.zip(other.hourly).map!(&:sum))
53
50
  end
54
51
 
55
52
  def as_json(options = nil)
@@ -104,7 +104,7 @@ describe Mongoid::Tracking do
104
104
  local.utc_offset.should == -25200
105
105
 
106
106
  Time.zone = ActiveSupport::TimeZone["Europe/Madrid"]
107
- local = Time.local(2011, 6, 1, 0, 0)
107
+ local = Time.local(2011, 6, 1, 0, 0).in_time_zone
108
108
  local.should be_dst
109
109
  local.utc_offset.should == 7200
110
110
  end
data/trackoid.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{trackoid}
8
- s.version = "0.3.4"
8
+ s.version = "0.3.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jose Miguel Perez"]
12
- s.date = %q{2011-04-19}
12
+ s.date = %q{2011-04-29}
13
13
  s.description = %q{Trackoid uses an embeddable approach to track analytics data using the poweful features of MongoDB for scalability}
14
14
  s.email = %q{josemiguel@perezruiz.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 4
9
- version: 0.3.4
8
+ - 5
9
+ version: 0.3.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jose Miguel Perez
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-04-19 00:00:00 +02:00
17
+ date: 2011-04-29 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency