mutils 1.3.3 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/ISSUE_TEMPLATE/bug_report.md +33 -28
- data/.github/ISSUE_TEMPLATE/documentation_issue.md +29 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +31 -14
- data/.github/ISSUE_TEMPLATE/question_or_help.md +25 -0
- data/.github/ISSUE_TEMPLATE/report_a_security_vulnerability.md +74 -0
- data/.github/ISSUE_TEMPLATE/translations.md +51 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +38 -9
- data/.github/dependabot.yml +3 -2
- data/.github/release-drafter.yml +148 -0
- data/.github/workflows/ci.yml +45 -0
- data/.github/workflows/codeql.yml +31 -33
- data/.github/workflows/release-drafter.yml +27 -0
- data/.github/workflows/release.yml +43 -0
- data/.rubocop.yml +11 -6
- data/.ruby-version +1 -0
- data/CHANGELOG.md +26 -0
- data/Gemfile +7 -5
- data/Gemfile.lock +48 -36
- data/Version +1 -1
- data/bin/rspec +27 -0
- data/bin/rubocop +27 -0
- data/lib/mutils/serialization/methods/attributes.rb +3 -1
- data/lib/mutils/serialization/methods/relations.rb +3 -1
- data/lib/mutils/serialization/results/relations.rb +9 -5
- data/lib/mutils/version.rb +1 -2
- data/mutils.gemspec +3 -3
- metadata +18 -18
- data/.github/CONTRIBUTING.md +0 -30
- data/.github/ISSUE_TEMPLATE.md +0 -32
- data/.github/workflows/create-release.yml +0 -29
- data/.github/workflows/master.yml +0 -33
- data/.github/workflows/publish-gem.yml +0 -44
- data/.github/workflows/test.yml +0 -32
- data/.rubocop_todo.yml +0 -49
- data/commitlint.config.js +0 -1
- data/gemdeploy.sh +0 -10
data/.github/ISSUE_TEMPLATE.md
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
Issue tracker is **ONLY** used for reporting bugs. New features should be discussed on our slack channel. Please use [stackoverflow](https://stackoverflow.com) for supporting issues.
|
2
|
-
|
3
|
-
<!--- Provide a general summary of the issue in the Title above -->
|
4
|
-
|
5
|
-
## Expected Behavior
|
6
|
-
<!--- Tell us what should happen -->
|
7
|
-
|
8
|
-
## Current Behavior
|
9
|
-
<!--- Tell us what happens instead of the expected behavior -->
|
10
|
-
|
11
|
-
## Possible Solution
|
12
|
-
<!--- Not obligatory, but suggest a fix/reason for the bug, -->
|
13
|
-
|
14
|
-
## Steps to Reproduce
|
15
|
-
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
|
16
|
-
<!--- reproduce this bug. Include code to reproduce, if relevant -->
|
17
|
-
1.
|
18
|
-
2.
|
19
|
-
3.
|
20
|
-
4.
|
21
|
-
|
22
|
-
## Context (Environment)
|
23
|
-
<!--- How has this issue affected you? What are you trying to accomplish? -->
|
24
|
-
<!--- Providing context helps us come up with a solution that is most useful in the real world -->
|
25
|
-
|
26
|
-
<!--- Provide a general summary of the issue in the Title above -->
|
27
|
-
|
28
|
-
## Detailed Description
|
29
|
-
<!--- Provide a detailed description of the change or addition you are proposing -->
|
30
|
-
|
31
|
-
## Possible Implementation
|
32
|
-
<!--- Not obligatory, but suggest an idea for implementing addition or change -->
|
@@ -1,29 +0,0 @@
|
|
1
|
-
name: Create Release
|
2
|
-
on:
|
3
|
-
workflow_dispatch:
|
4
|
-
jobs:
|
5
|
-
create_release:
|
6
|
-
name: Create Release
|
7
|
-
runs-on: ubuntu-latest
|
8
|
-
steps:
|
9
|
-
- uses: actions/checkout@v3
|
10
|
-
- name: Use Node.js
|
11
|
-
uses: actions/setup-node@v1
|
12
|
-
with:
|
13
|
-
node-version: 20.x
|
14
|
-
- uses: ruby/setup-ruby@v1
|
15
|
-
with:
|
16
|
-
ruby-version: 3.0
|
17
|
-
bundler-cache: true
|
18
|
-
- name: Run Rubocop
|
19
|
-
run: bundle exec rubocop lib
|
20
|
-
- name: Run Test
|
21
|
-
run: bundle exec rspec
|
22
|
-
- name: Publish
|
23
|
-
env:
|
24
|
-
RUBYGEMS_AUTH_TOKEN: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
|
25
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
26
|
-
run: |
|
27
|
-
npm install -g @commitlint/cli @commitlint/config-angular @semantic-release/changelog @semantic-release/exec
|
28
|
-
npm install -g @semantic-release/git @semantic-release/github semantic-release
|
29
|
-
npx semantic-release
|
@@ -1,33 +0,0 @@
|
|
1
|
-
name: Test Master
|
2
|
-
on:
|
3
|
-
push:
|
4
|
-
branches: [master]
|
5
|
-
merge_group:
|
6
|
-
jobs:
|
7
|
-
testing:
|
8
|
-
runs-on: ubuntu-latest
|
9
|
-
strategy:
|
10
|
-
matrix:
|
11
|
-
ruby:
|
12
|
-
- "3.3"
|
13
|
-
- "3.2"
|
14
|
-
- "3.1"
|
15
|
-
- "3.0"
|
16
|
-
include:
|
17
|
-
- ruby: "3.0"
|
18
|
-
coverage: "true"
|
19
|
-
name: Test with ruby ${{ matrix.ruby }}
|
20
|
-
steps:
|
21
|
-
- uses: actions/checkout@v3
|
22
|
-
- uses: ruby/setup-ruby@v1
|
23
|
-
with:
|
24
|
-
ruby-version: ${{ matrix.ruby }}
|
25
|
-
bundler-cache: true
|
26
|
-
- name: Run Rubocop
|
27
|
-
run: bundle exec rubocop lib
|
28
|
-
- name: Run Test
|
29
|
-
run: bundle exec rspec
|
30
|
-
- name: Coveralls
|
31
|
-
uses: coverallsapp/github-action@master
|
32
|
-
with:
|
33
|
-
github-token: ${{ secrets.GITHUB_TOKEN }}
|
@@ -1,44 +0,0 @@
|
|
1
|
-
name: Publish Gem (Manual)
|
2
|
-
on:
|
3
|
-
workflow_dispatch:
|
4
|
-
inputs:
|
5
|
-
release_password:
|
6
|
-
description: "Enter Release Password"
|
7
|
-
required: true
|
8
|
-
default: ""
|
9
|
-
jobs:
|
10
|
-
release:
|
11
|
-
runs-on: ubuntu-20.04
|
12
|
-
name: Publish Gem
|
13
|
-
steps:
|
14
|
-
- name: Set ENV
|
15
|
-
run: |
|
16
|
-
echo "release password: ${{secrets.RELEASE_PASSWORD}}"
|
17
|
-
echo "release_password=${{secrets.RELEASE_PASSWORD}}" >> $GITHUB_ENV
|
18
|
-
- name: Checkout
|
19
|
-
if: github.event.inputs.release_password == env.release_password
|
20
|
-
uses: actions/checkout@v3
|
21
|
-
- uses: ruby/setup-ruby@v1
|
22
|
-
if: github.event.inputs.release_password == env.release_password
|
23
|
-
with:
|
24
|
-
ruby-version: 3.0
|
25
|
-
bundler-cache: true
|
26
|
-
- name: Run Rubocop
|
27
|
-
if: github.event.inputs.release_password == env.release_password
|
28
|
-
run: bundle exec rubocop lib
|
29
|
-
- name: Run Test
|
30
|
-
if: github.event.inputs.release_password == env.release_password
|
31
|
-
run: bundle exec rspec
|
32
|
-
- name: Publish
|
33
|
-
if: github.event.inputs.release_password == env.release_password
|
34
|
-
env:
|
35
|
-
RUBYGEMS_AUTH_TOKEN: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
|
36
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
37
|
-
run: |
|
38
|
-
mkdir -p $HOME/.gem
|
39
|
-
touch $HOME/.gem/credentials
|
40
|
-
chmod 0600 $HOME/.gem/credentials
|
41
|
-
printf -- "---\n:rubygems_api_key: ${RUBYGEMS_AUTH_TOKEN}\n" > $HOME/.gem/credentials
|
42
|
-
gem build *.gemspec
|
43
|
-
gem push *.gem
|
44
|
-
|
data/.github/workflows/test.yml
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
name: Pull Requests
|
2
|
-
on:
|
3
|
-
pull_request:
|
4
|
-
branches: ["master"]
|
5
|
-
jobs:
|
6
|
-
testing:
|
7
|
-
runs-on: ubuntu-latest
|
8
|
-
strategy:
|
9
|
-
matrix:
|
10
|
-
ruby:
|
11
|
-
- "3.3"
|
12
|
-
- "3.2"
|
13
|
-
- "3.1"
|
14
|
-
- "3.0"
|
15
|
-
include:
|
16
|
-
- ruby: "3.2"
|
17
|
-
coverage: "true"
|
18
|
-
name: Test with ruby ${{ matrix.ruby }}
|
19
|
-
steps:
|
20
|
-
- uses: actions/checkout@v3
|
21
|
-
- uses: ruby/setup-ruby@v1
|
22
|
-
with:
|
23
|
-
ruby-version: ${{ matrix.ruby }}
|
24
|
-
bundler-cache: true
|
25
|
-
- name: Run Rubocop
|
26
|
-
run: bundle exec rubocop lib
|
27
|
-
- name: Run Test
|
28
|
-
run: bundle exec rspec
|
29
|
-
- name: Coveralls
|
30
|
-
uses: coverallsapp/github-action@master
|
31
|
-
with:
|
32
|
-
github-token: ${{ secrets.GITHUB_TOKEN }}
|
data/.rubocop_todo.yml
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
# on 2019-11-25 04:01:32 +0800 using RuboCop version 0.76.0.
|
4
|
-
# The point is for the user to remove these configuration records
|
5
|
-
# one by one as the offenses are removed from the code base.
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
8
|
-
|
9
|
-
# Offense count: 2
|
10
|
-
# Configuration parameters: CountComments, ExcludedMethods.
|
11
|
-
# ExcludedMethods: refine
|
12
|
-
Metrics/BlockLength:
|
13
|
-
Max: 42
|
14
|
-
|
15
|
-
# Offense count: 1
|
16
|
-
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
|
17
|
-
# NamePrefix: is_, has_, have_
|
18
|
-
# NamePrefixBlacklist: is_, has_, have_
|
19
|
-
# NameWhitelist: is_a?
|
20
|
-
# MethodDefinitionMacros: define_method, define_singleton_method
|
21
|
-
Naming/PredicateName:
|
22
|
-
Exclude:
|
23
|
-
- 'spec/**/*'
|
24
|
-
- 'lib/mutils/serialization/serialization_methods.rb'
|
25
|
-
|
26
|
-
# Offense count: 1
|
27
|
-
# Cop supports --auto-correct.
|
28
|
-
Style/RescueModifier:
|
29
|
-
Exclude:
|
30
|
-
- 'lib/mutils/serialization/serialization_methods.rb'
|
31
|
-
|
32
|
-
# Offense count: 17
|
33
|
-
# Cop supports --auto-correct.
|
34
|
-
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
35
|
-
# URISchemes: http, https
|
36
|
-
Layout/LineLength:
|
37
|
-
Max: 608
|
38
|
-
Metrics/MethodLength:
|
39
|
-
Max: 20
|
40
|
-
Metrics/PerceivedComplexity:
|
41
|
-
Max: 7
|
42
|
-
Metrics/AbcSize:
|
43
|
-
Max: 22
|
44
|
-
Style/HashEachMethods:
|
45
|
-
Enabled: false
|
46
|
-
Style/HashTransformKeys:
|
47
|
-
Enabled: false
|
48
|
-
Style/HashTransformValues:
|
49
|
-
Enabled: false
|
data/commitlint.config.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
module.exports = {extends: ['@commitlint/config-angular']};
|
data/gemdeploy.sh
DELETED