mongoid_versioning 0.0.2 → 0.0.3

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: 87547bda9b49e1db52669360fa1c652b81797bbc
4
- data.tar.gz: 4970ab0963f35517304e732b5779fb2fa928f62c
3
+ metadata.gz: 3da640238adffc66b1ef2b4aa7c1214e96f76e84
4
+ data.tar.gz: bbf75f611e013b11dd7819a46c58c7a739102de5
5
5
  SHA512:
6
- metadata.gz: 25ae935bcacf3284bd31d7af9b03203b0f9b45801f3cfacd959114c8ce3b53bf47a69b6760400de0d493d3df48f9632e60c15466ba3a66ffceac00088f02d643
7
- data.tar.gz: 736f7cf63d417a05d4d48c12ad593722cd5d3877c85a79831b864cb10e481b1b6f05bfafeaa05a9695930f1c52633959245ca4fc763e9b4317c8a591027a7576
6
+ metadata.gz: fa55a2afa36a3aede3250003ed3225424c8a8215c0a0ead848f2d9a0ee6ba0bc2f16449f5872e0c8252f7b422b97291ecf78418191ad9bffe42ccd4ca5a48098
7
+ data.tar.gz: 41bd4e6e8f24f25c3f80e062b4993d7814bd7c18bb0dee72162a7cd6bd828156bd5af0e7d823793680bd086ca72b2fb9d65c1dcb185bb127c9761541bd9eb461
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.0.3
2
+
3
+ * The `#previous_versions` now use an extra query to be more exact.
4
+
1
5
  ## 0.0.2
2
6
 
3
7
  * Calling `#revise` on new document simply creates it (`:revise` callbacks are not triggered).
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mongoid_versioning (0.0.2)
4
+ mongoid_versioning (0.0.3)
5
5
  mongoid (~> 4.0)
6
6
 
7
7
  GEM
@@ -1,3 +1,3 @@
1
1
  module MongoidVersioning
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -69,7 +69,7 @@ module MongoidVersioning
69
69
  def previous_versions
70
70
  self.class.with(collection: self.class.versions_collection_name).
71
71
  where(_orig_id: id).
72
- lt(_version: _version).
72
+ ne(_version: latest_version._version).
73
73
  desc(:_version)
74
74
  end
75
75
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_versioning
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Celizna