summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoricebaker <icebaker@proton.me>2023-12-02 17:50:45 -0300
committericebaker <icebaker@proton.me>2023-12-02 17:50:45 -0300
commita36f0480eb0f6f9fd488bc0e58b0f10a9d8b7da9 (patch)
tree3ad607fbb503b44ff588e085c40f92211dde0d78
parentdfbf1b501be2d547f70a9ec9bbaff7e0d2705151 (diff)
bump to 1.0.1
-rw-r--r--Gemfile2
-rw-r--r--Gemfile.lock10
-rw-r--r--README.md10
-rw-r--r--controllers/security.rb7
-rw-r--r--docker-compose.example.yml2
-rw-r--r--static/gem.rb2
6 files changed, 16 insertions, 17 deletions
diff --git a/Gemfile b/Gemfile
index a75dc1c..a47c817 100644
--- a/Gemfile
+++ b/Gemfile
@@ -7,6 +7,6 @@ gemspec
group :test, :development do
gem 'pry-byebug', '~> 3.10', '>= 3.10.1'
gem 'rspec', '~> 3.12'
- gem 'rubocop', '~> 1.57', '>= 1.57.2'
+ gem 'rubocop', '~> 1.58'
gem 'rubocop-rspec', '~> 2.25'
end
diff --git a/Gemfile.lock b/Gemfile.lock
index 5e026ba..b390ae7 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- nano-bots (1.0.0)
+ nano-bots (1.0.1)
babosa (~> 2.0)
concurrent-ruby (~> 1.2, >= 1.2.2)
dotenv (~> 2.8, >= 2.8.1)
@@ -32,7 +32,7 @@ GEM
multipart-post (~> 2)
faraday-net_http (3.0.2)
ffi (1.16.3)
- json (2.6.3)
+ json (2.7.0)
language_server-protocol (3.17.0.3)
method_source (1.0.0)
multipart-post (2.3.0)
@@ -65,7 +65,7 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.1)
- rubocop (1.57.2)
+ rubocop (1.58.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
@@ -73,7 +73,7 @@ GEM
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
- rubocop-ast (>= 1.28.1, < 2.0)
+ rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
@@ -103,7 +103,7 @@ DEPENDENCIES
nano-bots!
pry-byebug (~> 3.10, >= 3.10.1)
rspec (~> 3.12)
- rubocop (~> 1.57, >= 1.57.2)
+ rubocop (~> 1.58)
rubocop-rspec (~> 2.25)
BUNDLED WITH
diff --git a/README.md b/README.md
index 4623423..e6d37b4 100644
--- a/README.md
+++ b/README.md
@@ -30,13 +30,13 @@ https://user-images.githubusercontent.com/113217272/238141567-c58a240c-7b67-4b3b
For a system usage:
```sh
-gem install nano-bots -v 1.0.0
+gem install nano-bots -v 1.0.1
```
To use it in a project, add it to your `Gemfile`:
```ruby
-gem 'nano-bots', '~> 1.0.0'
+gem 'nano-bots', '~> 1.0.1'
```
```sh
@@ -86,7 +86,7 @@ Set your provider credentials and choose your desired directory for the cartridg
services:
nano-bots:
image: ruby:3.2.2-slim-bookworm
- command: sh -c "apt-get update && apt-get install -y --no-install-recommends build-essential libffi-dev libsodium-dev lua5.4-dev curl && curl -s https://raw.githubusercontent.com/babashka/babashka/master/install | bash && gem install nano-bots -v 1.0.0 && bash"
+ command: sh -c "apt-get update && apt-get install -y --no-install-recommends build-essential libffi-dev libsodium-dev lua5.4-dev curl && curl -s https://raw.githubusercontent.com/babashka/babashka/master/install | bash && gem install nano-bots -v 1.0.1 && bash"
environment:
OPENAI_API_ADDRESS: https://api.openai.com
OPENAI_API_KEY: your-access-token
@@ -250,7 +250,7 @@ meta:
symbol: 🤖
name: Nano Bot Name
author: Your Name
- version: 1.0.0
+ version: 1.0.1
license: CC0-1.0
description: A helpful assistant.
@@ -488,5 +488,5 @@ gem build nano-bots.gemspec
gem signin
-gem push nano-bots-1.0.0.gem
+gem push nano-bots-1.0.1.gem
```
diff --git a/controllers/security.rb b/controllers/security.rb
index c1180f2..cbccf47 100644
--- a/controllers/security.rb
+++ b/controllers/security.rb
@@ -18,11 +18,10 @@ module NanoBot
password = 'UNSAFE' unless password && password != ''
{
- encryption: (
+ encryption:
Components::Crypto.encrypt('SAFE') != 'SAFE' &&
- Components::Crypto.encrypt('SAFE') != Components::Crypto.encrypt('SAFE') &&
- Components::Crypto.decrypt(Components::Crypto.encrypt('SAFE')) == 'SAFE'
- ),
+ Components::Crypto.encrypt('SAFE') != Components::Crypto.encrypt('SAFE') &&
+ Components::Crypto.decrypt(Components::Crypto.encrypt('SAFE')) == 'SAFE',
password: password != 'UNSAFE'
}
end
diff --git a/docker-compose.example.yml b/docker-compose.example.yml
index 352072e..d9f2474 100644
--- a/docker-compose.example.yml
+++ b/docker-compose.example.yml
@@ -2,7 +2,7 @@
services:
nano-bots:
image: ruby:3.2.2-slim-bookworm
- command: sh -c "apt-get update && apt-get install -y --no-install-recommends build-essential libffi-dev libsodium-dev lua5.4-dev curl && curl -s https://raw.githubusercontent.com/babashka/babashka/master/install | bash && gem install nano-bots -v 1.0.0 && bash"
+ command: sh -c "apt-get update && apt-get install -y --no-install-recommends build-essential libffi-dev libsodium-dev lua5.4-dev curl && curl -s https://raw.githubusercontent.com/babashka/babashka/master/install | bash && gem install nano-bots -v 1.0.1 && bash"
environment:
OPENAI_API_ADDRESS: https://api.openai.com
OPENAI_API_KEY: your-access-token
diff --git a/static/gem.rb b/static/gem.rb
index 235c68e..64101ea 100644
--- a/static/gem.rb
+++ b/static/gem.rb
@@ -3,7 +3,7 @@
module NanoBot
GEM = {
name: 'nano-bots',
- version: '1.0.0',
+ version: '1.0.1',
author: 'icebaker',
summary: 'Ruby Implementation of Nano Bots: small, AI-powered bots',
description: 'Ruby Implementation of Nano Bots: small, AI-powered bots easily shared as a single file, designed to support multiple providers such as Vicuna, OpenAI ChatGPT, Google PaLM, Alpaca, and LLaMA.',