friendly_id-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c37083e9fd10d84387798bd72bf27810a73600fe4e2fcd67e48902af47555a2
4
- data.tar.gz: 20c68de8159cc5492923f0404c672b63b23d0257863ca02428b2956d2d0d336f
3
+ metadata.gz: da48ff2e6d8e7b0ea037e9a03b0b4c2988daf268adda2aac5193963d05bb4e27
4
+ data.tar.gz: ee15149efe01574a05a189f77b89bd0bb0339e00cb797636358f4aaa023e2766
5
5
  SHA512:
6
- metadata.gz: af76229647a5b193a6150b13220d11aec3b02a3d64b1c50b99130164a619f74b18bd5854dce7c7ff9204be16e3dbfebd388ec9e199f3fd64a51522f64b048a16
7
- data.tar.gz: 83d1e7a7b234ef2e23597756c42fd1ac363eb0aa1d539354ff05247329739fb6fc8f91164043eea7d3396d7435f3422c2b003680496bd7105f1ede99104943ce
6
+ metadata.gz: 2e726d2b956f6f89d9fcca3b65d9d52aa230308417086edc4de21c75b4f9fb5467c8b3239a4c841e563a4d567e6d7ee06d8bcf4f81f88ee1da392411106f7a2a
7
+ data.tar.gz: fffd9dbacbdef0cca9736f8528a9055a48d73ac2f1f5c9ac4ac8859b4036b479db822222af54e65c57b7d230b9ce74316e0e8872d86f1f2eceb3c0f52857b48c
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## 1.0
4
4
 
5
+ ### 1.0.4
6
+ * Convert field from symbol to string value when comparing with
7
+ `mobility_attributes`
8
+ ([#29](https://github.com/shioyama/friendly_id-mobility/pull/29)) thanks
9
+ [mrbrdo](https://github.com/mrbrdo)
10
+
5
11
  ### 1.0.3
6
12
  * Ensure regex does not trigger on changes unrelated to translated attributes
7
13
  ([#26](https://github.com/shioyama/friendly_id-mobility/pull/26)) thanks
data/README.md CHANGED
@@ -18,7 +18,7 @@ Installation
18
18
  Add this line to your application's Gemfile:
19
19
 
20
20
  ```ruby
21
- gem 'friendly_id-mobility', '~> 1.0.3'
21
+ gem 'friendly_id-mobility', '~> 1.0.4'
22
22
  ```
23
23
 
24
24
  And then execute:
@@ -1,5 +1,5 @@
1
1
  module FriendlyId
2
2
  module Mobility
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
4
4
  end
5
5
  end
@@ -31,7 +31,7 @@ module FriendlyId
31
31
 
32
32
  def advise_against_untranslated_model(model)
33
33
  field = model.friendly_id_config.query_field
34
- if model.included_modules.grep(::Mobility::Translations).empty? || model.mobility_attributes.exclude?(field)
34
+ if model.included_modules.grep(::Mobility::Translations).empty? || model.mobility_attributes.exclude?(field.to_s)
35
35
  raise "[FriendlyId] You need to translate the '#{field}' field with " \
36
36
  "Mobility (add 'translates :#{field}' in your model '#{model.name}')"
37
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: friendly_id-mobility
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Salzberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-24 00:00:00.000000000 Z
11
+ date: 2023-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mobility
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  - !ruby/object:Gem::Version
150
150
  version: '0'
151
151
  requirements: []
152
- rubygems_version: 3.0.6
152
+ rubygems_version: 3.3.7
153
153
  signing_key:
154
154
  specification_version: 4
155
155
  summary: Translate your FriendlyId slugs with Mobility.