Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dry::Files#readlines method is broken #20

Open
8bit-mate opened this issue Mar 1, 2024 · 0 comments
Open

Dry::Files#readlines method is broken #20

8bit-mate opened this issue Mar 1, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@8bit-mate
Copy link

8bit-mate commented Mar 1, 2024

Describe the bug

The Dry::Files#readlines method that is mentioned in the user documentation seems to be broken. It is a private method and a call of the method raises the NoMethodError.

To Reproduce

require "dry/files"

Gem.loaded_specs["dry-files"].version # => 1.1.0

files = Dry::Files.new

files.readlines("test.txt")
# => private method `readlines' called for #<Dry::Files:0x00007fe5efe86cf0 @adapter=#<Dry::Files::FileSystem:0x00007fe5efec8088 @file=File, @file_utils=FileUtils>> (NoMethodError)

Expected behavior

Should be public and return an array of strings.

My environment

  • Affects my production application: YES
  • Ruby version: ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]
  • OS: Kernel: 5.15.0-97-generic x86_64 bits: 64 compiler: gcc v: 11.4.0 Desktop: Cinnamon 5.8.4
    tk: GTK 3.24.33 wm: muffin vt: 7 dm: LightDM 1.30.0 Distro: Linux Mint 21.2 Victoria
    base: Ubuntu 22.04 jammy
@8bit-mate 8bit-mate added bug Something isn't working help wanted Extra attention is needed labels Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant