chatsonic 1.0.1 → 1.0.2

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: f3199c93ee4201cd12aded8c51fa036d159bc1553c69ab6a0cdf68ec5d8c0ab0
4
- data.tar.gz: b05283969491a415e6877ef4fca1a1aa77331f5c68c7c75195aa72a2128be8e5
3
+ metadata.gz: c692c9a93055f57ed38cef8c950391dcaf6c82d002cdc7c261522ecefe2201c3
4
+ data.tar.gz: 7beb0a8cfb56805d578fb962fbdab3d6eebf85aaba8b1c58ca66a9ab2a9eb7b4
5
5
  SHA512:
6
- metadata.gz: 6672bc008492a975a879ff10cd625f6bc650a7becd25ae2900ad827fa50cf53a45b73bc48fadc048020beda27d56bed6fb33f5dcb7df46b1911824b74eb53220
7
- data.tar.gz: c3c831c788a24d6d574bf3c71b6df637153d775395826311e275a29f8ecc859b8c608e1026bba32a5b5a62ba1884eb305ca1bfa87d0c32cde80ab15a44c7a32d
6
+ metadata.gz: 98b2f1d2297da43cdc4b44adcf74e36c03d77a95bf07976009c89fd699a8830a627a9796b181dd3b377f3776f7a239c08ca24f96fd6f52ff15df374bd6bc10cc
7
+ data.tar.gz: 7e82d36bf2ee659857104aeb85a786b68bdc5bb7ff6ee412cc6fff3c5fd8c87cf788a011fbdd91cb740de9c3a613600d2fed91c98c1679abd16cdf6dcbd35a74
data/Gemfile CHANGED
@@ -3,5 +3,4 @@ gemspec
3
3
 
4
4
  gem "dotenv", "~> 2.8.1"
5
5
  gem "rake", "~> 13.0"
6
- gem "rspec", "~> 3.12"
7
- gem 'httparty', '~> 0.13.7'
6
+ gem "rspec", "~> 3.12"
data/README.md CHANGED
@@ -97,17 +97,29 @@ ChatSonic is a model that can be used to generate text in a conversational style
97
97
  client.prompt(parameters: {
98
98
  enable_google_results: true,
99
99
  enable_memory: true,
100
- input_text: 'Write Me a Poem'
100
+ input_text: 'Hi'
101
101
  })
102
102
  # => "Hello! How may I assist you today?"
103
103
  ```
104
104
 
105
105
  input_text can be your prompt
106
106
 
107
+ ## Rspec ( Test Cases )
108
+
109
+ For Specs you can run `bundle rake rspec`. Make sure all the specs are passed before raising a PR. PR template can be found here [Pull Request Template](https://github.com/SamalaSumanth0262/chatsonic/blob/master/pull_request_template.md)
110
+
111
+ ## Feature Request
112
+ You can raise a feature request in this mentioned format [Feature Request Format](https://github.com/SamalaSumanth0262/chatsonic/blob/master/.github/ISSUE_TEMPLATE/feature_request.md)
113
+
114
+ ## Bug Report
115
+ You can raise a Bug report in this mentioned format [Bug Report Format](https://github.com/SamalaSumanth0262/chatsonic/blob/master/.github/ISSUE_TEMPLATE/bug_report.md)
116
+
117
+
107
118
  ## License
108
119
 
109
120
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
110
121
 
122
+
111
123
  ## ToDo: Implement
112
124
  1. Create a pull request template
113
125
  2. Create a circle CI for CI/CD
data/Rakefile CHANGED
@@ -1,6 +1,13 @@
1
1
  require 'rake'
2
2
  require 'rubocop/rake_task'
3
+ require "rspec/core/rake_task"
4
+
3
5
  RuboCop::RakeTask.new do |task|
4
6
  task.requires << 'rubocop-performance'
5
7
  task.requires << 'rubocop-rspec'
6
- end
8
+ end
9
+
10
+
11
+ RSpec::Core::RakeTask.new(:spec)
12
+
13
+ task default: :spec
data/chatsonic.gemspec ADDED
@@ -0,0 +1,24 @@
1
+ require File.expand_path('lib/chatsonic/version', __dir__)
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = 'chatsonic'
5
+ spec.version = ChatSonic::VERSION
6
+ spec.authors = ['Samala Sumanth']
7
+ spec.email = ['chintusamala96@gmail.com ']
8
+ spec.summary = 'ChatSonic Integration with Rails'
9
+ spec.description = 'This gem allows interact with ChatSonic ( An Alternative to ChatGPT-4 ) with Real Time Data Model'
10
+ spec.homepage = 'https://github.com/SamalaSumanth0262/chatsonic'
11
+ spec.license = 'MIT'
12
+ spec.files = Dir['README.md', 'LICENSE',
13
+ 'CHANGELOG.md', 'lib/**/*.rb',
14
+ 'lib/**/*.rake',
15
+ 'chatsonic.gemspec', '.github/*.md',
16
+ 'Gemfile', 'Rakefile']
17
+ spec.platform = Gem::Platform::RUBY
18
+ spec.required_ruby_version = '>= 2.5.0'
19
+ spec.extra_rdoc_files = ['README.md']
20
+ spec.add_development_dependency 'rubocop', '~> 0.60'
21
+ spec.add_development_dependency 'rubocop-performance', '~> 1.5'
22
+ spec.add_development_dependency 'rubocop-rspec', '~> 1.37'
23
+ spec.add_runtime_dependency 'httparty', '~> 0.18', '>= 0.18.1'
24
+ end
@@ -1,3 +1,3 @@
1
- module Chatsonic
2
- VERSION = '1.0.1'
1
+ module ChatSonic
2
+ VERSION = '1.0.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chatsonic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samala Sumanth
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-10 00:00:00.000000000 Z
11
+ date: 2023-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -52,6 +52,26 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.37'
55
+ - !ruby/object:Gem::Dependency
56
+ name: httparty
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.18'
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: 0.18.1
65
+ type: :runtime
66
+ prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - "~>"
70
+ - !ruby/object:Gem::Version
71
+ version: '0.18'
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: 0.18.1
55
75
  description: This gem allows interact with ChatSonic ( An Alternative to ChatGPT-4
56
76
  ) with Real Time Data Model
57
77
  email:
@@ -66,6 +86,7 @@ files:
66
86
  - LICENSE
67
87
  - README.md
68
88
  - Rakefile
89
+ - chatsonic.gemspec
69
90
  - lib/chatsonic.rb
70
91
  - lib/chatsonic/client.rb
71
92
  - lib/chatsonic/version.rb