minimapper 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/minimapper/ar.rb +5 -1
- data/lib/minimapper/version.rb +1 -1
- metadata +6 -6
data/lib/minimapper/ar.rb
CHANGED
@@ -23,7 +23,7 @@ module Minimapper
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def all
|
26
|
-
record_klass.all
|
26
|
+
entities_for record_klass.all
|
27
27
|
end
|
28
28
|
|
29
29
|
def first
|
@@ -103,6 +103,10 @@ module Minimapper
|
|
103
103
|
raise(Common::CanNotFindEntity, entity.inspect)
|
104
104
|
end
|
105
105
|
|
106
|
+
def entities_for(records)
|
107
|
+
records.map { |record| entity_for(record) }
|
108
|
+
end
|
109
|
+
|
106
110
|
def entity_for(record)
|
107
111
|
if record
|
108
112
|
entity = entity_class.new
|
data/lib/minimapper/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minimapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
requirement: &
|
16
|
+
requirement: &70329737243600 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70329737243600
|
25
25
|
description: A minimalistic way of separating your models from ORMs like ActiveRecord.
|
26
26
|
email:
|
27
27
|
- joakim.kolsjo@gmail.com
|
@@ -77,7 +77,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
77
77
|
version: '0'
|
78
78
|
segments:
|
79
79
|
- 0
|
80
|
-
hash: -
|
80
|
+
hash: -4023380845221436891
|
81
81
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
82
|
none: false
|
83
83
|
requirements:
|
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
version: '0'
|
87
87
|
segments:
|
88
88
|
- 0
|
89
|
-
hash: -
|
89
|
+
hash: -4023380845221436891
|
90
90
|
requirements: []
|
91
91
|
rubyforge_project:
|
92
92
|
rubygems_version: 1.8.5
|