air_test 0.1.4.5 → 0.1.4.7

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: fefd8998279ced13f3df480795649d91a9edc8da58cc29f830efbd6fb80828ef
4
- data.tar.gz: d30877dd57bcbc058f76b6c4c094e7a85a3601725fc3501f50c7ee2b7dd0ba5f
3
+ metadata.gz: '0069a37f8116260e17efe177462b3a992b63be18a4df02b9184b53285928ccca'
4
+ data.tar.gz: e6b24ad8aa7810653187ce6cc33d769c1d55c489970204833d1ae2af8516d2c7
5
5
  SHA512:
6
- metadata.gz: 28202234ea3225fc6cdf7900464e41ae73e717bbe10b9a6723b561fee7a33da50c633028ccf5bdbb62b564676a0dbc191c83b7eb2e8fbbb1a81528e12fd04f87
7
- data.tar.gz: b46b2ac00d7c912776f91c6771d2e953c462faa60136939ee36572a6fd171e2e96d49524cd34a38d30953dc386edb5eb6a05d057f9bff27981c219383871767f
6
+ metadata.gz: b6278a3a66576c3ab747f9861099036770de8972c40f247da67416894c4716b8958fdc4afc7ecb8eec20dd1858f9173cbecfa98ffa9606512e755905a4d064a0
7
+ data.tar.gz: 38e5b44fcf4a263f7b7524fc50ae91e28062ca068910873b5c36302f853c6719dbd18fd857b438d662df1caac08d66f6c54924f6add4af52153b5e031ca37cf8
@@ -4,7 +4,7 @@ module AirTest
4
4
  class Engine < ::Rails::Engine
5
5
  # This ensures that the Rake tasks are automatically loaded when the gem is included in a Rails app
6
6
  rake_tasks do
7
- import File.expand_path("../../tasks/air_test.rake", __FILE__)
7
+ import File.expand_path("tasks/air_test.rake", __dir__)
8
8
  end
9
9
  end
10
10
  end
@@ -20,10 +20,12 @@ module AirTest
20
20
  url = @notion.extract_ticket_url(ticket)
21
21
  puts "\nšŸ“‹ Processing: FDR#{ticket_id} - #{title}"
22
22
  parsed_data = @notion.parse_ticket_content(ticket["id"])
23
- next unless parsed_data && parsed_data[:feature] && !parsed_data[:feature].empty?
23
+ unless parsed_data && parsed_data[:feature] && !parsed_data[:feature].empty?
24
+ puts "āš ļø Skipping ticket FDR#{ticket_id} due to missing or empty feature."
25
+ next
26
+ end
24
27
 
25
- slug = parsed_data[:feature].downcase.gsub(/[^a-z0-9]+/, "-").gsub(/^-|-$/, "")
26
- branch = "air_test/#{ticket_id}-#{slug}"
28
+ branch = "air_test/#{ticket_id}-#{title.downcase.gsub(/[^a-z0-9]+/, "-").gsub(/^-|-$/, "")}"
27
29
  spec_path = @spec.generate_spec_from_parsed_data(ticket_id, parsed_data)
28
30
  step_path = @spec.generate_step_definitions_for_spec(spec_path)
29
31
  files_to_commit = [spec_path]
@@ -2,7 +2,6 @@
2
2
 
3
3
  # Ensure the main gem is loaded
4
4
  require "air_test"
5
- puts ">>> Loading AirTest Rake tasks from #{__FILE__}"
6
5
  namespace :air_test do
7
6
  desc "Generate specs and PR from Notion tickets"
8
7
  task :generate_specs_from_notion, [:limit] do |_task, args|
@@ -22,7 +21,7 @@ namespace :air_test do
22
21
 
23
22
  limit = (args[:limit] || 5).to_i
24
23
  puts "šŸš€ Starting AirTest with limit: #{limit}"
25
-
24
+
26
25
  begin
27
26
  runner = AirTest::Runner.new
28
27
  runner.run(limit: limit)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AirTest
4
- VERSION = "0.1.4.5"
4
+ VERSION = "0.1.4.7"
5
5
  end
data/lib/air_test.rb CHANGED
@@ -20,4 +20,4 @@ require_relative "air_test/github_client"
20
20
  require_relative "air_test/runner"
21
21
 
22
22
  # Load Rails engine if Rails is available (for Rake task support)
23
- require_relative "air_test/engine" if defined?(Rails)
23
+ require_relative "air_test/engine" if defined?(Rails)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: air_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4.5
4
+ version: 0.1.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - julien bouland
@@ -75,8 +75,8 @@ files:
75
75
  - lib/air_test/notion_parser.rb
76
76
  - lib/air_test/runner.rb
77
77
  - lib/air_test/spec_generator.rb
78
+ - lib/air_test/tasks/air_test.rake
78
79
  - lib/air_test/version.rb
79
- - lib/tasks/air_test.rake
80
80
  - sig/air_test.rbs
81
81
  homepage: https://github.com/airtest-dev/airtest
82
82
  licenses: