mini_defender 0.5.4 → 0.5.5

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: 73ce456e0b23735581871619b744d40814619b39012ebb8b1cd50367ee0e7af4
4
- data.tar.gz: d5e71ffdebfb17149e631ad9464482209685a17b97b04b16a498a8fd0933d656
3
+ metadata.gz: 530d1373078938df751149e2e02ccad634c4575e636374fc532a523ad0a1a7d0
4
+ data.tar.gz: 56410958ff3a856d9fdee8f001346bfe6b4851c4b7c7c4df45adb4f0922754bd
5
5
  SHA512:
6
- metadata.gz: ae9ec903aa13fbc773146154ce692e2fb6d66c5ea6cd8a4c00597479d1811142d25c802015d7da738a79c41fd3550754e92b77ae6dd1dc85103f0ae0a8e6b9d3
7
- data.tar.gz: 55638c4ad883417564d6f1596eb3670b01ce7b8fe85f9462f7d54b4579ed9195c0d0b787c0efeae9e81ce764df66346fbd64e7fbd6318d609044a57c0818b799
6
+ metadata.gz: 13715f920cc17e0374f87b02be2d613b9789e8c0f09b648e055ec8580408dfa0133e698c518019b9f8bd69b4b9f772d942e1556b025e701b53bad3b9a71d9efc
7
+ data.tar.gz: bf50307441669882e6dac6688985cf41f4214f6f5ea3506c396ef742465b46fe8e8f3e6f320f4bd9e89f59cac9b07b0c67cb9030f703027ee971717fa2ab658a
@@ -9,6 +9,10 @@ class MiniDefender::Rules::String < MiniDefender::Rule
9
9
  'string'
10
10
  end
11
11
 
12
+ def self.make(args)
13
+ new(args[0] || 'strict')
14
+ end
15
+
12
16
  def coerce(value)
13
17
  value.to_s
14
18
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MiniDefender
4
- VERSION = "0.5.4"
4
+ VERSION = "0.5.5"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini_defender
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ali Alhoshaiyan