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

Add a viewer for outcomes #37

Merged
merged 2 commits into from
Aug 30, 2022
Merged

Add a viewer for outcomes #37

merged 2 commits into from
Aug 30, 2022

Conversation

webdev778
Copy link
Collaborator

@webdev778 webdev778 commented Aug 23, 2022

This PR fix #32

Metanorma PR checklist

Gemfile.lock Outdated
@@ -0,0 +1,147 @@
PATH
Copy link
Contributor

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

module Data
module Outcomes
def self.file_path
"#{__dir__}/../../../data/"
Copy link
Contributor

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.

Copy link
Contributor

@ronaldtse ronaldtse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @webdev778 !

@ronaldtse ronaldtse merged commit 118d7d2 into main Aug 30, 2022
@ronaldtse ronaldtse deleted the viewer branch August 30, 2022 02:18
module Data
module Outcomes
def self.file_path
@file_path ||= "#{__dir__}/../../../data/"
Copy link
Contributor

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.

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

Successfully merging this pull request may close these issues.

Generalize this gem so it not only imports from the site, but it provides a Ruby API to access the resolutions
2 participants