air_test 0.1.4.2 → 0.1.4.3

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: 847724e274277ddbe347c33d52c0baa235a0aabd7f290d86d1c8664a753b1c00
4
- data.tar.gz: 2c517f5b47f039956fe7b1bb7a17162c1e05d72a4e37b6a75b1c019f89374f47
3
+ metadata.gz: 1bcd5778424330c5ad5c1b2aeebe638f9f4063bf0f7a77bbd054aac8f160ad10
4
+ data.tar.gz: cf2a009d09d64bd498f3d7c613d35d85ece6412b139f83a9fa97786ea56c7cc2
5
5
  SHA512:
6
- metadata.gz: a011748d0d89ad8a9dea752776e8564200168b0484b01bac1b08366dee4f5454d25ebf37cb5e7ebc7a160e3093d7f5243343f5d7cc5a5e8f9e97b1218eec2f9d
7
- data.tar.gz: 726c5d7f311cf7428c74c4fa6df8fa05da610a9ce84aec3d229f0cfcd07329ff42e7c184380e1b702adad1826d4f9ac9bdcbfc32398d03e84a911c56687ea47c
6
+ metadata.gz: 8ab0d67305ba986a18441aa266f0706845ce3ad28eed1a9eaf930a780ce7e2d730033c60698036ab8f61c4753e67cdafe3f547910e3f86a4279855ad23a65f96
7
+ data.tar.gz: c8f07312f128c57e08450326426b841c16509adf61b8290e28cb63fa3fa75c825712097cbf61829cb4bb8ec679b31e1f127a1cad074a87e84a119b53018b9460
@@ -10,7 +10,7 @@ module AirTest
10
10
  @notion_token = ENV.fetch("NOTION_TOKEN", nil)
11
11
  @notion_database_id = ENV.fetch("NOTION_DATABASE_ID", nil)
12
12
  @github_token = ENV["GITHUB_BOT_TOKEN"] || ENV.fetch("GITHUB_TOKEN", nil)
13
- @repo = nil
13
+ @repo = ENV.fetch("REPO", nil)
14
14
  end
15
15
  end
16
16
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AirTest
4
- VERSION = "0.1.4.2"
4
+ VERSION = "0.1.4.3"
5
5
  end
data/lib/air_test.rb CHANGED
@@ -20,9 +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)
24
-
25
- # Also load Rake tasks directly if Rake is available (for development/testing)
26
- if defined?(Rake)
27
- load File.expand_path("../tasks/air_test.rake", __FILE__)
28
- end
23
+ require_relative "air_test/engine" if defined?(Rails)
@@ -7,7 +7,19 @@ namespace :air_test do
7
7
  desc "Generate specs and PR from Notion tickets"
8
8
  task :generate_specs_from_notion, [:limit] do |_task, args|
9
9
  require "air_test/runner"
10
-
10
+ AirTest.configure {} unless AirTest.configuration
11
+ config = AirTest.configuration
12
+
13
+ missing = []
14
+ missing << "NOTION_TOKEN" unless config.notion_token
15
+ missing << "NOTION_DATABASE_ID" unless config.notion_database_id
16
+ missing << "GITHUB_TOKEN" unless config.github_token
17
+ missing << "REPO" unless config.repo
18
+ unless missing.empty?
19
+ puts "❌ Missing required environment variables: #{missing.join(", ")}"
20
+ exit 1
21
+ end
22
+
11
23
  limit = (args[:limit] || 5).to_i
12
24
  puts "🚀 Starting AirTest with limit: #{limit}"
13
25
 
@@ -25,10 +37,8 @@ namespace :air_test do
25
37
  desc "Show AirTest configuration"
26
38
  task :config do
27
39
  require "air_test/configuration"
28
-
29
- # Initialize configuration if not already done
30
- AirTest.configuration ||= AirTest::Configuration.new
31
-
40
+ AirTest.configure {} unless AirTest.configuration
41
+
32
42
  config = AirTest.configuration
33
43
  puts "🔧 AirTest Configuration:"
34
44
  puts " Notion Token: #{config.notion_token ? "Set" : "Not set"}"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: air_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4.2
4
+ version: 0.1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - julien bouland
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-07-20 00:00:00.000000000 Z
10
+ date: 2025-07-21 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails