normalizy 1.1.0 → 1.1.1

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: 2706668666c2a0991809c4b3f459510ba7a5ee6a9619841dfb7b2766b046df8a
4
- data.tar.gz: 55fc041e85400d342edfd903f1eae8b8803e31bda54bfd04240b5659f3e4e0fd
3
+ metadata.gz: 1378c83e240d8d342b407be53fbd84c058496fa5e6280edd3f18833139e87b67
4
+ data.tar.gz: eedf9b146a116d6800ba05b085d985389fc258b41ec675d004a106bc6c9a4414
5
5
  SHA512:
6
- metadata.gz: 81218fc0bdf00934a6152527418d6b31ca2dbb5033eaabac4e03c55b08d7ec1c50a63d40643180718a916d35b0421e2aacf933d45866b7e4479b7e5fdbff7de0
7
- data.tar.gz: a51b09beec0d39852a63b4b0409d3666c4538e22a41d82456cca1bfaabf128b903fcc51afcd822ad65ee62678f611605f9633018edd56838b3c4570fafea9c77
6
+ metadata.gz: c2671c5624fa972a812d9bddcf4f9a47e9f7fc46650024790c0eed169b826c998da4cca03d015bfaa60e8fe5adc3c1e3131789369e0a89019fc1fbd9f2cf9533
7
+ data.tar.gz: 0e99e2b50a2fa3bb2ff41101735c29be539d3ba7ea7df674ca9894f1baf848892aa448a7e4d8830010e224c97fe4290758af3541f08a9a64197907758f361da9
@@ -1,3 +1,8 @@
1
+ ## v1.1.1
2
+
3
+ - Fixes:
4
+ - When use `slug` filter the original values was not saved.
5
+
1
6
  ## v1.1.0
2
7
 
3
8
  - Features:
@@ -97,6 +97,8 @@ module Normalizy
97
97
 
98
98
  if rules.is_a?(Hash) && rules.dig(:slug, :to).present?
99
99
  write_attribute rules.dig(:slug, :to), result
100
+
101
+ super value
100
102
  else
101
103
  super result
102
104
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Normalizy
4
- VERSION = '1.1.0'
4
+ VERSION = '1.1.1'
5
5
  end
@@ -9,4 +9,6 @@ RSpec.describe ModelSlug, 'filters:slug' do
9
9
  specify { expect(described_class.create(permalink: from).permalink).to eq to }
10
10
 
11
11
  specify { expect(described_class.create(title: from).slug).to eq to }
12
+
13
+ specify { expect(described_class.create(title: from).title).to eq from }
12
14
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: normalizy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Washington Botelho
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-29 00:00:00.000000000 Z
11
+ date: 2017-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  version: '0'
186
186
  requirements: []
187
187
  rubyforge_project:
188
- rubygems_version: 2.7.3
188
+ rubygems_version: 2.7.4
189
189
  signing_key:
190
190
  specification_version: 4
191
191
  summary: Attribute normalizer for ActiveRecord.