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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 41aa7a26e731272d9d26b9ebbe4ef03fbd6d870983fab78926b10c9550eeb189
4
- data.tar.gz: 7cc7b2933092c6706ca73589bc46f4bc6646a9d9723233e5884c19ef4df91fde
3
+ metadata.gz: 8652b11a81710eca5cbd907396aecc2c790c047d5a4b9e681909b06855a2d7a9
4
+ data.tar.gz: 2bd1eb8d089b5d00480cd28e21034e5879562def468c9bd329b50ff2549577c9
5
5
  SHA512:
6
- metadata.gz: 7fc3ff317ede2b68120223a4d4b602289bb6241286227b398467fa1d4275ce0cf71d46b0c089fb9e89b0673403ed0acd9f835a5973157dbd662b8395a93579c1
7
- data.tar.gz: 47a3003d4f32ea798a3e9ab45345b92e094bf715aa0fdb20ff699c3c2fd34daa39447d9f4c6348d15e0a0740c7e86f9af9c9a9aad470755f59f678eb59128d4d
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_bench-telemetry
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0.2
4
+ version: 2.1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Ladd