Skip to content

Instantly share code, notes, and snippets.

View awead's full-sized avatar
🏠
Working from home

Adam Wead awead

🏠
Working from home
View GitHub Profile
Failures:
1) OM::XML::Terminology.to_xml should put terminology details into the xml
Failure/Error: xml = @terminology.to_xml
OM::XML::Terminology::BadPointerError:
The mods_title proxy term points to [:mods, :title_info, :main_title] but that term doesn't exist.
# ./lib/om/xml/named_term_proxy.rb:31:in `proxied_term'
# ./lib/om/xml/named_term_proxy.rb:60:in `method_missing'
# ./lib/om/xml/term.rb:284:in `block in to_xml'
# ./lib/om/xml/term.rb:284:in `each'
This is what I get when accessing /dashboard
NoMethodError - undefined method `noid' for #<ActiveSupport::HashWithIndifferentAccess:0x007fa2e059c290>:
blacklight (4.3.0) lib/blacklight/solr/document.rb:49:in `method_missing'
/Users/adamw/Projects/Github/projecthydra/sufia/app/views/dashboard/_index_partials/_list_files.html.erb:17:in `___sers_adamw__rojects__ithub_projecthydra_sufia_app_views_dashboard__index_partials__list_files_html_erb__2739266435830798116_70168719366480'
It's solr-related and for some reason I don't have the noid method in my SolrDocument class. I believe it's something to do with my CatalogController config. Since I'm integrating Sufia into an existing head, I'm having to wire it up slightly differently than the standard install, although just about everything else works, so I'm pretty close.
@awead
awead / gist:6080178
Created July 25, 2013 14:23
2 sufia failures
Failures:
1) GenericFilesController update should change mime type when restoring a revision with a different mime type
Failure/Error: post :update, :id=>@generic_file.pid, :filedata=>file, :Filename=>"The world", :generic_file=>{:tag=>[''], :permissions=>{:new_user_name=>{'archivist1@example.com'=>'edit'}}}
Magick::ImageMagickError:
no decode delegate for this image format `' @ error/blob.c/BlobToImage/358
# /Users/adamw/Projects/Github/projecthydra/sufia/sufia-models/lib/sufia/models/generic_file/thumbnail.rb:85:in `load_image_transformer'
# /Users/adamw/Projects/Github/projecthydra/sufia/sufia-models/lib/sufia/models/generic_file/thumbnail.rb:64:in `scale_image'
# /Users/adamw/Projects/Github/projecthydra/sufia/sufia-models/lib/sufia/models/generic_file/thumbnail.rb:57:in `create_image_thumbnail'
# /Users/adamw/Projects/Github/projecthydra/sufia/sufia-models/lib/sufia/models/generic_file/thumbnail.rb:11:in `create_thumbnail'
@awead
awead / gist:6071183
Created July 24, 2013 14:38
Running the tests for sufia
adamw:sufia adamw$ bundle exec rake jetty:start
D, [2013-07-24T10:25:05.435399 #11095] DEBUG -- : Starting jetty with these values:
D, [2013-07-24T10:25:05.435587 #11095] DEBUG -- : jetty_home: /Users/adamw/Projects/Github/projecthydra/sufia/jetty
D, [2013-07-24T10:25:05.435831 #11095] DEBUG -- : jetty_command: java -Djetty.port=8983 -Dsolr.solr.home=/Users/adamw/Projects/Github/projecthydra/sufia/jetty/solr -Xmx256m -XX:MaxPermSize=128m -jar start.jar
W, [2013-07-24T10:25:05.445949 #11095] WARN -- : Removing stale PID file at /Users/adamw/Projects/Github/projecthydra/sufia/tmp/pids/_Users_adamw_Projects_Github_projecthydra_sufia_jetty.pid
W, [2013-07-24T10:25:05.447547 #11095] WARN -- : Logging jettywrapper stdout to /Users/adamw/Projects/Github/projecthydra/sufia/jetty/jettywrapper.log
D, [2013-07-24T10:25:05.468910 #11095] DEBUG -- : Wrote pid file to /Users/adamw/Projects/Github/projecthydra/sufia/tmp/pids/_Users_adamw_Projects_Github_projecthydra_sufia_jetty.pid with value 11153
I, [2013-07-24T10:25:3
@awead
awead / gist:5438313
Created April 22, 2013 20:36
running rake ci
[Hydra CI] hydra-core
Generating rails app
Copying gemfile
Copying generator
Bundle install
running test_app_generator
insert config/routes.rb
create app/models/generic_content.rb
create app/controllers/downloads_controller.rb
create spec/fixtures/hydrangea_fixture_mods_article1.foxml.xml
@awead
awead / gist:5437400
Created April 22, 2013 18:37
running rake ci
[Hydra CI] hydra-core
my gem home
/Users/adamw/Projects/Github/hydra-head/.bundle
Running specs
Could not find gem 'rails (= 3.2.12) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.
Could not find gem 'rails (= 3.2.12) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.
Error running hydra-core
E, [2013-04-22T14:33:14.084597 #85654] ERROR -- : *** Error starting jetty: test failures
@awead
awead / gist:5436784
Created April 22, 2013 17:09
running rake ci in hydra-head
[Hydra CI] hydra-core
Running specs
rake aborted!
cannot load such file -- bundler/setup
/Users/adamw/Projects/Github/hydra-head/hydra-core/spec/internal/config/boot.rb:6:in `<top (required)>'
/Users/adamw/Projects/Github/hydra-head/hydra-core/spec/internal/config/application.rb:1:in `<top (required)>'
/Users/adamw/Projects/Github/hydra-head/hydra-core/spec/internal/Rakefile:5:in `<top (required)>'
/Users/adamw/Projects/Github/hydra-head/.bundle/gems/rake-10.0.4/lib/rake/rake_module.rb:25:in `load'
/Users/adamw/Projects/Github/hydra-head/.bundle/gems/rake-10.0.4/lib/rake/rake_module.rb:25:in `load_rakefile'
/Users/adamw/Projects/Github/hydra-head/.bundle/gems/rake-10.0.4/lib/rake/application.rb:589:in `raw_load_rakefile'
@awead
awead / gist:5296086
Last active December 15, 2015 17:20
NB: A collection has many series, a series is part of one collection.
This doesn't work. After reloding the collection, it still has the same number of series:
> c = ArchivalCollection.find("arc:test")
=> #<ArchivalCollection pid:"arc:test", title:"Test Collection", format:"Collection">
> c.series.count
=> 3
> c.series.pop
=> #<ArchivalComponent pid:"arc:testref3", title:"Series 1: Sample Series">
module HydraPbcore::Datastream::Deprecated
class Instantiation < ActiveFedora::OmDatastream
class_attribute :institution, :relator
include HydraPbcore::Methods
include HydraPbcore::Templates
include HydraPbcore::Conversions
# Note: this is not a complete PBCore document, just an instantiation node
NoMethodError in Catalog#index
Showing /var/www/rails/blacklight-dev/gems/blacklight/app/views/_user_util_links.html.erb where line #9 raised:
undefined method `downcase!' for 2:Fixnum
Extracted source (around line #9):
6: <% end %>
7: |
8: <% end %>