mini_defender 0.3.9 → 0.3.11

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: f577c7a22376c0e4217fdebe7ddf461cb302471e07b2de234e0843ef55c9c603
4
- data.tar.gz: 6105884dc720a11d506c7c7fc62b24d1f8cd7afc9fa14ce4ed5b44c028e1620c
3
+ metadata.gz: 7cdbaf1ca9c6da27dc125f3585d2c4e73e638794cb87d8ad5f983a9532e85af6
4
+ data.tar.gz: 440a52ff11491cefacc033e958d1b43b7d6d7805cbff618a5f718d1dabe83cde
5
5
  SHA512:
6
- metadata.gz: ab08c1074c9c4b06f16c11e545b9f8b05811e4be8cc82c43a98315605e21553821d97b9688b1acdcd446b546a65d8d25af4f0e5b725dad09a189bfa51f74ea85
7
- data.tar.gz: c325ff0ddfb62768fb5fdd74ca08bb8e97bd76f16841190178e9c924dddd0b4f6e3e010026bfefc417a5a6a845fbbf6c3db7b9a28414aa96a75649adac56f82c
6
+ metadata.gz: 462bbdac39c0a28b1596243c1a0e252217f191ef32bf135efa661692a9f58e280da94a550ab7c3dddcae621f6b5b65fb81ba691ae5d6dffdf917a2a6f8c18009
7
+ data.tar.gz: f61ca0aab03eaa52e315dab83c83de263882d2281adcdb4ce7d73d03132f4909353b2c174f7d6207797f1fc949dfb2257695645c17d39f5ca31fb4dcbe6e4290
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module HandlesValidationErrors
3
+ module MiniDefender::HandlesValidationErrors
4
4
  extend ActiveSupport::Concern
5
5
 
6
6
  included do
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module ValidationHelpers
3
+ require 'active_support/core_ext/hash'
4
+
5
+ module MiniDefender::ValidationHelpers
4
6
  extend ActiveSupport::Concern
5
7
 
6
8
  def validation_errors
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MiniDefender
4
- VERSION = "0.3.9"
4
+ VERSION = "0.3.11"
5
5
  end
data/lib/mini_defender.rb CHANGED
@@ -8,6 +8,8 @@ require_relative 'mini_defender/rules_expander'
8
8
  require_relative 'mini_defender/rules_factory'
9
9
  require_relative 'mini_defender/validation_error'
10
10
  require_relative 'mini_defender/validates_input'
11
+ require_relative 'mini_defender/handles_validation_errors'
12
+ require_relative 'mini_defender/validation_helpers'
11
13
 
12
14
  # Extensions to Ruby Core
13
15
  require_relative 'mini_defender/extensions/enumerable'
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.3.9
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ali Alhoshaiyan