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

require_keys on ruby standalone projects? #359

Closed
mberlanda opened this issue Oct 10, 2018 · 7 comments
Closed

require_keys on ruby standalone projects? #359

mberlanda opened this issue Oct 10, 2018 · 7 comments

Comments

@mberlanda
Copy link

Steps to reproduce

$ irb
irb(main):001:0> require 'dotenv'
=> true
irb(main):002:0> Dotenv.require_keys("SERVICE_APP_ID", "SERVICE_KEY", "SERVICE_SECRET")
Traceback (most recent call last):
        2: from ~/.rbenv/versions/2.5.1/bin/irb:11:in `<main>'
        1: from (irb):2
NoMethodError (undefined method `require_keys' for Dotenv:Module)
irb(main):003:0> Dotenv.load!
=> {"FOO"=>"bar"}

Expected behavior

I would expect some validation to be performed on my

Actual behavior

NoMethodError (undefined method require_keys' for Dotenv:Module)` raised instead

System configuration

dotenv version: 2.5.0
Rails version: none
Ruby version: 2.5.1
os: macos high sierra

@mberlanda mberlanda changed the title require_keys on ruby standalon projects? require_keys on ruby standalone projects? Oct 10, 2018
@m1neral
Copy link

m1neral commented Oct 11, 2018

@cadwallion what about to do release with this feature? We need this much ❤️

@mberlanda
Copy link
Author

I tested actually against the latest master revision and everything works like charm. Would it be possible to bump a new (minor) version to be able to exploit this feature? Thanks 😄

@stephancom
Copy link

+1

@sensay-nelson
Copy link

+1 for a minor version release.

@runarberg
Copy link

👍 I just spent hours trying to figure out why this feature wasn't working only to find out now that it is implemented but not released.

@jonmagic
Copy link
Collaborator

jonmagic commented Jan 5, 2019

Closed by #365 https://rubygems.org/gems/dotenv/versions/2.6.0

@jonmagic jonmagic closed this as completed Jan 5, 2019
@fran-worley
Copy link

@jonmagic thanks, though the git release seems to be missing for 2.6.0 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants