Skip to content

Commit f328bfd

Browse files
authored
Merge pull request #89 from Sija/develop
v1.9.3
2 parents de91bb3 + dd6167f commit f328bfd

18 files changed

+62
-68
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
# Maintain dependencies for GitHub Actions
4+
- package-ecosystem: github-actions
5+
directory: /
6+
schedule:
7+
interval: daily

.github/workflows/ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,27 @@ jobs:
1717

1818
steps:
1919
- name: Install Crystal
20-
uses: oprypin/install-crystal@v1
20+
uses: crystal-lang/install-crystal@v1
2121
with:
2222
crystal: ${{ matrix.crystal }}
2323

2424
- name: Download source
25-
uses: actions/checkout@v2
25+
uses: actions/checkout@v3
2626

2727
- name: Install dependencies
2828
run: shards install
29-
env:
30-
SHARDS_OPTS: --ignore-crystal-version
3129

3230
- name: Run specs
33-
run: |
34-
crystal spec
35-
crystal spec --no-debug
31+
run: crystal spec
32+
33+
- name: Run specs (no-debug)
34+
run: crystal spec --no-debug
3635

3736
- name: Run specs (release)
38-
run: |
39-
crystal spec --release
40-
crystal spec --release --no-debug
37+
run: crystal spec --release
38+
39+
- name: Run specs (release, no-debug)
40+
run: crystal spec --release --no-debug
4141

4242
- name: Build crash handler
4343
run: shards build crash_handler

.github/workflows/docs.yml

Lines changed: 14 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4,52 +4,33 @@ on:
44
push:
55
branches: [master]
66

7+
permissions:
8+
contents: write
9+
710
jobs:
8-
build:
11+
build-and-deploy:
912
runs-on: ubuntu-latest
1013
steps:
1114
- name: Inject slug/short variables
12-
uses: rlespinasse/github-slug-action@v3.x
15+
uses: rlespinasse/github-slug-action@v4
1316

1417
- name: Install Crystal
15-
uses: oprypin/install-crystal@v1
18+
uses: crystal-lang/install-crystal@v1
1619

1720
- name: Download source
18-
uses: actions/checkout@v2
19-
with:
20-
persist-credentials: false
21+
uses: actions/checkout@v3
2122

2223
- name: Install dependencies
2324
run: shards install
24-
env:
25-
SHARDS_OPTS: --ignore-crystal-version
2625

2726
- name: Build docs
28-
run: |
29-
sed -i -e 's:<.*>::g' README.md
30-
crystal docs src/raven.cr --project-version="${{ env.GITHUB_REF_SLUG }}" --source-refname="${{ env.GITHUB_SHA_SHORT }}"
31-
32-
- name: Upload artifacts
33-
uses: actions/upload-artifact@v2
34-
with:
35-
name: docs
36-
path: docs
37-
38-
deploy:
39-
needs: build
40-
runs-on: ubuntu-latest
41-
steps:
42-
- name: Download artifacts
43-
uses: actions/download-artifact@v2
44-
with:
45-
name: docs
46-
path: docs
27+
run: crystal docs src/raven.cr --project-version="${{ env.GITHUB_REF_SLUG }}" --source-refname="${{ env.GITHUB_SHA_SHORT }}"
4728

4829
- name: Deploy docs 🚀
49-
uses: JamesIves/github-pages-deploy-action@3.7.1
30+
uses: JamesIves/github-pages-deploy-action@v4
5031
with:
51-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52-
BRANCH: gh-pages
53-
FOLDER: docs
54-
CLEAN: true
55-
CLEAN_EXCLUDE: '["img"]'
32+
branch: gh-pages
33+
folder: docs
34+
clean: true
35+
clean-exclude: |
36+
img

shard.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: raven
2-
version: 1.9.2
2+
version: 1.9.3
33

44
authors:
55
- Sijawusz Pur Rahnama <[email protected]>
@@ -15,15 +15,15 @@ dependencies:
1515
development_dependencies:
1616
timecop:
1717
github: crystal-community/timecop.cr
18-
version: ~> 0.4.0
18+
version: ~> 0.5.0
1919
ameba:
2020
github: crystal-ameba/ameba
21-
version: ~> 1.0.0
21+
version: ~> 1.4.0
2222

2323
targets:
2424
crash_handler:
2525
main: src/crash_handler.cr
2626

27-
crystal: ">= 0.35.0"
27+
crystal: ~> 1.6
2828

2929
license: MIT

spec/raven/breadcrumb_buffer_spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require "../spec_helper"
22

3-
private def with_breadcrumb_buffer
3+
private def with_breadcrumb_buffer(&)
44
breadcrumbs = Raven::BreadcrumbBuffer.new(10)
55
yield breadcrumbs
66
end

spec/raven/client_spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ private class ClientTest < Raven::Client
1010
end
1111
end
1212

13-
private def with_client
13+
private def with_client(&)
1414
yield ClientTest.new(build_configuration)
1515
end
1616

spec/raven/client_state_spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require "../spec_helper"
22
require "timecop"
33

4-
private def with_client_state
4+
private def with_client_state(&)
55
yield Raven::Client::State.new
66
end
77

spec/raven/configuration_spec.cr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ private class RandomSampleFail < Random::PCG32
1212
end
1313
end
1414

15-
private def with_configuration
15+
private def with_configuration(&)
1616
with_clean_env do
1717
yield Raven::Configuration.new
1818
end
1919
end
2020

21-
private def with_configuration_with_dsn
21+
private def with_configuration_with_dsn(&)
2222
with_configuration do |configuration|
2323
configuration.dsn = "http://12345:[email protected]:3000/sentry/42"
2424
yield configuration

spec/raven/event_spec.cr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module Raven::Test
44
class Exception < ::Exception; end
55
end
66

7-
private def with_event(clear = true, **opts)
7+
private def with_event(clear = true, **opts, &)
88
if clear
99
Raven::Context.clear!
1010
Raven::BreadcrumbBuffer.clear!
@@ -13,7 +13,7 @@ private def with_event(clear = true, **opts)
1313
yield event
1414
end
1515

16-
private def with_event_hash(**opts)
16+
private def with_event_hash(**opts, &)
1717
with_event(**opts) do |event|
1818
yield event.to_hash
1919
end

spec/raven/instance_spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ private class InstanceTest < Raven::Instance
1616
end
1717
end
1818

19-
private def with_instance(context = nil)
19+
private def with_instance(context = nil, &)
2020
yield InstanceTest.new(context, build_configuration)
2121
end
2222

0 commit comments

Comments
 (0)