rom-model 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile +2 -1
- data/lib/rom/model/validator.rb +2 -3
- data/lib/rom/model/version.rb +1 -1
- data/rom-model.gemspec +2 -2
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87bd7a4a128cbc67271ce18e1c2cd5a23bb26959
|
4
|
+
data.tar.gz: f016b855181958624de419879ba56e0d2f48168c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2169bd67eed59d42928fe1a3d4edfd51b22d64458ccfb74770a9c85f64275c8bba569e1aeefb3a9b6006f39772b2ebe993a8a386d52d0cbb1bce8d26431aea4
|
7
|
+
data.tar.gz: 97f4af55ae8190d2f788af0d7287a81bc8b4162ea2544652fef6123f5621860e8361a3161ea6aaed65ca9747ba37f62e2f6ba93be7a22e6d5c2df29669db10db
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -4,7 +4,8 @@ gemspec
|
|
4
4
|
|
5
5
|
group :test do
|
6
6
|
gem 'rspec'
|
7
|
-
gem 'rom
|
7
|
+
gem 'rom', github: 'rom-rb/rom', branch: 'master'
|
8
|
+
gem 'rom-sql', github: 'rom-rb/rom-sql', branch: 'master'
|
8
9
|
gem 'pg', platforms: [:mri, :rbx]
|
9
10
|
gem 'pg_jruby', platforms: :jruby
|
10
11
|
gem 'codeclimate-test-reporter', require: nil, platform: :rbx
|
data/lib/rom/model/validator.rb
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
require 'dry-equalizer'
|
2
2
|
require 'charlatan'
|
3
|
+
require 'dry/core/class_attributes'
|
3
4
|
|
4
|
-
require 'rom/support/constants'
|
5
5
|
require 'rom/constants'
|
6
6
|
|
7
7
|
require 'rom/model/validator/uniqueness_validator'
|
8
|
-
require 'rom/support/class_macros'
|
9
8
|
|
10
9
|
require 'rom/pipeline'
|
11
10
|
|
@@ -52,7 +51,7 @@ module ROM
|
|
52
51
|
def self.included(base)
|
53
52
|
base.class_eval do
|
54
53
|
extend ClassMethods
|
55
|
-
extend
|
54
|
+
extend Dry::Core::ClassAttributes
|
56
55
|
|
57
56
|
include ActiveModel::Validations
|
58
57
|
include Dry::Equalizer(:attributes, :errors)
|
data/lib/rom/model/version.rb
CHANGED
data/rom-model.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
20
|
spec.add_runtime_dependency 'dry-equalizer', '~> 0.2'
|
21
|
-
spec.add_runtime_dependency '
|
21
|
+
spec.add_runtime_dependency 'dry-core', '~> 0.2', '>= 0.2.3'
|
22
22
|
spec.add_runtime_dependency 'charlatan', '~> 0.1'
|
23
23
|
spec.add_runtime_dependency 'virtus', '~> 1.0', '>= 1.0.5'
|
24
24
|
spec.add_runtime_dependency 'activemodel', '>= 3.0', "< 6.0"
|
@@ -26,5 +26,5 @@ Gem::Specification.new do |spec|
|
|
26
26
|
|
27
27
|
spec.add_development_dependency "bundler"
|
28
28
|
spec.add_development_dependency "rake"
|
29
|
-
spec.add_development_dependency "rubocop", "~> 0.
|
29
|
+
spec.add_development_dependency "rubocop", "~> 0.47.1"
|
30
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rom-model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.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:
|
11
|
+
date: 2017-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-equalizer
|
@@ -25,19 +25,25 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: dry-core
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '2
|
33
|
+
version: '0.2'
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 0.2.3
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
41
|
- - "~>"
|
39
42
|
- !ruby/object:Gem::Version
|
40
|
-
version: '2
|
43
|
+
version: '0.2'
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 0.2.3
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: charlatan
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -140,14 +146,14 @@ dependencies:
|
|
140
146
|
requirements:
|
141
147
|
- - "~>"
|
142
148
|
- !ruby/object:Gem::Version
|
143
|
-
version: 0.
|
149
|
+
version: 0.47.1
|
144
150
|
type: :development
|
145
151
|
prerelease: false
|
146
152
|
version_requirements: !ruby/object:Gem::Requirement
|
147
153
|
requirements:
|
148
154
|
- - "~>"
|
149
155
|
- !ruby/object:Gem::Version
|
150
|
-
version: 0.
|
156
|
+
version: 0.47.1
|
151
157
|
description:
|
152
158
|
email:
|
153
159
|
- piotr.solnica@gmail.com
|