Skip to content

Commit

Permalink
Remove open ai (#98)
Browse files Browse the repository at this point in the history
* Remove open AI from raider

* Update version

---------

Co-authored-by: aguspe <[email protected]>
  • Loading branch information
aguspe and aguspe authored Jun 16, 2024
1 parent 4841c51 commit d1760f3
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 257 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,4 @@ jobs:
run: bundle install

- name: Build and run integration tests
env:
OPENAI_ACCESS_TOKEN: ${{ secrets.OPENAI_ACCESS_TOKEN }}
run: rake integration
2 changes: 0 additions & 2 deletions .github/workflows/system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,4 @@ jobs:
run: bundle install

- name: Build and run system tests
env:
OPENAI_ACCESS_TOKEN: ${{ secrets.OPENAI_ACCESS_TOKEN }}
run: rake system
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
ruby_raider-*.gem
.idea/
ruby_raider.iml
Gemfile.lock
.env
Gemfile.lock
3 changes: 0 additions & 3 deletions .reek.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,3 @@ detectors:
exclude:
- initialize
max_statements: 10

exclude_paths:
- 'lib/commands/open_ai_commands.rb'
4 changes: 0 additions & 4 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
require:
- rubocop-rspec

AllCops:
Exclude:
- 'lib/commands/open_ai_commands.rb'

# Layout
Layout/CaseIndentation:
Enabled: false
Expand Down
23 changes: 0 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ Commands:
raider generate # Provides access to all the scaffolding commands
raider help [COMMAND] # Describe available commands or one specific command
raider new [PROJECT_NAME] # Creates a new framework based on settings picked
raider open_ai # Provides access to all the open ai commands
raider utility # Provides access to all the utility commands
raider version # It shows the version of Ruby Raider you are currently using
```
Expand All @@ -100,7 +99,6 @@ All the basic commands have their corresponding shortcut:

* g for generate
* n for new
* o for open_ai
* u for utility
* v for version

Expand Down Expand Up @@ -133,27 +131,6 @@ To initialise Appium server run this command:
raider u start_appium
```

### Open AI Commands

```ruby
# Will print the result of the request on the terminal
raider o make [REQUEST]
# Will create a file with the result of your request as content
raider o make [REQUEST] - -path or -p [PATH]
# Will input the content of the chosen file into open ai and will edit it based on the result
raider o make [PATH_NAME] - -edit or -e [FILE_PATH]
# Creates a cucumber file and uses it to input into open ai and create a steps file
# The prompt is required
raider o cucumber [NAME] - -prompt or -p [PROMPT]
# Creates a cucumber step definitions file based on an scenario file
raider open_ai steps [NAME]
Options :
-p, [--path = PATH] # The path where your steps will be created
-pr, [--prompt = PROMPT] # This will create the selected steps based on your prompt using open ai
-i, [--input = INPUT] # It uses a file as input to create the steps

```

### Sponsors

This project is tested with BrowserStack.
61 changes: 0 additions & 61 deletions lib/commands/open_ai_commands.rb

This file was deleted.

71 changes: 22 additions & 49 deletions lib/generators/templates/common/read_me.tt
Original file line number Diff line number Diff line change
@@ -1,29 +1,25 @@
# Ruby Raider

[![Gem Version](https://badge.fury.io/rb/ruby_raider.svg)](https://badge.fury.io/rb/ruby_raider)
[![Rubocop](https://github.com/RubyRaider/ruby_raider/actions/workflows/rspec.yml/badge.svg)](https://github.com/RubyRaider/ruby_raider/actions/workflows/rspec.yml)
[![Gitter](https://badges.gitter.im/RubyRaider/community.svg)](https://gitter.im/RubyRaider/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)

<!-- PROJECT LOGO -->
<br />
<div align="center">
<a href="https://github.com/RubyRaider/ruby_raider">
<img src="https://rubyraiderdotcom.files.wordpress.com/2022/05/logo_transparent_background-1.png" alt="Logo">
</a>
<h1 align="center">Ruby Raider</h1>
<p align="center">
This is a gem to make setup and start of UI automation projects easier.
<br />
<a href="https://github.com/RubyRaider/ruby_raider#getting-started"><strong>Explore the docs »</strong></a>
<br />
<br />
<a href="https://rubygems.org/gems/ruby_raider">Rubygems</a>
·
<a href="https://github.com/RubyRaider/ruby_raider/issues">Report Bug</a>
·
<a href="https://github.com/RubyRaider/ruby_raider/issues">Request Feature</a>
</p>
<p align="center"> For more information and updates on releases, see <a href="https://ruby-raider.com">https://ruby-raider.com</a></p>
<a href="https://github.com/RubyRaider/ruby_raider">
<img src="https://rubyraiderdotcom.files.wordpress.com/2022/05/logo_transparent_background-1.png" alt="Logo">
</a>
<h1 align="center">Ruby Raider</h1>
<p align="center">
This is a gem to make setup and start of UI automation projects easier.
<br />
<a href="https://github.com/RubyRaider/ruby_raider#getting-started"><strong>Explore the docs »</strong></a>
<br />
<br />
<a href="https://rubygems.org/gems/ruby_raider">Rubygems</a>
·
<a href="https://github.com/RubyRaider/ruby_raider/issues">Report Bug</a>
·
<a href="https://github.com/RubyRaider/ruby_raider/issues">Request Feature</a>
</p>
<p align="center"> For more information and updates on releases, see <a href="https://ruby-raider.com">https://ruby-raider.com</a></p>
</div>

## What is Ruby Raider?
Expand Down Expand Up @@ -86,19 +82,17 @@ Select the ones you will like to work with.

```ruby
Commands:
raider generate # Provides access to all the scaffolding commands
raider help [COMMAND] # Describe available commands or one specific command
raider new [PROJECT_NAME] # Creates a new framework based on settings picked
raider open_ai # Provides access to all the open ai commands
raider utility # Provides access to all the utility commands
raider version # It shows the version of Ruby Raider you are currently using
raider generate # Provides access to all the scaffolding commands
raider help [COMMAND] # Describe available commands or one specific command
raider new [PROJECT_NAME] # Creates a new framework based on settings picked
raider utility # Provides access to all the utility commands
raider version # It shows the version of Ruby Raider you are currently using
```

All the basic commands have their corresponding shortcut:

* g for generate
* n for new
* o for open_ai
* u for utility
* v for version

Expand Down Expand Up @@ -130,24 +124,3 @@ To initialise Appium server run this command:
```ruby
raider u start_appium
```

### Open AI Commands

```ruby
# Will print the result of the request on the terminal
raider o make [REQUEST]
# Will create a file with the result of your request as content
raider o make [REQUEST] - -path or -p [PATH]
# Will input the content of the chosen file into open ai and will edit it based on the result
raider o make [PATH_NAME] - -edit or -e [FILE_PATH]
# Creates a cucumber file and uses it to input into open ai and create a steps file
# The prompt is required
raider o cucumber [NAME] - -prompt or -p [PROMPT]
# Creates a cucumber step definitions file based on an scenario file
raider open_ai steps [NAME]
Options :
-p, [--path = PATH] # The path where your steps will be created
-pr, [--prompt = PROMPT] # This will create the selected steps based on your prompt using open ai
-i, [--input = INPUT] # It uses a file as input to create the steps

```
67 changes: 0 additions & 67 deletions lib/open_ai/open_ai.rb

This file was deleted.

5 changes: 0 additions & 5 deletions lib/ruby_raider.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# frozen_string_literal: true

require_relative '../lib/commands/open_ai_commands'
require_relative '../lib/commands/scaffolding_commands'
require_relative '../lib/commands/utility_commands'

Expand Down Expand Up @@ -28,10 +27,6 @@ def version
subcommand 'generate', ScaffoldingCommands
map 'g' => 'generate'

desc 'open_ai', 'Provides access to all the open ai commands'
subcommand 'open_ai', OpenAiCommands
map 'o' => 'open_ai'

desc 'utility', 'Provides access to all the utility commands'
subcommand 'utility', UtilityCommands
map 'u' => 'utility'
Expand Down
2 changes: 1 addition & 1 deletion lib/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.8.7
0.8.8
1 change: 0 additions & 1 deletion ruby_raider.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rubocop-rspec', '~> 2.9.0'

s.add_runtime_dependency 'faraday', '~> 1.10.0'
s.add_runtime_dependency 'ruby-openai', '~> 3.5'
s.add_runtime_dependency 'thor', '~> 1.2.1'
s.add_runtime_dependency 'tty-prompt', '~> 0.23.1'
end
37 changes: 0 additions & 37 deletions spec/integration/commands/open_ai_commands_spec.rb

This file was deleted.

0 comments on commit d1760f3

Please sign in to comment.