Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

Commit

Permalink
rename botway ruby client package to bwrb
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx committed Sep 17, 2022
1 parent 25754fc commit 66b1d33
Show file tree
Hide file tree
Showing 18 changed files with 26 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ updates:
- abdfnx

- package-ecosystem: "bundler"
directory: "/packages/botwayrb"
directory: "/packages/bwrb"
schedule:
interval: "daily"
reviewers:
Expand Down
8 changes: 8 additions & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,11 @@ tasks:
cmds:
- '{{if eq OS "windows"}}if (Test-Path "botway.json") { Remove-Item -Path botway.json -Recurse -Force }{{else}}if [ -f "botway.json" ]; then rm botway.json; fi{{end}}'
- cp '{{fromSlash "./dist/botway.json"}}' .

botway-py-upload:
dir: ./packages/botway.py
cmds:
- '{{if eq OS "windows"}}python -m build{{else}}python3 -m build{{end}}'
- '{{if eq OS "windows"}}python -m twine check dist/*{{else}}python3 -m twine check dist/*{{end}}'
- '{{if eq OS "windows"}}python -m twine upload dist/*{{else}}python3 -m twine upload dist/*{{end}}'
- '{{if eq OS "windows"}}Remove-Item -Path dist *.egg-info -Recurse -Force{{else}}rm -rf dist *.egg-info{{end}}'
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/botwayrb/Gemfile → packages/bwrb/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source "https://rubygems.org"

gemspec name: "botwayrb"
gemspec name: "bwrb"

gem "rake", "~> 13.0"
gem "rspec", "~> 3.0"
Expand Down
File renamed without changes.
16 changes: 8 additions & 8 deletions packages/botwayrb/README.md → packages/bwrb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@

### With Bundler

Using [Bundler](https://bundler.io/#getting-started), you can add botwayrb to your Gemfile:
Using [Bundler](https://bundler.io/#getting-started), you can add bwrb to your Gemfile:

gem "botwayrb"
gem "bwrb"

And then install via `bundle install`.

### With Gem

Alternatively, while Bundler is the recommended option, you can also install botwayrb without it.
Alternatively, while Bundler is the recommended option, you can also install bwrb without it.

#### Linux / macOS

gem install botwayrb
gem install bwrb

#### Windows

> **Make sure you have the DevKit installed! See the [Dependencies](https://github.com/shardlab/botwayrb#dependencies) section)**
gem install botwayrb --platform=ruby
> **Make sure you have the DevKit installed!**
gem install bwrb --platform=ruby

```ruby
gem "botwayrb"
gem "bwrb"
```

## Usage
Expand All @@ -40,7 +40,7 @@ gem "botwayrb"
```ruby
require "discordrb"
require "botwayrb"
require "bwrb"

bw = Botwayrb::Core.new
bot = Discordrb::Bot.new token: bw.get_token
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

require "bundler/setup"
require "botwayrb"
require "bwrb"

# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# frozen_string_literal: true

require_relative "lib/botwayrb/version"
require_relative "lib/bwrb/version"

Gem::Specification.new do |spec|
spec.name = "botwayrb"
spec.name = "bwrb"
spec.version = Botwayrb::VERSION
spec.authors = ["abdfnx"]

Expand All @@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = "https://rubygems.org/gems/botwayrb"
spec.metadata["source_code_uri"] = "https://rubygems.org/gems/bwrb"
spec.metadata["changelog_uri"] = "https://github.com/abdfnx/botway/main/CHANGELOG.md"

spec.files = Dir.chdir(File.expand_path(__dir__)) do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require_relative "botwayrb/version"
require_relative "bwrb/version"
require "yaml"
require "json"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require "botwayrb"
require "bwrb"

RSpec.configure do |config|
# Enable flags like --only-failures and --next-failure
Expand Down
2 changes: 1 addition & 1 deletion templates/discord/ruby/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ You can add a folder to your '$LOAD_PAT'H either at runtime or via the -I comman
log.Printf("error: %v\n", err)
}

bundleAddBotwayrb := bundlePath + " add botwayrb"
bundleAddBotwayrb := bundlePath + " add bwrb"

addBotwayCmd := exec.Command("bash", "-c", bundleAddBotwayrb)

Expand Down
2 changes: 1 addition & 1 deletion templates/telegram/ruby/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func TelegramRuby(botName string) {
log.Printf("error: %v\n", err)
}

bundleAdd := bundlePath + " add telegram-bot-ruby botwayrb"
bundleAdd := bundlePath + " add telegram-bot-ruby bwrb"

addCmd := exec.Command("bash", "-c", bundleAdd)

Expand Down

0 comments on commit 66b1d33

Please sign in to comment.