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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 945fbfbd11ed73e702c332f2c86824cb32b97f7c
4
- data.tar.gz: 7642f9bf09223210d49bf4b1440f42538ceeb38a
3
+ metadata.gz: b7bcf2dc42045eeec0c29f7f4eb833b9e1381e63
4
+ data.tar.gz: 43a0ea01c51a400e1af5c1bb84aaf54d05851597
5
5
  SHA512:
6
- metadata.gz: f74fbc365378212045ad117f5d5af04182e4957beaec11681328a410f20fb9ce817621b2116d3dd50b347f579acfd3d3d8d45bc251ae64ba2c904b15341d6aed
7
- data.tar.gz: 88e1f6ed6f65489daca34b8a325e939d6dec3cf37fe40af80821a91319029bc404d888d436324638aa0540f67605435d9b744588d31f052c75e8a88e3eb98ea3
6
+ metadata.gz: 86b7528f10243b97aabc0c0c17f2d1c55bf7e8f4827d6e85b882635c27a83bb100c24edab9c2d4c5d6ff79b5307dc83f3bd14c10414c8f452cbae995f4fb1f59
7
+ data.tar.gz: a341dca4d4034d960e2f991f37177a4681a23d8aff252cc9e239ac96625f9277ca968b253acff75fa9aaf1ce2ce54672cc29357a2eb1a8a96e7824d41fa655e7
@@ -17,11 +17,7 @@ rvm:
17
17
  - 2.2.7
18
18
  - 2.3.4
19
19
  - 2.4.1
20
- - rbx-3
21
20
  - jruby-9.1.8.0
22
- matrix:
23
- allow_failures:
24
- - rvm: rbx-3
25
21
  env:
26
22
  global:
27
23
  - CODECLIMATE_REPO_TOKEN=03d7f66589572702b12426d2bc71c4de6281a96139e33b335b894264b1f8f0b0
@@ -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
@@ -3,7 +3,6 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  gem 'rom', git: 'https://github.com/rom-rb/rom.git', branch: 'master'
6
- gem 'rom-mapper', git: 'https://github.com/rom-rb/rom-mapper.git', branch: 'master'
7
6
 
8
7
  group :test do
9
8
  gem 'byebug', platforms: :mri
@@ -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
@@ -1,5 +1,5 @@
1
1
  module ROM
2
2
  module SQL
3
- VERSION = '1.3.0'.freeze
3
+ VERSION = '1.3.1'.freeze
4
4
  end
5
5
  end
@@ -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.2', '>= 0.2.3'
24
- spec.add_runtime_dependency 'rom', '~> 3.2', '>= 3.2.1'
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.0
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-02 00:00:00.000000000 Z
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.2'
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.2'
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.1
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.1
94
+ version: 3.2.2
101
95
  - !ruby/object:Gem::Dependency
102
96
  name: bundler
103
97
  requirement: !ruby/object:Gem::Requirement