origin 2.2.2 → 2.3.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 +13 -5
- data/lib/origin/optional.rb +14 -0
- data/lib/origin/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MzM3ZWIxYjY3ZTgwYjJkMjBjM2MzNjdmZTE4ODkwMjcwMmE0Y2Q4MA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NjkzMGFhNjEzOTdiYjA4NjFiZGM0MWJhNWIxZmVkZTk5NjQzNjMxNQ==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NzNiODg4YWI5YmNkNTE1ODdmNjBkZDgzYmQ1ZjU3NGQ2MjIyNjk1ZjQwOWM4
|
10
|
+
MmE3MTEzODEwNzc4MzQxNmNjYzljMDQwZjJmZjQ1NzU5YTgxMzA2YmNiODBm
|
11
|
+
NDBiYTliZDAzZGU3NmU1OTU0Y2JlOTllMDE5NTMwMzMzNzZjMzY=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YzVjNTg2NzFhMTQyMDNjYmMzYmIzYmZhZmY4MTk3NTFkYTdiOTRiZjljMTlj
|
14
|
+
NzkzNTU1NmY0M2QwZjU4NTQ5YWQ3ZGQ1OTExYzVlYzg1ZDM2YTNkMjJiYzVj
|
15
|
+
ZmIzMTQ2ZDEzMDJjZDE0MTNlYjE0MTU4YzNiYzQ1MjU3Zjg1NTY=
|
data/lib/origin/optional.rb
CHANGED
@@ -303,6 +303,20 @@ module Origin
|
|
303
303
|
clone.tap { |query| query.options.store(:cursor_type, type) }
|
304
304
|
end
|
305
305
|
|
306
|
+
# Set the collation. Can only be used with server versions >= 3.4.
|
307
|
+
#
|
308
|
+
# @example Set the collation.
|
309
|
+
# optional.collation(locale: 'fr', strength: 2)
|
310
|
+
#
|
311
|
+
# @param [ Hash ] collation_doc The document describing the collation to use.
|
312
|
+
#
|
313
|
+
# @return [ Optional ] The cloned optional.
|
314
|
+
#
|
315
|
+
# @since 2.3.0
|
316
|
+
def collation(collation_doc)
|
317
|
+
clone.tap { |query| query.options.store(:collation, collation_doc) }
|
318
|
+
end
|
319
|
+
|
306
320
|
private
|
307
321
|
|
308
322
|
# Add a single sort option.
|
data/lib/origin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: origin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Durran Jordan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Origin is a simple DSL for generating MongoDB selectors and options
|
14
14
|
email:
|
@@ -61,17 +61,17 @@ require_paths:
|
|
61
61
|
- lib
|
62
62
|
required_ruby_version: !ruby/object:Gem::Requirement
|
63
63
|
requirements:
|
64
|
-
- -
|
64
|
+
- - ! '>='
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: '0'
|
67
67
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
|
-
- -
|
69
|
+
- - ! '>='
|
70
70
|
- !ruby/object:Gem::Version
|
71
71
|
version: 1.3.6
|
72
72
|
requirements: []
|
73
73
|
rubyforge_project: origin
|
74
|
-
rubygems_version: 2.4.
|
74
|
+
rubygems_version: 2.4.8
|
75
75
|
signing_key:
|
76
76
|
specification_version: 4
|
77
77
|
summary: Simple DSL for MongoDB query generation
|