metry 2.0.1 → 2.0.2

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.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 2.0.2 / 2009-08-08
2
+
3
+ * More ObjectID handling.
4
+
1
5
  === 2.0.1 / 2009-08-08
2
6
 
3
7
  * Handle native ObjectID's correctly.
data/lib/metry.rb CHANGED
@@ -6,7 +6,7 @@ require 'metry/experiment'
6
6
  require 'metry/psycho'
7
7
 
8
8
  module Metry
9
- VERSION = '2.0.1'
9
+ VERSION = '2.0.2'
10
10
 
11
11
  def self.init(dbname)
12
12
  @storage = Storage.new(dbname)
data/lib/metry/psycho.rb CHANGED
@@ -87,7 +87,7 @@ module Metry
87
87
  end
88
88
 
89
89
  def id
90
- @visitor['_id']
90
+ @visitor['_id'].to_s
91
91
  end
92
92
 
93
93
  def events
data/lib/metry/storage.rb CHANGED
@@ -106,8 +106,8 @@ module Metry
106
106
  end
107
107
 
108
108
  def create_pk(row)
109
- return row if row[:_id]
110
- row.delete(:_id) # in case it exists but the value is nil
109
+ return row if row['_id']
110
+ row.delete('_id') # in case it exists but the value is nil
111
111
  row['_id'] ||= id_for(row).to_s
112
112
  row
113
113
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metry
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathaniel Talbott