mobility 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +8 -4
- data/Gemfile.lock +22 -3
- data/README.md +1 -1
- data/lib/mobility/plugins/fallbacks.rb +4 -4
- data/lib/mobility/version.rb +1 -1
- data.tar.gz.sig +0 -0
- 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: 7b94201a6b91ad2fff4818aa37fa4fd99df97944d98f3888af6b76f732f71658
|
|
4
|
+
data.tar.gz: 8be29d872e1488575253302daa13b46d5f065c5dd9aa35c526c0fd561ae478c5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a7afca6199b32df4105ad2bd55d33c6213677d424d6a4bb22e5d39e33b649de2e256a04b1f03e9c33d6374e5c4ec7858a7de9b2a0e190cc1a417da895981b7a0
|
|
7
|
+
data.tar.gz: 23ef1c7ca95c54872c5504a50af6c94116c94157586ba755a9ed57e6ca878647a1693460232840ed58c47f5807b6fd6c6db2283c397faf7a7e3402e93f675be3
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
# Mobility Changelog
|
|
2
2
|
|
|
3
|
-
## Unreleased
|
|
4
|
-
- Simplify Fallbacks plugin
|
|
5
|
-
([#531](https://github.com/shioyama/mobility/pull/531))
|
|
6
|
-
|
|
7
3
|
## 1.2
|
|
8
4
|
|
|
5
|
+
### 1.2.3
|
|
6
|
+
- Fix passing wrong options to super in fallbacks plugin
|
|
7
|
+
([#539](https://github.com/shioyama/mobility/pull/539))
|
|
8
|
+
|
|
9
9
|
### 1.2.2
|
|
10
10
|
- Make models work with `Marshal.dump`
|
|
11
11
|
([#532](https://github.com/shioyama/mobility/pull/532))
|
|
12
|
+
- Fix Sequel container op in Sequel
|
|
13
|
+
([#533](https://github.com/shioyama/mobility/pull/533))
|
|
14
|
+
- Simplify Fallbacks plugin
|
|
15
|
+
([#531](https://github.com/shioyama/mobility/pull/531))
|
|
12
16
|
|
|
13
17
|
### 1.2.1
|
|
14
18
|
- Refactor ColumnFallback plugin
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,23 @@
|
|
|
1
|
+
GIT
|
|
2
|
+
remote: https://github.com/rails/rails.git
|
|
3
|
+
revision: 0a751a021bfc0c71bb2a10ff8af9654c785c94f1
|
|
4
|
+
branch: main
|
|
5
|
+
specs:
|
|
6
|
+
activemodel (7.0.0.alpha2)
|
|
7
|
+
activesupport (= 7.0.0.alpha2)
|
|
8
|
+
activerecord (7.0.0.alpha2)
|
|
9
|
+
activemodel (= 7.0.0.alpha2)
|
|
10
|
+
activesupport (= 7.0.0.alpha2)
|
|
11
|
+
activesupport (7.0.0.alpha2)
|
|
12
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
13
|
+
i18n (>= 1.6, < 2)
|
|
14
|
+
minitest (>= 5.1)
|
|
15
|
+
tzinfo (~> 2.0)
|
|
16
|
+
|
|
1
17
|
PATH
|
|
2
18
|
remote: .
|
|
3
19
|
specs:
|
|
4
|
-
mobility (1.
|
|
20
|
+
mobility (1.3.0.alpha)
|
|
5
21
|
i18n (>= 0.6.10, < 2)
|
|
6
22
|
request_store (~> 1.0)
|
|
7
23
|
|
|
@@ -37,6 +53,7 @@ GEM
|
|
|
37
53
|
rb-inotify (~> 0.9, >= 0.9.10)
|
|
38
54
|
lumberjack (1.2.8)
|
|
39
55
|
method_source (1.0.0)
|
|
56
|
+
minitest (5.14.4)
|
|
40
57
|
nenv (0.3.0)
|
|
41
58
|
notiffany (0.1.3)
|
|
42
59
|
nenv (~> 0.1)
|
|
@@ -68,15 +85,18 @@ GEM
|
|
|
68
85
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
69
86
|
rspec-support (~> 3.10.0)
|
|
70
87
|
rspec-support (3.10.2)
|
|
71
|
-
sequel (5.47.0)
|
|
72
88
|
shellany (0.0.1)
|
|
73
89
|
thor (1.1.0)
|
|
90
|
+
tzinfo (2.0.4)
|
|
91
|
+
concurrent-ruby (~> 1.0)
|
|
74
92
|
yard (0.9.26)
|
|
75
93
|
|
|
76
94
|
PLATFORMS
|
|
77
95
|
ruby
|
|
78
96
|
|
|
79
97
|
DEPENDENCIES
|
|
98
|
+
activerecord!
|
|
99
|
+
activesupport!
|
|
80
100
|
benchmark-ips
|
|
81
101
|
database_cleaner (~> 1.5, >= 1.5.3)
|
|
82
102
|
guard-rspec
|
|
@@ -85,7 +105,6 @@ DEPENDENCIES
|
|
|
85
105
|
pry-byebug
|
|
86
106
|
rake (~> 12, >= 12.2.1)
|
|
87
107
|
rspec (~> 3.0)
|
|
88
|
-
sequel (= 5.47)
|
|
89
108
|
yard (~> 0.9.0)
|
|
90
109
|
|
|
91
110
|
BUNDLED WITH
|
data/README.md
CHANGED
|
@@ -137,16 +137,16 @@ the current locale was +nil+.
|
|
|
137
137
|
end
|
|
138
138
|
|
|
139
139
|
module BackendInstanceMethods
|
|
140
|
-
def read(locale, fallback: true, **
|
|
141
|
-
return super(locale, **
|
|
140
|
+
def read(locale, fallback: true, **kwargs)
|
|
141
|
+
return super(locale, **kwargs) if !fallback || kwargs[:locale]
|
|
142
142
|
|
|
143
143
|
locales = fallback == true ? fallbacks[locale] : [locale, *fallback]
|
|
144
144
|
locales.each do |fallback_locale|
|
|
145
|
-
value = super(fallback_locale, **
|
|
145
|
+
value = super(fallback_locale, **kwargs)
|
|
146
146
|
return value if Util.present?(value)
|
|
147
147
|
end
|
|
148
148
|
|
|
149
|
-
super(locale, **
|
|
149
|
+
super(locale, **kwargs)
|
|
150
150
|
end
|
|
151
151
|
|
|
152
152
|
private
|
data/lib/mobility/version.rb
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
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.2.
|
|
4
|
+
version: 1.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Salzberg
|
|
@@ -34,7 +34,7 @@ cert_chain:
|
|
|
34
34
|
eBMcZq0d1tbtv1M1UXND9mOfhLZ31YvoSTPkrJiRpljUNgD0+ugelnr1/5X/9k8y
|
|
35
35
|
J9QOd3C5jpSShf/HMvpJnFuSYFm19cH9GrHjvw==
|
|
36
36
|
-----END CERTIFICATE-----
|
|
37
|
-
date: 2021-10-
|
|
37
|
+
date: 2021-10-25 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
|