Skip to content

ENV for the URL :: not working? #76

@p64

Description

@p64

When I try to call Beaneater.new with teh env variable set I get this:

ArgumentError: wrong number of arguments (given 0, expected 1)
/path/vendor/bundle/ruby/2.5.0/gems/beaneater-1.0.0/lib/beaneater.rb:24:in `initialize'

I assume that's not intended. When I adjusted both of these:

/path/vendor/bundle/ruby/2.5.0/gems/beaneater-1.0.0/lib/beaneater/connection.rb: def initialize(address)
/path/vendor/bundle/ruby/2.5.0/gems/beaneater-1.0.0/lib/beaneater.rb: def initialize(address)

To be address = nil it works. However, I don't know how we want to solve that problem. At the moment I'm solving it like this:

Beaneater.new(ENV['BEANSTALKD_URL'])

Which I doubt is the intended behavior. I'm assuming no one uses this ENV at this point as it seems to not work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions