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
@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: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: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: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=>{'[email protected]'=>'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'
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.
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'
@awead
awead / gist:7324228
Created November 5, 2013 19:01
cs-xacml-schema-policy-1.0.xsd
[fctest@dev-vm1 ~]$ fedora-rebuild.sh
Fedora Rebuild Utility
..........................
WARNING: Live rebuilds are not currently supported.
Make sure your server is stopped before continuing.
Server directory is /usr/local/fedora/server
add to spec/lib/integration_spec.rb
it "should return a url for a datastream" do
obj = @repository.find_or_initialize('test:1')
@repository.datastream_url('test:1', 'Test').should == 'objects/test%3A1/datastreams/Test'
end
@awead
awead / gist:c1ac825eed499efb2d81
Created June 16, 2014 14:34
cap rbenv update
awead@pooh:~/Projects/Github/psu-stewardship/scholarsphere$ bundle exec cap qa rbenv:update
triggering load callbacks
* 2014-06-16 10:32:43 executing `qa'
triggering start callbacks for `rbenv:update'
* 2014-06-16 10:32:43 executing `multistage:ensure'
triggering after callbacks for `multistage:ensure'
* 2014-06-16 10:32:43 executing `rbenv:setup_default_environment'
* executing "echo \"$HOME/.rbenv\""
servers: ["ss1qa.dlt.psu.edu"]
Enter passphrase for /Users/awead/.ssh/id_deploy_rsa:
No context on this server matched or handled this request.
Contexts known to this server are:
/fedora ---> o.e.j.w.WebAppContext{/fedora,[file:/private/var/folders/_f/4p7cfv3j7jz6l3twxs1wtvnc0000gp/T/jetty-0.0.0.0-8983-fedora.war-_fedora-any-/webapp/, jar:file:/private/var/folders/_f/4p7cfv3j7jz6l3twxs1wtvnc0000gp/T/jetty-0.0.0.0-8983-fedora.war-_fedora-any-/webapp/WEB-INF/lib/fcrepo-server-3.8.0-SNAPSHOT.jar!/META-INF/resources/]},/Users/awead/Projects/Github/projecthydra/sufia/tmp/jetties/hydra-jetty-3.8.0-RC1/webapps/fedora.war
/solr ---> o.e.j.w.WebAppContext{/solr,file:/private/var/folders/_f/4p7cfv3j7jz6l3twxs1wtvnc0000gp/T/jetty-0.0.0.0-8983-solr.war-_solr-any-/webapp/},/Users/awead/Projects/Github/projecthydra/sufia/tmp/jetties/hydra-jetty-3.8.0-RC1/webapps/solr.war
/fedora-test ---> o.e.j.w.WebAppContext{/fedora-test,[file:/private/var/folders/_f/4p7cfv3j7jz6l3twxs1wtvnc0000gp/T/jetty-0.0.0.0-8983-fedora.war-_fedora-test-any-/webapp/, jar:file:/private/var/folders/_f/4p7cfv3j7jz6l3twxs1wtvnc0000gp/T/