mongoid-ancestry 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3b4a81fd8d6fc037f515cc4c08ea4fd4cf8ec12
4
- data.tar.gz: cce7627b8e3f643465488670beb4eb7f34369ff5
3
+ metadata.gz: e5dd4b66b2d758be42f58f57412a652098de6392
4
+ data.tar.gz: 24d70be814ae5d82975545e1393de6ca64356b12
5
5
  SHA512:
6
- metadata.gz: 048b43039e92f3bcf4781463edb2cf96518d5f1c9489a40c17c7bdf0c2c4861c72738fef4bd91811601b1fe2dba1f5791eae3606f188ec27b0eeff6360c3adcd
7
- data.tar.gz: 596b28a5d4af2e07c3899bd6ccac9fefb9d3a39b91bd9071cb7be8c1a807e0eae78a95eda47823116af2185a00734794625ed238bccc7b88c12648c33c01d654
6
+ metadata.gz: 8c8f034b7ab0c2755c6d378d92ef95346521882b67b1e82d945b6b73c443bfd9be5cf592de171bd41b467afee42923409375a0b721b6b22d772b4ae4e423805f
7
+ data.tar.gz: e342462b06db5cbf37358d3262ddfc240e515eb2cf44e38ade3818d4d591fce7752aeb5ef4e7fe0baad6ecfc2efb1fc4ee909aee2795b3b75be4b635b6855fb8
@@ -1,14 +1,8 @@
1
1
  module Mongoid
2
2
 
3
- def self.mongoid3?
4
- ::Mongoid.const_defined? :Observer # deprecated in Mongoid 4.x
5
- end
6
3
 
7
- def self.mongoid2?
8
- ::Mongoid.const_defined? :Contexts # deprecated in Mongoid 3.x
9
- end
10
4
 
11
5
  module Ancestry
12
- VERSION = '0.4.0'
6
+ VERSION = '0.4.1'
13
7
  end
14
8
  end
@@ -1,4 +1,11 @@
1
1
  module Mongoid
2
+ def self.mongoid3?
3
+ ::Mongoid.const_defined? :Observer # deprecated in Mongoid 4.x
4
+ end
5
+
6
+ def self.mongoid2?
7
+ ::Mongoid.const_defined? :Contexts # deprecated in Mongoid 3.x
8
+ end
2
9
  module Ancestry
3
10
  extend ActiveSupport::Concern
4
11
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-ancestry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Kroes
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-02-24 00:00:00.000000000 Z
12
+ date: 2014-02-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake