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 +4 -4
- data/lib/evnt/command.rb +7 -4
- data/lib/evnt/event.rb +6 -3
- data/lib/evnt/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e0bb0645a93a6ed42052a22f21fa0e7e824deb91cbd5fd7e421243a0ced8a64
|
4
|
+
data.tar.gz: ec4f5f8ce047a48e29439423d5dd21b8268206af8488d871199cec128020e047
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
119
|
-
|
120
|
-
|
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
|
-
|
82
|
-
|
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