philnash / envyable Goto Github PK
View Code? Open in Web Editor NEWThe simplest yaml to ENV config loader.
Home Page: https://rubygems.org/gems/envyable
License: MIT License
The simplest yaml to ENV config loader.
Home Page: https://rubygems.org/gems/envyable
License: MIT License
I've been trying out Envyable for a couple of hours and have been running into a number of problems. I am still trying to document a larger problem, but I found this one while working on that.
Fairly straight forward, running envyable install
(with or without Rails) results in this error message. Tried locally on a Mac, and again on a fresh install of ruby and rails on an Ubuntu server, both with the same results.
[02:56 ubuntu@server:~/projects/env_test]$ envyable install
/home/ubuntu/.rbenv/versions/2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- ./lib/envyable/cli (LoadError)
from /home/ubuntu/.rbenv/versions/2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/ubuntu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/envyable-1.1.0/bin/envyable:4:in `<top (required)>'
from /home/ubuntu/.rbenv/versions/2.3.1/bin/envyable:23:in `load'
from /home/ubuntu/.rbenv/versions/2.3.1/bin/envyable:23:in `\<main\>'
Envyable version 1.1.0
Mac has Ruby 2.3.0, Rails 4.2.6
Ubuntu has Ruby 2.3.1, Rails 5.0.0.1
Hi! We have another gem that requires some ENV variable to be set before it is loaded.
The dotenv gem gives an option of specifying , :require => 'dotenv/rails-now'
in the gemfile to load them earlier.. Was just wondering if you can think of a similar way of achieving this with envyable? If not, could you please consider adding it?
Export task:
Install task:
Ran envyable install got the following error:
/Users/michael/.rvm/gems/ruby-2.3.1/gems/envyable-1.1.0/bin/envyable:4:in `require': cannot load such file -- ./lib/envyable/cli (LoadError)
from /Users/michael/.rvm/gems/ruby-2.3.1/gems/envyable-1.1.0/bin/envyable:4:in `<top (required)>'
from /Users/michael/.rvm/gems/ruby-2.3.1/bin/envyable:23:in `load'
from /Users/michael/.rvm/gems/ruby-2.3.1/bin/envyable:23:in `<main>'
from /Users/michael/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `eval'
from /Users/michael/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `<main>'
Changed file bin/envyable
to require_relative "../lib/envyable/cli"
(had been require "./lib/envyable/cli"
)
envyable install
now working...
Not sure why this happened, because when I cloned the repo and went to edit the code to fix it, it seems someone has very sensibly put require File.expand_path('../lib/envyable/cli', __dir__)
Is gem install envyable
installing an old version of the gem?? Confused...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.