Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
4fe430f
Refactor Gemfile to organize dependencies into development;
Dakad Apr 12, 2025
b2a2ecf
Rename yard-sketchup.gemspec to yard-apptweak-template.rb
Dakad Apr 12, 2025
595fc33
Rename lib/yard-sketchup/ to lib/yard-apptweak-template
Dakad Apr 12, 2025
4441fe1
Refactor module names from SketchUpYARD to ApptweakTemplateYARD for c…
Dakad Apr 12, 2025
ca16385
Run `rubocop --autocorrect` on the repo files
Dakad Apr 12, 2025
f921a07
Add EditorConfig, RuboCop, and Lefthook configurations files.
Dakad Apr 12, 2025
d3e3656
Update .gitignore to include additional files and directories for bet…
Dakad Apr 12, 2025
6f62261
Add yard-apptweak-template.gemspec
Dakad Apr 12, 2025
07ec0a3
Add new bin scripts for release and setup of gem
Dakad Apr 12, 2025
538b3c5
Add GitHub workflows and CODEOWNERS file
Dakad Apr 12, 2025
d05b993
Update README.md for
Dakad Apr 12, 2025
18a85bd
Update RuboCop configuration and run `rubocop --autocorrect` again
Dakad Apr 12, 2025
f381dcc
TMP disable CODEOWNERS to apply PR #1
Dakad Apr 12, 2025
963ea58
Bump yard-apptweak-template to 1.6.0.beta.1
Dakad Apr 12, 2025
a7bd517
Add error handling and rollback functionality to ReleaseManager
Dakad Apr 12, 2025
38ed4f4
Refine ReleaseManager behavior for not opening GitHub release page on…
Dakad Apr 13, 2025
0a553c8
Bump yard-apptweak-template to 1.6.0.beta.2
Dakad Apr 13, 2025
9f2e1df
Refined error handling for pushing to origin and opening the GitHub r…
Dakad Apr 13, 2025
704b5b5
Revert "Bump yard-apptweak-template to 1.6.0.beta.2"
Dakad Apr 13, 2025
6fc1229
Bump yard-apptweak-template to 1.6.0.beta.2
Dakad Apr 13, 2025
f60f5d7
Enhance ReleaseManager documentation and functionality
Dakad Apr 13, 2025
9a5eef9
Rename file according to rubocop style
Dakad Apr 13, 2025
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
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
Expand Down
6 changes: 6 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Each line is a file pattern followed by one or more owners.

# These owners will be the default owners for everything in
# the repo. Unless a later match takes precedence,
# they will be requested for
# review when someone opens a pull request.
18 changes: 18 additions & 0 deletions .github/workflows/pronto-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Pronto
on:
pull_request:
types: [opened, synchronize]
jobs:
pronto:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 150
- run: git fetch origin main --depth=100
- uses: apptweak/pronto-ruby@use_head_commit
with:
target: origin/main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20 changes: 20 additions & 0 deletions .github/workflows/release-gem.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish gem from pushed tags
on:
push:
tags:
# any tag names starting with 'v'
- 'v*'
jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
ruby:
- '3.3'

steps:
- uses: actions/checkout@v4
- name: Gems release
uses: apptweak/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
56 changes: 50 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,51 @@
# Ignore generated files.
.yardoc/
doc/

# Ignore gem related files.
Gemfile\.lock
*.gem
*.rbc
/.config
/coverage/
/InstalledFiles
/pkg/
/spec/reports/
/spec/examples.txt
/test/tmp/
/test/version_tmp/
/tmp/
/log
*.DS_Store

# Used by dotenv library to load environment variables.
.env
.env.*
!.env.template
!.env.test

# Ignore Byebug command history file.
.byebug_history

## Specific to vscode:
/.vscode/
.rest

## Documentation cache and generated files:
/.yardoc/
/_yardoc/
/doc/
/rdoc/

## Environment normalization:
/.bundle/
/vendor/bundle
/lib/bundler/man/

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc

# Used by RuboCop. Remote config files pulled in from inherit_from directive.
.rubocop-https?--*

swagger_doc_swagger_doc.json

# specific to RubyMine
/.idea/*

# asdf version manager
/.tool-versions
5 changes: 5 additions & 0 deletions .lefthook/pre-commit/pronto-in-main
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
branch="$(git rev-parse --abbrev-ref HEAD)"
if [ "$branch" = "main" ]; then
bundle exec pronto run --staged --exit-code
fi
1 change: 1 addition & 0 deletions .pronto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
default_commit: "origin/main"
9 changes: 9 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This gist contains the config for rubocop-performance >1.11 / rubocop >1.22, for ruby 3.0: https://gist.github.com/apptweak-ci/2aca83afffbcbe0c0bca2beaab1500c0
inherit_from: https://gist.githubusercontent.com/apptweak-ci/2aca83afffbcbe0c0bca2beaab1500c0/raw/.rubocop.yml

require:
- rubocop-rake
- rubocop-yard

Gemspec/RequireMFA:
Enabled: false
29 changes: 22 additions & 7 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,30 @@
# frozen_string_literal: true

source 'https://rubygems.org'
source "https://rubygems.org"

git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }

# Specify your gem's dependencies in yard-apptweak-template.gemspec
gemspec

gem 'rake', '~> 12.0', require: false
gem "rake", "~> 12.0", require: false

group :tools do
gem 'colorize', '~> 0.0', require: false
gem 'git', '~> 1.3', require: false
gem 'git_diff_parser', '~> 2.3', require: false
gem 'thor', '~> 0.19', require: false
group :development do
# For running checks in git
gem "pronto", "~> 0.11.1", require: false
gem "pronto-rubocop", require: false

gem "base64"
gem "lefthook", "~> 1.8", require: false
gem "rubocop", "~> 1.68", require: false
gem "rubocop-performance", "~> 1.22", require: false
gem "rubocop-rake", "~> 0.6", require: false
gem "rubocop-yard", "~> 0.9", require: false
end

group :tools do
gem "colorize", "~> 0.0", require: false
gem "git", "~> 1.3", require: false
gem "git_diff_parser", "~> 2.3", require: false
gem "thor", "~> 0.19", require: false
end
131 changes: 131 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
PATH
remote: .
specs:
yard-apptweak-template (1.6.0.beta.2)
rouge (~> 3.26)
yard (~> 0.9.37)

GEM
remote: https://rubygems.org/
specs:
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
ast (2.4.3)
base64 (0.2.0)
bigdecimal (3.1.9)
colorize (0.8.1)
csv (3.3.3)
faraday (2.13.0)
faraday-net_http (>= 2.0, < 3.5)
json
logger
faraday-net_http (3.4.0)
net-http (>= 0.5.0)
git (1.19.1)
addressable (~> 2.8)
rchardet (~> 1.8)
git_diff_parser (2.3.0)
gitlab (4.20.1)
httparty (~> 0.20)
terminal-table (>= 1.5.1)
httparty (0.23.1)
csv
mini_mime (>= 1.0.0)
multi_xml (>= 0.5.2)
json (2.10.2)
language_server-protocol (3.17.0.4)
lefthook (1.11.9)
lint_roller (1.1.0)
logger (1.7.0)
mini_mime (1.1.5)
multi_xml (0.7.1)
bigdecimal (~> 3.1)
net-http (0.6.0)
uri
octokit (9.2.0)
faraday (>= 1, < 3)
sawyer (~> 0.9)
parallel (1.26.3)
parser (3.3.7.4)
ast (~> 2.4.1)
racc
prism (1.4.0)
pronto (0.11.3)
gitlab (>= 4.4.0, < 5.0)
httparty (>= 0.13.7, < 1.0)
octokit (>= 4.7.0, < 10.0)
rainbow (>= 2.2, < 4.0)
rexml (>= 3.2.5, < 4.0)
rugged (>= 0.23.0, < 2.0)
thor (>= 0.20.3, < 2.0)
pronto-rubocop (0.11.6)
pronto (~> 0.11.0)
rubocop (>= 0.63.1, < 2.0)
public_suffix (6.0.1)
racc (1.8.1)
rainbow (3.1.1)
rake (12.3.3)
rchardet (1.9.0)
regexp_parser (2.10.0)
rexml (3.4.1)
rouge (3.30.0)
rubocop (1.75.2)
json (~> 2.3)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.9.3, < 3.0)
rubocop-ast (>= 1.44.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.44.1)
parser (>= 3.3.7.2)
prism (~> 1.4)
rubocop-performance (1.25.0)
lint_roller (~> 1.1)
rubocop (>= 1.75.0, < 2.0)
rubocop-ast (>= 1.38.0, < 2.0)
rubocop-rake (0.7.1)
lint_roller (~> 1.1)
rubocop (>= 1.72.1)
rubocop-yard (0.10.0)
rubocop (~> 1.21)
yard
ruby-progressbar (1.13.0)
rugged (1.9.0)
sawyer (0.9.2)
addressable (>= 2.3.5)
faraday (>= 0.17.3, < 3)
terminal-table (4.0.0)
unicode-display_width (>= 1.1.1, < 4)
thor (0.20.3)
unicode-display_width (3.1.4)
unicode-emoji (~> 4.0, >= 4.0.4)
unicode-emoji (4.0.4)
uri (1.0.3)
yard (0.9.37)

PLATFORMS
ruby
x86_64-darwin-23

DEPENDENCIES
base64
colorize (~> 0.0)
git (~> 1.3)
git_diff_parser (~> 2.3)
lefthook (~> 1.8)
pronto (~> 0.11.1)
pronto-rubocop
rake (~> 12.0)
rubocop (~> 1.68)
rubocop-performance (~> 1.22)
rubocop-rake (~> 0.6)
rubocop-yard (~> 0.9)
thor (~> 0.19)
yard-apptweak-template!

BUNDLED WITH
2.6.7
Loading