air_test 0.1.4.1 → 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 +4 -4
- data/lib/air_test/configuration.rb +1 -1
- data/lib/air_test/engine.rb +1 -1
- data/lib/air_test/version.rb +1 -1
- data/lib/air_test.rb +1 -6
- data/lib/tasks/air_test.rake +15 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bcd5778424330c5ad5c1b2aeebe638f9f4063bf0f7a77bbd054aac8f160ad10
|
4
|
+
data.tar.gz: cf2a009d09d64bd498f3d7c613d35d85ece6412b139f83a9fa97786ea56c7cc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/air_test/engine.rb
CHANGED
@@ -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
|
-
load File.expand_path("tasks/air_test.rake",
|
7
|
+
load File.expand_path("../../tasks/air_test.rake", __FILE__)
|
8
8
|
end
|
9
9
|
end
|
10
10
|
end
|
data/lib/air_test/version.rb
CHANGED
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)
|
data/lib/tasks/air_test.rake
CHANGED
@@ -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
|
-
|
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.
|
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-
|
10
|
+
date: 2025-07-21 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rails
|