tng 0.4.1 → 0.4.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f4681ac9677508b00e49095815fce5e74aef419a6a5eb32e3a549546af99e57
4
- data.tar.gz: 8f772b664d07052c63b913843ba41d5475fe2890830abaf93eec08932c7f525e
3
+ metadata.gz: e85eb1a0b69399a5220189d7f2040162f85c4ce812869f8ac6a276265e6c1aa1
4
+ data.tar.gz: a23b1fef88e05cca2882ea76066ca463ae135a2b187fcac62097118f9f9f5d0e
5
5
  SHA512:
6
- metadata.gz: 59b17a685ee8a738b23cab7164e5241046a9f49c52e867ba8b3c0c850df505049abb78a79471aec96ee9edc30b80a6e6d9a04224dcfb9586a922c762c1b7ea9c
7
- data.tar.gz: 1e84cc072d92badfbf4dd7da85bd3e3931b848dfadb8376e1877074b3c15dbf448a3ebc17f38e7496d55edcbb363955b8468794f22fc3c6cbd47ec25e718ba61
6
+ metadata.gz: 64d50221216859f7be5d5df98cd012af5e94231b2f41531229418c24756591ce01de355efc0d277c073d564d7ec2bc8ea210730849015daed44fbff31aea0e9a
7
+ data.tar.gz: 772634eb20ff51b14cdcf02e17e020e70389d8c00609b7c3f7a91c6e6355dd7fb651e7f80825795cc66321548079c6e4fc593054f5b6d173f4255574d5e7117e
data/bin/tng CHANGED
@@ -332,10 +332,6 @@ class CLI
332
332
  def display_audit_results(result)
333
333
  audit_data = result[:audit_results]
334
334
 
335
- # Save to JSON for persistence
336
- File.write("audit.json", JSON.pretty_generate(audit_data))
337
- puts @pastel.green("šŸ’¾ Audit results saved to audit.json")
338
-
339
335
  # Send entire audit_data to go-ui (includes issues, behaviours, method_name, class_name, method_source_with_lines)
340
336
  @go_ui.show_audit_results(audit_data, "issues")
341
337
  end
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/binaries/tng.bundle CHANGED
Binary file
@@ -226,23 +226,23 @@ module Tng
226
226
  end
227
227
 
228
228
  begin
229
- status_data = JSON.parse(status_response.body.to_s)
230
- status = status_data["status"]
229
+ status_data = JSON.parse(status_response.body.to_s, symbolize_names: true)
230
+ status = status_data[:status]
231
231
 
232
232
  # Update UI with granular info
233
- if progress && status_data["info"].is_a?(Hash)
234
- info = status_data["info"]
233
+ if progress && status_data[:info].is_a?(Hash)
234
+ info = status_data[:info]
235
235
 
236
236
  agent_step_indices.each do |key, step_idx|
237
- item_data = info[key]
237
+ item_data = info[key.to_sym]
238
238
  next unless item_data
239
239
 
240
240
  agent_status = "pending"
241
241
  values = []
242
242
 
243
243
  if item_data.is_a?(Hash)
244
- agent_status = item_data["status"] || "pending"
245
- values = item_data["values"] || []
244
+ agent_status = item_data[:status] || "pending"
245
+ values = item_data[:values] || []
246
246
  else
247
247
  agent_status = item_data.to_s
248
248
  end
@@ -284,10 +284,10 @@ module Tng
284
284
  case status
285
285
  when "completed"
286
286
  debug_log("Test generation completed!") if debug_enabled?
287
- return status_data["result"].merge("analysis" => status_data["analysis"])
287
+ return status_data[:result].merge(analysis: status_data[:analysis])
288
288
  when "failed"
289
- debug_log("Test generation failed: #{status_data["error"]}") if debug_enabled?
290
- return { error: :generation_failed, message: status_data["error"] }
289
+ debug_log("Test generation failed: #{status_data[:error]}") if debug_enabled?
290
+ return { error: :generation_failed, message: status_data[:error] }
291
291
  when "pending", "processing"
292
292
  next
293
293
  else
data/lib/tng/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tng
4
- VERSION = "0.4.1"
4
+ VERSION = "0.4.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tng
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ralucab
@@ -222,7 +222,7 @@ post_install_message: "ā”Œ TNG ────────────────
222
222
  \ │\n│ • bundle exec
223
223
  tng --help - Show help information │\n│ │\n│
224
224
  \ \U0001F4A1 Generate tests for individual methods with precision │\n└────────────────────────────────────────────────────────────
225
- v0.4.1 ā”˜\n"
225
+ v0.4.2 ā”˜\n"
226
226
  rdoc_options: []
227
227
  require_paths:
228
228
  - lib