Closed jbrown-xentity closed 1 week ago
master is synced with upstream master. datagov is synced with upstream develop since most of the activity is on that branch and what i would assume we'd merge into when the time comes
removed mdtranslator in the compose file on this commit. can add back.
for anyone unfamiliar with package management in ruby ( not version management ) here's some info...
reidhewitt@Reids-MacBook-Pro mdTranslator % gem env
RubyGems Environment:
...
- INSTALLATION DIRECTORY: /home/bobsmith/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0
- GEM PATHS:
- /home/bobsmith/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0
- /home/bobsmith/.gem/ruby/3.2.0
...
INSTALLATION DIRECTORY
is the default directory where your gems are gonna be installed. GEM_PATHS
are where the gems are searched from. in my case, I included a .ruby-version
file in my root indicating to use ruby v3.2.2 which I had previously installed for another app. I wanted to use the same ruby version but since i'm using a different app i don't want them both to use the same installation directory. node_modules
you can configure bundle
to do so.
.bundle/config
is a valid file pathBUNDLE_PATH: "your_folder_name"
to the file. apparently, naming the folder "vendor" is common practice so BUNDLE_PATH: "vendor"
. if BUNDLE_PATH
is configured it will be used to search for gems regardless of GEM_HOME
or GEM_PATH
(source).bundle
and vendor/
are included in the gitignore file (not a highlighted link because they're apart so find them)bundle install
(you may or may not have to create "vendor" prior to installing. i already created it)insert a "breakpoint" by adding binding.irb
on the line of your choice. here's an example of what that might look like...
From: /home/bobsmith/.rbenv/versions/3.2.2/lib/ruby/vendor_ruby/gems/3.2.0/gems/adiwg-mdtranslator-2.20.0.pre.beta.5/lib/adiwg/mdtranslator/writers/dcat_us/sections/dcat_us_contact_point.rb @ line 10 :
5: module Writers
6: module Dcat_us
7: module ContactPoint
8:
9: def self.build(intObj)
=> 10: binding.irb
11: resourceInfo = intObj[:metadata][:resourceInfo]
12: pointOfContact = resourceInfo[:pointOfContacts][0]
13: contactId = pointOfContact[:parties][0][:contactId]
14:
15: contact = Dcat_us.get_contact_by_id(contactId)
irb(ADIWG::Mdtranslator::Writers:...):001> # execute your expression here...
User Story
In order to get transformer to the latest code, harvest2.0 devs want the transform system setup with latest changes.
Background
[Any helpful contextual notes or links to artifacts/evidence, if needed]
Security Considerations (required)
None
Sketch
We want the following: