rom-core 4.1.1 → 4.1.2

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
  SHA256:
3
- metadata.gz: fcf55db65945ef2e7a7f81b56a7e458dadfde89c7232ba9c9f7596d30f3eec71
4
- data.tar.gz: 303e4c740de0269c8b7f58d86e2b75f6e43accb112165a3c98fb2998ebc65e36
3
+ metadata.gz: 22cd77ab1a0e834086636f81a34fcb75f478888443aecf3981373711f1b548e4
4
+ data.tar.gz: 9a7192effd457c250e869b1d954d3dde62661601f4d9869521a83e35f3936811
5
5
  SHA512:
6
- metadata.gz: 02ee9cb46f0ab2cd8fb6dd37dc9c9170b0c027db54ed52776e1b2b457f68f8d5e8af7c1e62a4d4e95dfea9f3ef3b1ac5a6a879bd71fed99639eb05ac00c20ced
7
- data.tar.gz: da8429f76a76265bb266c2b238ccd08e02aa2ce6859de4c766d0db01c9db0c6507cc5f6d11bac7906097bb119c06eedf67a8179bc84c9e208efe0cbb5c0ca542
6
+ metadata.gz: c6e2618fcfab0987ebfca06da11ef83c0e5a1d0506facf18abbd892b14ebf7cf9151a8cf9fb65458909320046ae0490478285ab9c3cc7babc0aa4bacb027d2a7
7
+ data.tar.gz: a9df678dc56e35366db45796e72f50ca003b72213083e110cc8f7b5a87be84979f8c4739d6aa161becd45e2560d11a66bc0a8044d18cf9207bfbd4fb58739346
data/CHANGELOG.md CHANGED
@@ -1,9 +1,19 @@
1
+ # v4.1.2 2018-02-03
2
+
3
+ ## Fixed
4
+
5
+ * Auto-registration with a custom namespace now starts with the longest constant name, otherwise it could pick up a less specific constant (e.g. a module) and treat it as a ROM entity class (flash-gordon)
6
+
7
+ [Compare v4.1.1...v4.1.2](https://github.com/rom-rb/rom/compare/v4.1.1...v4.1.2)
8
+
1
9
  # v4.1.1 2018-01-15
2
10
 
3
11
  ## Fixed
4
12
 
5
13
  * Changesets work with `timestamp` plugin (cflipse)
6
14
 
15
+ [Compare v4.1.0...v4.1.1](https://github.com/rom-rb/rom/compare/v4.1.0...v4.1.1)
16
+
7
17
  # v4.1.0 2017-11-17
8
18
 
9
19
  ## Added
@@ -23,13 +23,14 @@ module ROM
23
23
  #
24
24
  # @api private
25
25
  def call
26
- potential = []
26
+ parts = path_arr.map { |part| Inflector.camelize(part) }
27
+ potential = parts.map.with_index do |_, i|
28
+ parts[(i - parts.size)..parts.size]
29
+ end
27
30
  attempted = []
28
31
 
29
- path_arr.reverse.each do |dir|
30
- const_fragment = potential.unshift(
31
- Inflector.camelize(dir)
32
- ).join("::")
32
+ potential.map do |path|
33
+ const_fragment = path.join("::")
33
34
 
34
35
  constant = "#{namespace}::#{const_fragment}"
35
36
 
data/lib/rom/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module ROM
2
2
  module Core
3
- VERSION = '4.1.1'.freeze
3
+ VERSION = '4.1.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rom-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.1
4
+ version: 4.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-15 00:00:00.000000000 Z
11
+ date: 2018-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -304,7 +304,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
304
304
  version: '0'
305
305
  requirements: []
306
306
  rubyforge_project:
307
- rubygems_version: 2.7.4
307
+ rubygems_version: 2.7.3
308
308
  signing_key:
309
309
  specification_version: 4
310
310
  summary: Ruby Object Mapper