rom-rails 0.9.0.beta1 → 0.9.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 -2
- data/README.md +1 -8
- data/lib/rom/rails/configuration.rb +2 -2
- data/lib/rom/rails/model/form.rb +5 -3
- data/lib/rom/rails/version.rb +1 -1
- data/rom-rails.gemspec +2 -3
- data/spec/spec_helper.rb +2 -0
- metadata +8 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0e59843d440aaeb2a02a9d491e563a4d688fb0e
|
4
|
+
data.tar.gz: a26ee36178717a151f1d7bdddc149ca5da8d7468
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b485fd70f08ae8a61bf678cd9dad6125fb28389cd1ecd21fbb9378bb6960738044ed2398772a04fe34b0f02b5729ccd9bbb481c3c836e48ebf91b51251480027
|
7
|
+
data.tar.gz: f16230e0d340682c8e3b32a2e6214d89049e80791ffd3de9ed610868db1cf87c4a39c6fcd974e726304a0d7cd7c41919f75876b9ad1435c76dfcb317a9b226c0
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
## v0.9.0
|
1
|
+
## v0.9.0 2017-01-30
|
2
2
|
|
3
3
|
### Added
|
4
4
|
|
@@ -12,6 +12,10 @@
|
|
12
12
|
* Updated generators to remove validatior hints (cflipse)
|
13
13
|
* Updated generators to provide before hook hints, rather than override `execute` (cflipse)
|
14
14
|
|
15
|
+
### Internal
|
16
|
+
|
17
|
+
* [`rom-support`](https://github.com/rom-rb/rom-support) dependency was replaced with [`dry-core`](https://github.com/dry-rb/dry-core) (solnic + flash-gordon)
|
18
|
+
|
15
19
|
## v0.8.0 2016-08-08
|
16
20
|
### Changed
|
17
21
|
|
@@ -27,7 +31,7 @@
|
|
27
31
|
### Changed
|
28
32
|
* Updated to work with rom 2.0
|
29
33
|
* Loosen Gem dependencies for Rails 4.2
|
30
|
-
* Allow multiple auto_registration paths (vbyno)
|
34
|
+
* Allow multiple auto_registration paths (vbyno)
|
31
35
|
|
32
36
|
[Compare v0.6.0...v0.7.0](https://github.com/rom-rb/rom-rails/compare/v0.6.0...v0.7.0)
|
33
37
|
|
data/README.md
CHANGED
@@ -22,13 +22,6 @@ ships with:
|
|
22
22
|
* Command generators
|
23
23
|
* Repository generators
|
24
24
|
|
25
|
-
You may also want to look at [ROM Model](https://github.com/rom-rb/rom-model)
|
26
|
-
which includes:
|
27
|
-
|
28
|
-
* Params sanitizer/coercer extension
|
29
|
-
* Validation extension based on `ActiveModel`
|
30
|
-
|
31
|
-
|
32
25
|
## Tests
|
33
26
|
|
34
27
|
To run tests:
|
@@ -47,7 +40,7 @@ You can read more about ROM and Rails on the official website:
|
|
47
40
|
## Community
|
48
41
|
|
49
42
|
* [![Gitter chat](https://badges.gitter.im/rom-rb/chat.png)](https://gitter.im/rom-rb/chat)
|
50
|
-
* [
|
43
|
+
* [Discussion Forum](https://discuss.rom-rb.org)
|
51
44
|
|
52
45
|
## License
|
53
46
|
|
@@ -1,9 +1,9 @@
|
|
1
|
-
require '
|
1
|
+
require 'dry/core/deprecations'
|
2
2
|
|
3
3
|
module ROM
|
4
4
|
module Rails
|
5
5
|
class Configuration
|
6
|
-
extend
|
6
|
+
extend Dry::Core::Deprecations[:configuration]
|
7
7
|
include ActiveSupport::Configurable
|
8
8
|
|
9
9
|
config_accessor :gateways do
|
data/lib/rom/rails/model/form.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
require 'dry
|
1
|
+
require 'dry/equalizer'
|
2
|
+
require 'dry/core/class_attributes'
|
3
|
+
|
2
4
|
require 'rom-model'
|
3
5
|
|
4
6
|
require 'rom/rails/model/form/class_interface'
|
@@ -49,7 +51,7 @@ module ROM
|
|
49
51
|
class Form
|
50
52
|
include Dry::Equalizer(:params, :model, :result)
|
51
53
|
|
52
|
-
extend
|
54
|
+
extend Dry::Core::ClassAttributes
|
53
55
|
extend Form::ClassInterface
|
54
56
|
|
55
57
|
defines :relation, :mappings
|
@@ -94,7 +96,7 @@ module ROM
|
|
94
96
|
#
|
95
97
|
# @api private
|
96
98
|
def self.inherited(klass)
|
97
|
-
|
99
|
+
Dry::Core::Deprecations.announce "ROM::Model::Form", <<-MSG, tag: :rom
|
98
100
|
We now recommend using Reform or another dedicated form library,
|
99
101
|
in conjunction with ROM::Repository or explicit command invocations.
|
100
102
|
MSG
|
data/lib/rom/rails/version.rb
CHANGED
data/rom-rails.gemspec
CHANGED
@@ -17,11 +17,10 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
|
-
spec.add_runtime_dependency 'rom', '~> 3.0
|
21
|
-
spec.add_runtime_dependency 'rom-support', '~> 2.0'
|
20
|
+
spec.add_runtime_dependency 'rom', '~> 3.0'
|
22
21
|
spec.add_runtime_dependency 'rom-model', '~> 0.3'
|
23
22
|
spec.add_runtime_dependency 'dry-equalizer', '~> 0.2'
|
24
|
-
spec.add_runtime_dependency 'dry-core', '~> 0.2', '>= 0.2.
|
23
|
+
spec.add_runtime_dependency 'dry-core', '~> 0.2', '>= 0.2.4'
|
25
24
|
spec.add_runtime_dependency 'addressable', '~> 2.3'
|
26
25
|
spec.add_runtime_dependency 'charlatan', '~> 0.1'
|
27
26
|
spec.add_runtime_dependency 'railties', '>= 3.0', '< 6.0'
|
data/spec/spec_helper.rb
CHANGED
@@ -20,6 +20,8 @@ end
|
|
20
20
|
|
21
21
|
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
|
22
22
|
|
23
|
+
Dry::Core::Deprecations.set_logger!(Rails.root.join('log/deprecations.log'))
|
24
|
+
|
23
25
|
RSpec.configure do |config|
|
24
26
|
config.order = "random"
|
25
27
|
config.example_status_persistence_file_path = "tmp/examples.txt"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rom-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.0
|
4
|
+
version: 0.9.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: 2017-01-
|
11
|
+
date: 2017-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rom
|
@@ -16,28 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.0
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 3.0.0.beta
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rom-support
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '2.0'
|
19
|
+
version: '3.0'
|
34
20
|
type: :runtime
|
35
21
|
prerelease: false
|
36
22
|
version_requirements: !ruby/object:Gem::Requirement
|
37
23
|
requirements:
|
38
24
|
- - "~>"
|
39
25
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
26
|
+
version: '3.0'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: rom-model
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -75,7 +61,7 @@ dependencies:
|
|
75
61
|
version: '0.2'
|
76
62
|
- - ">="
|
77
63
|
- !ruby/object:Gem::Version
|
78
|
-
version: 0.2.
|
64
|
+
version: 0.2.4
|
79
65
|
type: :runtime
|
80
66
|
prerelease: false
|
81
67
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -85,7 +71,7 @@ dependencies:
|
|
85
71
|
version: '0.2'
|
86
72
|
- - ">="
|
87
73
|
- !ruby/object:Gem::Version
|
88
|
-
version: 0.2.
|
74
|
+
version: 0.2.4
|
89
75
|
- !ruby/object:Gem::Dependency
|
90
76
|
name: addressable
|
91
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -323,9 +309,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
323
309
|
version: '0'
|
324
310
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
325
311
|
requirements:
|
326
|
-
- - "
|
312
|
+
- - ">="
|
327
313
|
- !ruby/object:Gem::Version
|
328
|
-
version:
|
314
|
+
version: '0'
|
329
315
|
requirements: []
|
330
316
|
rubyforge_project:
|
331
317
|
rubygems_version: 2.4.5.1
|