rom-mapper 1.0.0.beta2 → 1.0.0.beta3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b00bafc4d770bb0e4628fae0625fafb454f7c8f0
4
- data.tar.gz: fa2bbbffbfd5c00e28a60c2073aaebe3e0656198
3
+ metadata.gz: c3ed0e632f8f524f5ea414338cafefd5a836116c
4
+ data.tar.gz: c951f650a48119ec07b7ba5f6d3bfaed29689d98
5
5
  SHA512:
6
- metadata.gz: ea2dbcb4827dc0e69af3c69f8f51c1902e3329c830c6bf0f9c3f59e837bad836231032ee5b4d9d7759d60e24231c3b1c6bb9dd40958b88a79bb5be5c03eecd96
7
- data.tar.gz: c515c2ea3da3df06d90593378680e84c75b9e47f74ffc094515b2cffa9c5a0df28ca1c07ade2acb022db88226c27b5e6284333c6a373c832a2d864acfb572f6d
6
+ metadata.gz: 457d4192340e27b180fa79949188f736a831d2266c545bc99e122eb7da65560571fd70bb4b9cfba23de88e374879aacb4fcf32a045c7e59d685391c1e66d4601
7
+ data.tar.gz: 9d263dfdf5227861e2f34920cea183fca25576b712b91012cc0b615e77dc0003e7cb647ce66b5e6de97a52897e456cb48b879f3e1bb25a45aa1733d802008e46
@@ -1,5 +1,5 @@
1
1
  module ROM
2
2
  class Mapper
3
- VERSION = '1.0.0.beta2'.freeze
3
+ VERSION = '1.0.0.beta3'.freeze
4
4
  end
5
5
  end
@@ -7,7 +7,7 @@ require 'rom/types'
7
7
  require 'rom/cache'
8
8
  require 'rom/struct'
9
9
  require 'rom/open_struct'
10
- require 'rom/schema/attribute'
10
+ require 'rom/attribute'
11
11
 
12
12
  module ROM
13
13
  # @api private
@@ -23,7 +23,7 @@ module ROM
23
23
  end
24
24
 
25
25
  def call(*args)
26
- cache.fetch_or_store(args.hash) do
26
+ cache.fetch_or_store(args) do
27
27
  name, header, ns = args
28
28
  attributes = header.map(&method(:visit)).compact
29
29
 
@@ -31,8 +31,8 @@ module ROM
31
31
  ROM::OpenStruct
32
32
  else
33
33
  build_class(name, ROM::Struct, ns) do |klass|
34
- attributes.each do |(name, type)|
35
- klass.attribute(name, type)
34
+ attributes.each do |(attr_name, type)|
35
+ klass.attribute(attr_name, type)
36
36
  end
37
37
  end
38
38
  end
@@ -70,13 +70,13 @@ module ROM
70
70
  end
71
71
 
72
72
  def visit_constructor(node)
73
- definition, fn_register_name, meta = node
73
+ definition, * = node
74
74
 
75
75
  visit(definition)
76
76
  end
77
77
 
78
78
  def visit_constrained(node)
79
- definition, rule = node
79
+ definition, _ = node
80
80
 
81
81
  visit(definition)
82
82
  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.0.beta2
4
+ version: 1.0.0.beta3
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-07-04 00:00:00.000000000 Z
11
+ date: 2017-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-equalizer
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
133
  version: 1.3.1
134
134
  requirements: []
135
135
  rubyforge_project:
136
- rubygems_version: 2.6.12
136
+ rubygems_version: 2.6.11
137
137
  signing_key:
138
138
  specification_version: 4
139
139
  summary: Standalone data mappers integrated with rom-rb