ask_chatgpt 0.2.0 → 0.2.1

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: bac19fcd064226b0e1b2b87ebb215547d8e49b59233fc6c6b17440ac4df751a0
4
- data.tar.gz: 6a53484fdcdb4a872b768322a09b517807f62f17df5fc4ba3dbcfc133b65f4c7
3
+ metadata.gz: 66462915e1e106d09ff5990c0e892e02401c8a157306705bff4a6338bf775f1d
4
+ data.tar.gz: a747d8a310b2861ccd088a1ac27accde74acd2e4732c2f41938ef6536bcdbc76
5
5
  SHA512:
6
- metadata.gz: d8e51c4918ed071863f6ee2fc7ca559782e13394fd508c9422cd914ec9604eccb1b4d25455c4b3c30228dcc0caef7796d6b5eb2481c83f0c3669503ffe149a34
7
- data.tar.gz: 791ecab6cfb6220b81e2943f78512e5b35c95720b212591d4bbb2c0367c9fe9090f8d368cc780c7d0951439c9480a3544126d06fe566fdc56d7af0bcd620e057
6
+ metadata.gz: 287029104e1b14dd1f2f9b36e8cf11e55082424ebda4f88a767bd29088faccbdbadf79d3314075e9f0868bebbe38801cce9202c108147617c644454584162115
7
+ data.tar.gz: c1bc943ae6ae4e6195a1e98dd53e82d3d72afbcbbf170e9d8590b92fc62b740e2a6ca30b9a67698a9113b04c575eb74ed6bd57b1162ba78cd19f918777af4259
data/README.md CHANGED
@@ -158,6 +158,7 @@ or directly in console `gpt.debug!` (and finish `gpt.debug!(:off)`)
158
158
  - print tokens usage? `.with_usage`
159
159
  - support org_id? in the configs
160
160
  - use `gpt` in the code of the main app (e.g. model/controller)
161
+ - remove dependency on `ruby-openai` and just do a `Net::HTTP` call
161
162
 
162
163
  ## Contributing
163
164
 
@@ -168,3 +169,6 @@ To start just clone this repo. Run bundle, and go to `cd test/dummy/`. Start `ra
168
169
  ## License
169
170
 
170
171
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
172
+
173
+ [<img src="https://github.com/igorkasyanchuk/rails_time_travel/blob/main/docs/more_gems.png?raw=true"
174
+ />](https://www.railsjazz.com/?utm_source=github&utm_medium=bottom&utm_campaign=ask_chatgpt)
@@ -71,7 +71,7 @@ module AskChatgpt
71
71
  parsed
72
72
  end
73
73
  ensure
74
- spinner.stop if spinner.spinning?
74
+ spinner.stop if spinner&.spinning?
75
75
  end
76
76
 
77
77
  def executor_parameters
@@ -1,3 +1,3 @@
1
1
  module AskChatgpt
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ask_chatgpt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kasyanchuk
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-04-23 00:00:00.000000000 Z
12
+ date: 2023-04-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -67,6 +67,20 @@ dependencies:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: irb
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: 1.4.3
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: 1.4.3
70
84
  - !ruby/object:Gem::Dependency
71
85
  name: wrapped_print
72
86
  requirement: !ruby/object:Gem::Requirement