rom-mapper 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog.md +9 -0
- data/config/reek.yml +0 -2
- data/lib/rom/mapper/attribute.rb +5 -0
- data/lib/rom/mapper/header.rb +8 -1
- data/lib/rom/mapper/loader/object_builder.rb +1 -1
- data/lib/rom/{version.rb → mapper/version.rb} +1 -3
- data/rom-mapper.gemspec +1 -1
- metadata +4 -3
data/Changelog.md
ADDED
data/config/reek.yml
CHANGED
data/lib/rom/mapper/attribute.rb
CHANGED
data/lib/rom/mapper/header.rb
CHANGED
@@ -32,7 +32,7 @@ module ROM
|
|
32
32
|
# @api private
|
33
33
|
def mapping
|
34
34
|
each_with_object({}) { |attribute, hash|
|
35
|
-
hash
|
35
|
+
hash.update attribute.mapping
|
36
36
|
}
|
37
37
|
end
|
38
38
|
memoize :mapping
|
@@ -63,6 +63,13 @@ module ROM
|
|
63
63
|
attributes.fetch(name)
|
64
64
|
end
|
65
65
|
|
66
|
+
# Return attribute names
|
67
|
+
#
|
68
|
+
# @api private
|
69
|
+
def attribute_names
|
70
|
+
map(&:name)
|
71
|
+
end
|
72
|
+
|
66
73
|
# Iterate over attributes
|
67
74
|
#
|
68
75
|
# @api private
|
data/rom-mapper.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rom-mapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-09-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: concord
|
@@ -102,6 +102,7 @@ files:
|
|
102
102
|
- .ruby-gemset
|
103
103
|
- .ruby-version
|
104
104
|
- .travis.yml
|
105
|
+
- Changelog.md
|
105
106
|
- Gemfile
|
106
107
|
- Gemfile.devtools
|
107
108
|
- Guardfile
|
@@ -123,7 +124,7 @@ files:
|
|
123
124
|
- lib/rom/mapper/loader/allocator.rb
|
124
125
|
- lib/rom/mapper/loader/attribute_writer.rb
|
125
126
|
- lib/rom/mapper/loader/object_builder.rb
|
126
|
-
- lib/rom/version.rb
|
127
|
+
- lib/rom/mapper/version.rb
|
127
128
|
- rom-mapper.gemspec
|
128
129
|
- spec/shared/unit/loader_call.rb
|
129
130
|
- spec/shared/unit/loader_identity.rb
|