rom 3.2.1 → 3.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -6
- data/lib/rom/relation.rb +9 -0
- data/lib/rom/relation/class_interface.rb +1 -7
- data/lib/rom/version.rb +1 -1
- data/rom.gemspec +2 -4
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcffdcd66a5b0b8127eb767564652778c8061ca6
|
4
|
+
data.tar.gz: 27f25c3fae64b26b1ab8d6643a5a7f90cb4fb633
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83984e098b54e2e544b231be28aaf51157cae035c3f53f34d7509c42eb3e994796c47599feebf6a28cafcf284c64c1c6c61eeef046db7cc0216516f5d71ecbf6
|
7
|
+
data.tar.gz: 0aba220bf1b4667ff29d801dca1afd457e0fca1456d60353625ca3d72aa8903186d415e2de8c412ccbb69c5993f153930d4b85acde15f096e89b0ccc85d11185
|
data/.travis.yml
CHANGED
@@ -7,18 +7,14 @@ script: "bundle exec rake ci"
|
|
7
7
|
after_success:
|
8
8
|
- '[ -d coverage ] && bundle exec codeclimate-test-reporter'
|
9
9
|
rvm:
|
10
|
-
- 2.2.
|
11
|
-
- 2.3.
|
10
|
+
- 2.2.7
|
11
|
+
- 2.3.4
|
12
12
|
- 2.4.1
|
13
|
-
- rbx-3
|
14
13
|
- jruby
|
15
14
|
env:
|
16
15
|
global:
|
17
16
|
- JRUBY_OPTS='--dev -J-Xmx1024M'
|
18
17
|
- COVERAGE='true'
|
19
|
-
matrix:
|
20
|
-
allow_failures:
|
21
|
-
- rvm: rbx-3
|
22
18
|
notifications:
|
23
19
|
webhooks:
|
24
20
|
urls:
|
data/lib/rom/relation.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'dry/core/class_attributes'
|
2
|
+
|
1
3
|
require 'rom/initializer'
|
2
4
|
require 'rom/relation/class_interface'
|
3
5
|
|
@@ -40,6 +42,13 @@ module ROM
|
|
40
42
|
extend Initializer
|
41
43
|
extend ClassInterface
|
42
44
|
|
45
|
+
extend Dry::Core::ClassAttributes
|
46
|
+
defines :schema_class, :schema_inferrer, :schema_dsl
|
47
|
+
|
48
|
+
schema_dsl Schema::DSL
|
49
|
+
schema_class Schema
|
50
|
+
schema_inferrer Schema::DEFAULT_INFERRER
|
51
|
+
|
43
52
|
include Dry::Equalizer(:dataset)
|
44
53
|
include Materializable
|
45
54
|
include Pipeline
|
@@ -2,7 +2,6 @@ require 'set'
|
|
2
2
|
|
3
3
|
require 'dry/core/inflector'
|
4
4
|
require 'dry/core/constants'
|
5
|
-
require 'dry/core/class_attributes'
|
6
5
|
|
7
6
|
require 'rom/auto_curry'
|
8
7
|
require 'rom/relation/curried'
|
@@ -30,12 +29,7 @@ module ROM
|
|
30
29
|
"relation class +#{self}+ is missing the adapter identifier"
|
31
30
|
end
|
32
31
|
|
33
|
-
klass.
|
34
|
-
klass.defines :adapter, :schema_class, :schema_inferrer, :schema_dsl
|
35
|
-
|
36
|
-
klass.schema_dsl Schema::DSL
|
37
|
-
klass.schema_class Schema
|
38
|
-
klass.schema_inferrer Schema::DEFAULT_INFERRER
|
32
|
+
klass.defines :adapter
|
39
33
|
|
40
34
|
# Extend with functionality required by adapters *only* if this is a direct
|
41
35
|
# descendant of an adapter-specific relation subclass
|
data/lib/rom/version.rb
CHANGED
data/rom.gemspec
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
1
|
require File.expand_path('../lib/rom/version', __FILE__)
|
4
2
|
|
5
3
|
Gem::Specification.new do |gem|
|
@@ -18,9 +16,9 @@ Gem::Specification.new do |gem|
|
|
18
16
|
gem.add_runtime_dependency 'concurrent-ruby', '~> 1.0'
|
19
17
|
gem.add_runtime_dependency 'dry-equalizer', '~> 0.2'
|
20
18
|
gem.add_runtime_dependency 'dry-types', '~> 0.9', '>= 0.9.4'
|
21
|
-
gem.add_runtime_dependency 'dry-core', '~> 0.
|
19
|
+
gem.add_runtime_dependency 'dry-core', '~> 0.3'
|
22
20
|
gem.add_runtime_dependency 'dry-initializer', '~> 1.3'
|
23
|
-
gem.add_runtime_dependency 'rom-mapper', '~> 0.5'
|
21
|
+
gem.add_runtime_dependency 'rom-mapper', '~> 0.5', '>= 0.5.1'
|
24
22
|
|
25
23
|
gem.add_development_dependency 'rake', '~> 10.3'
|
26
24
|
gem.add_development_dependency 'rspec', '~> 3.5'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.2
|
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: concurrent-ruby
|
@@ -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: dry-initializer
|
83
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,6 +93,9 @@ dependencies:
|
|
99
93
|
- - "~>"
|
100
94
|
- !ruby/object:Gem::Version
|
101
95
|
version: '0.5'
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: 0.5.1
|
102
99
|
type: :runtime
|
103
100
|
prerelease: false
|
104
101
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -106,6 +103,9 @@ dependencies:
|
|
106
103
|
- - "~>"
|
107
104
|
- !ruby/object:Gem::Version
|
108
105
|
version: '0.5'
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: 0.5.1
|
109
109
|
- !ruby/object:Gem::Dependency
|
110
110
|
name: rake
|
111
111
|
requirement: !ruby/object:Gem::Requirement
|