Skip to content

Commit 336dcac

Browse files
author
volodymyr_stashchenk
committed
fix: release 0.2.1
0 parents  commit 336dcac

24 files changed

+1512
-0
lines changed

.github/workflows/gem-push.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: release-please
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
jobs:
12+
release-please:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: GoogleCloudPlatform/release-please-action@v2
16+
id: release
17+
with:
18+
release-type: ruby
19+
package-name: 'json_logic_ruby'
20+
version-file: "json_logic/lib/json_logic.rb"
21+
bump-minor-pre-major: true
22+
- uses: actions/checkout@v2
23+
if: ${{ steps.release.outputs.release_created }}
24+
- uses: ruby/setup-ruby@v1
25+
with:
26+
ruby-version: 3.2.2
27+
if: ${{ steps.release.outputs.release_created }}
28+
29+
# Release the gem to https://rubygems.org if a release has been created.
30+
- name: Publish gem
31+
run: |
32+
mkdir -p $HOME/.gem
33+
touch $HOME/.gem/credentials
34+
chmod 0600 $HOME/.gem/credentials
35+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
36+
gem build *.gemspec
37+
gem push *.gem
38+
env:
39+
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
40+
if: ${{ steps.release.outputs.release_created }}

.github/workflows/rubocop.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# pulled from repo
7+
name: "Rubocop"
8+
9+
on:
10+
push:
11+
branches: [ "main" ]
12+
pull_request:
13+
# The branches below must be a subset of the branches above
14+
branches: [ "main" ]
15+
16+
jobs:
17+
rubocop:
18+
runs-on: ubuntu-latest
19+
strategy:
20+
fail-fast: false
21+
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v3
25+
26+
# If running on a self-hosted runner, check it meets the requirements
27+
# listed at https://github.com/ruby/setup-ruby#using-self-hosted-runners
28+
- name: Set up Ruby
29+
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
30+
with:
31+
ruby-version: 3.2.2
32+
33+
- name: Install dependencies
34+
run: bundle install
35+
36+
- name: Rubocop run
37+
run: bundle exec rubocop

.github/workflows/ruby.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7+
8+
name: Ruby
9+
10+
on:
11+
push:
12+
branches: [ "main" ]
13+
pull_request:
14+
branches: [ "main" ]
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
test:
21+
runs-on: ubuntu-latest
22+
strategy:
23+
matrix:
24+
ruby-version: ['3.2.2']
25+
26+
steps:
27+
- uses: actions/checkout@v3
28+
- name: Set up Ruby
29+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
30+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
31+
# uses: ruby/setup-ruby@v1
32+
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
33+
with:
34+
ruby-version: ${{ matrix.ruby-version }}
35+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
36+
- name: Run tests
37+
run: bundle exec rspec

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/.bundle/
2+
/.yardoc
3+
/_yardoc/
4+
/coverage/
5+
/doc/
6+
/pkg/
7+
/spec/reports/
8+
/tmp/

.rspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--format documentation
2+
--color
3+
--require spec_helper

.rubocop.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
require:
2+
- rubocop-rspec
3+
4+
AllCops:
5+
SuggestExtensions: true
6+
NewCops: enable
7+
8+
Metrics/BlockLength:
9+
Exclude:
10+
- 'spec/**/*'
11+
Style/Documentation:
12+
Enabled: false
13+
14+
# RSpec cops
15+
RSpec/MultipleExpectations:
16+
Enabled: false
17+
RSpec/ExampleLength:
18+
Enabled: false
19+
RSpec/NestedGroups:
20+
Enabled: false

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changelog
2+
3+
## 0.2.1 (2023-11-23)
4+
5+
6+
### Bug Fixes
7+
8+
* Readme ([bc6af33](https://www.github.com/useful-libs/json_logic/commit/bc6af3351a07a82cf3b88e73785acbbb08d3bff0))

CODE_OF_CONDUCT.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8+
9+
## Our Standards
10+
11+
Examples of behavior that contributes to a positive environment for our community include:
12+
13+
* Demonstrating empathy and kindness toward other people
14+
* Being respectful of differing opinions, viewpoints, and experiences
15+
* Giving and gracefully accepting constructive feedback
16+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17+
* Focusing on what is best not just for us as individuals, but for the overall community
18+
19+
Examples of unacceptable behavior include:
20+
21+
* The use of sexualized language or imagery, and sexual attention or
22+
advances of any kind
23+
* Trolling, insulting or derogatory comments, and personal or political attacks
24+
* Public or private harassment
25+
* Publishing others' private information, such as a physical or email
26+
address, without their explicit permission
27+
* Other conduct which could reasonably be considered inappropriate in a
28+
professional setting
29+
30+
## Enforcement Responsibilities
31+
32+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33+
34+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35+
36+
## Scope
37+
38+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39+
40+
## Enforcement
41+
42+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement. All complaints will be reviewed and investigated promptly and fairly.
43+
44+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45+
46+
## Enforcement Guidelines
47+
48+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49+
50+
### 1. Correction
51+
52+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53+
54+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55+
56+
### 2. Warning
57+
58+
**Community Impact**: A violation through a single incident or series of actions.
59+
60+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61+
62+
### 3. Temporary Ban
63+
64+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65+
66+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67+
68+
### 4. Permanent Ban
69+
70+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71+
72+
**Consequence**: A permanent ban from any sort of public interaction within the community.
73+
74+
## Attribution
75+
76+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77+
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78+
79+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80+
81+
[homepage]: https://www.contributor-covenant.org
82+
83+
For answers to common questions about this code of conduct, see the FAQ at
84+
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.

Gemfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# frozen_string_literal: true
2+
3+
source 'https://rubygems.org'
4+
5+
# Specify your gem's dependencies in json-logic.gemspec
6+
gemspec
7+
8+
gem 'activesupport'
9+
10+
group 'development' do
11+
gem 'rubocop', '~> 1.57'
12+
gem 'rubocop-rspec'
13+
end
14+
15+
group :test do
16+
gem 'rspec'
17+
end

Gemfile.lock

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
PATH
2+
remote: .
3+
specs:
4+
json_logic_ruby (0.2.1)
5+
activesupport (~> 7.0)
6+
7+
GEM
8+
remote: https://rubygems.org/
9+
specs:
10+
activesupport (7.1.1)
11+
base64
12+
bigdecimal
13+
concurrent-ruby (~> 1.0, >= 1.0.2)
14+
connection_pool (>= 2.2.5)
15+
drb
16+
i18n (>= 1.6, < 2)
17+
minitest (>= 5.1)
18+
mutex_m
19+
tzinfo (~> 2.0)
20+
ast (2.4.2)
21+
base64 (0.1.1)
22+
bigdecimal (3.1.4)
23+
concurrent-ruby (1.2.2)
24+
connection_pool (2.4.1)
25+
diff-lcs (1.5.0)
26+
drb (2.1.1)
27+
ruby2_keywords
28+
i18n (1.14.1)
29+
concurrent-ruby (~> 1.0)
30+
json (2.6.3)
31+
language_server-protocol (3.17.0.3)
32+
minitest (5.20.0)
33+
mutex_m (0.1.2)
34+
parallel (1.23.0)
35+
parser (3.2.2.4)
36+
ast (~> 2.4.1)
37+
racc
38+
racc (1.7.3)
39+
rainbow (3.1.1)
40+
regexp_parser (2.8.2)
41+
rexml (3.2.6)
42+
rspec (3.12.0)
43+
rspec-core (~> 3.12.0)
44+
rspec-expectations (~> 3.12.0)
45+
rspec-mocks (~> 3.12.0)
46+
rspec-core (3.12.2)
47+
rspec-support (~> 3.12.0)
48+
rspec-expectations (3.12.3)
49+
diff-lcs (>= 1.2.0, < 2.0)
50+
rspec-support (~> 3.12.0)
51+
rspec-mocks (3.12.6)
52+
diff-lcs (>= 1.2.0, < 2.0)
53+
rspec-support (~> 3.12.0)
54+
rspec-support (3.12.1)
55+
rubocop (1.57.2)
56+
json (~> 2.3)
57+
language_server-protocol (>= 3.17.0)
58+
parallel (~> 1.10)
59+
parser (>= 3.2.2.4)
60+
rainbow (>= 2.2.2, < 4.0)
61+
regexp_parser (>= 1.8, < 3.0)
62+
rexml (>= 3.2.5, < 4.0)
63+
rubocop-ast (>= 1.28.1, < 2.0)
64+
ruby-progressbar (~> 1.7)
65+
unicode-display_width (>= 2.4.0, < 3.0)
66+
rubocop-ast (1.30.0)
67+
parser (>= 3.2.1.0)
68+
rubocop-capybara (2.19.0)
69+
rubocop (~> 1.41)
70+
rubocop-factory_bot (2.24.0)
71+
rubocop (~> 1.33)
72+
rubocop-rspec (2.25.0)
73+
rubocop (~> 1.40)
74+
rubocop-capybara (~> 2.17)
75+
rubocop-factory_bot (~> 2.22)
76+
ruby-progressbar (1.13.0)
77+
ruby2_keywords (0.0.5)
78+
tzinfo (2.0.6)
79+
concurrent-ruby (~> 1.0)
80+
unicode-display_width (2.5.0)
81+
82+
PLATFORMS
83+
x86_64-darwin-22
84+
x86_64-linux
85+
86+
DEPENDENCIES
87+
activesupport
88+
json_logic_ruby!
89+
rspec
90+
rubocop (~> 1.57)
91+
rubocop-rspec
92+
93+
BUNDLED WITH
94+
2.4.20

0 commit comments

Comments
 (0)