active_errors 1.0.0 → 1.0.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: 4911a8ccfdc5c06d4801cf7a63e9e1bceaa6e73397f0a37684e029f2731ddcfb
4
- data.tar.gz: 9dddce1eebd8e8609d5702ca0317ed698ce302d92f623726ebe0ee63cfd426f0
3
+ metadata.gz: 2d162b2670cf12d7caa8e3c005393f39c66eb4becd5f7cb02bc8be536fe628d2
4
+ data.tar.gz: 7caecc795d6ce9f329cf5a277958ce8111af479d5c5e3cdc48ddef9997f304a1
5
5
  SHA512:
6
- metadata.gz: 9fbb9ed5f94ef41ab28088c739e593a0f8b2658d54e2a9bd353aefe75a77c36a61e4752370ca2ea26be50de8513282aae620102f6f433b108c55c9b037db646b
7
- data.tar.gz: f15e21672463e7fa8055e043d6df01f1c97cfca6a3e4e566618d1cab59599943358da6f2d060d1a54aab49c4a2f65e97f1e0397420a928ba4534f413c83a0088
6
+ metadata.gz: 63b4308869972f19ab1f111251d515f641ede4198cbe48f7fe7e08462360c474e985858760678e011c152dac27c18e6fca173362218781def63f7b2a2b01b582
7
+ data.tar.gz: c0480525e5bc496f986195e69186e3f294f409c224813798af2bded0f18e5fe7493a0ba877c236b26247051cf12734c6e6007966d84ebf31d1297747f6a658d0
data/.reek.yml CHANGED
@@ -6,16 +6,24 @@ detectors:
6
6
  enabled: false
7
7
  ControlParameter:
8
8
  enabled: false
9
+ DuplicateMethodCall:
10
+ enabled: false
9
11
  FeatureEnvy:
10
12
  enabled: false
11
13
  IrresponsibleModule:
12
14
  enabled: false
13
15
  ManualDispatch:
14
16
  enabled: false
17
+ MissingSafeMethod:
18
+ enabled: false
15
19
  NestedIterators:
16
20
  max_allowed_nesting: 2
17
21
  NilCheck:
18
22
  enabled: false
23
+ RepeatedConditional:
24
+ enabled: false
25
+ TooManyMethods:
26
+ enabled: false
19
27
  TooManyStatements:
20
28
  max_statements: 10
21
29
  UncommunicativeVariableName:
data/bin/rake CHANGED
File without changes
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ActiveErrors
2
4
  class Messages
3
5
 
@@ -8,7 +10,7 @@ module ActiveErrors
8
10
  end
9
11
 
10
12
  def [](key)
11
- return [] unless @errors.key?(key)
13
+ return [] unless key?(key)
12
14
 
13
15
  @errors[key]
14
16
  end
@@ -22,7 +24,7 @@ module ActiveErrors
22
24
  alias_method :add, :[]=
23
25
 
24
26
  def added?(key, val)
25
- return false unless @errors.key?(key)
27
+ return false unless key?(key)
26
28
 
27
29
  @errors[key].include?(val)
28
30
  end
@@ -62,7 +64,7 @@ module ActiveErrors
62
64
  alias_method :to_a, :full_messages
63
65
 
64
66
  def full_messages_for(key)
65
- return [] unless @errors.key?(key)
67
+ return [] unless key?(key)
66
68
 
67
69
  @errors[key].map { |val| full_message(key, val) }
68
70
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveErrors
4
- VERSION ||= '1.0.0'
4
+ VERSION ||= '1.0.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_errors
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez