origin 2.2.2 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a84f9c2e99783c93a4a4e74e7eb70341451be50f
4
- data.tar.gz: 3c82e871417054d9669033ce53e84faab00dcb9f
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MzM3ZWIxYjY3ZTgwYjJkMjBjM2MzNjdmZTE4ODkwMjcwMmE0Y2Q4MA==
5
+ data.tar.gz: !binary |-
6
+ NjkzMGFhNjEzOTdiYjA4NjFiZGM0MWJhNWIxZmVkZTk5NjQzNjMxNQ==
5
7
  SHA512:
6
- metadata.gz: 7c56c70958271f3557dafb5280b31e1361fec3c57aea397e51d25ea360bd140d0950be487891bb70541b5c81f68e3efe4f9916a186f4dc3399e1c3d15b7d5d30
7
- data.tar.gz: dc05d8f492fe32644b76d98524e2769c7588c0a437fa205a3fa08a9425bee4bfea18191e6c77bf63cb2fb046befc70f7e615a86b826de1cf098a9bc486eb3243
8
+ metadata.gz: !binary |-
9
+ NzNiODg4YWI5YmNkNTE1ODdmNjBkZDgzYmQ1ZjU3NGQ2MjIyNjk1ZjQwOWM4
10
+ MmE3MTEzODEwNzc4MzQxNmNjYzljMDQwZjJmZjQ1NzU5YTgxMzA2YmNiODBm
11
+ NDBiYTliZDAzZGU3NmU1OTU0Y2JlOTllMDE5NTMwMzMzNzZjMzY=
12
+ data.tar.gz: !binary |-
13
+ YzVjNTg2NzFhMTQyMDNjYmMzYmIzYmZhZmY4MTk3NTFkYTdiOTRiZjljMTlj
14
+ NzkzNTU1NmY0M2QwZjU4NTQ5YWQ3ZGQ1OTExYzVlYzg1ZDM2YTNkMjJiYzVj
15
+ ZmIzMTQ2ZDEzMDJjZDE0MTNlYjE0MTU4YzNiYzQ1MjU3Zjg1NTY=
@@ -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.
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Origin
3
- VERSION = "2.2.2"
3
+ VERSION = "2.3.0"
4
4
  end
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.2.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-10-20 00:00:00.000000000 Z
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.5.1
74
+ rubygems_version: 2.4.8
75
75
  signing_key:
76
76
  specification_version: 4
77
77
  summary: Simple DSL for MongoDB query generation