mongoid-compatibility 0.4.1 → 0.5.0
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.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/CHANGELOG.md +8 -0
- data/Gemfile +2 -0
- data/LICENSE.md +1 -1
- data/README.md +5 -2
- data/lib/mongoid/compatibility/self.rb +1 -1
- data/lib/mongoid/compatibility/version.rb +1 -1
- data/spec/config/mongoid7.yml +8 -0
- data/spec/mongoid/compatibility/version_spec.rb +1 -1
- data/spec/support/mongoid.rb +2 -0
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4c9cc2a402a72a8af6bd7e28e93d8428605fe8c2
|
|
4
|
+
data.tar.gz: 8d3c8435aa36bcdca204a5f15bc59de675c94ec4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 227f291b3660311bad79c640fa6c278822698c65ecc397462a466a511128c61c6591a881dbb014481702d1b76dfe020aeb97fa6a0d4e1503cae8ee6ee3869e82
|
|
7
|
+
data.tar.gz: a28e3cb6ddabff170b99029529030b8dc46fee41bc11768acaca5fafcdf470d4e2af30b4ac69d2eb3ba56fdf4c4aaef4cfddfcee2dd55e5c1ea2f5ce329344c5
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
### 0.5.1 (Next)
|
|
2
|
+
|
|
3
|
+
* Your contribution here.
|
|
4
|
+
|
|
5
|
+
### 0.5.0
|
|
6
|
+
|
|
7
|
+
* [#10](https://github.com/mongoid/mongoid-compatibility/pull/10): Compatibility with Mongoid 7.x - [@joeyAghion](https://github.com/joeyAghion).
|
|
8
|
+
|
|
1
9
|
### 0.4.1 (2017/01/19)
|
|
2
10
|
|
|
3
11
|
* [#5](https://github.com/mongoid/mongoid-compatibility/pull/5): Compatibility with Ruby 2.4.0 and Mongoid 6.0 - [@moodlemags](https://github.com/moodlemags).
|
data/Gemfile
CHANGED
data/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2015 Daniel Doubrovkine, Artsy and Contributors
|
|
3
|
+
Copyright (c) 2015-2017 Daniel Doubrovkine, Artsy and Contributors
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
6
|
a copy of this software and associated documentation files (the
|
data/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Mongoid::Compatibility
|
|
|
6
6
|
[](https://gemnasium.com/mongoid/mongoid-compatibility)
|
|
7
7
|
[](https://codeclimate.com/github/mongoid/mongoid-compatibility)
|
|
8
8
|
|
|
9
|
-
Compatibility helpers for Mongoid versions 2, 3, 4,
|
|
9
|
+
Compatibility helpers for Mongoid versions 2, 3, 4, 5, 6 and 7.
|
|
10
10
|
|
|
11
11
|
### Install
|
|
12
12
|
|
|
@@ -37,6 +37,9 @@ Mongoid::Compatibility::Version.mongoid5?
|
|
|
37
37
|
|
|
38
38
|
Mongoid::Compatibility::Version.mongoid6?
|
|
39
39
|
# => is this Mongoid 6.x?
|
|
40
|
+
|
|
41
|
+
Mongoid::Compatibility::Version.mongoid7?
|
|
42
|
+
# => is this Mongoid 7.x?
|
|
40
43
|
```
|
|
41
44
|
|
|
42
45
|
#### Mongoid::Compatibility::ObjectId
|
|
@@ -52,6 +55,6 @@ See [CONTRIBUTING](CONTRIBUTING.md).
|
|
|
52
55
|
|
|
53
56
|
### Copyright and License
|
|
54
57
|
|
|
55
|
-
Copyright Daniel Doubrovkine and Contributors, Artsy Inc., 2015
|
|
58
|
+
Copyright Daniel Doubrovkine and Contributors, Artsy Inc., 2015-2017
|
|
56
59
|
|
|
57
60
|
[MIT License](LICENSE.md)
|
|
@@ -12,7 +12,7 @@ describe Mongoid::Compatibility::Version do
|
|
|
12
12
|
it 'defines version methods' do
|
|
13
13
|
expect(Mongoid::Compatibility::Version.methods - Object.methods).to_not eq []
|
|
14
14
|
end
|
|
15
|
-
(2..
|
|
15
|
+
(2..7).each do |v|
|
|
16
16
|
context "mongoid #{v}" do
|
|
17
17
|
it "responds to mongoid#{v}?" do
|
|
18
18
|
expect(Mongoid::Compatibility::Version).to respond_to("mongoid#{v}?")
|
data/spec/support/mongoid.rb
CHANGED
|
@@ -10,6 +10,8 @@ elsif Mongoid::Compatibility::Version.mongoid5?
|
|
|
10
10
|
Mongoid.load! 'spec/config/mongoid5.yml'
|
|
11
11
|
elsif Mongoid::Compatibility::Version.mongoid6?
|
|
12
12
|
Mongoid.load! 'spec/config/mongoid6.yml'
|
|
13
|
+
elsif Mongoid::Compatibility::Version.mongoid7?
|
|
14
|
+
Mongoid.load! 'spec/config/mongoid7.yml'
|
|
13
15
|
else
|
|
14
16
|
fail "unsupported Mongoid version #{Mongoid::VERSION}"
|
|
15
17
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mongoid-compatibility
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Doubrovkine
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-09-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mongoid
|
|
@@ -69,6 +69,7 @@ files:
|
|
|
69
69
|
- spec/config/mongoid4.yml
|
|
70
70
|
- spec/config/mongoid5.yml
|
|
71
71
|
- spec/config/mongoid6.yml
|
|
72
|
+
- spec/config/mongoid7.yml
|
|
72
73
|
- spec/mongoid/compatibility/object_id_spec.rb
|
|
73
74
|
- spec/mongoid/compatibility/self_spec.rb
|
|
74
75
|
- spec/mongoid/compatibility/version_spec.rb
|
|
@@ -94,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
94
95
|
version: 1.3.6
|
|
95
96
|
requirements: []
|
|
96
97
|
rubyforge_project:
|
|
97
|
-
rubygems_version: 2.
|
|
98
|
+
rubygems_version: 2.5.2
|
|
98
99
|
signing_key:
|
|
99
100
|
specification_version: 4
|
|
100
101
|
summary: Compatibility helpers for Mongoid.
|