[Archivesspace_Users_Group] Plugin Gem Best Practices
Alexander Duryee
alexanderduryee at nypl.org
Fri Nov 4 15:18:18 EDT 2016
Mark,
That resolved the issue - many thanks!
--Alex
On Fri, Nov 4, 2016 at 6:09 AM, Mark Triggs <mark at dishevelled.net> wrote:
> Hi Alex,
>
> This is a bit of a shot in the dark, but for the Newrelic gem I found I
> had to add a snippet to the top of the plugin Gemfile like this:
>
> https://github.com/archivesspace/archivesspace/pull/183/files
>
> The call to `ASpaceGems.setup` takes care of setting the gem load path
> appropriately.
>
> You're not supposed to have to do this, so if you find it magically fixes
> things, I'll take a look and see if the situation can be improved. The
> backend is supposed to take care of all of this, but perhaps the Gemfile is
> being loaded earlier than expected.
>
> Cheers,
>
> Mark
>
> Alexander Duryee <alexanderduryee at nypl.org> writes:
>
> 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
>
> --
> Mark Triggs
> <mark at dishevelled.net>
>
>
--
Alexander Duryee
Metadata Archivist
New York Public Library
(917)-229-9590
alexanderduryee at nypl.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20161104/4f824067/attachment.html>
More information about the Archivesspace_Users_Group
mailing list