Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

warble compiled war only compile .rb files under ./lib

Đang mở
#349 7 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
rails, ruby
Lĩnh vực
build-system

Hướng nghiên cứu

The war file contents are decided by the Warbler config and its file-gathering logic, so start there rather than in the Rack app itself. Find where Warbler collects Ruby files into the archive and check why only paths under lib are picked up for app.rb and config.ru-adjacent files. Reproduce with a small app that has app.rb at the root and run the packaging task to confirm the missing file. Done means the root-level .rb file appears in the war, with a spec covering it.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

I have a rack app contains config.ru, app.rb, but warble won't compile app.rb unless I put it under /lib. Is this a bug or a feature?
Some rack based frameworks, like Cuba, also puts .rb files under project root( Sample App ), how can I use it with Warbler?

environment: jruby 9.0.1.0, warbler 2.0.0.rc1, cuba 3.4.0
Thank you!

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27541765-warble-compiled-war-only-compile-rb-files-under-lib?utm_campaign=plugin&utm_content=tracker%2F136961&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F136961&utm_medium=issues&utm_source=github).
Ngôn ngữ chính
Ruby
Star
901
Fork
206
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của jruby/warbler

Tất cả issue của jruby/warbler

Issue tương tự

Thêm issue về Ruby

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.