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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bfb0cb0bd2a8efd18e8fab29abf7512a765086b4d6e3d27234d8c8d6085fd5d1
4
- data.tar.gz: b143906e032fe332dbb169badc3cc3cd8dd876e4d45f2556ed1a8ae5d4cfb1ab
3
+ metadata.gz: 7b94201a6b91ad2fff4818aa37fa4fd99df97944d98f3888af6b76f732f71658
4
+ data.tar.gz: 8be29d872e1488575253302daa13b46d5f065c5dd9aa35c526c0fd561ae478c5
5
5
  SHA512:
6
- metadata.gz: 35d4c26eb09f5facee434046bb1c447fb43ff4a19ab0f911414239a3b8d758f2c41fb4ae857027e8f50041fc56caa64b3c7291c05b0e80491542d72e1c88c2e3
7
- data.tar.gz: 04d437ce889463ef6049d2f8b3cb1695a22e444a3f4057cb62be6c9fee8cd4516210dc18be4bbcfdd4b7945fdd9bb95c4960cee3e7413d2130a02b188c4f87e2
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.2.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
@@ -55,7 +55,7 @@ Installation
55
55
  Add this line to your application's Gemfile:
56
56
 
57
57
  ```ruby
58
- gem 'mobility', '~> 1.2.2'
58
+ gem 'mobility', '~> 1.2.3'
59
59
  ```
60
60
 
61
61
  ### ActiveRecord (Rails)
@@ -137,16 +137,16 @@ the current locale was +nil+.
137
137
  end
138
138
 
139
139
  module BackendInstanceMethods
140
- def read(locale, fallback: true, **accessor_options)
141
- return super(locale, **options) if !fallback || accessor_options[: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, **accessor_options)
145
+ value = super(fallback_locale, **kwargs)
146
146
  return value if Util.present?(value)
147
147
  end
148
148
 
149
- super(locale, **options)
149
+ super(locale, **kwargs)
150
150
  end
151
151
 
152
152
  private
@@ -8,7 +8,7 @@ module Mobility
8
8
  module VERSION
9
9
  MAJOR = 1
10
10
  MINOR = 2
11
- TINY = 2
11
+ TINY = 3
12
12
  PRE = nil
13
13
 
14
14
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
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.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-03 00:00:00.000000000 Z
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