aissue 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47d3313efd9564d56156a382e337910abf05d3ded0d787986054351ea7f8ac74
4
- data.tar.gz: cde1f513eb861092d7e2ffe7f22864cdb2697fca1613be4517a64a21b6e022ca
3
+ metadata.gz: 7457a65af2d17631f4b60b25773bab2377811284d0fe7a1d5b35c8132f159898
4
+ data.tar.gz: 6d282249132efadf768fc03e4cd41f0b2d7a02f09cf18cbea4dd8f708ed9496a
5
5
  SHA512:
6
- metadata.gz: 7ec9935c3e66b5801a6c009137787d26ab03fb1d2ed32f2defff4bb0edebdd0f618cd68d7eea9ad9ca50a847489abf89f8f66658211ed8532a272ab0d7f4966f
7
- data.tar.gz: 2e1b54e7cfa447bfcebff324e9dee285e384c7eb7e6604400f2a4fadf6bd5b381e057b16a46900dc863d2b161224d412bfa18e88153f6ed946647726454d3a3f
6
+ metadata.gz: 5d0665b4481b13ce407000c6d2318eb2d727163739b09d0353b6837545f9842334ad769bde07f9aa2a8b7ac6501b2a42063248b30b0ad466ce5af7ef7ff81e2b
7
+ data.tar.gz: e1c76307fbf797f42e7739da368f5d02f75aee0c0f695b9c598ca64c5824646c702582daf289b26def0d3961d616def282dfc4cabd371d3268f389e33025ba7e
data/lib/aissue/cli.rb CHANGED
@@ -1,10 +1,10 @@
1
1
  require 'thor'
2
2
  require 'dotenv/load'
3
- require_relative 'util'
3
+ require_relative 'helper'
4
4
 
5
5
  module Aissue
6
6
  class CLI < Thor
7
- include Aissue::Util
7
+ include Aissue::Helper
8
8
 
9
9
  desc "start", "Start the Aissue CLI"
10
10
  def start
@@ -16,7 +16,10 @@ module Aissue
16
16
  end
17
17
  end
18
18
 
19
- module Util
19
+ module Helper
20
+
21
+ private
22
+
20
23
  # OpenAI API
21
24
  def post_openai(prompt, model: ENV['GPT_MODEL'], temperature: 0.7, json: false)
22
25
  data = {
data/lib/aissue/issue.rb CHANGED
@@ -1,9 +1,9 @@
1
- require_relative 'util'
1
+ require_relative 'helper'
2
2
 
3
3
  module Aissue
4
- include Aissue::Util
5
-
6
4
  class Issue
5
+ extend Aissue::Helper
6
+
7
7
  class << self
8
8
  def rescue(e)
9
9
  repo_root = Dir.pwd
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Aissue
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aissue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ysk91
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-16 00:00:00.000000000 Z
11
+ date: 2024-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv
@@ -70,8 +70,8 @@ files:
70
70
  - exe/aissue
71
71
  - lib/aissue.rb
72
72
  - lib/aissue/cli.rb
73
+ - lib/aissue/helper.rb
73
74
  - lib/aissue/issue.rb
74
- - lib/aissue/util.rb
75
75
  - lib/aissue/version.rb
76
76
  - sig/aissue.rbs
77
77
  homepage: https://github.com/ysk91/aissue