rom-sql 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -4
- data/CHANGELOG.md +3 -1
- data/Gemfile +0 -1
- data/lib/rom/sql/relation.rb +2 -2
- data/lib/rom/sql/version.rb +1 -1
- data/rom-sql.gemspec +2 -2
- metadata +6 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7bcf2dc42045eeec0c29f7f4eb833b9e1381e63
|
4
|
+
data.tar.gz: 43a0ea01c51a400e1af5c1bb84aaf54d05851597
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86b7528f10243b97aabc0c0c17f2d1c55bf7e8f4827d6e85b882635c27a83bb100c24edab9c2d4c5d6ff79b5307dc83f3bd14c10414c8f452cbae995f4fb1f59
|
7
|
+
data.tar.gz: a341dca4d4034d960e2f991f37177a4681a23d8aff252cc9e239ac96625f9277ca968b253acff75fa9aaf1ce2ce54672cc29357a2eb1a8a96e7824d41fa655e7
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
### Added
|
4
4
|
|
5
5
|
* New `Relation#exist?` predicate checks if the relation has at least one tuple (flash-gordon)
|
6
|
-
* Support for JSONB transformations and queries using native DSL (flash-gordon)
|
6
|
+
* Support for [JSONB transformations and queries](https://github.com/rom-rb/rom-sql/blob/master/lib/rom/sql/extensions/postgres/types.rb#L43-L190) using native DSL (flash-gordon)
|
7
7
|
* Add `ROM::SQL::Attribute#not` for negated boolean equality expressions (AMHOL)
|
8
8
|
* Add `ROM::SQL::Attribute#!` for negated attribute's sql expressions (solnic)
|
9
9
|
* Inferrer gets limit constraints for string data types and stores them in type's meta (v-kolesnikov)
|
@@ -12,6 +12,8 @@
|
|
12
12
|
|
13
13
|
* Fixed usage of PostgreSQL's commands with a composite relation (flash-gordon)
|
14
14
|
* Translation of `true/false/nil` equality checks to `is/is not` SQL statements in `ROM::SQL::Attribute#is` (AMHOL)
|
15
|
+
* `associates` command plugin coerces parent collections to hashes correctly (aarek+solnic)
|
16
|
+
* `by_pk` works correctly even when PK is not projected (solnic)
|
15
17
|
|
16
18
|
### Changed
|
17
19
|
|
data/Gemfile
CHANGED
data/lib/rom/sql/relation.rb
CHANGED
@@ -26,6 +26,8 @@ module ROM
|
|
26
26
|
include Writing
|
27
27
|
include Reading
|
28
28
|
|
29
|
+
schema_dsl SQL::Schema::DSL
|
30
|
+
|
29
31
|
# Set default dataset for a relation sub-class
|
30
32
|
#
|
31
33
|
# @api private
|
@@ -33,8 +35,6 @@ module ROM
|
|
33
35
|
super
|
34
36
|
|
35
37
|
klass.class_eval do
|
36
|
-
schema_dsl SQL::Schema::DSL
|
37
|
-
|
38
38
|
schema_inferrer -> (name, gateway) do
|
39
39
|
inferrer_for_db = ROM::SQL::Schema::Inferrer.get(gateway.connection.database_type.to_sym)
|
40
40
|
begin
|
data/lib/rom/sql/version.rb
CHANGED
data/rom-sql.gemspec
CHANGED
@@ -20,8 +20,8 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.add_runtime_dependency 'sequel', '~> 4.43'
|
21
21
|
spec.add_runtime_dependency 'dry-equalizer', '~> 0.2'
|
22
22
|
spec.add_runtime_dependency 'dry-types', '~> 0.10', '>= 0.10.2'
|
23
|
-
spec.add_runtime_dependency 'dry-core', '~> 0.
|
24
|
-
spec.add_runtime_dependency 'rom', '~> 3.2', '>= 3.2.
|
23
|
+
spec.add_runtime_dependency 'dry-core', '~> 0.3'
|
24
|
+
spec.add_runtime_dependency 'rom', '~> 3.2', '>= 3.2.2'
|
25
25
|
|
26
26
|
spec.add_development_dependency 'bundler'
|
27
27
|
spec.add_development_dependency 'rake', '~> 10.0'
|
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: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Solnica
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sequel
|
@@ -64,20 +64,14 @@ dependencies:
|
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '0.
|
68
|
-
- - ">="
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: 0.2.3
|
67
|
+
version: '0.3'
|
71
68
|
type: :runtime
|
72
69
|
prerelease: false
|
73
70
|
version_requirements: !ruby/object:Gem::Requirement
|
74
71
|
requirements:
|
75
72
|
- - "~>"
|
76
73
|
- !ruby/object:Gem::Version
|
77
|
-
version: '0.
|
78
|
-
- - ">="
|
79
|
-
- !ruby/object:Gem::Version
|
80
|
-
version: 0.2.3
|
74
|
+
version: '0.3'
|
81
75
|
- !ruby/object:Gem::Dependency
|
82
76
|
name: rom
|
83
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -87,7 +81,7 @@ dependencies:
|
|
87
81
|
version: '3.2'
|
88
82
|
- - ">="
|
89
83
|
- !ruby/object:Gem::Version
|
90
|
-
version: 3.2.
|
84
|
+
version: 3.2.2
|
91
85
|
type: :runtime
|
92
86
|
prerelease: false
|
93
87
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -97,7 +91,7 @@ dependencies:
|
|
97
91
|
version: '3.2'
|
98
92
|
- - ">="
|
99
93
|
- !ruby/object:Gem::Version
|
100
|
-
version: 3.2.
|
94
|
+
version: 3.2.2
|
101
95
|
- !ruby/object:Gem::Dependency
|
102
96
|
name: bundler
|
103
97
|
requirement: !ruby/object:Gem::Requirement
|