chiron 0.2.2 → 0.2.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: b7dd7f387038865024e9723f8f4b7c6c631c04e2762085781c27b4cf86681c0e
4
- data.tar.gz: 366fa17b95df84fcf300712f5ae9c1f377c9b02afbc9426dbd9784e9717b10f7
3
+ metadata.gz: 111859d544263c1e225be5ed1657738d129b1a3ba2d5408664cb2c79b21797ce
4
+ data.tar.gz: a65d608c4abea66adbc0780e847547d99173c8467e95e82da60bc63f968809f7
5
5
  SHA512:
6
- metadata.gz: 493cdba917d7250cf066ccae6d6ac3838581c3535aba36e28dc6e59aa5670ef125b8719122db4983795777e04ff4ad8cc74d762f6e558a5ff99cd20f06110a7f
7
- data.tar.gz: 7f8125670a0dbaa4914bc81e8df9322c7447d50c24466681413addaeaef9d3fe9e120ff9d42e468b5a873b344bb54d9ca6a46c26888ef76c1af2f9d482b13238
6
+ metadata.gz: 89e21444318c44696397229933f62b8f41d0056217c89ae22784a70bbf5f1fbc3a25ebab5e5cf338c0da654adbb0e2ad7e4f816e9655ac98b0d06085b0ab9c0a
7
+ data.tar.gz: 9657fd9dc8b6a0ba32dabd0e82609428ee47ad9bd0fdded4dc7db25b968b5075f4e4200f238a90cd24c4703ffd0972549ae80f0f92bf972b78539e57825c9f50
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chiron (0.2.1)
4
+ chiron (0.2.2)
5
5
  colorize (~> 1.1)
6
6
  thor (~> 1.3)
7
7
  tty-prompt (~> 0.23)
data/lib/chiron/cli.rb CHANGED
@@ -15,6 +15,7 @@ module Chiron
15
15
 
16
16
  desc 'init', 'Initialize Claude workflow in current project'
17
17
  option :project_name, type: :string, desc: 'Project name for CLAUDE.md'
18
+ option :user_name, type: :string, desc: 'User name for templates. Auto-detected from git config if not specified'
18
19
  option :type, type: :string, desc: 'Project type (rails, python). Auto-detected if not specified'
19
20
  option :with_oauth, type: :boolean, default: false, desc: 'Include OAuth workflow examples'
20
21
  option :with_viewcomponents, type: :boolean, default: false, desc: 'Include ViewComponent rules'
@@ -27,6 +28,7 @@ module Chiron
27
28
  @prompt = TTY::Prompt.new
28
29
  @project_type = determine_project_type
29
30
  @project_name = options[:project_name] || prompt_for_project_name
31
+ @user_name = options[:user_name] || detect_user_name
30
32
 
31
33
  # Set up project configuration
32
34
  if @project_type == :python
@@ -376,6 +378,21 @@ module Chiron
376
378
  File.exist?('setup.py') || File.exist?('Pipfile')
377
379
  end
378
380
 
381
+ def detect_user_name
382
+ # Try git config first
383
+ git_user = `git config user.name 2>/dev/null`.strip
384
+ return git_user if !git_user.empty?
385
+
386
+ # Fall back to environment variables
387
+ env_user = ENV['USER'] || ENV['USERNAME']
388
+ return env_user if env_user && !env_user.empty?
389
+
390
+ # Last resort: prompt the user
391
+ @prompt.ask('What is your name?', default: 'Developer')
392
+ rescue StandardError
393
+ 'Developer'
394
+ end
395
+
379
396
  def error(message)
380
397
  say "❌ #{message}".colorize(:red)
381
398
  end
@@ -3,7 +3,7 @@
3
3
  This journal tracks significant development work, bug fixes, and feature implementations for <%= @project_name %>.
4
4
 
5
5
  ## Recent Contributors (Last 30 Days)
6
- - **[Your Name]**: Project owner, initial setup
6
+ - **<%= @user_name %>**: Project owner, initial setup
7
7
  - **Claude Code**: AI-assisted development
8
8
 
9
9
  ## Active Branches & Ownership
@@ -19,11 +19,12 @@ This journal tracks significant development work, bug fixes, and feature impleme
19
19
  ---
20
20
 
21
21
  ## <%= Date.today.strftime('%Y-%m-%d') %> - Initial Setup
22
- **Developer(s)**: [Your Name] & Claude Code | **Branch**: main | **Context**: Project initialization
22
+ **Developer(s)**: <%= @user_name %> & Claude Code | **Branch**: main | **Context**: Project initialization
23
23
 
24
24
  ### What Was Done
25
- - Initialized Rails <%= Rails.version rescue "8.0.2" %> application
26
- - Set up Claude workflow with claude-rails-setup gem
25
+ <% if @project_type == :rails %>
26
+ - Initialized Rails <%= defined?(Rails) ? Rails.version : "8.0+" %> application
27
+ - Set up Claude workflow with Chiron gem
27
28
  - Created initial project structure
28
29
  - Configured development environment
29
30
 
@@ -33,7 +34,7 @@ This journal tracks significant development work, bug fixes, and feature impleme
33
34
  - Setting up for collaborative development
34
35
 
35
36
  ### Technical Details
36
- - Rails <%= Rails.version rescue "8.0.2" %> with PostgreSQL database
37
+ - Rails <%= defined?(Rails) ? Rails.version : "8.0+" %> with PostgreSQL database
37
38
  - Hotwire (Turbo + Stimulus) for frontend interactivity
38
39
  - TailwindCSS for styling
39
40
  - RSpec for testing framework
@@ -50,6 +51,88 @@ This journal tracks significant development work, bug fixes, and feature impleme
50
51
  - Set up continuous integration
51
52
  - Implement initial models based on requirements
52
53
  - Create first PRD for core functionality
54
+ <% elsif @project_type == :python %>
55
+ - Initialized Python project
56
+ <% if @python_framework == :django %>
57
+ - Set up Django project structure
58
+ <% elsif @python_framework == :fastapi %>
59
+ - Set up FastAPI project structure
60
+ <% elsif @python_framework == :flask %>
61
+ - Set up Flask project structure
62
+ <% else %>
63
+ - Set up generic Python project structure
64
+ <% end %>
65
+ - Set up Claude workflow with Chiron gem
66
+ - Configured development environment
67
+
68
+ ### Why It Was Done
69
+ - Starting new Python project with AI-assisted development workflow
70
+ - Establishing consistent development patterns from the beginning
71
+ - Setting up for collaborative development
72
+
73
+ ### Technical Details
74
+ <% if @python_framework == :django %>
75
+ - Django framework for web development
76
+ - PostgreSQL database (recommended)
77
+ - Django REST framework for APIs
78
+ <% elsif @python_framework == :fastapi %>
79
+ - FastAPI framework for high-performance APIs
80
+ - Pydantic for data validation
81
+ - SQLAlchemy for database ORM
82
+ <% elsif @python_framework == :flask %>
83
+ - Flask framework for web development
84
+ - SQLAlchemy for database ORM
85
+ - Flask-RESTful for API development
86
+ <% else %>
87
+ - Python 3.x+ project structure
88
+ <% end %>
89
+ - pytest for testing framework
90
+ - black for code formatting
91
+ - flake8 for linting
92
+ - Claude AI workflow integration
93
+
94
+ ### Results
95
+ - ✅ Python project structure created
96
+ - ✅ Claude workflow initialized with commands and templates
97
+ - ✅ Development journal started
98
+ - ✅ Git repository initialized
99
+
100
+ ### Next Steps
101
+ - Set up virtual environment and install dependencies
102
+ - Configure database and create initial models
103
+ - Set up continuous integration
104
+ - Implement core functionality based on requirements
105
+ - Create first PRD for feature development
106
+ <% else %>
107
+ - Initialized project structure
108
+ - Set up Claude workflow with Chiron gem
109
+ - Created initial project structure
110
+ - Configured development environment
111
+
112
+ ### Why It Was Done
113
+ - Starting new project with AI-assisted development workflow
114
+ - Establishing consistent development patterns from the beginning
115
+ - Setting up for collaborative development
116
+
117
+ ### Technical Details
118
+ - Project initialized with Claude AI workflow integration
119
+ - Development journal and task tracking system
120
+ - Command templates for consistent workflows
121
+ - Quality assurance and testing patterns
122
+
123
+ ### Results
124
+ - ✅ Project structure created
125
+ - ✅ Claude workflow initialized with commands and templates
126
+ - ✅ Development journal started
127
+ - ✅ Git repository initialized
128
+
129
+ ### Next Steps
130
+ - Set up development dependencies
131
+ - Configure testing framework
132
+ - Set up continuous integration
133
+ - Implement core functionality based on requirements
134
+ - Create first PRD for feature development
135
+ <% end %>
53
136
 
54
137
  ---
55
138
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Chiron
4
- VERSION = '0.2.2'
4
+ VERSION = '0.2.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chiron
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett McHargue