rom-sql 3.3.3 → 3.4.0

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
  SHA256:
3
- metadata.gz: bfe5975f2fc0756a0a3f8239916f58c4f6dc307a3af1d7cdd1d62bbcd7c4cfc1
4
- data.tar.gz: 68c896292b5bde03e255552acb84d6952d21bb705bedc43f6f36811f5bb350c1
3
+ metadata.gz: 77e9a1c6c69b4539e55608281a06efbb7cac1b8c5723ab96be497aa982ed6677
4
+ data.tar.gz: 3d1690050c29b5a09f3e72fc952eb32b1e7e5b3e421d0bd157cdeec11bb98c14
5
5
  SHA512:
6
- metadata.gz: d951459dc868955f1cddd1b77ac56f0aa8b71e556afd0cdea382241da0572a04c26da3f1fd9f73e49b53e93559e8b436d63681d0fefbe56f2e41e7284709012e
7
- data.tar.gz: 7d151a47318bfe9ad5caeb5b0977dc31eb5f1577ed2707a43f4c88715c10bc0e00d4145571da8bff72e515ee1b7caa46911d0bfc896e570f303a1496f6436ae7
6
+ metadata.gz: 9f1c1f6c059d88c2b5ad4872aea4f071799fdabab42d45a1a8fea4393361925883d4286a6543e58fa5ada1d22cee9fab691086e3f1a82a0f1ceecfac11ef918d
7
+ data.tar.gz: 42dcefd8414fc1b5a2afe818efff6ed3a410d0aea790ff9400b6f42127990781174ee83944d5791114d3b6fd49208c9a839e76d7afb3007cc19e5b3be2705172
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  <!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
2
2
 
3
+ ## 3.4.0 2021-03-19
4
+
5
+
6
+ ### Added
7
+
8
+ - `Relation#unordered` (@radar)
9
+
10
+
11
+ [Compare v3.3.3...v3.4.0](https://github.com/rom-rb/rom-sql/compare/v3.3.3...v3.4.0)
12
+
3
13
  ## 3.3.3 2021-03-05
4
14
 
5
15
 
@@ -192,8 +192,8 @@ module ROM
192
192
  # Filter aggregate using the specified conditions
193
193
  #
194
194
  # @example
195
- # users.project { integer::count(:id).filter(name.is("Jack")).as(:jacks) }.order(nil)
196
- # users.project { integer::count(:id).filter { name.is("John") }).as(:johns) }.order(nil)
195
+ # users.project { integer::count(:id).filter(name.is("Jack")).as(:jacks) }.unordered
196
+ # users.project { integer::count(:id).filter { name.is("John") }).as(:johns) }.ordered
197
197
  #
198
198
  # @param condition [Hash,SQL::Attribute] Conditions
199
199
  # @yield [block] A block with restrictions
@@ -481,6 +481,18 @@ module ROM
481
481
  end
482
482
  end
483
483
 
484
+ # Removes ordering for the relation
485
+ #
486
+ # @example
487
+ # users.unordered
488
+ #
489
+ # @return [Relation]
490
+ #
491
+ # @api public
492
+ def unordered
493
+ new(dataset.unordered)
494
+ end
495
+
484
496
  # Reverse the order of the relation
485
497
  #
486
498
  # @example
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ROM
4
4
  module SQL
5
- VERSION = '3.3.3'.freeze
5
+ VERSION = '3.4.0'.freeze
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rom-sql
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.3
4
+ version: 3.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-05 00:00:00.000000000 Z
11
+ date: 2021-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sequel
@@ -241,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
241
241
  - !ruby/object:Gem::Version
242
242
  version: '0'
243
243
  requirements: []
244
- rubygems_version: 3.2.3
244
+ rubygems_version: 3.1.4
245
245
  signing_key:
246
246
  specification_version: 4
247
247
  summary: SQL databases support for ROM