test_bench-telemetry 2.1.0.2 → 2.1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/test_bench/telemetry/event_data/serialization.rb +13 -9
- 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: 8652b11a81710eca5cbd907396aecc2c790c047d5a4b9e681909b06855a2d7a9
|
4
|
+
data.tar.gz: 2bd1eb8d089b5d00480cd28e21034e5879562def468c9bd329b50ff2549577c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb527458e28bc3c2cae0f0976bc6c8dda04c213b5c244fee20ce1e076a32d4329c61eaa833ce2bcaa08337a763cfbd602aaa9cb8e1c885cf93ae538968986ea7
|
7
|
+
data.tar.gz: bc84eaf0dfd1d8bd9d0af7dab20794a08e8c4367ce67eeb15e97c7db7f4c9fb5fb84daa332d219207f664aafec0100cc128193262d892ef5cbcf982abc016071
|
@@ -115,30 +115,34 @@ module TestBench
|
|
115
115
|
end
|
116
116
|
|
117
117
|
def self.type
|
118
|
-
%r{(?<type>[A-Z][[:alnum:]]+)}
|
118
|
+
@type ||= %r{(?<type>[A-Z][[:alnum:]]+)}
|
119
119
|
end
|
120
120
|
|
121
121
|
def self.process_id
|
122
|
-
%r{(?<process_id>#{integer})}
|
122
|
+
@process_id ||= %r{(?<process_id>#{integer})}
|
123
123
|
end
|
124
124
|
|
125
125
|
def self.time_attribute
|
126
|
-
%r{(?<time_attribute>#{time})}
|
126
|
+
@time_attribute ||= %r{(?<time_attribute>#{time})}
|
127
127
|
end
|
128
128
|
|
129
129
|
def self.data
|
130
|
-
%r{(?<data>#{value}(?:\t#{value})*)}
|
130
|
+
@data ||= %r{(?<data>#{value}(?:\t#{value})*)}
|
131
131
|
end
|
132
132
|
|
133
133
|
def self.value
|
134
|
-
%r{#{integer}|#{time}|#{self.nil}|#{boolean}|#{string}}
|
134
|
+
@value ||= %r{#{integer}|#{time}|#{self.nil}|#{boolean}|#{string}}
|
135
135
|
end
|
136
136
|
|
137
137
|
def self.integer
|
138
|
-
%r{(?<integer>[[:digit:]]+)}
|
138
|
+
@integer ||= %r{(?<integer>[[:digit:]]+)}
|
139
139
|
end
|
140
140
|
|
141
141
|
def self.time
|
142
|
+
@time ||= time!
|
143
|
+
end
|
144
|
+
|
145
|
+
def self.time!
|
142
146
|
year = %r{(?<year>[[:digit:]]{4})}
|
143
147
|
month = %r{(?<month>[[:digit:]]{2})}
|
144
148
|
day = %r{(?<day>[[:digit:]]{2})}
|
@@ -151,15 +155,15 @@ module TestBench
|
|
151
155
|
end
|
152
156
|
|
153
157
|
def self.nil
|
154
|
-
%r{(?<nil>(?=[\t\r\z])?)}
|
158
|
+
@nil ||= %r{(?<nil>(?=[\t\r\z])?)}
|
155
159
|
end
|
156
160
|
|
157
161
|
def self.boolean
|
158
|
-
%r{(?<true>true)|(?<false>false)}
|
162
|
+
@boolean ||= %r{(?<true>true)|(?<false>false)}
|
159
163
|
end
|
160
164
|
|
161
165
|
def self.string
|
162
|
-
%r{(?<string>".*")}
|
166
|
+
@string ||= %r{(?<string>".*")}
|
163
167
|
end
|
164
168
|
end
|
165
169
|
end
|