mobility 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/lib/mobility/plugins/backend.rb +9 -8
- data/lib/mobility/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e614b2354ec6cfbc7d4b3d946beabc5214904c21432cceb0b78530ca389184e
|
4
|
+
data.tar.gz: fa9e5cf7097b92a203e38e07617254e42d3bc11f58254b4b13b359639b70902a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef1653434cb1e303f0496c9fecd810ea2d2772009dca94358949e293157e6f2a58341867ad6c117a5dc91469002acdd80b969d442126a7df95ea49f667360cc8
|
7
|
+
data.tar.gz: dceae9f7039d21bcd5d68a0a2f54515b39c0b8ab871c7386fe0834a88f973e91af5c27f48a85cdfe0d6479a8291a976abfee2208e16a116c4d75b03db54a8f87
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -21,6 +21,11 @@
|
|
21
21
|
v1.0](https://github.com/shioyama/mobility/wiki/Introduction-to-Mobility-v1.0)
|
22
22
|
for more details on how to upgrade.
|
23
23
|
|
24
|
+
### 1.0.4
|
25
|
+
- Correctly override default backend options, fixes
|
26
|
+
[#492](https://github.com/shioyama/mobility/issues/492)
|
27
|
+
([#495](https://github.com/shioyama/mobility/pull/495))
|
28
|
+
|
24
29
|
### 1.0.3
|
25
30
|
- Fix `Mobility.default_backend`
|
26
31
|
([#497](https://github.com/shioyama/mobility/pull/497))
|
data/README.md
CHANGED
@@ -33,13 +33,6 @@ Defines:
|
|
33
33
|
def initialize(*args, **original_options)
|
34
34
|
super
|
35
35
|
|
36
|
-
# Validate that the default backend from config has valid keys
|
37
|
-
if (default = self.class.defaults[:backend])
|
38
|
-
name, backend_options = default
|
39
|
-
extra_keys = backend_options.keys - backend.valid_keys
|
40
|
-
raise InvalidOptionKey, "These are not valid #{name} backend keys: #{extra_keys.join(', ')}." unless extra_keys.empty?
|
41
|
-
end
|
42
|
-
|
43
36
|
include InstanceMethods
|
44
37
|
end
|
45
38
|
|
@@ -87,7 +80,7 @@ Defines:
|
|
87
80
|
|
88
81
|
case options[:backend]
|
89
82
|
when String, Symbol, Class
|
90
|
-
@backend, @backend_options = options[:backend], options
|
83
|
+
@backend, @backend_options = options[:backend], options.dup
|
91
84
|
when Array
|
92
85
|
@backend, @backend_options = options[:backend]
|
93
86
|
@backend_options = @backend_options.merge(original_options)
|
@@ -105,6 +98,14 @@ Defines:
|
|
105
98
|
def validate_options(options)
|
106
99
|
return super unless backend
|
107
100
|
super(options.slice(*(options.keys - backend.valid_keys)))
|
101
|
+
|
102
|
+
# Validate that the default backend from config has valid keys, or if
|
103
|
+
# it is overridden by an array input that the array has valid keys.
|
104
|
+
if options[:backend].is_a?(Array)
|
105
|
+
name, backend_options = options[:backend]
|
106
|
+
extra_keys = backend_options.keys - backend.valid_keys
|
107
|
+
raise InvalidOptionKey, "These are not valid #{name} backend keys: #{extra_keys.join(', ')}." unless extra_keys.empty?
|
108
|
+
end
|
108
109
|
end
|
109
110
|
|
110
111
|
# Override default argument-handling in DSL to store kwargs passed along
|
data/lib/mobility/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mobility
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Salzberg
|
@@ -34,7 +34,7 @@ cert_chain:
|
|
34
34
|
gSQml7TqcC6dZRsZRwYqzD9kUwdAJoCqno2CBUKs2l0yQAjFT36lRrVJznb7uWwa
|
35
35
|
xpPFnsrtyaZW6Dty8TSG3qzmeGpmpIotA8x1VA==
|
36
36
|
-----END CERTIFICATE-----
|
37
|
-
date: 2021-01-
|
37
|
+
date: 2021-01-31 00:00:00.000000000 Z
|
38
38
|
dependencies:
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
40
|
name: request_store
|
metadata.gz.sig
CHANGED
Binary file
|