Skip to content

Commit

Permalink
Merge branch 'master' into tester-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
ysakasin committed Jun 24, 2024
2 parents 844ed93 + 6520d34 commit b3de907
Show file tree
Hide file tree
Showing 15 changed files with 79 additions and 589 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["2.6", "2.7", "3.0", "3.1"]
ruby: ["3.0", "3.1", "3.2", "3.3"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake test
- uses: actions/checkout@v2
with:
submodules: true
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake test
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
AllCops:
TargetRubyVersion: 3.0
NewCops: disable
Exclude:
- "bcdice/**/*"
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.2
3.3.0
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 3.0.0
- `/v1` を削除
- Sinatra 4.0.0 にアップデート
- Puma 6.4.2 にアップデート
- BCDice 3.13.0 にアップデート
- Ruby 3.2, 3.3 をサポート対象に
- Ruby 2.6, 2.7 をサポート対象外に

## 2.1.1
- BCDice 3.7.0
- セキュリティアップデート: Rack
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:2.7-alpine
FROM ruby:3.3-alpine

COPY . bcdice-api/
WORKDIR bcdice-api
Expand Down
10 changes: 5 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ source 'https://rubygems.org'

gem 'bcdice', '~>3.0'

gem 'sinatra', '~>2.0'
gem 'sinatra-contrib', '~>2.0'
gem 'sinatra-jsonp', '~>0.5.0'
gem 'sinatra', '~>4.0'
gem 'sinatra-contrib', '~>4.0'

gem 'puma', '~>5.6'
gem 'puma', '~>6.4'

group :development, :test do
gem 'rack-test', '~>1.1'
gem 'rack-test', '~>2.1.0'
gem 'rackup', '~> 2.1'
gem 'rake', '~>13.0'
gem 'rubocop', '~> 1.15.0', require: false
gem 'test-unit', '~>3.3'
Expand Down
87 changes: 48 additions & 39 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,40 @@ GEM
remote: https://rubygems.org/
specs:
ast (2.4.2)
bcdice (3.7.0)
base64 (0.2.0)
bcdice (3.13.0)
i18n (~> 1.8.5)
concurrent-ruby (1.1.10)
racc (~> 1.7.3)
concurrent-ruby (1.2.3)
i18n (1.8.11)
concurrent-ruby (~> 1.0)
multi_json (1.15.0)
mustermann (2.0.2)
mustermann (3.0.0)
ruby2_keywords (~> 0.0.1)
nio4r (2.5.8)
parallel (1.22.1)
parser (3.1.2.1)
nio4r (2.7.0)
parallel (1.24.0)
parser (3.3.0.5)
ast (~> 2.4.1)
power_assert (2.0.2)
puma (5.6.5)
racc
power_assert (2.0.3)
puma (6.4.2)
nio4r (~> 2.0)
rack (2.2.4)
rack-protection (2.2.2)
rack
rack-test (1.1.0)
rack (>= 1.0, < 3)
racc (1.7.3)
rack (3.0.9)
rack-protection (4.0.0)
base64 (>= 0.1.0)
rack (>= 3.0.0, < 4)
rack-session (2.0.0)
rack (>= 3.0.0)
rack-test (2.1.0)
rack (>= 1.3)
rackup (2.1.0)
rack (>= 3)
webrick (~> 1.8)
rainbow (3.1.1)
rake (13.0.6)
regexp_parser (2.6.0)
rexml (3.2.5)
rake (13.1.0)
regexp_parser (2.9.0)
rexml (3.2.6)
rubocop (1.15.0)
parallel (~> 1.10)
parser (>= 3.0.0.0)
Expand All @@ -35,42 +45,41 @@ GEM
rubocop-ast (>= 1.5.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.23.0)
parser (>= 3.1.1.0)
ruby-progressbar (1.11.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
sinatra (2.2.2)
mustermann (~> 2.0)
rack (~> 2.2)
rack-protection (= 2.2.2)
sinatra (4.0.0)
mustermann (~> 3.0)
rack (>= 3.0.0, < 4)
rack-protection (= 4.0.0)
rack-session (>= 2.0.0, < 3)
tilt (~> 2.0)
sinatra-contrib (2.2.2)
multi_json
mustermann (~> 2.0)
rack-protection (= 2.2.2)
sinatra (= 2.2.2)
sinatra-contrib (4.0.0)
multi_json (>= 0.0.2)
mustermann (~> 3.0)
rack-protection (= 4.0.0)
sinatra (= 4.0.0)
tilt (~> 2.0)
sinatra-jsonp (0.5.0)
multi_json (~> 1.8)
sinatra (>= 1.0)
test-unit (3.5.5)
test-unit (3.6.1)
power_assert
tilt (2.0.11)
tilt (2.3.0)
tomlrb (2.0.3)
unicode-display_width (2.3.0)
unicode-display_width (2.5.0)
webrick (1.8.1)

PLATFORMS
ruby

DEPENDENCIES
bcdice (~> 3.0)
puma (~> 5.6)
rack-test (~> 1.1)
puma (~> 6.4)
rack-test (~> 2.1.0)
rackup (~> 2.1)
rake (~> 13.0)
rubocop (~> 1.15.0)
sinatra (~> 2.0)
sinatra-contrib (~> 2.0)
sinatra-jsonp (~> 0.5.0)
sinatra (~> 4.0)
sinatra-contrib (~> 4.0)
test-unit (~> 3.3)
tomlrb

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ $ APP_ENV=production bundle exec rackup -E deployment
- [Configuration](https://github.com/puma/puma#configuration)
- [設定例](https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#config)

公開サーバーとして運用する場合、 `/v1/admin` の情報を設定するようにしてください。
- [/v1/admin 設定方法](/docs/api.md#admin)
公開サーバーとして運用する場合、 `/v2/admin` の情報を設定するようにしてください。
- [/v2/admin 設定方法](/docs/api_v2.md#admin)

## API

Expand Down
2 changes: 1 addition & 1 deletion bcdice
Submodule bcdice updated 181 files
Loading

0 comments on commit b3de907

Please sign in to comment.