mongoid-collection-separatable 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8cb98452f75ab68a4ffe0ac3998ca81b78af4daa8dc586251e764b9baa2575a
4
- data.tar.gz: 0f7934c424fd0a6f9a517c19ae4608fb6cc3874e7cd17ca46ab50ca10e4b42ac
3
+ metadata.gz: fa75c88ad46a73ad8a22f362aa5633550396ef6af0c848c8a7026b8e5995b88a
4
+ data.tar.gz: a5bb292f8318bc1c43bbc0a87b41aa881adaa7456b59619658526f13f7ddc3db
5
5
  SHA512:
6
- metadata.gz: 23d2e72379ddf98d8a9545ae644a61657fed118178f26dc98f9bee2762d08d06d082a11e40873d02014d1764f8727314bf48836998ea458c7cfb984418f6caff
7
- data.tar.gz: 4ace2b88c02563c469ad57b3fe807a3c4c613f0ece20d2a588c01692646f343f2300693ba8cdd1d82014645bc5f92af959fe09b2b715d25b8efa592ceae2b508
6
+ metadata.gz: 749ca2df67149e2c8fb07b96e752d2ba2fa26be8c5ebb6e33f6b79271050cac53f3cb6c799a223801ad8d0af1539276af69be6dc773d8ff30ab6dd3524d46e60
7
+ data.tar.gz: 56eabcb198ec96ea1b45caf748c16bc967d4ee044a23e3c726ec57d2ffbcbf146cf58894b611cfb6619b4fea952842b3b95ddebb27c0cc99db2ab5b5ad166bef
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mongoid-collection-separatable (0.1.0)
4
+ mongoid-collection-separatable (0.1.1)
5
5
  mongoid (~> 6.4.0)
6
6
 
7
7
  GEM
@@ -17,7 +17,7 @@ GEM
17
17
  bson (4.3.0)
18
18
  byebug (10.0.0)
19
19
  coderay (1.1.2)
20
- concurrent-ruby (1.1.3)
20
+ concurrent-ruby (1.1.4)
21
21
  diff-lcs (1.3)
22
22
  i18n (1.1.1)
23
23
  concurrent-ruby (~> 1.0)
@@ -13,6 +13,7 @@ module Mongoid
13
13
  def run
14
14
  target_collection = "#{origin_class.collection_name}_#{condition_value}"
15
15
 
16
+ origin_class.with(collection: target_collection) {Entry.create_indexes}
16
17
  origin_class.collection.aggregate([
17
18
  {'$match': {condition_key => condition_value}},
18
19
  {'$out': target_collection}
@@ -1,6 +1,6 @@
1
1
  module Mongoid
2
2
  module CollectionSeparatable
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-collection-separatable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Jiang