Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Bug Report
about: Report a bug to help improve HTTPWrapper
title: ''
labels: bug
assignees: ''
---

## Environment

- **http_wrapper version:**
- **Ruby version:**
- **OS:**

## Description

A clear description of the bug.

## Steps to Reproduce

```ruby
require 'http_wrapper'

# Minimal code to reproduce the issue
```

## Expected Behavior

What you expected to happen.

## Actual Behavior

What actually happened. Include any error messages or stack traces.
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Feature Request
about: Suggest an idea for HTTPWrapper
title: ''
labels: enhancement
assignees: ''
---

## Problem

A clear description of the problem you're trying to solve.

## Proposed Solution

Describe how you'd like it to work.

## Alternatives Considered

Any alternative solutions or workarounds you've considered.

## Additional Context

Any other context, references, or examples.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "bundler" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
19 changes: 19 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## Description

Brief description of what this PR does.

## Type of Change

- [ ] Bug fix
- [ ] New feature
- [ ] Refactoring (no behavior change)
- [ ] Documentation update
- [ ] Other: <!-- describe -->

## Checklist

- [ ] Tests pass (`bundle exec rspec`)
- [ ] RuboCop clean (`bundle exec rubocop`)
- [ ] CHANGELOG.md updated (under `[Unreleased]`)
- [ ] Documentation updated (if public API changed)
- [ ] Commit messages follow [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/)
45 changes: 45 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby_version }}
strategy:
matrix:
ruby_version: [ruby-head, '4.0', '3.4', '3.3', '3.2']

env:
COVERAGE: true

steps:
- uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
continue-on-error: ${{ matrix.ruby_version == 'ruby-head' }}

- run: bundle exec rake
continue-on-error: ${{ matrix.ruby_version == 'ruby-head' }}

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: svyatov/http_wrapper
# Only upload coverage for the latest stable Ruby version
if: ${{ matrix.ruby_version == '3.4' }}
22 changes: 12 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
*.gem
*.rbc
.bundle
.config
pkg
rdoc
tmp
.idea/
coverage/
Gemfile.lock
/.bundle/
/Gemfile.lock
/.yardoc
/_yardoc/
/coverage/
/doc/
/pkg/
/spec/reports/
/tmp/

# rspec failure tracking
.rspec_status
23 changes: 11 additions & 12 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
require:
plugins:
- 'rubocop-rspec'
- 'rubocop-performance'

AllCops:
TargetRubyVersion: 2.5
TargetRubyVersion: 3.2
NewCops: enable
SuggestExtensions: false

DisplayCopNames: true
DisplayStyleGuide: true
Expand All @@ -14,28 +16,25 @@ Layout/LineLength:

Metrics/BlockLength:
Exclude:
- 'spec/http_wrapper_spec.rb'
- 'spec/**/*'

Metrics/MethodLength:
Max: 15

Metrics/ParameterLists:
CountKeywordArgs: false

Style/Documentation:
Enabled: false

Style/NumericPredicate:
Enabled: false

Style/HashEachMethods:
Enabled: true

Style/HashTransformKeys:
Enabled: true

Style/HashTransformValues:
Enabled: true

RSpec/ExampleLength:
Enabled: false

RSpec/MultipleExpectations:
Enabled: false

RSpec/NoExpectationExample:
Enabled: false
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

Loading