senec 0.23.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rspec_status +84 -69
- data/.ruby-lsp/Gemfile +1 -1
- data/.ruby-lsp/Gemfile.lock +51 -59
- data/.ruby-lsp/freshness_hash +1 -0
- data/.ruby-lsp/last_updated +1 -1
- data/.ruby-lsp/needs_update +0 -0
- data/README.md +16 -0
- data/coverage/.history.json +311 -0
- data/coverage/.last_run.json +1 -1
- data/coverage/.report_stamp +0 -0
- data/coverage/.resultset.json +1 -1571
- data/coverage/coverage.json +1234 -982
- data/coverage/index.html +74 -17109
- data/lib/senec/cloud/connection.rb +28 -12
- data/lib/senec/local/constants.rb +10 -0
- data/lib/senec/local/request.rb +15 -3
- data/lib/senec/local/value.rb +4 -4
- data/lib/senec/version.rb +1 -1
- data/pkg/senec-0.23.0.gem +0 -0
- data/pkg/senec-0.24.0.gem +0 -0
- metadata +196 -178
data/coverage/coverage.json
CHANGED
|
@@ -1,9 +1,43 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/simplecov-ruby/simplecov/main/schemas/coverage-v1.3.schema.json",
|
|
2
3
|
"meta": {
|
|
3
|
-
"
|
|
4
|
+
"schema_version": "1.3",
|
|
5
|
+
"simplecov_version": "1.3.0",
|
|
6
|
+
"command_name": "RSpec",
|
|
7
|
+
"command_names": [
|
|
8
|
+
"RSpec"
|
|
9
|
+
],
|
|
10
|
+
"project_name": "Senec",
|
|
11
|
+
"timestamp": "2026-12-01T11:55:06.386+01:00",
|
|
12
|
+
"root": "/Users/ledermann/Projects/solectrus/senec",
|
|
13
|
+
"commit": "e7a6b7b55a8587d77b49be36e0e5378e1e8c3498",
|
|
14
|
+
"primary_coverage": "line",
|
|
15
|
+
"line_coverage": true,
|
|
16
|
+
"branch_coverage": false,
|
|
17
|
+
"method_coverage": false
|
|
18
|
+
},
|
|
19
|
+
"total": {
|
|
20
|
+
"lines": {
|
|
21
|
+
"covered": 304,
|
|
22
|
+
"missed": 2,
|
|
23
|
+
"omitted": 376,
|
|
24
|
+
"total": 306,
|
|
25
|
+
"percent": 99.34640522875817,
|
|
26
|
+
"strength": 13.718954248366012
|
|
27
|
+
}
|
|
4
28
|
},
|
|
5
29
|
"coverage": {
|
|
6
|
-
"
|
|
30
|
+
"lib/senec.rb": {
|
|
31
|
+
"source": [
|
|
32
|
+
"require 'senec/version'",
|
|
33
|
+
"require 'senec/local/connection'",
|
|
34
|
+
"require 'senec/local/state'",
|
|
35
|
+
"require 'senec/local/request'",
|
|
36
|
+
"require 'senec/local/error'",
|
|
37
|
+
"",
|
|
38
|
+
"require 'senec/cloud/connection'",
|
|
39
|
+
"require 'senec/cloud/error'"
|
|
40
|
+
],
|
|
7
41
|
"lines": [
|
|
8
42
|
1,
|
|
9
43
|
1,
|
|
@@ -13,9 +47,322 @@
|
|
|
13
47
|
null,
|
|
14
48
|
1,
|
|
15
49
|
1
|
|
16
|
-
]
|
|
50
|
+
],
|
|
51
|
+
"lines_covered_percent": 100.0,
|
|
52
|
+
"covered_lines": 7,
|
|
53
|
+
"missed_lines": 0,
|
|
54
|
+
"omitted_lines": 1,
|
|
55
|
+
"total_lines": 7
|
|
17
56
|
},
|
|
18
|
-
"
|
|
57
|
+
"lib/senec/cloud/connection.rb": {
|
|
58
|
+
"source": [
|
|
59
|
+
"require 'oauth2'",
|
|
60
|
+
"require 'rotp'",
|
|
61
|
+
"",
|
|
62
|
+
"module Senec",
|
|
63
|
+
" module Cloud",
|
|
64
|
+
" CONFIG_URL =",
|
|
65
|
+
" 'https://sso.senec.com/realms/senec/.well-known/openid-configuration'.freeze",
|
|
66
|
+
"",
|
|
67
|
+
" CLIENT_ID = 'endcustomer-app-frontend'.freeze",
|
|
68
|
+
" REDIRECT_URI = 'senec-app-auth://keycloak.prod'.freeze",
|
|
69
|
+
" SCOPE = 'roles profile meinsenec'.freeze",
|
|
70
|
+
"",
|
|
71
|
+
" SYSTEMS_HOST = 'https://senec-app-systems-proxy.prod.senec.dev'.freeze",
|
|
72
|
+
" MEASUREMENTS_HOST = 'https://senec-app-measurements-proxy.prod.senec.dev'.freeze",
|
|
73
|
+
" WALLBOX_HOST = 'https://senec-app-wallbox-proxy.prod.senec.dev'.freeze",
|
|
74
|
+
"",
|
|
75
|
+
" class Connection",
|
|
76
|
+
" DEFAULT_USER_AGENT = \"ruby-senec/#{Senec::VERSION} (+https://github.com/solectrus/senec)\".freeze",
|
|
77
|
+
"",
|
|
78
|
+
" def initialize(username:, password:, user_agent: DEFAULT_USER_AGENT, totp_uri: nil)",
|
|
79
|
+
" @username = username",
|
|
80
|
+
" @password = password",
|
|
81
|
+
" @user_agent = user_agent",
|
|
82
|
+
" @totp_uri = totp_uri",
|
|
83
|
+
" end",
|
|
84
|
+
"",
|
|
85
|
+
" attr_reader :username, :password, :user_agent, :totp_uri",
|
|
86
|
+
"",
|
|
87
|
+
" def authenticate!",
|
|
88
|
+
" code_verifier = SecureRandom.alphanumeric(43)",
|
|
89
|
+
" digest = Digest::SHA256.digest(code_verifier)",
|
|
90
|
+
" code_challenge = Base64.urlsafe_encode64(digest).delete('=')",
|
|
91
|
+
"",
|
|
92
|
+
" auth_url =",
|
|
93
|
+
" oauth_client.auth_code.authorize_url(",
|
|
94
|
+
" redirect_uri: REDIRECT_URI,",
|
|
95
|
+
" scope: SCOPE,",
|
|
96
|
+
" code_challenge:,",
|
|
97
|
+
" code_challenge_method: 'S256',",
|
|
98
|
+
" )",
|
|
99
|
+
"",
|
|
100
|
+
" # Manual HTTP needed for Keycloak cross-domain form handling",
|
|
101
|
+
" form_type, form_url = fetch_login_form(auth_url)",
|
|
102
|
+
" redirect_url = submit_credentials(form_type, form_url)",
|
|
103
|
+
" authorization_code = extract_authorization_code(redirect_url)",
|
|
104
|
+
"",
|
|
105
|
+
" self.oauth_token =",
|
|
106
|
+
" oauth_client.auth_code.get_token(",
|
|
107
|
+
" authorization_code,",
|
|
108
|
+
" redirect_uri: REDIRECT_URI,",
|
|
109
|
+
" code_verifier:,",
|
|
110
|
+
" )",
|
|
111
|
+
" end",
|
|
112
|
+
"",
|
|
113
|
+
" def authenticated?",
|
|
114
|
+
" !!oauth_token",
|
|
115
|
+
" end",
|
|
116
|
+
"",
|
|
117
|
+
" def systems",
|
|
118
|
+
" get \"#{SYSTEMS_HOST}/systems/api/v1\"",
|
|
119
|
+
" end",
|
|
120
|
+
"",
|
|
121
|
+
" def system_details(system_id)",
|
|
122
|
+
" get \"#{SYSTEMS_HOST}/systems/api/v1/#{system_id}/details\"",
|
|
123
|
+
" end",
|
|
124
|
+
"",
|
|
125
|
+
" def dashboard(system_id)",
|
|
126
|
+
" get \"#{MEASUREMENTS_HOST}/measurements/api/v1/systems/#{system_id}/dashboard\"",
|
|
127
|
+
" end",
|
|
128
|
+
"",
|
|
129
|
+
" def wallbox(system_id, wallbox_id)",
|
|
130
|
+
" get \"#{WALLBOX_HOST}/wallbox/api/v1/systems/#{system_id}/wallboxes/#{wallbox_id}\"",
|
|
131
|
+
" end",
|
|
132
|
+
"",
|
|
133
|
+
" def wallbox_search(system_id)",
|
|
134
|
+
" post \"#{WALLBOX_HOST}/wallbox/api/v1/systems/wallboxes/search\", { systemIds: [system_id] }",
|
|
135
|
+
" end",
|
|
136
|
+
"",
|
|
137
|
+
" def measurements(system_id, resolution:, from:, to:)",
|
|
138
|
+
" params = URI.encode_www_form(",
|
|
139
|
+
" resolution:,",
|
|
140
|
+
" from: from.strftime('%Y-%m-%dT%H:%M:%SZ'),",
|
|
141
|
+
" to: to.strftime('%Y-%m-%dT%H:%M:%SZ'),",
|
|
142
|
+
" )",
|
|
143
|
+
"",
|
|
144
|
+
" get \"#{MEASUREMENTS_HOST}/measurements/api/v1/systems/#{system_id}/measurements?#{params}\"",
|
|
145
|
+
" end",
|
|
146
|
+
"",
|
|
147
|
+
" def data_availability(system_id, timezone:)",
|
|
148
|
+
" params = URI.encode_www_form(timezone:)",
|
|
149
|
+
"",
|
|
150
|
+
" get \"#{MEASUREMENTS_HOST}/measurements/api/v1/systems/#{system_id}/data-availability/timespan?#{params}\"",
|
|
151
|
+
" end",
|
|
152
|
+
"",
|
|
153
|
+
" private",
|
|
154
|
+
"",
|
|
155
|
+
" attr_accessor :oauth_token",
|
|
156
|
+
"",
|
|
157
|
+
" def fetch_login_form(auth_url)",
|
|
158
|
+
" response = http_request(:get, auth_url)",
|
|
159
|
+
" store_cookies(response) # Required for Keycloak CSRF protection",
|
|
160
|
+
" detect_login_form(response.body) || raise('Login form not found')",
|
|
161
|
+
" end",
|
|
162
|
+
"",
|
|
163
|
+
" def submit_credentials(form_type, form_url)",
|
|
164
|
+
" case form_type",
|
|
165
|
+
" when :username_and_password",
|
|
166
|
+
" response = http_request(:post, form_url, data: { username:, password: })",
|
|
167
|
+
" when :username_only",
|
|
168
|
+
" response = submit_username_then_password(form_url)",
|
|
169
|
+
" end",
|
|
170
|
+
"",
|
|
171
|
+
" if response.status == 200",
|
|
172
|
+
" # Check if MFA is required",
|
|
173
|
+
" if (totp_form_url = extract_totp_form_action_url(response.body))",
|
|
174
|
+
" unless totp_uri",
|
|
175
|
+
" raise 'MFA required but no TOTP URI provided'",
|
|
176
|
+
" end",
|
|
177
|
+
"",
|
|
178
|
+
" response = submit_totp_form(totp_form_url)",
|
|
179
|
+
" else",
|
|
180
|
+
" # No OTP form found, assume login failed",
|
|
181
|
+
" raise 'Login failed - invalid credentials or unexpected response'",
|
|
182
|
+
" end",
|
|
183
|
+
" end",
|
|
184
|
+
"",
|
|
185
|
+
" # Handle final redirect (same for both MFA and non-MFA flows)",
|
|
186
|
+
" handle_redirect_response(response)",
|
|
187
|
+
" end",
|
|
188
|
+
"",
|
|
189
|
+
" def submit_username_then_password(form_url)",
|
|
190
|
+
" response = http_request(:post, form_url, data: { username: })",
|
|
191
|
+
" store_cookies(response)",
|
|
192
|
+
"",
|
|
193
|
+
" raise 'Password form not found' unless response.status == 200",
|
|
194
|
+
"",
|
|
195
|
+
" password_form_url = find_form_action_url(response.body) do |f|",
|
|
196
|
+
" f.match(/name=[\"']?password[\"']?/i)",
|
|
197
|
+
" end",
|
|
198
|
+
" raise 'Password form not found' unless password_form_url",
|
|
199
|
+
"",
|
|
200
|
+
" http_request(:post, password_form_url, data: { username:, password: })",
|
|
201
|
+
" end",
|
|
202
|
+
"",
|
|
203
|
+
" def submit_totp_form(form_url)",
|
|
204
|
+
" totp = build_totp_from_uri(totp_uri)",
|
|
205
|
+
"",
|
|
206
|
+
" totp_data = { otp: totp.now }",
|
|
207
|
+
" http_request(:post, form_url, data: totp_data)",
|
|
208
|
+
" end",
|
|
209
|
+
"",
|
|
210
|
+
" def extract_authorization_code(redirect_url)",
|
|
211
|
+
" raise 'Invalid redirect URL' unless redirect_url&.start_with?(REDIRECT_URI)",
|
|
212
|
+
"",
|
|
213
|
+
" uri = URI(redirect_url)",
|
|
214
|
+
" params = URI.decode_www_form(uri.query).to_h",
|
|
215
|
+
"",
|
|
216
|
+
" params['code'] || raise('No authorization code found')",
|
|
217
|
+
" end",
|
|
218
|
+
"",
|
|
219
|
+
" def detect_login_form(html)",
|
|
220
|
+
" # Check for combined form first (backward compatible with old SENEC flow)",
|
|
221
|
+
" url = find_form_action_url(html) do |form|",
|
|
222
|
+
" form.match(/name=[\"']?username[\"']?/i) &&",
|
|
223
|
+
" form.match(/name=[\"']?password[\"']?/i)",
|
|
224
|
+
" end",
|
|
225
|
+
" return [:username_and_password, url] if url",
|
|
226
|
+
"",
|
|
227
|
+
" # Check for username-only form (new two-step SENEC flow)",
|
|
228
|
+
" url = find_form_action_url(html) do |form|",
|
|
229
|
+
" form.match(/name=[\"']?username[\"']?/i)",
|
|
230
|
+
" end",
|
|
231
|
+
" return [:username_only, url] if url",
|
|
232
|
+
"",
|
|
233
|
+
" nil",
|
|
234
|
+
" end",
|
|
235
|
+
"",
|
|
236
|
+
" def extract_totp_form_action_url(html)",
|
|
237
|
+
" find_form_action_url(html) do |form|",
|
|
238
|
+
" # Look for a form with an OTP field",
|
|
239
|
+
" form.match(/name=[\"']?otp[\"']?/i)",
|
|
240
|
+
" end",
|
|
241
|
+
" end",
|
|
242
|
+
"",
|
|
243
|
+
" def find_form_action_url(html)",
|
|
244
|
+
" forms = html.scan(%r{<form[^>]*action=\"([^\"]+)\"[^>]*>(.*?)</form>}mi)",
|
|
245
|
+
"",
|
|
246
|
+
" forms.each do |action_url, form_content|",
|
|
247
|
+
" return CGI.unescapeHTML(action_url) if yield(form_content)",
|
|
248
|
+
" end",
|
|
249
|
+
"",
|
|
250
|
+
" nil",
|
|
251
|
+
" end",
|
|
252
|
+
"",
|
|
253
|
+
" def build_totp_from_uri(uri_string)",
|
|
254
|
+
" params = URI.decode_www_form(URI.parse(uri_string).query).to_h",
|
|
255
|
+
" secret = params['secret'] || raise('Missing secret in TOTP URI')",
|
|
256
|
+
"",
|
|
257
|
+
" ROTP::TOTP.new(",
|
|
258
|
+
" secret,",
|
|
259
|
+
" digits: params['digits']&.to_i,",
|
|
260
|
+
" period: params['period']&.to_i,",
|
|
261
|
+
" algorithm: params['algorithm'],",
|
|
262
|
+
" )",
|
|
263
|
+
" end",
|
|
264
|
+
"",
|
|
265
|
+
" def handle_redirect_response(response)",
|
|
266
|
+
" unless response.status == 302",
|
|
267
|
+
" raise \"Authentication failed, got unexpected response: #{response.status} #{response.body}\"",
|
|
268
|
+
" end",
|
|
269
|
+
"",
|
|
270
|
+
" response.headers['location'] || raise('No redirect location')",
|
|
271
|
+
" end",
|
|
272
|
+
"",
|
|
273
|
+
" def ensure_token_valid!",
|
|
274
|
+
" authenticate! unless authenticated?",
|
|
275
|
+
" return unless oauth_token.expired?",
|
|
276
|
+
"",
|
|
277
|
+
" self.oauth_token = oauth_token.refresh!",
|
|
278
|
+
" rescue StandardError => e",
|
|
279
|
+
" warn \"Token refresh failed: #{e.message}, trying to re-authenticate...\"",
|
|
280
|
+
"",
|
|
281
|
+
" authenticate!",
|
|
282
|
+
" end",
|
|
283
|
+
"",
|
|
284
|
+
" def get(url)",
|
|
285
|
+
" ensure_token_valid!",
|
|
286
|
+
"",
|
|
287
|
+
" response = oauth_token.get(url)",
|
|
288
|
+
" JSON.parse(response.body)",
|
|
289
|
+
" rescue StandardError => e",
|
|
290
|
+
" # simplecov:disable",
|
|
291
|
+
" warn \"API error: #{e.message}\"",
|
|
292
|
+
" nil",
|
|
293
|
+
" # simplecov:enable",
|
|
294
|
+
" end",
|
|
295
|
+
"",
|
|
296
|
+
" def post(url, data)",
|
|
297
|
+
" ensure_token_valid!",
|
|
298
|
+
"",
|
|
299
|
+
" response = oauth_token.post(",
|
|
300
|
+
" url,",
|
|
301
|
+
" body: data.to_json,",
|
|
302
|
+
" headers: { 'Content-Type' => 'application/json' },",
|
|
303
|
+
" )",
|
|
304
|
+
"",
|
|
305
|
+
" JSON.parse(response.body)",
|
|
306
|
+
" rescue StandardError => e",
|
|
307
|
+
" # simplecov:disable",
|
|
308
|
+
" warn \"API error: #{e.message}\"",
|
|
309
|
+
" nil",
|
|
310
|
+
" # simplecov:enable",
|
|
311
|
+
" end",
|
|
312
|
+
"",
|
|
313
|
+
" def http_request(method, url, data: nil)",
|
|
314
|
+
" Faraday",
|
|
315
|
+
" .new",
|
|
316
|
+
" .send(method, url) do |req|",
|
|
317
|
+
" req.headers['user-agent'] = user_agent",
|
|
318
|
+
" req.headers['connection'] = 'keep-alive'",
|
|
319
|
+
" req.headers['cookie'] = cookie_string if cookies.any?",
|
|
320
|
+
" req.body = URI.encode_www_form(data) if data",
|
|
321
|
+
" end",
|
|
322
|
+
" end",
|
|
323
|
+
"",
|
|
324
|
+
" def oauth_client",
|
|
325
|
+
" @oauth_client ||=",
|
|
326
|
+
" OAuth2::Client.new(",
|
|
327
|
+
" CLIENT_ID,",
|
|
328
|
+
" nil,",
|
|
329
|
+
" site: openid_config['issuer'],",
|
|
330
|
+
" authorize_url: openid_config['authorization_endpoint'],",
|
|
331
|
+
" token_url: openid_config['token_endpoint'],",
|
|
332
|
+
" )",
|
|
333
|
+
" end",
|
|
334
|
+
"",
|
|
335
|
+
" def openid_config",
|
|
336
|
+
" @openid_config ||= JSON.parse(http_request(:get, CONFIG_URL).body)",
|
|
337
|
+
" rescue StandardError => e",
|
|
338
|
+
" # simplecov:disable",
|
|
339
|
+
" raise \"Failed to load OpenID configuration: #{e.message}\"",
|
|
340
|
+
" # simplecov:enable",
|
|
341
|
+
" end",
|
|
342
|
+
"",
|
|
343
|
+
" def cookies",
|
|
344
|
+
" @cookies ||= {}",
|
|
345
|
+
" end",
|
|
346
|
+
"",
|
|
347
|
+
" def cookie_string",
|
|
348
|
+
" cookies.map { |k, v| \"#{k}=#{v}\" }.join('; ')",
|
|
349
|
+
" end",
|
|
350
|
+
"",
|
|
351
|
+
" def store_cookies(response)",
|
|
352
|
+
" set_cookie = response.headers['set-cookie']",
|
|
353
|
+
" return unless set_cookie",
|
|
354
|
+
"",
|
|
355
|
+
" set_cookie",
|
|
356
|
+
" .split(', ')",
|
|
357
|
+
" .each do |cookie_header|",
|
|
358
|
+
" name, value = cookie_header.split(';').first.split('=', 2)",
|
|
359
|
+
" cookies[name] = value if name && value",
|
|
360
|
+
" end",
|
|
361
|
+
" end",
|
|
362
|
+
" end",
|
|
363
|
+
" end",
|
|
364
|
+
"end"
|
|
365
|
+
],
|
|
19
366
|
"lines": [
|
|
20
367
|
1,
|
|
21
368
|
1,
|
|
@@ -37,21 +384,21 @@
|
|
|
37
384
|
1,
|
|
38
385
|
null,
|
|
39
386
|
1,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
387
|
+
31,
|
|
388
|
+
31,
|
|
389
|
+
31,
|
|
390
|
+
31,
|
|
44
391
|
null,
|
|
45
392
|
null,
|
|
46
393
|
1,
|
|
47
394
|
null,
|
|
48
395
|
1,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
396
|
+
28,
|
|
397
|
+
28,
|
|
398
|
+
28,
|
|
52
399
|
null,
|
|
53
400
|
null,
|
|
54
|
-
|
|
401
|
+
28,
|
|
55
402
|
null,
|
|
56
403
|
null,
|
|
57
404
|
null,
|
|
@@ -59,11 +406,11 @@
|
|
|
59
406
|
null,
|
|
60
407
|
null,
|
|
61
408
|
null,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
409
|
+
28,
|
|
410
|
+
28,
|
|
411
|
+
26,
|
|
65
412
|
null,
|
|
66
|
-
|
|
413
|
+
26,
|
|
67
414
|
null,
|
|
68
415
|
null,
|
|
69
416
|
null,
|
|
@@ -72,7 +419,7 @@
|
|
|
72
419
|
null,
|
|
73
420
|
null,
|
|
74
421
|
1,
|
|
75
|
-
|
|
422
|
+
31,
|
|
76
423
|
null,
|
|
77
424
|
null,
|
|
78
425
|
1,
|
|
@@ -96,24 +443,40 @@
|
|
|
96
443
|
null,
|
|
97
444
|
null,
|
|
98
445
|
1,
|
|
446
|
+
5,
|
|
447
|
+
null,
|
|
448
|
+
null,
|
|
449
|
+
null,
|
|
450
|
+
null,
|
|
451
|
+
null,
|
|
452
|
+
5,
|
|
453
|
+
null,
|
|
99
454
|
null,
|
|
100
455
|
1,
|
|
456
|
+
4,
|
|
457
|
+
null,
|
|
458
|
+
4,
|
|
459
|
+
null,
|
|
101
460
|
null,
|
|
102
461
|
1,
|
|
103
|
-
19,
|
|
104
|
-
19,
|
|
105
|
-
19,
|
|
106
462
|
null,
|
|
463
|
+
1,
|
|
107
464
|
null,
|
|
108
465
|
1,
|
|
109
|
-
|
|
466
|
+
28,
|
|
467
|
+
28,
|
|
468
|
+
28,
|
|
469
|
+
null,
|
|
470
|
+
null,
|
|
471
|
+
1,
|
|
472
|
+
28,
|
|
110
473
|
null,
|
|
111
474
|
2,
|
|
112
475
|
null,
|
|
113
|
-
|
|
476
|
+
26,
|
|
114
477
|
null,
|
|
115
478
|
null,
|
|
116
|
-
|
|
479
|
+
28,
|
|
117
480
|
null,
|
|
118
481
|
3,
|
|
119
482
|
2,
|
|
@@ -128,21 +491,21 @@
|
|
|
128
491
|
null,
|
|
129
492
|
null,
|
|
130
493
|
null,
|
|
131
|
-
|
|
494
|
+
26,
|
|
132
495
|
null,
|
|
133
496
|
null,
|
|
134
497
|
1,
|
|
135
|
-
|
|
136
|
-
|
|
498
|
+
26,
|
|
499
|
+
26,
|
|
137
500
|
null,
|
|
138
|
-
|
|
501
|
+
26,
|
|
139
502
|
null,
|
|
140
|
-
|
|
141
|
-
|
|
503
|
+
26,
|
|
504
|
+
26,
|
|
142
505
|
null,
|
|
143
|
-
|
|
506
|
+
26,
|
|
144
507
|
null,
|
|
145
|
-
|
|
508
|
+
26,
|
|
146
509
|
null,
|
|
147
510
|
null,
|
|
148
511
|
1,
|
|
@@ -153,27 +516,27 @@
|
|
|
153
516
|
null,
|
|
154
517
|
null,
|
|
155
518
|
1,
|
|
156
|
-
|
|
519
|
+
26,
|
|
157
520
|
null,
|
|
158
|
-
|
|
159
|
-
|
|
521
|
+
26,
|
|
522
|
+
26,
|
|
160
523
|
null,
|
|
161
|
-
|
|
524
|
+
26,
|
|
162
525
|
null,
|
|
163
526
|
null,
|
|
164
527
|
1,
|
|
165
528
|
null,
|
|
166
|
-
|
|
167
|
-
|
|
529
|
+
28,
|
|
530
|
+
54,
|
|
168
531
|
null,
|
|
169
532
|
null,
|
|
170
|
-
|
|
533
|
+
28,
|
|
171
534
|
null,
|
|
172
535
|
null,
|
|
173
|
-
|
|
174
|
-
|
|
536
|
+
26,
|
|
537
|
+
26,
|
|
175
538
|
null,
|
|
176
|
-
|
|
539
|
+
26,
|
|
177
540
|
null,
|
|
178
541
|
0,
|
|
179
542
|
null,
|
|
@@ -186,13 +549,13 @@
|
|
|
186
549
|
null,
|
|
187
550
|
null,
|
|
188
551
|
1,
|
|
189
|
-
|
|
552
|
+
83,
|
|
190
553
|
null,
|
|
191
|
-
|
|
192
|
-
|
|
554
|
+
83,
|
|
555
|
+
109,
|
|
193
556
|
null,
|
|
194
557
|
null,
|
|
195
|
-
|
|
558
|
+
27,
|
|
196
559
|
null,
|
|
197
560
|
null,
|
|
198
561
|
1,
|
|
@@ -208,16 +571,16 @@
|
|
|
208
571
|
null,
|
|
209
572
|
null,
|
|
210
573
|
1,
|
|
211
|
-
|
|
574
|
+
26,
|
|
212
575
|
0,
|
|
213
576
|
null,
|
|
214
577
|
null,
|
|
215
|
-
|
|
578
|
+
26,
|
|
216
579
|
null,
|
|
217
580
|
null,
|
|
218
581
|
1,
|
|
219
|
-
|
|
220
|
-
|
|
582
|
+
27,
|
|
583
|
+
27,
|
|
221
584
|
null,
|
|
222
585
|
2,
|
|
223
586
|
null,
|
|
@@ -227,10 +590,10 @@
|
|
|
227
590
|
null,
|
|
228
591
|
null,
|
|
229
592
|
1,
|
|
230
|
-
|
|
593
|
+
24,
|
|
231
594
|
null,
|
|
232
|
-
|
|
233
|
-
|
|
595
|
+
24,
|
|
596
|
+
19,
|
|
234
597
|
null,
|
|
235
598
|
"ignored",
|
|
236
599
|
"ignored",
|
|
@@ -256,18 +619,18 @@
|
|
|
256
619
|
null,
|
|
257
620
|
null,
|
|
258
621
|
1,
|
|
259
|
-
|
|
622
|
+
111,
|
|
260
623
|
null,
|
|
261
624
|
null,
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
625
|
+
111,
|
|
626
|
+
111,
|
|
627
|
+
111,
|
|
628
|
+
111,
|
|
266
629
|
null,
|
|
267
630
|
null,
|
|
268
631
|
null,
|
|
269
632
|
1,
|
|
270
|
-
|
|
633
|
+
54,
|
|
271
634
|
null,
|
|
272
635
|
null,
|
|
273
636
|
null,
|
|
@@ -278,7 +641,7 @@
|
|
|
278
641
|
null,
|
|
279
642
|
null,
|
|
280
643
|
1,
|
|
281
|
-
|
|
644
|
+
84,
|
|
282
645
|
null,
|
|
283
646
|
"ignored",
|
|
284
647
|
"ignored",
|
|
@@ -286,30 +649,43 @@
|
|
|
286
649
|
null,
|
|
287
650
|
null,
|
|
288
651
|
1,
|
|
289
|
-
|
|
652
|
+
250,
|
|
290
653
|
null,
|
|
291
654
|
null,
|
|
292
655
|
1,
|
|
293
|
-
|
|
656
|
+
220,
|
|
294
657
|
null,
|
|
295
658
|
null,
|
|
296
659
|
1,
|
|
297
|
-
|
|
298
|
-
|
|
660
|
+
54,
|
|
661
|
+
54,
|
|
299
662
|
null,
|
|
300
|
-
|
|
663
|
+
28,
|
|
301
664
|
null,
|
|
302
665
|
null,
|
|
303
|
-
|
|
304
|
-
|
|
666
|
+
84,
|
|
667
|
+
84,
|
|
305
668
|
null,
|
|
306
669
|
null,
|
|
307
670
|
null,
|
|
308
671
|
null,
|
|
309
672
|
null
|
|
310
|
-
]
|
|
673
|
+
],
|
|
674
|
+
"lines_covered_percent": 98.55072463768116,
|
|
675
|
+
"covered_lines": 136,
|
|
676
|
+
"missed_lines": 2,
|
|
677
|
+
"omitted_lines": 157,
|
|
678
|
+
"total_lines": 138
|
|
311
679
|
},
|
|
312
|
-
"
|
|
680
|
+
"lib/senec/cloud/error.rb": {
|
|
681
|
+
"source": [
|
|
682
|
+
"module Senec",
|
|
683
|
+
" module Cloud",
|
|
684
|
+
" class Error < StandardError",
|
|
685
|
+
" end",
|
|
686
|
+
" end",
|
|
687
|
+
"end"
|
|
688
|
+
],
|
|
313
689
|
"lines": [
|
|
314
690
|
1,
|
|
315
691
|
1,
|
|
@@ -317,9 +693,51 @@
|
|
|
317
693
|
null,
|
|
318
694
|
null,
|
|
319
695
|
null
|
|
320
|
-
]
|
|
696
|
+
],
|
|
697
|
+
"lines_covered_percent": 100.0,
|
|
698
|
+
"covered_lines": 3,
|
|
699
|
+
"missed_lines": 0,
|
|
700
|
+
"omitted_lines": 3,
|
|
701
|
+
"total_lines": 3
|
|
321
702
|
},
|
|
322
|
-
"
|
|
703
|
+
"lib/senec/local/connection.rb": {
|
|
704
|
+
"source": [
|
|
705
|
+
"require 'faraday'",
|
|
706
|
+
"require 'faraday/net_http_persistent'",
|
|
707
|
+
"require 'faraday-request-timer'",
|
|
708
|
+
"require 'forwardable'",
|
|
709
|
+
"",
|
|
710
|
+
"module Senec",
|
|
711
|
+
" module Local",
|
|
712
|
+
" class Connection",
|
|
713
|
+
" def initialize(host:, schema: 'http')",
|
|
714
|
+
" @url = \"#{schema}://#{host}\"",
|
|
715
|
+
" end",
|
|
716
|
+
"",
|
|
717
|
+
" attr_reader :url",
|
|
718
|
+
"",
|
|
719
|
+
" extend Forwardable",
|
|
720
|
+
"",
|
|
721
|
+
" def_delegators :faraday, :get, :post",
|
|
722
|
+
"",
|
|
723
|
+
" private",
|
|
724
|
+
"",
|
|
725
|
+
" def faraday",
|
|
726
|
+
" @faraday ||= Faraday.new @url,",
|
|
727
|
+
" ssl: { verify: false },",
|
|
728
|
+
" headers: {",
|
|
729
|
+
" 'Connection' => 'keep-alive'",
|
|
730
|
+
" } do |f|",
|
|
731
|
+
" f.request :timer",
|
|
732
|
+
" f.adapter :net_http_persistent, pool_size: 5 do |http|",
|
|
733
|
+
" http.idle_timeout = 30",
|
|
734
|
+
" end",
|
|
735
|
+
" end",
|
|
736
|
+
" end",
|
|
737
|
+
" end",
|
|
738
|
+
" end",
|
|
739
|
+
"end"
|
|
740
|
+
],
|
|
323
741
|
"lines": [
|
|
324
742
|
1,
|
|
325
743
|
1,
|
|
@@ -330,7 +748,7 @@
|
|
|
330
748
|
1,
|
|
331
749
|
1,
|
|
332
750
|
1,
|
|
333
|
-
|
|
751
|
+
36,
|
|
334
752
|
null,
|
|
335
753
|
null,
|
|
336
754
|
1,
|
|
@@ -342,13 +760,13 @@
|
|
|
342
760
|
1,
|
|
343
761
|
null,
|
|
344
762
|
1,
|
|
345
|
-
|
|
763
|
+
35,
|
|
346
764
|
null,
|
|
347
765
|
null,
|
|
348
766
|
null,
|
|
349
767
|
null,
|
|
350
|
-
|
|
351
|
-
|
|
768
|
+
35,
|
|
769
|
+
35,
|
|
352
770
|
7,
|
|
353
771
|
null,
|
|
354
772
|
null,
|
|
@@ -356,9 +774,85 @@
|
|
|
356
774
|
null,
|
|
357
775
|
null,
|
|
358
776
|
null
|
|
359
|
-
]
|
|
777
|
+
],
|
|
778
|
+
"lines_covered_percent": 100.0,
|
|
779
|
+
"covered_lines": 18,
|
|
780
|
+
"missed_lines": 0,
|
|
781
|
+
"omitted_lines": 17,
|
|
782
|
+
"total_lines": 18
|
|
360
783
|
},
|
|
361
|
-
"
|
|
784
|
+
"lib/senec/local/constants.rb": {
|
|
785
|
+
"source": [
|
|
786
|
+
"module Senec",
|
|
787
|
+
" module Local",
|
|
788
|
+
" # For a full list of available vars, see https://[IP-of-your-SENEC]//Vars.html",
|
|
789
|
+
" # Comments taken from https://gist.github.com/smashnet/82ad0b9d7f0ba2e5098e6649ba08f88a",
|
|
790
|
+
" BASIC_REQUEST = {",
|
|
791
|
+
" ENERGY: {",
|
|
792
|
+
" STAT_STATE: '', # Current state of the system (int, see SYSTEM_STATE_NAME)",
|
|
793
|
+
" GUI_BAT_DATA_CURRENT: '', # Battery charge current: negative if discharging, positiv if charging (A)",
|
|
794
|
+
" GUI_BAT_DATA_FUEL_CHARGE: '', # Remaining battery (percent)",
|
|
795
|
+
" GUI_BAT_DATA_POWER: '', # Battery charge power: negative if discharging, positiv if charging (W)",
|
|
796
|
+
" GUI_BAT_DATA_VOLTAGE: '', # Battery voltage (V)",
|
|
797
|
+
" GUI_GRID_POW: '', # Grid power: negative if exporting, positiv if importing (W)",
|
|
798
|
+
" GUI_HOUSE_POW: '', # House power consumption (W)",
|
|
799
|
+
" GUI_INVERTER_POWER: '', # PV production (W)",
|
|
800
|
+
" STAT_HOURS_OF_OPERATION: '' # Appliance hours of operation",
|
|
801
|
+
" },",
|
|
802
|
+
" WIZARD: {",
|
|
803
|
+
" APPLICATION_VERSION: ''",
|
|
804
|
+
" },",
|
|
805
|
+
" RTC: {",
|
|
806
|
+
" UTC_OFFSET: '',",
|
|
807
|
+
" WEB_TIME: ''",
|
|
808
|
+
" },",
|
|
809
|
+
" PV1: {",
|
|
810
|
+
" MPP_POWER: '', # List: MPP power (W)",
|
|
811
|
+
" POWER_RATIO: '' # Grid export limit (percent)",
|
|
812
|
+
" },",
|
|
813
|
+
" TEMPMEASURE: {",
|
|
814
|
+
" CASE_TEMP: ''",
|
|
815
|
+
" },",
|
|
816
|
+
" WALLBOX: {",
|
|
817
|
+
" APPARENT_CHARGING_POWER: '',",
|
|
818
|
+
" EV_CONNECTED: ''",
|
|
819
|
+
" }",
|
|
820
|
+
" }.freeze",
|
|
821
|
+
"",
|
|
822
|
+
" # Basic request plus the grid meter. Opt-in, to keep the load on the",
|
|
823
|
+
" # SENEC device unchanged for everyone who does not need these values.",
|
|
824
|
+
" GRID_METER_REQUEST = BASIC_REQUEST.merge(",
|
|
825
|
+
" PM1OBJ1: { # Grid meter at the house connection",
|
|
826
|
+
" FREQ: '', # Grid frequency (Hz)",
|
|
827
|
+
" U_AC: '', # List: Voltage per phase (V)",
|
|
828
|
+
" I_AC: '' # List: Current per phase (A)",
|
|
829
|
+
" },",
|
|
830
|
+
" ).freeze",
|
|
831
|
+
"",
|
|
832
|
+
" SAFETY_CHARGE = {",
|
|
833
|
+
" ENERGY: {",
|
|
834
|
+
" SAFE_CHARGE_FORCE: 'u8_01',",
|
|
835
|
+
" SAFE_CHARGE_PROHIBIT: '',",
|
|
836
|
+
" SAFE_CHARGE_RUNNING: '',",
|
|
837
|
+
" LI_STORAGE_MODE_START: '',",
|
|
838
|
+
" LI_STORAGE_MODE_STOP: '',",
|
|
839
|
+
" LI_STORAGE_MODE_RUNNING: ''",
|
|
840
|
+
" }",
|
|
841
|
+
" }.freeze",
|
|
842
|
+
"",
|
|
843
|
+
" ALLOW_DISCHARGE = {",
|
|
844
|
+
" ENERGY: {",
|
|
845
|
+
" SAFE_CHARGE_FORCE: '',",
|
|
846
|
+
" SAFE_CHARGE_PROHIBIT: 'u8_01',",
|
|
847
|
+
" SAFE_CHARGE_RUNNING: '',",
|
|
848
|
+
" LI_STORAGE_MODE_START: '',",
|
|
849
|
+
" LI_STORAGE_MODE_STOP: '',",
|
|
850
|
+
" LI_STORAGE_MODE_RUNNING: ''",
|
|
851
|
+
" }",
|
|
852
|
+
" }.freeze",
|
|
853
|
+
" end",
|
|
854
|
+
"end"
|
|
855
|
+
],
|
|
362
856
|
"lines": [
|
|
363
857
|
1,
|
|
364
858
|
1,
|
|
@@ -397,6 +891,16 @@
|
|
|
397
891
|
null,
|
|
398
892
|
null,
|
|
399
893
|
null,
|
|
894
|
+
null,
|
|
895
|
+
1,
|
|
896
|
+
null,
|
|
897
|
+
null,
|
|
898
|
+
null,
|
|
899
|
+
null,
|
|
900
|
+
null,
|
|
901
|
+
null,
|
|
902
|
+
null,
|
|
903
|
+
null,
|
|
400
904
|
1,
|
|
401
905
|
null,
|
|
402
906
|
null,
|
|
@@ -419,9 +923,22 @@
|
|
|
419
923
|
null,
|
|
420
924
|
null,
|
|
421
925
|
null
|
|
422
|
-
]
|
|
926
|
+
],
|
|
927
|
+
"lines_covered_percent": 100.0,
|
|
928
|
+
"covered_lines": 6,
|
|
929
|
+
"missed_lines": 0,
|
|
930
|
+
"omitted_lines": 63,
|
|
931
|
+
"total_lines": 6
|
|
423
932
|
},
|
|
424
|
-
"
|
|
933
|
+
"lib/senec/local/error.rb": {
|
|
934
|
+
"source": [
|
|
935
|
+
"module Senec",
|
|
936
|
+
" module Local",
|
|
937
|
+
" class Error < StandardError; end",
|
|
938
|
+
" class DecodingError < StandardError; end",
|
|
939
|
+
" end",
|
|
940
|
+
"end"
|
|
941
|
+
],
|
|
425
942
|
"lines": [
|
|
426
943
|
1,
|
|
427
944
|
1,
|
|
@@ -429,9 +946,170 @@
|
|
|
429
946
|
1,
|
|
430
947
|
null,
|
|
431
948
|
null
|
|
432
|
-
]
|
|
949
|
+
],
|
|
950
|
+
"lines_covered_percent": 100.0,
|
|
951
|
+
"covered_lines": 4,
|
|
952
|
+
"missed_lines": 0,
|
|
953
|
+
"omitted_lines": 2,
|
|
954
|
+
"total_lines": 4
|
|
433
955
|
},
|
|
434
|
-
"
|
|
956
|
+
"lib/senec/local/request.rb": {
|
|
957
|
+
"source": [
|
|
958
|
+
"require_relative 'value'",
|
|
959
|
+
"require_relative 'constants'",
|
|
960
|
+
"",
|
|
961
|
+
"module Senec",
|
|
962
|
+
" module Local",
|
|
963
|
+
" class Request",
|
|
964
|
+
" def initialize(connection:, body: BASIC_REQUEST, state_names: nil)",
|
|
965
|
+
" @connection = connection",
|
|
966
|
+
" @body = body",
|
|
967
|
+
" @state_names = state_names",
|
|
968
|
+
" end",
|
|
969
|
+
"",
|
|
970
|
+
" attr_reader :connection, :body, :state_names",
|
|
971
|
+
"",
|
|
972
|
+
" def perform! # rubocop:disable Naming/PredicateMethod",
|
|
973
|
+
" parsed_response",
|
|
974
|
+
" true",
|
|
975
|
+
" end",
|
|
976
|
+
"",
|
|
977
|
+
" def house_power",
|
|
978
|
+
" get('ENERGY', 'GUI_HOUSE_POW')",
|
|
979
|
+
" end",
|
|
980
|
+
"",
|
|
981
|
+
" def inverter_power",
|
|
982
|
+
" get('ENERGY', 'GUI_INVERTER_POWER')",
|
|
983
|
+
" end",
|
|
984
|
+
"",
|
|
985
|
+
" def mpp_power",
|
|
986
|
+
" get('PV1', 'MPP_POWER')",
|
|
987
|
+
" end",
|
|
988
|
+
"",
|
|
989
|
+
" def power_ratio",
|
|
990
|
+
" get('PV1', 'POWER_RATIO')",
|
|
991
|
+
" end",
|
|
992
|
+
"",
|
|
993
|
+
" def bat_power",
|
|
994
|
+
" get('ENERGY', 'GUI_BAT_DATA_POWER')",
|
|
995
|
+
" end",
|
|
996
|
+
"",
|
|
997
|
+
" def bat_fuel_charge",
|
|
998
|
+
" get('ENERGY', 'GUI_BAT_DATA_FUEL_CHARGE')",
|
|
999
|
+
" end",
|
|
1000
|
+
"",
|
|
1001
|
+
" def bat_charge_current",
|
|
1002
|
+
" get('ENERGY', 'GUI_BAT_DATA_CURRENT')",
|
|
1003
|
+
" end",
|
|
1004
|
+
"",
|
|
1005
|
+
" def bat_voltage",
|
|
1006
|
+
" get('ENERGY', 'GUI_BAT_DATA_VOLTAGE')",
|
|
1007
|
+
" end",
|
|
1008
|
+
"",
|
|
1009
|
+
" def grid_power",
|
|
1010
|
+
" get('ENERGY', 'GUI_GRID_POW')",
|
|
1011
|
+
" end",
|
|
1012
|
+
"",
|
|
1013
|
+
" def grid_voltage",
|
|
1014
|
+
" get('PM1OBJ1', 'U_AC')",
|
|
1015
|
+
" end",
|
|
1016
|
+
"",
|
|
1017
|
+
" def grid_current",
|
|
1018
|
+
" get('PM1OBJ1', 'I_AC', precision: 2)",
|
|
1019
|
+
" end",
|
|
1020
|
+
"",
|
|
1021
|
+
" def grid_frequency",
|
|
1022
|
+
" get('PM1OBJ1', 'FREQ', precision: 2)",
|
|
1023
|
+
" end",
|
|
1024
|
+
"",
|
|
1025
|
+
" def ev_connected",
|
|
1026
|
+
" get('WALLBOX', 'EV_CONNECTED')",
|
|
1027
|
+
" end",
|
|
1028
|
+
"",
|
|
1029
|
+
" def wallbox_charge_power",
|
|
1030
|
+
" get('WALLBOX', 'APPARENT_CHARGING_POWER')",
|
|
1031
|
+
" end",
|
|
1032
|
+
"",
|
|
1033
|
+
" def case_temp",
|
|
1034
|
+
" get('TEMPMEASURE', 'CASE_TEMP')",
|
|
1035
|
+
" end",
|
|
1036
|
+
"",
|
|
1037
|
+
" def application_version",
|
|
1038
|
+
" get('WIZARD', 'APPLICATION_VERSION')",
|
|
1039
|
+
" end",
|
|
1040
|
+
"",
|
|
1041
|
+
" def current_state_code",
|
|
1042
|
+
" get('ENERGY', 'STAT_STATE')",
|
|
1043
|
+
" end",
|
|
1044
|
+
"",
|
|
1045
|
+
" def current_state_name",
|
|
1046
|
+
" throw RuntimeError, 'No state names provided!' unless state_names",
|
|
1047
|
+
"",
|
|
1048
|
+
" state_names[current_state_code]",
|
|
1049
|
+
" end",
|
|
1050
|
+
"",
|
|
1051
|
+
" def measure_time",
|
|
1052
|
+
" web_time = get('RTC', 'WEB_TIME')",
|
|
1053
|
+
" utc_offset = get('RTC', 'UTC_OFFSET')",
|
|
1054
|
+
"",
|
|
1055
|
+
" web_time - (utc_offset * 60)",
|
|
1056
|
+
" end",
|
|
1057
|
+
"",
|
|
1058
|
+
" def response_duration",
|
|
1059
|
+
" raw_response.env[:duration]",
|
|
1060
|
+
" end",
|
|
1061
|
+
"",
|
|
1062
|
+
" def get(*keys, precision: 1)",
|
|
1063
|
+
" return unless parsed_response",
|
|
1064
|
+
"",
|
|
1065
|
+
" value = parsed_response.dig(*keys)",
|
|
1066
|
+
"",
|
|
1067
|
+
" if value.is_a?(Array)",
|
|
1068
|
+
" value.map do |v|",
|
|
1069
|
+
" Value.new(v).decoded(precision:)",
|
|
1070
|
+
" end",
|
|
1071
|
+
" elsif value",
|
|
1072
|
+
" Value.new(value).decoded(precision:)",
|
|
1073
|
+
" else",
|
|
1074
|
+
" raise Error, \"Value missing for #{keys.join('.')}\"",
|
|
1075
|
+
" end",
|
|
1076
|
+
" rescue Senec::Local::DecodingError => e",
|
|
1077
|
+
" raise Error, \"Decoding failed for #{keys.join('.')}: #{e.message}\"",
|
|
1078
|
+
" end",
|
|
1079
|
+
"",
|
|
1080
|
+
" def path",
|
|
1081
|
+
" '/lala.cgi'",
|
|
1082
|
+
" end",
|
|
1083
|
+
"",
|
|
1084
|
+
" private",
|
|
1085
|
+
"",
|
|
1086
|
+
" def parsed_response",
|
|
1087
|
+
" @parsed_response ||= JSON.parse(raw_response.body)",
|
|
1088
|
+
" end",
|
|
1089
|
+
"",
|
|
1090
|
+
" def raw_response",
|
|
1091
|
+
" @raw_response ||= begin",
|
|
1092
|
+
" response = connection.post(path, request_body, request_header)",
|
|
1093
|
+
" raise Error, response.status unless response.success?",
|
|
1094
|
+
"",
|
|
1095
|
+
" response",
|
|
1096
|
+
" end",
|
|
1097
|
+
" end",
|
|
1098
|
+
"",
|
|
1099
|
+
" def request_body",
|
|
1100
|
+
" JSON.generate(body)",
|
|
1101
|
+
" end",
|
|
1102
|
+
"",
|
|
1103
|
+
" def request_header",
|
|
1104
|
+
" {",
|
|
1105
|
+
" 'Content-Type' => 'application/x-www-form-urlencoded; charset=UTF-8',",
|
|
1106
|
+
" 'Accept' => 'application/json, text/javascript, */*; q=0.01'",
|
|
1107
|
+
" }",
|
|
1108
|
+
" end",
|
|
1109
|
+
" end",
|
|
1110
|
+
" end",
|
|
1111
|
+
"end"
|
|
1112
|
+
],
|
|
435
1113
|
"lines": [
|
|
436
1114
|
1,
|
|
437
1115
|
1,
|
|
@@ -440,9 +1118,9 @@
|
|
|
440
1118
|
1,
|
|
441
1119
|
1,
|
|
442
1120
|
1,
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
1121
|
+
31,
|
|
1122
|
+
31,
|
|
1123
|
+
31,
|
|
446
1124
|
null,
|
|
447
1125
|
null,
|
|
448
1126
|
1,
|
|
@@ -453,7 +1131,15 @@
|
|
|
453
1131
|
null,
|
|
454
1132
|
null,
|
|
455
1133
|
1,
|
|
456
|
-
|
|
1134
|
+
5,
|
|
1135
|
+
null,
|
|
1136
|
+
null,
|
|
1137
|
+
1,
|
|
1138
|
+
1,
|
|
1139
|
+
null,
|
|
1140
|
+
null,
|
|
1141
|
+
1,
|
|
1142
|
+
1,
|
|
457
1143
|
null,
|
|
458
1144
|
null,
|
|
459
1145
|
1,
|
|
@@ -481,6 +1167,10 @@
|
|
|
481
1167
|
null,
|
|
482
1168
|
null,
|
|
483
1169
|
1,
|
|
1170
|
+
2,
|
|
1171
|
+
null,
|
|
1172
|
+
null,
|
|
1173
|
+
1,
|
|
484
1174
|
1,
|
|
485
1175
|
null,
|
|
486
1176
|
null,
|
|
@@ -526,58 +1216,131 @@
|
|
|
526
1216
|
null,
|
|
527
1217
|
null,
|
|
528
1218
|
1,
|
|
529
|
-
|
|
530
|
-
null,
|
|
531
|
-
21,
|
|
1219
|
+
29,
|
|
532
1220
|
null,
|
|
533
|
-
|
|
534
|
-
3,
|
|
535
|
-
11,
|
|
1221
|
+
26,
|
|
536
1222
|
null,
|
|
537
|
-
|
|
1223
|
+
26,
|
|
1224
|
+
5,
|
|
538
1225
|
17,
|
|
539
1226
|
null,
|
|
540
|
-
|
|
1227
|
+
21,
|
|
1228
|
+
19,
|
|
1229
|
+
null,
|
|
1230
|
+
2,
|
|
541
1231
|
null,
|
|
542
1232
|
null,
|
|
543
1233
|
1,
|
|
544
1234
|
null,
|
|
545
1235
|
null,
|
|
546
1236
|
1,
|
|
547
|
-
|
|
1237
|
+
32,
|
|
548
1238
|
null,
|
|
549
1239
|
null,
|
|
550
1240
|
1,
|
|
551
1241
|
null,
|
|
552
1242
|
1,
|
|
553
|
-
|
|
1243
|
+
57,
|
|
554
1244
|
null,
|
|
555
1245
|
null,
|
|
556
1246
|
1,
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
1247
|
+
31,
|
|
1248
|
+
31,
|
|
1249
|
+
29,
|
|
560
1250
|
null,
|
|
561
|
-
|
|
1251
|
+
28,
|
|
562
1252
|
null,
|
|
563
1253
|
null,
|
|
564
1254
|
null,
|
|
565
1255
|
1,
|
|
566
|
-
|
|
1256
|
+
31,
|
|
567
1257
|
null,
|
|
568
1258
|
null,
|
|
569
1259
|
1,
|
|
570
1260
|
null,
|
|
571
|
-
|
|
1261
|
+
31,
|
|
572
1262
|
null,
|
|
573
1263
|
null,
|
|
574
1264
|
null,
|
|
575
1265
|
null,
|
|
576
1266
|
null,
|
|
577
1267
|
null
|
|
578
|
-
]
|
|
1268
|
+
],
|
|
1269
|
+
"lines_covered_percent": 100.0,
|
|
1270
|
+
"covered_lines": 80,
|
|
1271
|
+
"missed_lines": 0,
|
|
1272
|
+
"omitted_lines": 74,
|
|
1273
|
+
"total_lines": 80
|
|
579
1274
|
},
|
|
580
|
-
"
|
|
1275
|
+
"lib/senec/local/state.rb": {
|
|
1276
|
+
"source": [
|
|
1277
|
+
"module Senec",
|
|
1278
|
+
" module Local",
|
|
1279
|
+
" class State",
|
|
1280
|
+
" def initialize(connection:)",
|
|
1281
|
+
" @connection = connection",
|
|
1282
|
+
" end",
|
|
1283
|
+
"",
|
|
1284
|
+
" attr_reader :connection",
|
|
1285
|
+
"",
|
|
1286
|
+
" # Extract state names from JavaScript file, which is formatted like this:",
|
|
1287
|
+
" #",
|
|
1288
|
+
" # var system_state_name = {",
|
|
1289
|
+
" # 0: \"FIRST STATE\",",
|
|
1290
|
+
" # 1: \"SECOND STATE\",",
|
|
1291
|
+
" # ...",
|
|
1292
|
+
" # };",
|
|
1293
|
+
" def names(language: :de)",
|
|
1294
|
+
" js_content = response(language:)",
|
|
1295
|
+
"",
|
|
1296
|
+
" # Extract the matched content",
|
|
1297
|
+
" match = js_content.match(FILE_REGEX)",
|
|
1298
|
+
" return unless match",
|
|
1299
|
+
"",
|
|
1300
|
+
" # Extract the JSON-like part",
|
|
1301
|
+
" json_like = \"{#{match[1]}}\"",
|
|
1302
|
+
"",
|
|
1303
|
+
" # The keys are numbers, which is not valid JSON, so we need to convert them to strings",
|
|
1304
|
+
" json = json_like.gsub(/(\\d+)\\s*:/, '\"\\1\":')",
|
|
1305
|
+
"",
|
|
1306
|
+
" # Convert the JSON string to a Ruby hash",
|
|
1307
|
+
" hash = JSON.parse(json)",
|
|
1308
|
+
"",
|
|
1309
|
+
" # Convert keys from strings to integers",
|
|
1310
|
+
" hash.transform_keys(&:to_i)",
|
|
1311
|
+
" end",
|
|
1312
|
+
"",
|
|
1313
|
+
" private",
|
|
1314
|
+
"",
|
|
1315
|
+
" # Regex pattern to match the system_state_name definition in the JavaScript file",
|
|
1316
|
+
" # The file may be minimized, so we need to be flexible with whitespace and line breaks",
|
|
1317
|
+
" FILE_REGEX = /system_state_name\\s*=\\s*{\\s*([^}]*)\\s*}/m",
|
|
1318
|
+
" private_constant :FILE_REGEX",
|
|
1319
|
+
"",
|
|
1320
|
+
" def response(language:)",
|
|
1321
|
+
" res = connection.get url(language:)",
|
|
1322
|
+
" raise Error, res.message unless res.success?",
|
|
1323
|
+
"",
|
|
1324
|
+
" res.body",
|
|
1325
|
+
" end",
|
|
1326
|
+
"",
|
|
1327
|
+
" # Use the JavaScript file containing English/German/Italian names from the SENEC web interface",
|
|
1328
|
+
" def url(language:)",
|
|
1329
|
+
" case language",
|
|
1330
|
+
" when :en",
|
|
1331
|
+
" '/js/EN-en.js'",
|
|
1332
|
+
" when :de",
|
|
1333
|
+
" '/js/DE-de.js'",
|
|
1334
|
+
" when :it",
|
|
1335
|
+
" '/js/IT-it.js'",
|
|
1336
|
+
" else",
|
|
1337
|
+
" raise Error, \"Language #{language} not supported\"",
|
|
1338
|
+
" end",
|
|
1339
|
+
" end",
|
|
1340
|
+
" end",
|
|
1341
|
+
" end",
|
|
1342
|
+
"end"
|
|
1343
|
+
],
|
|
581
1344
|
"lines": [
|
|
582
1345
|
1,
|
|
583
1346
|
1,
|
|
@@ -645,24 +1408,74 @@
|
|
|
645
1408
|
null,
|
|
646
1409
|
null,
|
|
647
1410
|
null
|
|
648
|
-
]
|
|
1411
|
+
],
|
|
1412
|
+
"lines_covered_percent": 100.0,
|
|
1413
|
+
"covered_lines": 27,
|
|
1414
|
+
"missed_lines": 0,
|
|
1415
|
+
"omitted_lines": 39,
|
|
1416
|
+
"total_lines": 27
|
|
649
1417
|
},
|
|
650
|
-
"
|
|
1418
|
+
"lib/senec/local/value.rb": {
|
|
1419
|
+
"source": [
|
|
1420
|
+
"module Senec",
|
|
1421
|
+
" module Local",
|
|
1422
|
+
" class Value",
|
|
1423
|
+
" def initialize(raw)",
|
|
1424
|
+
" @raw = raw",
|
|
1425
|
+
" @prefix, @value = raw&.split('_')",
|
|
1426
|
+
" end",
|
|
1427
|
+
"",
|
|
1428
|
+
" attr_reader :prefix, :value, :raw",
|
|
1429
|
+
"",
|
|
1430
|
+
" def decoded(precision: 1)",
|
|
1431
|
+
" case prefix",
|
|
1432
|
+
" when 'fl'",
|
|
1433
|
+
" decoded_float(value, precision)",
|
|
1434
|
+
" when 'i3', 'u1', 'u3', 'u6', 'u8'",
|
|
1435
|
+
" decoded_int(value)",
|
|
1436
|
+
" when 'st'",
|
|
1437
|
+
" value",
|
|
1438
|
+
" # TODO: There are some more prefixes to handle",
|
|
1439
|
+
" else",
|
|
1440
|
+
" raise DecodingError, \"Unknown value '#{@raw}'\"",
|
|
1441
|
+
" end",
|
|
1442
|
+
" end",
|
|
1443
|
+
"",
|
|
1444
|
+
" alias to_i decoded",
|
|
1445
|
+
" alias to_f decoded",
|
|
1446
|
+
" alias to_s decoded",
|
|
1447
|
+
"",
|
|
1448
|
+
" private",
|
|
1449
|
+
"",
|
|
1450
|
+
" PREFIXES = %w[fl i3 u1 u3 u6 u8 st].freeze",
|
|
1451
|
+
" private_constant :PREFIXES",
|
|
1452
|
+
"",
|
|
1453
|
+
" def decoded_float(hex, precision)",
|
|
1454
|
+
" [\"0x#{hex}\".to_i(16)].pack('L').unpack1('F').round(precision)",
|
|
1455
|
+
" end",
|
|
1456
|
+
"",
|
|
1457
|
+
" def decoded_int(hex)",
|
|
1458
|
+
" \"0x#{hex}\".to_i(16)",
|
|
1459
|
+
" end",
|
|
1460
|
+
" end",
|
|
1461
|
+
" end",
|
|
1462
|
+
"end"
|
|
1463
|
+
],
|
|
651
1464
|
"lines": [
|
|
652
1465
|
1,
|
|
653
1466
|
1,
|
|
654
1467
|
1,
|
|
655
1468
|
1,
|
|
656
|
-
|
|
657
|
-
|
|
1469
|
+
53,
|
|
1470
|
+
53,
|
|
658
1471
|
null,
|
|
659
1472
|
null,
|
|
660
1473
|
1,
|
|
661
1474
|
null,
|
|
662
1475
|
1,
|
|
663
|
-
|
|
1476
|
+
53,
|
|
664
1477
|
null,
|
|
665
|
-
|
|
1478
|
+
28,
|
|
666
1479
|
null,
|
|
667
1480
|
19,
|
|
668
1481
|
null,
|
|
@@ -683,7 +1496,7 @@
|
|
|
683
1496
|
1,
|
|
684
1497
|
null,
|
|
685
1498
|
1,
|
|
686
|
-
|
|
1499
|
+
28,
|
|
687
1500
|
null,
|
|
688
1501
|
null,
|
|
689
1502
|
1,
|
|
@@ -692,881 +1505,320 @@
|
|
|
692
1505
|
null,
|
|
693
1506
|
null,
|
|
694
1507
|
null
|
|
695
|
-
]
|
|
1508
|
+
],
|
|
1509
|
+
"lines_covered_percent": 100.0,
|
|
1510
|
+
"covered_lines": 23,
|
|
1511
|
+
"missed_lines": 0,
|
|
1512
|
+
"omitted_lines": 20,
|
|
1513
|
+
"total_lines": 23
|
|
1514
|
+
}
|
|
1515
|
+
},
|
|
1516
|
+
"groups": {},
|
|
1517
|
+
"errors": {},
|
|
1518
|
+
"history": [
|
|
1519
|
+
{
|
|
1520
|
+
"created_at": "2026-09-16T05:40:57Z",
|
|
1521
|
+
"branch": "main",
|
|
1522
|
+
"commit": "3ac14efc3b8421c488fedcc4e65903bf971ece89",
|
|
1523
|
+
"totals": {
|
|
1524
|
+
"line": 99.33
|
|
1525
|
+
},
|
|
1526
|
+
"groups": {},
|
|
1527
|
+
"files": {
|
|
1528
|
+
"lib/senec.rb": {
|
|
1529
|
+
"line": 100.0
|
|
1530
|
+
},
|
|
1531
|
+
"lib/senec/cloud/connection.rb": {
|
|
1532
|
+
"line": 98.55
|
|
1533
|
+
},
|
|
1534
|
+
"lib/senec/cloud/error.rb": {
|
|
1535
|
+
"line": 100.0
|
|
1536
|
+
},
|
|
1537
|
+
"lib/senec/local/connection.rb": {
|
|
1538
|
+
"line": 100.0
|
|
1539
|
+
},
|
|
1540
|
+
"lib/senec/local/constants.rb": {
|
|
1541
|
+
"line": 100.0
|
|
1542
|
+
},
|
|
1543
|
+
"lib/senec/local/error.rb": {
|
|
1544
|
+
"line": 100.0
|
|
1545
|
+
},
|
|
1546
|
+
"lib/senec/local/request.rb": {
|
|
1547
|
+
"line": 100.0
|
|
1548
|
+
},
|
|
1549
|
+
"lib/senec/local/state.rb": {
|
|
1550
|
+
"line": 100.0
|
|
1551
|
+
},
|
|
1552
|
+
"lib/senec/local/value.rb": {
|
|
1553
|
+
"line": 100.0
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
696
1556
|
},
|
|
697
|
-
|
|
698
|
-
"
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
null,
|
|
735
|
-
2,
|
|
736
|
-
2,
|
|
737
|
-
null,
|
|
738
|
-
1,
|
|
739
|
-
1,
|
|
740
|
-
null,
|
|
741
|
-
null,
|
|
742
|
-
null,
|
|
743
|
-
null,
|
|
744
|
-
null,
|
|
745
|
-
null,
|
|
746
|
-
null,
|
|
747
|
-
null,
|
|
748
|
-
null,
|
|
749
|
-
null,
|
|
750
|
-
null,
|
|
751
|
-
null,
|
|
752
|
-
null,
|
|
753
|
-
null,
|
|
754
|
-
null,
|
|
755
|
-
1,
|
|
756
|
-
4,
|
|
757
|
-
null,
|
|
758
|
-
4,
|
|
759
|
-
null,
|
|
760
|
-
1,
|
|
761
|
-
3,
|
|
762
|
-
null,
|
|
763
|
-
2,
|
|
764
|
-
null,
|
|
765
|
-
1,
|
|
766
|
-
1,
|
|
767
|
-
null,
|
|
768
|
-
null,
|
|
769
|
-
null,
|
|
770
|
-
null,
|
|
771
|
-
null,
|
|
772
|
-
null,
|
|
773
|
-
null,
|
|
774
|
-
null,
|
|
775
|
-
null,
|
|
776
|
-
null,
|
|
777
|
-
null,
|
|
778
|
-
1,
|
|
779
|
-
2,
|
|
780
|
-
null,
|
|
781
|
-
1,
|
|
782
|
-
1,
|
|
783
|
-
null,
|
|
784
|
-
null,
|
|
785
|
-
null,
|
|
786
|
-
null,
|
|
787
|
-
1,
|
|
788
|
-
4,
|
|
789
|
-
null,
|
|
790
|
-
4,
|
|
791
|
-
null,
|
|
792
|
-
1,
|
|
793
|
-
3,
|
|
794
|
-
null,
|
|
795
|
-
2,
|
|
796
|
-
null,
|
|
797
|
-
1,
|
|
798
|
-
1,
|
|
799
|
-
null,
|
|
800
|
-
null,
|
|
801
|
-
null,
|
|
802
|
-
null,
|
|
803
|
-
null,
|
|
804
|
-
null,
|
|
805
|
-
null,
|
|
806
|
-
null,
|
|
807
|
-
null,
|
|
808
|
-
null,
|
|
809
|
-
null,
|
|
810
|
-
null,
|
|
811
|
-
1,
|
|
812
|
-
2,
|
|
813
|
-
null,
|
|
814
|
-
1,
|
|
815
|
-
1,
|
|
816
|
-
null,
|
|
817
|
-
null,
|
|
818
|
-
null,
|
|
819
|
-
null,
|
|
820
|
-
1,
|
|
821
|
-
4,
|
|
822
|
-
null,
|
|
823
|
-
4,
|
|
824
|
-
null,
|
|
825
|
-
1,
|
|
826
|
-
3,
|
|
827
|
-
null,
|
|
828
|
-
2,
|
|
829
|
-
null,
|
|
830
|
-
1,
|
|
831
|
-
1,
|
|
832
|
-
null,
|
|
833
|
-
null,
|
|
834
|
-
null,
|
|
835
|
-
null,
|
|
836
|
-
null,
|
|
837
|
-
null,
|
|
838
|
-
null,
|
|
839
|
-
null,
|
|
840
|
-
null,
|
|
841
|
-
null,
|
|
842
|
-
null,
|
|
843
|
-
null,
|
|
844
|
-
null,
|
|
845
|
-
null,
|
|
846
|
-
null,
|
|
847
|
-
null,
|
|
848
|
-
null,
|
|
849
|
-
1,
|
|
850
|
-
2,
|
|
851
|
-
null,
|
|
852
|
-
1,
|
|
853
|
-
1,
|
|
854
|
-
null,
|
|
855
|
-
null,
|
|
856
|
-
null,
|
|
857
|
-
null,
|
|
858
|
-
1,
|
|
859
|
-
4,
|
|
860
|
-
null,
|
|
861
|
-
4,
|
|
862
|
-
null,
|
|
863
|
-
1,
|
|
864
|
-
3,
|
|
865
|
-
null,
|
|
866
|
-
2,
|
|
867
|
-
null,
|
|
868
|
-
1,
|
|
869
|
-
1,
|
|
870
|
-
null,
|
|
871
|
-
null,
|
|
872
|
-
null,
|
|
873
|
-
null,
|
|
874
|
-
null,
|
|
875
|
-
null,
|
|
876
|
-
null,
|
|
877
|
-
null,
|
|
878
|
-
null,
|
|
879
|
-
null,
|
|
880
|
-
null,
|
|
881
|
-
null,
|
|
882
|
-
null,
|
|
883
|
-
null,
|
|
884
|
-
null,
|
|
885
|
-
null,
|
|
886
|
-
null,
|
|
887
|
-
1,
|
|
888
|
-
2,
|
|
889
|
-
null,
|
|
890
|
-
1,
|
|
891
|
-
1,
|
|
892
|
-
null,
|
|
893
|
-
null,
|
|
894
|
-
null,
|
|
895
|
-
null,
|
|
896
|
-
1,
|
|
897
|
-
4,
|
|
898
|
-
null,
|
|
899
|
-
4,
|
|
900
|
-
null,
|
|
901
|
-
4,
|
|
902
|
-
null,
|
|
903
|
-
1,
|
|
904
|
-
1,
|
|
905
|
-
1,
|
|
906
|
-
1,
|
|
907
|
-
null,
|
|
908
|
-
1,
|
|
909
|
-
1,
|
|
910
|
-
null,
|
|
911
|
-
null,
|
|
912
|
-
1,
|
|
913
|
-
1,
|
|
914
|
-
1,
|
|
915
|
-
1,
|
|
916
|
-
1,
|
|
917
|
-
1,
|
|
918
|
-
null,
|
|
919
|
-
1,
|
|
920
|
-
1,
|
|
921
|
-
null,
|
|
922
|
-
null,
|
|
923
|
-
1,
|
|
924
|
-
1,
|
|
925
|
-
1,
|
|
926
|
-
1,
|
|
927
|
-
2,
|
|
928
|
-
1,
|
|
929
|
-
1,
|
|
930
|
-
null,
|
|
931
|
-
1,
|
|
932
|
-
1,
|
|
933
|
-
null,
|
|
934
|
-
null,
|
|
935
|
-
null
|
|
936
|
-
]
|
|
937
|
-
},
|
|
938
|
-
"/Users/ledermann/Projects/solectrus/senec/spec/lib/senec/local/request_spec.rb": {
|
|
939
|
-
"lines": [
|
|
940
|
-
1,
|
|
941
|
-
23,
|
|
942
|
-
1,
|
|
943
|
-
23,
|
|
944
|
-
null,
|
|
945
|
-
null,
|
|
946
|
-
1,
|
|
947
|
-
19,
|
|
948
|
-
null,
|
|
949
|
-
1,
|
|
950
|
-
2,
|
|
951
|
-
null,
|
|
952
|
-
2,
|
|
953
|
-
null,
|
|
954
|
-
null,
|
|
955
|
-
1,
|
|
956
|
-
2,
|
|
957
|
-
null,
|
|
958
|
-
2,
|
|
959
|
-
null,
|
|
960
|
-
null,
|
|
961
|
-
1,
|
|
962
|
-
2,
|
|
963
|
-
null,
|
|
964
|
-
2,
|
|
965
|
-
null,
|
|
966
|
-
null,
|
|
967
|
-
1,
|
|
968
|
-
2,
|
|
969
|
-
null,
|
|
970
|
-
2,
|
|
971
|
-
null,
|
|
972
|
-
null,
|
|
973
|
-
1,
|
|
974
|
-
2,
|
|
975
|
-
null,
|
|
976
|
-
2,
|
|
977
|
-
null,
|
|
978
|
-
null,
|
|
979
|
-
1,
|
|
980
|
-
2,
|
|
981
|
-
null,
|
|
982
|
-
2,
|
|
983
|
-
null,
|
|
984
|
-
null,
|
|
985
|
-
1,
|
|
986
|
-
2,
|
|
987
|
-
null,
|
|
988
|
-
2,
|
|
989
|
-
null,
|
|
990
|
-
null,
|
|
991
|
-
1,
|
|
992
|
-
2,
|
|
993
|
-
null,
|
|
994
|
-
2,
|
|
995
|
-
null,
|
|
996
|
-
null,
|
|
997
|
-
1,
|
|
998
|
-
2,
|
|
999
|
-
null,
|
|
1000
|
-
2,
|
|
1001
|
-
null,
|
|
1002
|
-
null,
|
|
1003
|
-
1,
|
|
1004
|
-
2,
|
|
1005
|
-
null,
|
|
1006
|
-
2,
|
|
1007
|
-
null,
|
|
1008
|
-
null,
|
|
1009
|
-
1,
|
|
1010
|
-
2,
|
|
1011
|
-
null,
|
|
1012
|
-
2,
|
|
1013
|
-
null,
|
|
1014
|
-
null,
|
|
1015
|
-
1,
|
|
1016
|
-
2,
|
|
1017
|
-
null,
|
|
1018
|
-
2,
|
|
1019
|
-
null,
|
|
1020
|
-
null,
|
|
1021
|
-
1,
|
|
1022
|
-
2,
|
|
1023
|
-
null,
|
|
1024
|
-
2,
|
|
1025
|
-
null,
|
|
1026
|
-
null,
|
|
1027
|
-
1,
|
|
1028
|
-
3,
|
|
1029
|
-
null,
|
|
1030
|
-
2,
|
|
1031
|
-
2,
|
|
1032
|
-
null,
|
|
1033
|
-
null,
|
|
1034
|
-
1,
|
|
1035
|
-
2,
|
|
1036
|
-
null,
|
|
1037
|
-
2,
|
|
1038
|
-
null,
|
|
1039
|
-
null,
|
|
1040
|
-
1,
|
|
1041
|
-
2,
|
|
1042
|
-
null,
|
|
1043
|
-
2,
|
|
1044
|
-
null,
|
|
1045
|
-
null,
|
|
1046
|
-
1,
|
|
1047
|
-
2,
|
|
1048
|
-
null,
|
|
1049
|
-
2,
|
|
1050
|
-
null,
|
|
1051
|
-
null,
|
|
1052
|
-
null,
|
|
1053
|
-
1,
|
|
1054
|
-
2,
|
|
1055
|
-
null,
|
|
1056
|
-
2,
|
|
1057
|
-
null,
|
|
1058
|
-
1,
|
|
1059
|
-
2,
|
|
1060
|
-
null,
|
|
1061
|
-
null,
|
|
1062
|
-
null,
|
|
1063
|
-
1,
|
|
1064
|
-
2,
|
|
1065
|
-
null,
|
|
1066
|
-
1,
|
|
1067
|
-
1,
|
|
1068
|
-
null,
|
|
1069
|
-
null,
|
|
1070
|
-
1,
|
|
1071
|
-
2,
|
|
1072
|
-
null,
|
|
1073
|
-
null,
|
|
1074
|
-
null,
|
|
1075
|
-
1,
|
|
1076
|
-
2,
|
|
1077
|
-
null,
|
|
1078
|
-
2,
|
|
1079
|
-
null,
|
|
1080
|
-
1,
|
|
1081
|
-
2,
|
|
1082
|
-
null,
|
|
1083
|
-
null,
|
|
1084
|
-
null,
|
|
1085
|
-
1,
|
|
1086
|
-
1,
|
|
1087
|
-
1,
|
|
1088
|
-
null,
|
|
1089
|
-
null,
|
|
1090
|
-
null,
|
|
1091
|
-
null,
|
|
1092
|
-
null,
|
|
1093
|
-
1,
|
|
1094
|
-
2,
|
|
1095
|
-
null,
|
|
1096
|
-
2,
|
|
1097
|
-
null,
|
|
1098
|
-
null,
|
|
1099
|
-
null,
|
|
1100
|
-
1,
|
|
1101
|
-
1,
|
|
1102
|
-
1,
|
|
1103
|
-
null,
|
|
1104
|
-
null,
|
|
1105
|
-
null,
|
|
1106
|
-
null,
|
|
1107
|
-
null,
|
|
1108
|
-
1,
|
|
1109
|
-
2,
|
|
1110
|
-
null,
|
|
1111
|
-
2,
|
|
1112
|
-
null,
|
|
1113
|
-
null,
|
|
1114
|
-
null,
|
|
1115
|
-
1,
|
|
1116
|
-
1,
|
|
1117
|
-
3,
|
|
1118
|
-
null,
|
|
1119
|
-
null,
|
|
1120
|
-
null,
|
|
1121
|
-
null,
|
|
1122
|
-
null,
|
|
1123
|
-
null,
|
|
1124
|
-
null,
|
|
1125
|
-
null,
|
|
1126
|
-
null,
|
|
1127
|
-
1,
|
|
1128
|
-
1,
|
|
1129
|
-
2,
|
|
1130
|
-
null,
|
|
1131
|
-
2,
|
|
1132
|
-
null,
|
|
1133
|
-
null,
|
|
1134
|
-
1,
|
|
1135
|
-
2,
|
|
1136
|
-
null,
|
|
1137
|
-
1,
|
|
1138
|
-
2,
|
|
1139
|
-
null,
|
|
1140
|
-
null,
|
|
1141
|
-
null,
|
|
1142
|
-
1,
|
|
1143
|
-
2,
|
|
1144
|
-
null,
|
|
1145
|
-
1,
|
|
1146
|
-
1,
|
|
1147
|
-
null,
|
|
1148
|
-
null,
|
|
1149
|
-
null,
|
|
1150
|
-
null,
|
|
1151
|
-
null,
|
|
1152
|
-
null,
|
|
1153
|
-
1,
|
|
1154
|
-
2,
|
|
1155
|
-
null,
|
|
1156
|
-
null,
|
|
1157
|
-
null,
|
|
1158
|
-
null,
|
|
1159
|
-
null,
|
|
1160
|
-
null
|
|
1161
|
-
]
|
|
1162
|
-
},
|
|
1163
|
-
"/Users/ledermann/Projects/solectrus/senec/spec/lib/senec/local/state_spec.rb": {
|
|
1164
|
-
"lines": [
|
|
1165
|
-
1,
|
|
1166
|
-
6,
|
|
1167
|
-
null,
|
|
1168
|
-
6,
|
|
1169
|
-
null,
|
|
1170
|
-
1,
|
|
1171
|
-
5,
|
|
1172
|
-
null,
|
|
1173
|
-
null,
|
|
1174
|
-
null,
|
|
1175
|
-
1,
|
|
1176
|
-
3,
|
|
1177
|
-
null,
|
|
1178
|
-
null,
|
|
1179
|
-
null,
|
|
1180
|
-
null,
|
|
1181
|
-
null,
|
|
1182
|
-
null,
|
|
1183
|
-
null,
|
|
1184
|
-
null,
|
|
1185
|
-
null,
|
|
1186
|
-
null,
|
|
1187
|
-
null,
|
|
1188
|
-
null,
|
|
1189
|
-
null,
|
|
1190
|
-
null,
|
|
1191
|
-
null,
|
|
1192
|
-
1,
|
|
1193
|
-
1,
|
|
1194
|
-
null,
|
|
1195
|
-
null,
|
|
1196
|
-
null,
|
|
1197
|
-
null,
|
|
1198
|
-
1,
|
|
1199
|
-
6,
|
|
1200
|
-
null,
|
|
1201
|
-
1,
|
|
1202
|
-
null,
|
|
1203
|
-
4,
|
|
1204
|
-
null,
|
|
1205
|
-
null,
|
|
1206
|
-
null,
|
|
1207
|
-
null,
|
|
1208
|
-
null,
|
|
1209
|
-
null,
|
|
1210
|
-
null,
|
|
1211
|
-
null,
|
|
1212
|
-
1,
|
|
1213
|
-
2,
|
|
1214
|
-
null,
|
|
1215
|
-
1,
|
|
1216
|
-
1,
|
|
1217
|
-
null,
|
|
1218
|
-
null,
|
|
1219
|
-
2,
|
|
1220
|
-
null,
|
|
1221
|
-
null,
|
|
1222
|
-
1,
|
|
1223
|
-
2,
|
|
1224
|
-
null,
|
|
1225
|
-
1,
|
|
1226
|
-
1,
|
|
1227
|
-
null,
|
|
1228
|
-
null,
|
|
1229
|
-
2,
|
|
1230
|
-
null,
|
|
1231
|
-
null,
|
|
1232
|
-
1,
|
|
1233
|
-
2,
|
|
1234
|
-
null,
|
|
1235
|
-
1,
|
|
1236
|
-
1,
|
|
1237
|
-
null,
|
|
1238
|
-
null,
|
|
1239
|
-
2,
|
|
1240
|
-
null,
|
|
1241
|
-
null,
|
|
1242
|
-
1,
|
|
1243
|
-
2,
|
|
1244
|
-
null,
|
|
1245
|
-
1,
|
|
1246
|
-
1,
|
|
1247
|
-
null,
|
|
1248
|
-
null,
|
|
1249
|
-
2,
|
|
1250
|
-
null,
|
|
1251
|
-
null,
|
|
1252
|
-
1,
|
|
1253
|
-
2,
|
|
1254
|
-
null,
|
|
1255
|
-
1,
|
|
1256
|
-
2,
|
|
1257
|
-
null,
|
|
1258
|
-
null,
|
|
1259
|
-
null,
|
|
1260
|
-
null
|
|
1261
|
-
]
|
|
1262
|
-
},
|
|
1263
|
-
"/Users/ledermann/Projects/solectrus/senec/spec/lib/senec/local/value_spec.rb": {
|
|
1264
|
-
"lines": [
|
|
1265
|
-
1,
|
|
1266
|
-
17,
|
|
1267
|
-
null,
|
|
1268
|
-
1,
|
|
1269
|
-
17,
|
|
1270
|
-
null,
|
|
1271
|
-
1,
|
|
1272
|
-
3,
|
|
1273
|
-
null,
|
|
1274
|
-
2,
|
|
1275
|
-
2,
|
|
1276
|
-
null,
|
|
1277
|
-
null,
|
|
1278
|
-
1,
|
|
1279
|
-
3,
|
|
1280
|
-
null,
|
|
1281
|
-
2,
|
|
1282
|
-
2,
|
|
1283
|
-
null,
|
|
1284
|
-
null,
|
|
1285
|
-
1,
|
|
1286
|
-
3,
|
|
1287
|
-
null,
|
|
1288
|
-
2,
|
|
1289
|
-
2,
|
|
1290
|
-
null,
|
|
1291
|
-
null,
|
|
1292
|
-
1,
|
|
1293
|
-
3,
|
|
1294
|
-
null,
|
|
1295
|
-
2,
|
|
1296
|
-
2,
|
|
1297
|
-
null,
|
|
1298
|
-
null,
|
|
1299
|
-
1,
|
|
1300
|
-
3,
|
|
1301
|
-
null,
|
|
1302
|
-
2,
|
|
1303
|
-
2,
|
|
1304
|
-
null,
|
|
1305
|
-
null,
|
|
1306
|
-
1,
|
|
1307
|
-
3,
|
|
1308
|
-
null,
|
|
1309
|
-
2,
|
|
1310
|
-
2,
|
|
1311
|
-
null,
|
|
1312
|
-
null,
|
|
1313
|
-
1,
|
|
1314
|
-
3,
|
|
1315
|
-
null,
|
|
1316
|
-
2,
|
|
1317
|
-
2,
|
|
1318
|
-
null,
|
|
1319
|
-
null,
|
|
1320
|
-
1,
|
|
1321
|
-
2,
|
|
1322
|
-
null,
|
|
1323
|
-
3,
|
|
1324
|
-
null,
|
|
1325
|
-
null,
|
|
1326
|
-
1,
|
|
1327
|
-
2,
|
|
1328
|
-
null,
|
|
1329
|
-
1,
|
|
1330
|
-
2,
|
|
1331
|
-
null,
|
|
1332
|
-
null,
|
|
1333
|
-
null,
|
|
1334
|
-
null
|
|
1335
|
-
]
|
|
1557
|
+
{
|
|
1558
|
+
"created_at": "2026-12-01T10:13:47Z",
|
|
1559
|
+
"branch": "main",
|
|
1560
|
+
"commit": "3ac14efc3b8421c488fedcc4e65903bf971ece89",
|
|
1561
|
+
"totals": {
|
|
1562
|
+
"line": 98.36
|
|
1563
|
+
},
|
|
1564
|
+
"groups": {},
|
|
1565
|
+
"files": {
|
|
1566
|
+
"lib/senec.rb": {
|
|
1567
|
+
"line": 100.0
|
|
1568
|
+
},
|
|
1569
|
+
"lib/senec/cloud/connection.rb": {
|
|
1570
|
+
"line": 98.55
|
|
1571
|
+
},
|
|
1572
|
+
"lib/senec/cloud/error.rb": {
|
|
1573
|
+
"line": 100.0
|
|
1574
|
+
},
|
|
1575
|
+
"lib/senec/local/connection.rb": {
|
|
1576
|
+
"line": 100.0
|
|
1577
|
+
},
|
|
1578
|
+
"lib/senec/local/constants.rb": {
|
|
1579
|
+
"line": 100.0
|
|
1580
|
+
},
|
|
1581
|
+
"lib/senec/local/error.rb": {
|
|
1582
|
+
"line": 100.0
|
|
1583
|
+
},
|
|
1584
|
+
"lib/senec/local/request.rb": {
|
|
1585
|
+
"line": 96.25
|
|
1586
|
+
},
|
|
1587
|
+
"lib/senec/local/state.rb": {
|
|
1588
|
+
"line": 100.0
|
|
1589
|
+
},
|
|
1590
|
+
"lib/senec/local/value.rb": {
|
|
1591
|
+
"line": 100.0
|
|
1592
|
+
}
|
|
1593
|
+
}
|
|
1336
1594
|
},
|
|
1337
|
-
|
|
1338
|
-
"
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1595
|
+
{
|
|
1596
|
+
"created_at": "2026-12-01T10:14:04Z",
|
|
1597
|
+
"branch": "main",
|
|
1598
|
+
"commit": "3ac14efc3b8421c488fedcc4e65903bf971ece89",
|
|
1599
|
+
"totals": {
|
|
1600
|
+
"line": 99.34
|
|
1601
|
+
},
|
|
1602
|
+
"groups": {},
|
|
1603
|
+
"files": {
|
|
1604
|
+
"lib/senec.rb": {
|
|
1605
|
+
"line": 100.0
|
|
1606
|
+
},
|
|
1607
|
+
"lib/senec/cloud/connection.rb": {
|
|
1608
|
+
"line": 98.55
|
|
1609
|
+
},
|
|
1610
|
+
"lib/senec/cloud/error.rb": {
|
|
1611
|
+
"line": 100.0
|
|
1612
|
+
},
|
|
1613
|
+
"lib/senec/local/connection.rb": {
|
|
1614
|
+
"line": 100.0
|
|
1615
|
+
},
|
|
1616
|
+
"lib/senec/local/constants.rb": {
|
|
1617
|
+
"line": 100.0
|
|
1618
|
+
},
|
|
1619
|
+
"lib/senec/local/error.rb": {
|
|
1620
|
+
"line": 100.0
|
|
1621
|
+
},
|
|
1622
|
+
"lib/senec/local/request.rb": {
|
|
1623
|
+
"line": 100.0
|
|
1624
|
+
},
|
|
1625
|
+
"lib/senec/local/state.rb": {
|
|
1626
|
+
"line": 100.0
|
|
1627
|
+
},
|
|
1628
|
+
"lib/senec/local/value.rb": {
|
|
1629
|
+
"line": 100.0
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1345
1632
|
},
|
|
1346
|
-
|
|
1347
|
-
"
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
"
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
"
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
"
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
"
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
"
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
"
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
"
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
"
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
"
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
"
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
"ignored",
|
|
1536
|
-
"ignored",
|
|
1537
|
-
"ignored",
|
|
1538
|
-
"ignored",
|
|
1539
|
-
"ignored",
|
|
1540
|
-
"ignored",
|
|
1541
|
-
"ignored",
|
|
1542
|
-
"ignored",
|
|
1543
|
-
"ignored",
|
|
1544
|
-
"ignored",
|
|
1545
|
-
"ignored",
|
|
1546
|
-
"ignored",
|
|
1547
|
-
"ignored",
|
|
1548
|
-
null,
|
|
1549
|
-
null,
|
|
1550
|
-
null,
|
|
1551
|
-
null,
|
|
1552
|
-
1,
|
|
1553
|
-
1,
|
|
1554
|
-
null,
|
|
1555
|
-
1,
|
|
1556
|
-
null,
|
|
1557
|
-
null,
|
|
1558
|
-
null,
|
|
1559
|
-
1,
|
|
1560
|
-
5,
|
|
1561
|
-
5,
|
|
1562
|
-
null,
|
|
1563
|
-
null,
|
|
1564
|
-
null,
|
|
1565
|
-
null,
|
|
1566
|
-
71,
|
|
1567
|
-
null
|
|
1568
|
-
]
|
|
1633
|
+
{
|
|
1634
|
+
"created_at": "2026-12-01T10:14:13Z",
|
|
1635
|
+
"branch": "main",
|
|
1636
|
+
"commit": "3ac14efc3b8421c488fedcc4e65903bf971ece89",
|
|
1637
|
+
"totals": {
|
|
1638
|
+
"line": 99.34
|
|
1639
|
+
},
|
|
1640
|
+
"groups": {},
|
|
1641
|
+
"files": {
|
|
1642
|
+
"lib/senec.rb": {
|
|
1643
|
+
"line": 100.0
|
|
1644
|
+
},
|
|
1645
|
+
"lib/senec/cloud/connection.rb": {
|
|
1646
|
+
"line": 98.55
|
|
1647
|
+
},
|
|
1648
|
+
"lib/senec/cloud/error.rb": {
|
|
1649
|
+
"line": 100.0
|
|
1650
|
+
},
|
|
1651
|
+
"lib/senec/local/connection.rb": {
|
|
1652
|
+
"line": 100.0
|
|
1653
|
+
},
|
|
1654
|
+
"lib/senec/local/constants.rb": {
|
|
1655
|
+
"line": 100.0
|
|
1656
|
+
},
|
|
1657
|
+
"lib/senec/local/error.rb": {
|
|
1658
|
+
"line": 100.0
|
|
1659
|
+
},
|
|
1660
|
+
"lib/senec/local/request.rb": {
|
|
1661
|
+
"line": 100.0
|
|
1662
|
+
},
|
|
1663
|
+
"lib/senec/local/state.rb": {
|
|
1664
|
+
"line": 100.0
|
|
1665
|
+
},
|
|
1666
|
+
"lib/senec/local/value.rb": {
|
|
1667
|
+
"line": 100.0
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1670
|
+
},
|
|
1671
|
+
{
|
|
1672
|
+
"created_at": "2026-12-01T10:14:14Z",
|
|
1673
|
+
"branch": "main",
|
|
1674
|
+
"commit": "3ac14efc3b8421c488fedcc4e65903bf971ece89",
|
|
1675
|
+
"totals": {
|
|
1676
|
+
"line": 69.5
|
|
1677
|
+
},
|
|
1678
|
+
"groups": {},
|
|
1679
|
+
"files": {
|
|
1680
|
+
"lib/senec.rb": {
|
|
1681
|
+
"line": 100.0
|
|
1682
|
+
},
|
|
1683
|
+
"lib/senec/cloud/connection.rb": {
|
|
1684
|
+
"line": 32.6
|
|
1685
|
+
},
|
|
1686
|
+
"lib/senec/cloud/error.rb": {
|
|
1687
|
+
"line": 100.0
|
|
1688
|
+
},
|
|
1689
|
+
"lib/senec/local/connection.rb": {
|
|
1690
|
+
"line": 100.0
|
|
1691
|
+
},
|
|
1692
|
+
"lib/senec/local/constants.rb": {
|
|
1693
|
+
"line": 100.0
|
|
1694
|
+
},
|
|
1695
|
+
"lib/senec/local/error.rb": {
|
|
1696
|
+
"line": 100.0
|
|
1697
|
+
},
|
|
1698
|
+
"lib/senec/local/request.rb": {
|
|
1699
|
+
"line": 100.0
|
|
1700
|
+
},
|
|
1701
|
+
"lib/senec/local/state.rb": {
|
|
1702
|
+
"line": 100.0
|
|
1703
|
+
},
|
|
1704
|
+
"lib/senec/local/value.rb": {
|
|
1705
|
+
"line": 100.0
|
|
1706
|
+
}
|
|
1707
|
+
}
|
|
1708
|
+
},
|
|
1709
|
+
{
|
|
1710
|
+
"created_at": "2026-12-01T10:24:23Z",
|
|
1711
|
+
"branch": "main",
|
|
1712
|
+
"commit": "9c041c8c542d65f6ffb03d89b3e534d225100fcf",
|
|
1713
|
+
"totals": {
|
|
1714
|
+
"line": 99.34
|
|
1715
|
+
},
|
|
1716
|
+
"groups": {},
|
|
1717
|
+
"files": {
|
|
1718
|
+
"lib/senec.rb": {
|
|
1719
|
+
"line": 100.0
|
|
1720
|
+
},
|
|
1721
|
+
"lib/senec/cloud/connection.rb": {
|
|
1722
|
+
"line": 98.55
|
|
1723
|
+
},
|
|
1724
|
+
"lib/senec/cloud/error.rb": {
|
|
1725
|
+
"line": 100.0
|
|
1726
|
+
},
|
|
1727
|
+
"lib/senec/local/connection.rb": {
|
|
1728
|
+
"line": 100.0
|
|
1729
|
+
},
|
|
1730
|
+
"lib/senec/local/constants.rb": {
|
|
1731
|
+
"line": 100.0
|
|
1732
|
+
},
|
|
1733
|
+
"lib/senec/local/error.rb": {
|
|
1734
|
+
"line": 100.0
|
|
1735
|
+
},
|
|
1736
|
+
"lib/senec/local/request.rb": {
|
|
1737
|
+
"line": 100.0
|
|
1738
|
+
},
|
|
1739
|
+
"lib/senec/local/state.rb": {
|
|
1740
|
+
"line": 100.0
|
|
1741
|
+
},
|
|
1742
|
+
"lib/senec/local/value.rb": {
|
|
1743
|
+
"line": 100.0
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
},
|
|
1747
|
+
{
|
|
1748
|
+
"created_at": "2026-12-01T10:52:37Z",
|
|
1749
|
+
"branch": "main",
|
|
1750
|
+
"commit": "9c041c8c542d65f6ffb03d89b3e534d225100fcf",
|
|
1751
|
+
"totals": {
|
|
1752
|
+
"line": 99.34
|
|
1753
|
+
},
|
|
1754
|
+
"groups": {},
|
|
1755
|
+
"files": {
|
|
1756
|
+
"lib/senec.rb": {
|
|
1757
|
+
"line": 100.0
|
|
1758
|
+
},
|
|
1759
|
+
"lib/senec/cloud/connection.rb": {
|
|
1760
|
+
"line": 98.55
|
|
1761
|
+
},
|
|
1762
|
+
"lib/senec/cloud/error.rb": {
|
|
1763
|
+
"line": 100.0
|
|
1764
|
+
},
|
|
1765
|
+
"lib/senec/local/connection.rb": {
|
|
1766
|
+
"line": 100.0
|
|
1767
|
+
},
|
|
1768
|
+
"lib/senec/local/constants.rb": {
|
|
1769
|
+
"line": 100.0
|
|
1770
|
+
},
|
|
1771
|
+
"lib/senec/local/error.rb": {
|
|
1772
|
+
"line": 100.0
|
|
1773
|
+
},
|
|
1774
|
+
"lib/senec/local/request.rb": {
|
|
1775
|
+
"line": 100.0
|
|
1776
|
+
},
|
|
1777
|
+
"lib/senec/local/state.rb": {
|
|
1778
|
+
"line": 100.0
|
|
1779
|
+
},
|
|
1780
|
+
"lib/senec/local/value.rb": {
|
|
1781
|
+
"line": 100.0
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
},
|
|
1785
|
+
{
|
|
1786
|
+
"created_at": "2026-12-01T10:55:06Z",
|
|
1787
|
+
"branch": "main",
|
|
1788
|
+
"commit": "e7a6b7b55a8587d77b49be36e0e5378e1e8c3498",
|
|
1789
|
+
"totals": {
|
|
1790
|
+
"line": 99.34
|
|
1791
|
+
},
|
|
1792
|
+
"groups": {},
|
|
1793
|
+
"files": {
|
|
1794
|
+
"lib/senec.rb": {
|
|
1795
|
+
"line": 100.0
|
|
1796
|
+
},
|
|
1797
|
+
"lib/senec/cloud/connection.rb": {
|
|
1798
|
+
"line": 98.55
|
|
1799
|
+
},
|
|
1800
|
+
"lib/senec/cloud/error.rb": {
|
|
1801
|
+
"line": 100.0
|
|
1802
|
+
},
|
|
1803
|
+
"lib/senec/local/connection.rb": {
|
|
1804
|
+
"line": 100.0
|
|
1805
|
+
},
|
|
1806
|
+
"lib/senec/local/constants.rb": {
|
|
1807
|
+
"line": 100.0
|
|
1808
|
+
},
|
|
1809
|
+
"lib/senec/local/error.rb": {
|
|
1810
|
+
"line": 100.0
|
|
1811
|
+
},
|
|
1812
|
+
"lib/senec/local/request.rb": {
|
|
1813
|
+
"line": 100.0
|
|
1814
|
+
},
|
|
1815
|
+
"lib/senec/local/state.rb": {
|
|
1816
|
+
"line": 100.0
|
|
1817
|
+
},
|
|
1818
|
+
"lib/senec/local/value.rb": {
|
|
1819
|
+
"line": 100.0
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1569
1822
|
}
|
|
1570
|
-
|
|
1571
|
-
"groups": {}
|
|
1823
|
+
]
|
|
1572
1824
|
}
|