mobility 0.8.2 → 0.8.3

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: 68b8f21d39ab133839062c63ed91f6cf225464b1780525ff3e96b33937c98c0c
4
- data.tar.gz: 66f0db0183fc1568c290fdddb52edce9dfbb85536dcf1ebd8921e6fa3b1bbd36
3
+ metadata.gz: ad9470458519dbff24eccfc016a2859c3ff00bf0c52de992338cb9e7ff226d9a
4
+ data.tar.gz: 40b44307d5594435842e9cada15ada91531a464308e21a8447abab4a2ee77c6f
5
5
  SHA512:
6
- metadata.gz: 21902f555813178915a0f265e3ecde8a777907e654d40d733761c95898e0cf70764457441233d0591b9591bb22ff74741c48d47aac3ebc914a4400c03d232136
7
- data.tar.gz: 5a8c377f1161de9bf533315094c31e5c40fa722ff06d14006086eb389acacad228303a98c3872b39adc09e2de684e0959df90a4c63bc4a52dd7d2ab22ecf56af
6
+ metadata.gz: e2b8ec0c89f666d9a3c2a1cdf4c77c78fb0b93cedc27b07cef36d1cb5064571001ee130b2aadd38260ec542922f5abe67efa918f6b83b3ba8dcfd10a20817e0c
7
+ data.tar.gz: cfdefd660724a22271f191bb1d910920bf82daf650b4aa78b1a55c850d90396922b9998fe1db0b1cb669673b22510ae64f010d8d45a2287945b7fd16f4e2d0ad
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## 0.8
4
4
 
5
+ ### 0.8.3 (October 1, 2018)
6
+ * Handle untranslated scopes in AR query module
7
+ ([#288](https://github.com/shioyama/mobility/pull/288))
8
+
5
9
  ### 0.8.2 (September 28, 2018)
6
10
  * Support pluck, select and group methods on translated attributes
7
11
  ([#284](https://github.com/shioyama/mobility/pull/284),
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mobility (0.8.1)
4
+ mobility (0.8.2)
5
5
  i18n (>= 0.6.10, < 2)
6
6
  request_store (~> 1.0)
7
7
 
data/README.md CHANGED
@@ -51,7 +51,7 @@ Installation
51
51
  Add this line to your application's Gemfile:
52
52
 
53
53
  ```ruby
54
- gem 'mobility', '~> 0.8.2'
54
+ gem 'mobility', '~> 0.8.3'
55
55
  ```
56
56
 
57
57
  Mobility is cryptographically signed. To be sure the gem you install hasn't
@@ -193,6 +193,8 @@ enabled for any one attribute on the model.
193
193
  # Builds a translated relation for a given opts hash and optional
194
194
  # invert boolean.
195
195
  def _build(scope, opts, locale, invert)
196
+ return yield unless scope.respond_to?(:mobility_modules)
197
+
196
198
  keys, predicates = opts.keys.map(&:to_s), []
197
199
 
198
200
  query_map = scope.mobility_modules.inject(IDENTITY) do |qm, mod|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mobility
4
- VERSION = "0.8.2"
4
+ VERSION = "0.8.3"
5
5
  end
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: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Salzberg
@@ -35,7 +35,7 @@ cert_chain:
35
35
  m46ezJjnr4uXgSNuTs+RdM6DtrKaFG2HuziSP+dzmWqZiUgj1eTACYsPwfF/Z1Z6
36
36
  2DiDkec/SK4qJBMlNYPo/PTZuh5m1jROtf/hyS0VXJmm+uWc
37
37
  -----END CERTIFICATE-----
38
- date: 2018-09-28 00:00:00.000000000 Z
38
+ date: 2018-10-01 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: request_store
metadata.gz.sig CHANGED
Binary file