diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml index cb49affe3..81611c206 100644 --- a/.github/workflows/audit.yaml +++ b/.github/workflows/audit.yaml @@ -16,10 +16,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4.1.4 + uses: actions/checkout@v4.1.7 - name: Install Ruby toolchain - uses: ruby/setup-ruby@1198b074305f9356bd56dd4b311757cc0dab2f1c # v1.175.1 + uses: ruby/setup-ruby@1d0e911f615a112e322369596f10ee0b95b010ae # v1.183.0 with: ruby-version: ".ruby-version" bundler-cache: true @@ -41,7 +41,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4.1.4 + uses: actions/checkout@v4.1.7 - name: Install Rust toolchain uses: artichoke/setup-rust/audit@v1.11.0 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 36caa210f..4f22bbfe1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -22,7 +22,7 @@ jobs: RUST_BACKTRACE: 1 steps: - name: Checkout repository - uses: actions/checkout@v4.1.4 + uses: actions/checkout@v4.1.7 - name: Install Rust toolchain uses: artichoke/setup-rust/build-and-test@v1.11.0 @@ -53,7 +53,7 @@ jobs: RUST_BACKTRACE: 1 steps: - name: Checkout repository - uses: actions/checkout@v4.1.4 + uses: actions/checkout@v4.1.7 - name: Install Rust nightly toolchain uses: artichoke/setup-rust/check-minimal-versions@v1.11.0 @@ -74,7 +74,7 @@ jobs: RUST_BACKTRACE: 1 steps: - name: Checkout repository - uses: actions/checkout@v4.1.4 + uses: actions/checkout@v4.1.7 - name: Install Rust toolchain uses: artichoke/setup-rust/lint-and-format@v1.11.0 @@ -92,10 +92,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v4.1.4 + uses: actions/checkout@v4.1.7 - name: Install Ruby toolchain - uses: ruby/setup-ruby@1198b074305f9356bd56dd4b311757cc0dab2f1c # v1.175.1 + uses: ruby/setup-ruby@1d0e911f615a112e322369596f10ee0b95b010ae # v1.183.0 with: ruby-version: ".ruby-version" bundler-cache: true @@ -108,7 +108,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v4.1.4 + uses: actions/checkout@v4.1.7 + + - name: Setup Node.js runtime + uses: actions/setup-node@v4.0.2 + with: + node-version: "lts/*" + + - name: Install toolchain + run: npm ci - name: Format with prettier run: npx prettier --check '**/*' diff --git a/.github/workflows/markdown-link-check.yaml b/.github/workflows/markdown-link-check.yaml index f149944b2..42fe35661 100644 --- a/.github/workflows/markdown-link-check.yaml +++ b/.github/workflows/markdown-link-check.yaml @@ -23,7 +23,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v4.1.4 + uses: actions/checkout@v4.1.7 - name: Check for broken links in markdown files uses: gaurav-nelson/github-action-markdown-link-check@d53a906aa6b22b8979d33bc86170567e619495ec # v1.0.15 diff --git a/.github/workflows/repo-labels.yaml b/.github/workflows/repo-labels.yaml index c1e15a08b..cd133a0ec 100644 --- a/.github/workflows/repo-labels.yaml +++ b/.github/workflows/repo-labels.yaml @@ -20,7 +20,7 @@ jobs: name: Synchronize repository labels runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4.1.4 + - uses: actions/checkout@v4.1.7 - name: Sync GitHub Issue Labels uses: crazy-max/ghaction-github-labeler@de749cf181958193cb7debf1a9c5bb28922f3e1b # v5.0.0 diff --git a/.github/workflows/rustdoc.yaml b/.github/workflows/rustdoc.yaml index 4c076dc36..b396adfa7 100644 --- a/.github/workflows/rustdoc.yaml +++ b/.github/workflows/rustdoc.yaml @@ -23,7 +23,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4.1.4 + uses: actions/checkout@v4.1.7 - name: Install Rust toolchain uses: artichoke/setup-rust/rustdoc@v1.11.0 diff --git a/.gitignore b/.gitignore index fc3224bc9..20ce58737 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,145 @@ -# Created by https://www.toptal.com/developers/gitignore/api/vim,rust,ruby -# Edit at https://www.toptal.com/developers/gitignore?templates=vim,rust,ruby +# Created by https://www.toptal.com/developers/gitignore/api/vim,ruby,rust,node +# Edit at https://www.toptal.com/developers/gitignore?templates=vim,ruby,rust,node + +### Node ### +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* +.pnpm-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# Snowpack dependency directory (https://snowpack.dev/) +web_modules/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional stylelint cache +.stylelintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variable files +.env +.env.development.local +.env.test.local +.env.production.local +.env.local + +# parcel-bundler cache (https://parceljs.org/) +.cache +.parcel-cache + +# Next.js build output +.next +out + +# Nuxt.js build / generate output +.nuxt +dist + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and not Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# vuepress v2.x temp and cache directory +.temp + +# Docusaurus cache and generated files +.docusaurus + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port + +# Stores VSCode versions used for testing VSCode extensions +.vscode-test + +# yarn v2 +.yarn/cache +.yarn/unplugged +.yarn/build-state.yml +.yarn/install-state.gz +.pnp.* + +### Node Patch ### +# Serverless Webpack directories +.webpack/ + +# Optional stylelint cache + +# SvelteKit build / generate output +.svelte-kit ### Ruby ### *.gem @@ -95,4 +235,4 @@ tags # Persistent undo [._]*.un~ -# End of https://www.toptal.com/developers/gitignore/api/vim,rust,ruby +# End of https://www.toptal.com/developers/gitignore/api/vim,ruby,rust,node diff --git a/.node-version b/.node-version new file mode 100644 index 000000000..b009dfb9d --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +lts/* diff --git a/.ruby-version b/.ruby-version index 15a279981..619b53766 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.3.0 +3.3.3 diff --git a/Gemfile.lock b/Gemfile.lock index db5edbe42..9544dab50 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -47,4 +47,4 @@ DEPENDENCIES rubocop-rake (~> 0.6) BUNDLED WITH - 2.5.3 + 2.5.15 diff --git a/bin-apple b/bin-apple deleted file mode 100755 index 65d4c92e2..000000000 Binary files a/bin-apple and /dev/null differ diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 000000000..433a6ae54 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,30 @@ +{ + "name": "@artichokeruby/ruby-file-expand-path", + "version": "0.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@artichokeruby/ruby-file-expand-path", + "version": "0.0.0", + "devDependencies": { + "prettier": "3.2.5" + } + }, + "node_modules/prettier": { + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", + "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==", + "dev": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 000000000..fc63c1f16 --- /dev/null +++ b/package.json @@ -0,0 +1,23 @@ +{ + "name": "@artichokeruby/ruby-file-expand-path", + "version": "0.0.0", + "private": true, + "description": "Rust port of path normalization from MRI Ruby.", + "keywords": [ + "ruby", + "rust", + "windows", + "filesystem", + "ffi" + ], + "repository": "github:artichoke/ruby-file-expand-path", + "author": "Ryan Lopopolo (https://hyperbo.la/)", + "homepage": "https://www.artichokeruby.org", + "bugs": "https://github.com/artichoke/ruby-file-expand-path/issues", + "devDependencies": { + "prettier": "3.2.5" + }, + "scripts": { + "fmt": "prettier --write \"**/*\"" + } +}