papago 1.0.8 → 1.1.0

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: 179b9cb39a88b08caef98a7dd26abb8f98c6d454bad566b22cab24c902cdce48
4
- data.tar.gz: d69d05e43e61566daaf51a8aa4e642fad326400509bb7c393f5d6f0e240ae8d4
3
+ metadata.gz: 1974f1980eecef75f2f0f095f4740294839c1eddbd6cae7a3fd59ae550116d83
4
+ data.tar.gz: 0074c89724c97de92e666ed9c81288f6b7fa9630c7bab48ffb530306d8bdd02c
5
5
  SHA512:
6
- metadata.gz: 79cf6f39c611b57d7885828c86b7d63a4f89f619e4331ebe10e042cebd4e9441b813a05055a991fc3f41d48330e630cdd484159b89e286e65bbea336d2075f2f
7
- data.tar.gz: '013442539123adf7de53317b229df6b28d5432c003077e00d10afc94975cf84c19bb358a3f2628fe41770da83ee8993f681df44378f7d046336c51dc8c25d462'
6
+ metadata.gz: 15dbb550862faa7611d8586bf9bfb672fa24a5373de18d30005da07fb4d7f053bcfd5bb4ee753a2b5b8b91426548a94aba5114991f5a33cc2fec98f5ea028ed8
7
+ data.tar.gz: 272cc413c83aa0b1c4978d552274228ea88563a8e82aea6e8eda4056d75e079932cde5e05f8cb0b63b8e1702ab3b184924672c830c1260e6b0af517436a6e9f9
@@ -14,6 +14,8 @@ module Papago
14
14
 
15
15
  def call(text:, user: nil)
16
16
  user ||= generate_user_id
17
+ require 'http' unless defined?(HTTP)
18
+
17
19
  response = HTTP
18
20
  .auth("Token #{@token}")
19
21
  .post(@endpoint, json: { prompt: text, user: user })
@@ -1,3 +1,3 @@
1
1
  module Papago
2
- VERSION = '1.0.8'
2
+ VERSION = '1.1.0'
3
3
  end
data/lib/papago.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  require 'json'
2
- require 'http'
3
2
  require 'lolcat'
4
3
  require 'treely'
5
4
  require 'stringio'
metadata CHANGED
@@ -1,113 +1,113 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: papago
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - razeos at tossdev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-17 00:00:00.000000000 Z
11
+ date: 2023-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: http
14
+ name: mercenary
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '5.1'
19
+ version: 0.4.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '5.1'
26
+ version: 0.4.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: treely
28
+ name: tty-config
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.0'
33
+ version: 0.6.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.0'
40
+ version: 0.6.0
41
41
  - !ruby/object:Gem::Dependency
42
- name: lolcat
42
+ name: tty-prompt
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '100.0'
47
+ version: 0.23.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '100.0'
54
+ version: 0.23.1
55
55
  - !ruby/object:Gem::Dependency
56
- name: mercenary
56
+ name: dolphin_kit
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.4.0
61
+ version: '1.0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.4.0
68
+ version: '1.0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: tty-config
70
+ name: lolcat
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.6.0
75
+ version: '100.0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.6.0
82
+ version: '100.0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: tty-prompt
84
+ name: treely
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.23.1
89
+ version: '1.0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.23.1
96
+ version: '1.0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: dolphin_kit
98
+ name: http
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '1.0'
103
+ version: '5.1'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '1.0'
110
+ version: '5.1'
111
111
  description:
112
112
  email:
113
113
  executables: