decanter 4.0.0 → 4.0.2

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: fa10b029acfb863227bd9b42b915f32ce94d65dd0a82955bc13b530d3278fe87
4
- data.tar.gz: c22c844568de79508809ceb5609e8166cc547bfc26fa4a293085baae56ce6ade
3
+ metadata.gz: f2c8921ba27d831a863fd3220d2df2a538549b7bd2b12ba6cfac022abdc7f0fd
4
+ data.tar.gz: 22afd46a49a2e3b1ca797b84b9c145317fc61cf759f6b46988a079a965578635
5
5
  SHA512:
6
- metadata.gz: 1df6bc91a47bc1dbbf9a528b895407fed1d84cdf733121aff44440d03b4fe82a8871143d1b2d0bb87b6c9cfb1467c0a839cb394ac0bd813e5df7230faa00b9a4
7
- data.tar.gz: 9e26fe9068e2f58d4ae8b1987a05fde413e9edac2bd0f123add82c7dfcb18f50a9d08629b71fb2c1d2d0387668f32ecfc53bda6a7e5a93d07289d96f8bbc5eaf
6
+ metadata.gz: cef98a3a32c715d298c65c08bfaa5d5e9093d15be4c21bdf152093117444153dcf74327be75dbbb3f1981b7727d3b230b1369b8e9d459fbb3ab615a2bee8b9d3
7
+ data.tar.gz: 5d679309905d5a66b62b00ccdb1132738d462f8594c6c50b18a82caa13ba8f9ddcb62df2f92e2a6f3cf36a67e9c85305dc0eb1ad3f6689ab36e8584ae58fa701
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- decanter (4.0.0)
4
+ decanter (4.0.2)
5
5
  actionpack (>= 4.2.10)
6
6
  activesupport
7
7
  rails-html-sanitizer (>= 1.0.4)
@@ -99,4 +99,4 @@ DEPENDENCIES
99
99
  simplecov (~> 0.15.1)
100
100
 
101
101
  BUNDLED WITH
102
- 1.17.2
102
+ 1.17.3
@@ -7,7 +7,7 @@ module Decanter
7
7
  parser do |val, options|
8
8
  raise Decanter::ParseError.new 'Expects a single value' if val.is_a? Array
9
9
  next if (val.nil? || val === '')
10
- [1, '1'].include?(val) || !!/true/i.match(val.to_s)
10
+ [1, '1'].include?(val) || !!/^true$/i.match?(val.to_s)
11
11
  end
12
12
  end
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module Decanter
2
- VERSION = '4.0.0'.freeze
2
+ VERSION = '4.0.2'.freeze
3
3
  end
@@ -4,7 +4,7 @@ require 'rails/generators/rails/resource/resource_generator'
4
4
  module Rails
5
5
  module Generators
6
6
  class ResourceGenerator
7
- hook_for :decanter, default: true, boolean: true
7
+ hook_for :decanter, default: true, type: :boolean
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decanter
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Francis
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2021-11-23 00:00:00.000000000 Z
12
+ date: 2023-10-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack