evnt 3.1.3 → 3.1.4

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: bc9c2d44adbb7ee8e0082f744346a0833023632850642e7e94d0a358f764c2db
4
- data.tar.gz: 65a91b5fe0e78d65230d77cf2767e698cd618dc0396bb0b38ab037a45b8fa3a2
3
+ metadata.gz: 4e0bb0645a93a6ed42052a22f21fa0e7e824deb91cbd5fd7e421243a0ced8a64
4
+ data.tar.gz: ec4f5f8ce047a48e29439423d5dd21b8268206af8488d871199cec128020e047
5
5
  SHA512:
6
- metadata.gz: af6ccac3e011ed907d6754bcc578266c4b32db804088acf49ef9e52b6a11a2b7ae0407f7602dd81f40814039eaed161456377dab03b195f5f1133caea6dd0abb
7
- data.tar.gz: 3fda181648b4c314dc7f22ded9fd9f2aef9ab77c110bb743d19e4442463f06f2e1416ef71e19652fe65d0aee5716f6f68fc9acaef37e69d7b120ffac99a0ba15
6
+ metadata.gz: 9df745c424d54e31d72f238c734807273894afbf901269fd915b5d1e5882e301a2810dce6ca6d1294ed0eac8b415714deabba46408892f7613d17518338f147b
7
+ data.tar.gz: 37831f9c0159c3888944ed1a7677a39f52c57e10c0e30c179686b974d7e95754764cef49c23ae030e5b4c176f113fcc1204949389bcd2f0f4c092a605e2cf360
data/lib/evnt/command.rb CHANGED
@@ -115,11 +115,14 @@ module Evnt
115
115
  }
116
116
 
117
117
  # set options
118
- options = params[:_options] || @_default_options || {}
119
- @options = {
120
- exceptions: options[:exceptions] || false,
121
- nullify_empty_params: options[:nullify_empty_params] || false
118
+ initial_options = {
119
+ exceptions: false,
120
+ nullify_empty_params: false
122
121
  }
122
+ default_options = @_default_options || {}
123
+ params_options = params[:_options] || {}
124
+ @options = initial_options.merge(default_options)
125
+ .merge(params_options)
123
126
 
124
127
  # set other data
125
128
  @params = params
data/lib/evnt/event.rb CHANGED
@@ -78,10 +78,13 @@ module Evnt
78
78
  }
79
79
 
80
80
  # set options
81
- options = params[:_options] || @_default_options || {}
82
- @options = {
83
- silent: options[:silent] || false
81
+ initial_options = {
82
+ silent: false
84
83
  }
84
+ default_options = @_default_options || {}
85
+ params_options = params[:_options] || {}
86
+ @options = initial_options.merge(default_options)
87
+ .merge(params_options)
85
88
 
86
89
  # set payload
87
90
  payload = params.reject { |k, _v| k[0] == '_' }
data/lib/evnt/version.rb CHANGED
@@ -3,6 +3,6 @@
3
3
  # Evnt.
4
4
  module Evnt
5
5
 
6
- VERSION = '3.1.3'
6
+ VERSION = '3.1.4'
7
7
 
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evnt
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.3
4
+ version: 3.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ideonetwork