mm_uses_uuid 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module MmUsesUuid
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
data/lib/mm_uses_uuid.rb CHANGED
@@ -6,7 +6,7 @@ class BsonUuid
6
6
  def self.to_mongo(value)
7
7
  case value
8
8
  when String
9
- BSON::Binary.new(value, BSON::Binary::SUBTYPE_UUID)
9
+ BSON::Binary.new(value.gsub('-', ''), BSON::Binary::SUBTYPE_UUID)
10
10
  when BSON::Binary, NilClass
11
11
  value
12
12
  else
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 9
9
- version: 0.0.9
8
+ - 10
9
+ version: 0.0.10
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jonathan Chambers