air_test 0.1.4 → 0.1.4.1

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: 2de3a0976d4d5aa40c6178ca21af1d429b059106f0184d797c5a3dbf36c546f1
4
- data.tar.gz: 4587d75cecbdabd22e760e6fcfa28b6c1cd9ebb12d2eb156414b11740666e40c
3
+ metadata.gz: a23c7cf2ccd637fda7597dcd7fa7853c7b31cfdb19eae4e164a5aa63c6ccf5d0
4
+ data.tar.gz: 26f87ad1e418b430f4bcbf8d31c866acde6c2f07d62f601ea34b81485b0bfe89
5
5
  SHA512:
6
- metadata.gz: 0e60e1d94293c77fe912a7017145c3331dec7b18c0aae9ba65c4b71436f662d96f43c46185fc3acdbf4981c023b7949db0cae61bbf0a469753b8d6c11f2178e4
7
- data.tar.gz: 79b532e0af0ed9923a571fb5013c13171174eabee415f0a7123a60ebcd4388873259f436b7954cc0518ddba1e3af688a2d0b7c0ad5b6e38859154da3914ae536
6
+ metadata.gz: b1bbad763cce870204f348502db6dc3f0f67ed16ada42ce361d0c805382abb9ac0f8a586f83f67764369a2a48c691b9fae1d2f687a1128bd8ca7b525dc30eac5
7
+ data.tar.gz: 1edae3b07e4eb692cd422e98fffaf1c2503bd0bfe9710aff081af3bc4f3802f304ea296cd837eab4729bbfa56a6d0dd8e3c5beb26bc7ea8dccf3c0f76bca9dcf
data/Rakefile CHANGED
@@ -9,4 +9,7 @@ require "rubocop/rake_task"
9
9
 
10
10
  RuboCop::RakeTask.new
11
11
 
12
+ # Load AirTest Rake tasks for development
13
+ load File.expand_path("lib/tasks/air_test.rake", __dir__)
14
+
12
15
  task default: %i[spec rubocop]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AirTest
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.4.1"
5
5
  end
data/lib/air_test.rb CHANGED
@@ -21,3 +21,8 @@ require_relative "air_test/runner"
21
21
 
22
22
  # Load Rails engine if Rails is available (for Rake task support)
23
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
@@ -1,13 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Ensure the main gem is loaded
4
+ require "air_test"
5
+
3
6
  namespace :air_test do
4
7
  desc "Generate specs and PR from Notion tickets"
5
- task :generate_specs_from_notion, [:limit] => :environment do |_task, args|
8
+ task :generate_specs_from_notion, [:limit] do |_task, args|
6
9
  require "air_test/runner"
7
-
10
+
8
11
  limit = (args[:limit] || 5).to_i
9
12
  puts "🚀 Starting AirTest with limit: #{limit}"
10
-
13
+
11
14
  begin
12
15
  runner = AirTest::Runner.new
13
16
  runner.run(limit: limit)
@@ -20,9 +23,12 @@ namespace :air_test do
20
23
  end
21
24
 
22
25
  desc "Show AirTest configuration"
23
- task config: :environment do
26
+ task :config do
24
27
  require "air_test/configuration"
25
-
28
+
29
+ # Initialize configuration if not already done
30
+ AirTest.configuration ||= AirTest::Configuration.new
31
+
26
32
  config = AirTest.configuration
27
33
  puts "🔧 AirTest Configuration:"
28
34
  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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - julien bouland
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-07-19 00:00:00.000000000 Z
10
+ date: 2025-07-20 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails