evnt 3.6.1 → 3.6.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: 7d394dc8d325e057de22add4a4ed0f5d5df2674fb8e1034f6aa9816406246816
4
- data.tar.gz: ef5e610f95f98704fdcc76a73069d81592cdd4221424def00db0059e5c47c0e7
3
+ metadata.gz: 534a7e52f3d1e1e0639241b4576f13ddf3d84f5d27661653a7f54b8ab6282b87
4
+ data.tar.gz: 269c77c39c3475b5514f6bb72b6d0177bb6d0e7707de349ad40613feb2bae9ec
5
5
  SHA512:
6
- metadata.gz: f7e398028930617a9fa0e016bb33e4e4ed3fb77a146b411fbcfef687bbdf0f1862014add65818b3312ef9e260265caa53e60547bbec69fa35bc33d7ab1eeffb6
7
- data.tar.gz: 91d57c38e9f6805666f27b90512a23a8efe78747b6cae22e6fdb885940493dc5b60e1613b1bb4b2b43b5e2d67d4f1043c7599347e3cbc7a61df5032258ff1add
6
+ metadata.gz: c5ba0c448849c4d6b6288b7158c8ce32ac2a532829257207f371567fc39e070495ad25e69d2ad2c9d1d5e222d3b6d5ce9b2cd9a430c0a87680675b692ab9913e
7
+ data.tar.gz: 000fb5ac286e63df864ddbad79759e12829b02f627bb2fab61b8631a75db1f43dc127b9637dc3183988b961a6d100345303c1fd4b66cee0cea3c45768029a462
@@ -147,7 +147,9 @@ module Evnt
147
147
  if validator.passed?
148
148
  @params[val[:param]] = validator.value
149
149
  else
150
- err val[:options][:err] || "#{val[:param].capitalize} value not accepted"
150
+ error = val[:options][:err] || "#{val[:param].capitalize} value not accepted"
151
+ err_code = val[:options][:err_code] || val[:param].to_sym
152
+ err(error, code: err_code)
151
153
  break
152
154
  end
153
155
  end
@@ -3,6 +3,6 @@
3
3
  # Evnt.
4
4
  module Evnt
5
5
 
6
- VERSION = '3.6.1'
6
+ VERSION = '3.6.2'
7
7
 
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evnt
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.1
4
+ version: 3.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ideonetwork
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-12 00:00:00.000000000 Z
11
+ date: 2018-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler