rom-core 5.2.4 → 5.2.5

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: 35f12c6601d4e265450e2c8d6cc450da987ba13f5de31f33dfefc1687c83c023
4
- data.tar.gz: 62e345fc8d4630732b40ebc58d201255f6359ed23e498feceb9385cf739d2749
3
+ metadata.gz: c50e8cda4257aeaf9bbc1877e2985b7834e1cb01f9c5260ef0abe66fa18cc82b
4
+ data.tar.gz: 9f0cb214c3dd9fa1f6aa8f372b0623fb64a18777e89c0b09dd0123e11ea9fc67
5
5
  SHA512:
6
- metadata.gz: be684d34005176ce3535b8533700055f2103ea04869b19d07917680f024ea4918a4c97af8d13bbaa1f35e912c4a822c6238489227dbee90c1a1c6b5875280d78
7
- data.tar.gz: c7dba5888e86336bcaa2448825caaafd8eb7b57ea8b7b0449df00b58e34e7b662966ac63fc2bdf6a6e0917e5bc23607d211b05dae36e827ba10c1f52ab924880
6
+ metadata.gz: afe6dd26d3504d2b6111f6c96f18b4ba9b9ceee0d3b579a8946a8fb5e5d849f44d3b61da3e4589d735c71862cef94728b1d164063ee7f7f927ebd89345854052
7
+ data.tar.gz: 77789d92ecfba7b384e9df9012aee12549d078d65595a52ec8aaab8530d923c47f80a04c48466d3396373381ed3ef5ad0664b503fde7ea884a78ae77df7d59ae
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ROM
4
4
  module Core
5
- VERSION = '5.2.4'
5
+ VERSION = '5.2.5'
6
6
  end
7
7
  end
@@ -49,6 +49,9 @@ module ROM
49
49
 
50
50
  if identifier.is_a?(Gateway)
51
51
  gateway = identifier
52
+ elsif RUBY_VERSION >= "3.0"
53
+ kwargs = args.last.is_a?(Hash) ? args.pop : {}
54
+ gateway = Gateway.setup(identifier, *args.flatten, **kwargs)
52
55
  else
53
56
  gateway = Gateway.setup(identifier, *args.flatten)
54
57
  end
@@ -102,6 +102,10 @@ module ROM
102
102
  end
103
103
  end
104
104
 
105
+ class << self
106
+ ruby2_keywords(:setup) if respond_to?(:ruby2_keywords, true)
107
+ end
108
+
105
109
  # Get gateway subclass for a specific adapter
106
110
  #
107
111
  # @param [Symbol] type Adapter identifier
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: 5.2.4
4
+ version: 5.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-30 00:00:00.000000000 Z
11
+ date: 2021-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby