mongoid_snappy 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTU1ZjVkMjNjN2FhOWRkOGQ2Y2EzNmNiNDdlY2M1M2JlNWJlN2QwZg==
4
+ YzMyYzY5OTUyMTkyZTgwYmM3ZjI0N2UxZTYzMjYxNzk1ZGZjYTlhNg==
5
5
  data.tar.gz: !binary |-
6
- OGRjYjFmMTJhOTU2ZjQ4ZDAwYTJkZGI3NGE3YTI3Zjg3MGMwZTYyZg==
6
+ YTk3YTM5N2ZjOWY4NTdkYzA3MmFjYzdlZmJiOGE1MzJjYzcyYzYwOA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NGUzOGVjMmU2YmI0NGZmOTdjOGYwNTc4ZDFiYzBmNGJhOGVjMzVmMTRkYmUz
10
- MDc5NGIyMzYyYmVmOWJlNmM1YThmZmMyYTliNWRlNzI3NjBjZmRiOGFhYTMx
11
- Y2ZlZDhhNjYzMTc4YWYzYzM0MGE1MmMwOGEyM2ExZGQ0OWYyN2M=
9
+ MjExMGEwYmRlOWQ3MzQ1ODEyNzE1OTk4ZGUzMWYzZTQzY2RiZWZiNjE5NDQ3
10
+ MWQxMjQ3NTAzNzg3NTllODdiMjY5MWFmNmE1ZTZlOGZmNjA2ZTNmZDYyYjBm
11
+ YjU3NjQ4NGVlNGU1YWI0ZWE0MjhhNDQ1NTgzMjY1ZjM5NmY3ZmQ=
12
12
  data.tar.gz: !binary |-
13
- YzZmODg2NmVlYjlmNjI3MzJjMjYyNjBhN2UxOTFjZjBiOTZlZmE4ZTAyNDcw
14
- MTg2ZjNmZGRmOTQ3ODllMGEzYTQ5MTFlOWQzM2ZmZTE5OWViOGM1NmNlMjZj
15
- MTE5N2VjYTkwZDVhNDA0MmYzMTU1ZTBlZmJkM2MxZDA5NDQ0ZmU=
13
+ NmQzZWUwY2M1M2JlOTJlM2I2ZmQ3NWM3OTExMTc4YTUwZGZmMGRlZDA5ZjI0
14
+ OGY5ZmE2ODFkM2ExY2NjMTg1Y2U5YWExYzY2YTkzZGUxZGRmMjc4OTVmZWU3
15
+ MDZlMDA1MDZmZmVkMTVhMGQyYzA5MGFjOGY5YzlmNjgzMmEyNmU=
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Build Status](https://travis-ci.org/rs-pro/mongoid_snappy.png?branch=master)](https://travis-ci.org/rs-pro/mongoid_snappy)
2
+
1
3
  # MongoidSnappy
2
4
 
3
5
  Allow string attributes in Mongoid to be compressed with Snappy
@@ -1,3 +1,3 @@
1
1
  module MongoidSnappy
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -34,7 +34,7 @@ module Mongoid
34
34
  end
35
35
 
36
36
  def mongoize
37
- if defined?(Moped::BSON)
37
+ if defined?(Moped::BSON) && !defined?(BSON)
38
38
  Moped::BSON::Binary.new(:generic, ::Snappy.deflate(@data))
39
39
  else
40
40
  BSON::Binary.new(::Snappy.deflate(@data), :generic)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_snappy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - GlebTV
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-03 00:00:00.000000000 Z
11
+ date: 2013-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: snappy