ruby_todo 1.0.9 → 1.0.10

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: dae18c7aa5f0c69b22d8322958d2bb91dfb44eb69633f0c5f720daa5e10e7dfd
4
- data.tar.gz: f5fcb64983a413d618d4a878d10545d5e7c161387431d71d3a6dc0560a52f262
3
+ metadata.gz: 7b843fdda14d138619bd89530ac2133e5799a365101a9a8738d2309f671f33b4
4
+ data.tar.gz: c87f357f0eda45138a418aa833da84baaeda972a97871b984dd0d36a9bf286fa
5
5
  SHA512:
6
- metadata.gz: e3865f71aa4da7b42cecc475b383013f92b6981dbd1c61529b2c4932e6528c3f2a359290f7ee06f34db4c1e3623540158dc1797c675cf36d75f99819ace4af12
7
- data.tar.gz: 8d5a54bfe135dbdb8fe20087db97f779375481954cf7b7bb1f5c380216cd69936c486c95e79ccbf41f1601622fde7eeb23b3e6a10e98783cc5f16ccda7f0f86a
6
+ metadata.gz: d285c3bfe74592f2466e05873ddd024ac97855cc8517eab215437f2916a5c674dd48e7401c2dd22cc3e7f50f11ce839b73e984025c76cebf5d11257bbc7848e6
7
+ data.tar.gz: e7f5605b9e299197cfd45138325caff5df3160b2e79266615ed4d2fe419f1dced9b95a1671ba86fdb2b223cc7d183653a1ed243d588aa2d9f13949898f4a5216
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## [1.0.10] - 2025-03-31
2
+
3
+ * Manual release
4
+
5
+
1
6
  ## [1.0.9] - 2025-03-31
2
7
 
3
8
  * Manual release
@@ -83,6 +83,8 @@ module RubyTodo
83
83
  - "fix login bug" → "Resolve Authentication Issue in Login System"
84
84
  - "add monitoring to service" → "Implement Comprehensive Monitoring Solution for Service"
85
85
  - "migrate repo to new org" → "Migrate Repository to New Organization Structure"
86
+ - "add newrelic to the questions engine app" → "Integrate New Relic Monitoring with Questions Engine Application"
87
+ - "create a new task to add newrelic to the questions engine app" → "Implement New Relic Monitoring for Questions Engine Application"
86
88
 
87
89
  Create concise but descriptive titles that use proper capitalization and professional terminology.
88
90
  PROMPT
@@ -837,9 +837,10 @@ module RubyTodo
837
837
  # Create a CLI instance for executing commands
838
838
  cli = RubyTodo::CLI.new
839
839
 
840
- # Special case: handling natural language task creation
840
+ # Special case: handling natural language task creation with title enhancement
841
841
  if prompt.match?(/create(?:\s+a)?\s+(?:new\s+)?task\s+(?:to|for|about)\s+(.+)/i)
842
- handle_natural_language_task_creation(prompt, api_key)
842
+ task_description = prompt.match(/create(?:\s+a)?\s+(?:new\s+)?task\s+(?:to|for|about)\s+(.+)/i)[1].strip
843
+ handle_task_creation_with_enhancement(task_description, api_key)
843
844
  return
844
845
  end
845
846
 
@@ -1688,6 +1689,26 @@ module RubyTodo
1688
1689
  end
1689
1690
  end
1690
1691
 
1692
+ # Enhanced task creation that uses AI to improve titles
1693
+ def handle_task_creation_with_enhancement(task_description, api_key)
1694
+ # Get the default notebook
1695
+ notebook_name = default_notebook_name
1696
+
1697
+ # Log the original description if in verbose mode
1698
+ say "Original task description: #{task_description}" if @options[:verbose]
1699
+
1700
+ # Generate task details using AI
1701
+ task_details = generate_task_details(task_description, api_key)
1702
+
1703
+ # Log the enhanced title for better UX
1704
+ if task_details["title"] && task_details["title"] != task_description
1705
+ say "✨ Enhanced title: \"#{task_details["title"]}\"".green
1706
+ end
1707
+
1708
+ # Create the task with the enhanced details
1709
+ create_task_from_details(notebook_name, task_details)
1710
+ end
1711
+
1691
1712
  def handle_natural_language_task_creation(prompt, _api_key)
1692
1713
  # Make sure Ruby Todo is initialized
1693
1714
  initialize_ruby_todo
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyTodo
4
- VERSION = "1.0.9"
4
+ VERSION = "1.0.10"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_todo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremiah Parrack