Skip to content

Commit 13faedb

Browse files
committed
let's trieve!
0 parents  commit 13faedb

34 files changed

+1079
-0
lines changed

.gem_release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
bump:
2+
file: lib/uptriever/version.rb
3+
skip_ci: true
4+

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: palkan
7+
8+
---
9+
10+
## What did you do?
11+
12+
## What did you expect to happen?
13+
14+
## What actually happened?
15+
16+
## Additional context
17+
18+
## Environment
19+
20+
**Ruby Version:**
21+
22+
**Framework Version (Rails, whatever):**
23+
24+
**Uptriever Version:**
25+
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: palkan
7+
8+
---
9+
10+
## Is your feature request related to a problem? Please describe.
11+
12+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
13+
14+
## Describe the solution you'd like
15+
16+
A clear and concise description of what you want to happen.
17+
18+
## Describe alternatives you've considered
19+
20+
A clear and concise description of any alternative solutions or features you've considered.
21+
22+
## Additional context
23+
24+
Add any other context or screenshots about the feature request here.
25+

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!--
2+
First of all, thanks for contributing!
3+
4+
If it's a typo fix or minor documentation update feel free to skip the rest of this template!
5+
-->
6+
7+
## What is the purpose of this pull request?
8+
9+
<!--
10+
If it's a bug fix, then link it to the issue, for example:
11+
12+
Fixes #xxx
13+
-->
14+
15+
## What changes did you make? (overview)
16+
17+
## Is there anything you'd like reviewers to focus on?
18+
19+
## Checklist
20+
21+
- [ ] I've added tests for this change
22+
- [ ] I've added a Changelog entry
23+
- [ ] I've updated a documentation
24+

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release gems
2+
on:
3+
workflow_dispatch:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
id-token: write
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0 # Fetch current tag as annotated. See https://github.com/actions/checkout/issues/290
19+
- uses: ruby/setup-ruby@v1
20+
with:
21+
ruby-version: 3.2
22+
- name: Configure RubyGems Credentials
23+
uses: rubygems/configure-rubygems-credentials@main
24+
- name: Publish to RubyGems
25+
run: |
26+
gem install gem-release
27+
gem release
28+

.github/workflows/rubocop.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Lint Ruby
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
rubocop:
11+
runs-on: ubuntu-latest
12+
env:
13+
BUNDLE_GEMFILE: gemfiles/rubocop.gemfile
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: ruby/setup-ruby@v1
17+
with:
18+
ruby-version: 3.3
19+
bundler-cache: true
20+
- name: Lint Ruby code with RuboCop
21+
run: |
22+
bundle exec rubocop
23+

.github/workflows/test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
rspec:
11+
runs-on: ubuntu-latest
12+
env:
13+
BUNDLE_JOBS: 4
14+
BUNDLE_RETRY: 3
15+
CI: true
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
ruby: ["3.0", "3.1", "3.2", "3.3"]
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: ${{ matrix.ruby }}
25+
bundler-cache: true
26+
- name: Run tests
27+
run: |
28+
bundle exec rake test

.gitignore

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Numerous always-ignore extensions
2+
*.diff
3+
*.err
4+
*.orig
5+
*.log
6+
*.rej
7+
*.swo
8+
*.swp
9+
*.vi
10+
*~
11+
*.sass-cache
12+
*.iml
13+
.idea/
14+
15+
# Sublime
16+
*.sublime-project
17+
*.sublime-workspace
18+
19+
# OS or Editor folders
20+
.DS_Store
21+
.cache
22+
.project
23+
.settings
24+
.tmproj
25+
Thumbs.db
26+
27+
.bundle/
28+
log/*.log
29+
pkg/
30+
spec/dummy/db/*.sqlite3
31+
spec/dummy/db/*.sqlite3-journal
32+
spec/dummy/tmp/
33+
34+
Gemfile.lock
35+
Gemfile.local
36+
.rspec-local
37+
.ruby-version
38+
*.gem
39+
40+
tmp/
41+
.rbnext/
42+
43+
gemfiles/*.lock
44+

.rubocop.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
require:
2+
- standard
3+
4+
inherit_gem:
5+
standard: config/base.yml
6+
7+
8+
AllCops:
9+
Exclude:
10+
- 'bin/*'
11+
- 'tmp/**/*'
12+
- 'Gemfile'
13+
- 'vendor/**/*'
14+
- 'gemfiles/**/*'
15+
- 'lib/.rbnext/**/*'
16+
- 'lib/generators/**/templates/*.rb'
17+
- '.github/**/*'
18+
DisplayCopNames: true
19+
SuggestExtensions: false
20+
NewCops: disable
21+
TargetRubyVersion: 3.1
22+
23+
Style/FrozenStringLiteralComment:
24+
Enabled: true
25+

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Change log
2+
3+
## master
4+
5+
## 0.1.0 (2024-07-24)
6+
7+
- Initial release. ([@palkan][])
8+
9+
[@palkan]: https://github.com/palkan

0 commit comments

Comments
 (0)