air_test 0.1.4.2 → 0.1.4.4
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/Rakefile +1 -1
- data/lib/air_test/configuration.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: 5fb22705d27d579f7e8fab9d5063649e21e7a3e5817d08e0ae3010d06ed441b7
|
4
|
+
data.tar.gz: 6571c352ad8479d612bb1df81c14d590d087dc7f204bac43a218eda34e7f7e03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 411af5c22a91528274b5d3c8c228c5059cb1a145f4b9b39bd10644ddf17ad12221a4fabf6a838f867251314e198ef0f1f7eea038abba83e76084964c7c349794
|
7
|
+
data.tar.gz: db54c54d39f056e2f80efabfd60bf300b57a760e5cbdaad593b54e22a5e00a9a21c75d5af518bffb63409aee7ed9026a5c5a6711a465ecb1dfe3fa669ba57441
|
data/Rakefile
CHANGED
@@ -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/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.4
|
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
|