rom-mapper 1.0.2 → 1.1.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 +10 -0
- data/README.md +1 -1
- data/lib/rom/mapper/version.rb +1 -1
- data/lib/rom/mapper_compiler.rb +2 -2
- data/lib/rom/model_builder.rb +2 -2
- data/lib/rom/struct_compiler.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5eb225274818fe1f0c8b28f4ee6b4637425b2737
|
4
|
+
data.tar.gz: f3998ff9d212dc4be99f92bd391d37d5b0f8d37b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d22010132f1513a500a37f6e3129e1b4f4d8af3f6f60a4c5e450b8cdb2568587648c66266e1478581d25d58fc3dd73a2c00cfa0fe5fa3e7f901b8ecda4a14dff
|
7
|
+
data.tar.gz: 88861915365bca292927e001358735a4d805987c215fd86f3293b7d6c058662d8f9594d49d34c0da0be13539a5eebdf70e7c457b39ddf898abcca1a6f263a2bb
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
# 1.1.0 2017-11-17
|
2
|
+
|
3
|
+
### Fixed
|
4
|
+
|
5
|
+
* Aliased attributes are handled correctly by mapper compiler (solnic)
|
6
|
+
|
7
|
+
### Changed
|
8
|
+
|
9
|
+
* Mapper compiler no longer handles wrapped attributes in an SQL-specific way (solnic)
|
10
|
+
|
1
11
|
# 1.0.2 2017-11-02
|
2
12
|
|
3
13
|
### Fixed
|
data/README.md
CHANGED
data/lib/rom/mapper/version.rb
CHANGED
data/lib/rom/mapper_compiler.rb
CHANGED
data/lib/rom/model_builder.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'rom/support/inflector'
|
2
2
|
|
3
3
|
module ROM
|
4
4
|
# Model builders can be used to build model classes for mappers
|
@@ -54,7 +54,7 @@ module ROM
|
|
54
54
|
|
55
55
|
@namespace =
|
56
56
|
if parts.any?
|
57
|
-
|
57
|
+
Inflector.constantize(parts.join('::'))
|
58
58
|
else
|
59
59
|
Object
|
60
60
|
end
|
data/lib/rom/struct_compiler.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'rom/support/inflector'
|
2
2
|
require 'dry/core/class_builder'
|
3
3
|
require 'dry/types/compiler'
|
4
4
|
|
@@ -104,7 +104,7 @@ module ROM
|
|
104
104
|
|
105
105
|
# @api private
|
106
106
|
def class_name(name)
|
107
|
-
|
107
|
+
Inflector.classify(Inflector.singularize(name))
|
108
108
|
end
|
109
109
|
end
|
110
110
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rom-mapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.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-11-
|
11
|
+
date: 2017-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-equalizer
|