<div dir="ltr"><div><div><div><div>James,<br><br></div>Thanks! I unzipped a fresh release of ASpace, set up a plugin with a Gemfile, and ran initialize_plugin. It pulled in the gem + dependencies into gems/ without issue. However, when trying to run ASpace with the plugin (empty except for the gems), I got:<br><br><span style="font-family:monospace,monospace">Bundler::GemNotFound: Could not find gem 'timetwister (= 0.2.7) java' in any of the gem sources listed in your Gemfile or available on this machine.</span><br><br></div>The gem is installed both on my machine and in the plugin's gems directory. It's a locally-developed gem, so I didn't explicitly build it for JRuby - is this necessary to load it into ASpace?<br><br></div>Thanks!<br></div>--Alex<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 2, 2016 at 6:37 PM, James Bullen <span dir="ltr"><<a href="mailto:james@hudmol.com" target="_blank">james@hudmol.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div>Hi Alex,<div><br></div><div>There’s a script for this. Try this from your aspace directory:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font size="2" face="Courier New">scripts/initialize_plugin.sh [plugin_name]</font></div></blockquote><div><br></div><div>… .bat if you’re on windows.</div><div><br></div><div><br></div><div>Good luck!</div><div><br></div><div><br></div><div>James</div><div><br></div><div><br><div><blockquote type="cite"><div><div class="h5"><div>On Nov 3, 2016, at 6:46 AM, Alexander Duryee <<a href="mailto:alexanderduryee@nypl.org" target="_blank">alexanderduryee@nypl.org</a>> wrote:</div><br class="m_7456444823926431822Apple-interchange-newline"></div></div><div><div><div class="h5"><div dir="ltr"><div><div>I'd like to use a third-party plugin in an ASpace plugin; however, I'm running into issues with ASpace loading the gem. I've tried copying the structure from the OCLC plugin (gems/ directory containing the gem, plugin_init.rb loading the directory into $LOAD_PATH), but to no avail. What are the best practices for including a gem in a plugin, ideally for distribution?<br><br></div>Thanks!<br></div>--Alex<br clear="all"><div><div><div><br>-- <br><div class="m_7456444823926431822gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Alexander Duryee<div>Metadata Archivist</div><div>New York Public Library</div><div><a href="tel:%28917%29-229-9590" value="+19172299590" target="_blank">(917)-229-9590</a></div><div><a href="mailto:alexanderduryee@nypl.org" target="_blank">alexanderduryee@nypl.org</a></div></div></div></div></div>
</div></div></div></div></div></div>
!DSPAM:<wbr>581a4296162421185191756!
______________________________<wbr>_________________<br>Archivesspace_Users_Group mailing list<br><a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" target="_blank">Archivesspace_Users_Group@<wbr>lyralists.lyrasis.org</a><br><a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" target="_blank">http://lyralists.lyrasis.org/<wbr>mailman/listinfo/<wbr>archivesspace_users_group</a><br><br><br>!DSPAM:<wbr>581a4296162421185191756!<br></div></blockquote></div><br></div></div><br>______________________________<wbr>_________________<br>
Archivesspace_Users_Group mailing list<br>
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org">Archivesspace_Users_Group@<wbr>lyralists.lyrasis.org</a><br>
<a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" rel="noreferrer" target="_blank">http://lyralists.lyrasis.org/<wbr>mailman/listinfo/<wbr>archivesspace_users_group</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Alexander Duryee<div>Metadata Archivist</div><div>New York Public Library</div><div>(917)-229-9590</div><div><a href="mailto:alexanderduryee@nypl.org" target="_blank">alexanderduryee@nypl.org</a></div></div></div></div></div>
</div>