James, 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:
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. 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? Thanks! --Alex On Wed, Nov 2, 2016 at 6:37 PM, James Bullen <[email protected]> wrote: > > Hi Alex, > > There’s a script for this. Try this from your aspace directory: > > scripts/initialize_plugin.sh [plugin_name] > > > … .bat if you’re on windows. > > > Good luck! > > > James > > > On Nov 3, 2016, at 6:46 AM, Alexander Duryee <[email protected]> > wrote: > > 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? > > Thanks! > --Alex > > -- > Alexander Duryee > Metadata Archivist > New York Public Library > (917)-229-9590 > [email protected] > !DSPAM:581a4296162421185191756! ______________________________ > _________________ > Archivesspace_Users_Group mailing list > [email protected] > http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group > > > !DSPAM:581a4296162421185191756! > > > > _______________________________________________ > Archivesspace_Users_Group mailing list > [email protected] > http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group > > -- Alexander Duryee Metadata Archivist New York Public Library (917)-229-9590 [email protected]
_______________________________________________ Archivesspace_Users_Group mailing list [email protected] http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
