Skip to content
Draft
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
5 changes: 0 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,6 @@ jobs:
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-2-${{ hashFiles('**/Cargo.lock') }}
- if: runner.os == 'macOS'
run: |
brew install automake bison
brew link bison --force
echo "/usr/local/opt/bison/bin:$PATH" >> $GITHUB_PATH
- run: cargo test --release
- uses: actions/upload-artifact@v6
with:
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/preview-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ jobs:
toolchain: 1.91.1
override: true
target: aarch64-unknown-linux-gnu
- if: runner.os == 'macOS'
run: |
brew install automake bison
echo "/usr/local/opt/bison/bin:$PATH" >> $GITHUB_PATH
- run: ./script/make_release
- uses: actions/upload-artifact@v6
with:
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ jobs:
toolchain: 1.91.1
override: true
target: aarch64-unknown-linux-gnu
- if: runner.os == 'macOS'
run: |
brew install automake bison
echo "/usr/local/opt/bison/bin:$PATH" >> $GITHUB_PATH
- run: ./script/make_release
- uses: actions/upload-artifact@v6
with:
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

16 changes: 0 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[workspace]
members = [
"librubyfmt",
"librubyfmt/ripper_deserialize"
]

[package]
Expand All @@ -15,11 +14,9 @@ edition = "2024"
[dependencies]
clap = { version = "4.5.32", features = ["derive"] }
ctrlc = { version = "3.2", features = ["termination"] }
libc = "0.2.71"
ignore = "0.4.18"
regex = "1.11.1"
rubyfmt = { path = "./librubyfmt" }
serde = { version = "1.0", features = ["derive"] }
similar = "2.1.0"

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion benches/formatting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::fs;
use std::path::Path;

fn format_with_prism(source: &str) {
rubyfmt::format_buffer(source, true).expect("formatting failed");
rubyfmt::format_buffer(source).expect("formatting failed");
}

fn collect_fixtures(dir: &Path) -> Vec<(String, String)> {
Expand Down
47 changes: 0 additions & 47 deletions build.rs

This file was deleted.

4 changes: 2 additions & 2 deletions dockerfiles/build.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ubuntu:20.04
RUN apt-get update
RUN apt-get install -y git bison build-essential autoconf ruby curl
RUN apt-get install -y git build-essential autoconf ruby curl
RUN apt-get install -y zlib1g-dev clang ruby-dev shellcheck
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
RUN gem install bundler
Expand All @@ -9,6 +9,6 @@ RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales && \
update-locale LANG=en_US.UTF-8
ENV LANG en_US.UTF-8
RUN apt-get install -y bison libyaml-dev
RUN apt-get install -y libyaml-dev

ADD ./ /root/rubyfmt.git
10 changes: 0 additions & 10 deletions fixtures/small/ripper/dyna_symbol_with_escapes_actual.rb

This file was deleted.

10 changes: 0 additions & 10 deletions fixtures/small/ripper/dyna_symbol_with_escapes_expected.rb

This file was deleted.

11 changes: 0 additions & 11 deletions librubyfmt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,18 @@ name = "rubyfmt"
version = "0.11.0-pre"
authors = ["Penelope Phippen <[email protected]>"]
edition = "2024"
build = "build.rs"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
serde = { version = "1.0", features=["derive"] }
libc = "0.2.68"
fancy-regex = "0.14.0"
ripper_deserialize = { path = "ripper_deserialize" }
log = { version = "0.4.8", features = ["max_level_debug", "release_max_level_warn"] }
simplelog = "0.12"
ruby-prism="1.8.0"

[target.'cfg(not(target_env = "msvc"))'.dependencies]
tikv-jemallocator = { version = "0.6.1", features = ["disable_initial_exec_tls"], optional=true }

[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3", features = ["everything"] }

[build-dependencies]
cc = "1.0"
regex = "1.11.1"

[lib]
name = "rubyfmt"
crate-type = ["staticlib", "rlib"]
Expand Down
Loading