-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add a viewer for outcomes #37
Conversation
Gemfile.lock
Outdated
@@ -0,0 +1,147 @@ | |||
PATH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove Gemfile.lock
lib/bipm/data/outcomes.rb
Outdated
module Data | ||
module Outcomes | ||
def self.file_path | ||
"#{__dir__}/../../../data/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to dynamically git fetch the bipm-data-outcomes
repository (or a release) to a cache, or specify a local copy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @webdev778 !
module Data | ||
module Outcomes | ||
def self.file_path | ||
@file_path ||= "#{__dir__}/../../../data/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The {GEM_ROOT}
path may not be writable, for example, in the case in Tebako (read-only filesystem). We should use the home path as default.
This PR fix #32
Metanorma PR checklist