This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def self.delegate(*methods) | |
options = methods.last | |
if options.include?(:at) || options.include?(:unique) | |
super | |
else | |
Module.delegate(*methods) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[cjcolvar@localhost avalon]$ rspec spec | |
/home/cjcolvar/.rvm/gems/ruby-1.9.3-p194@avalon/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require': iconv will be deprecated in the future, use String#encode instead. | |
F.FF.FFF.FFFFFFFFFFFF*F.FFF.FF***F..F..FFFFF.FFF/home/cjcolvar/Code/avalon/avalon/spec/lib/avalon/batch_ingest_spec.rb:26: warning: already initialized constant DropboxService | |
F/home/cjcolvar/Code/avalon/avalon/spec/lib/avalon/batch_ingest_spec.rb:26: warning: already initialized constant DropboxService | |
F/home/cjcolvar/Code/avalon/avalon/spec/lib/avalon/batch_ingest_spec.rb:26: warning: already initialized constant DropboxService | |
*/home/cjcolvar/Code/avalon/avalon/spec/lib/avalon/batch_ingest_spec.rb:26: warning: already initialized constant DropboxService | |
*/home/cjcolvar/Code/avalon/avalon/spec/lib/avalon/batch_ingest_spec.rb:26: warning: already initialized constant DropboxService | |
*......FFF..F...F...........F....**.**F**............*............*........*.....*...*... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
describe "UniquenessValidator" do | |
before(:all) do | |
@solr_field = "title_t" | |
@validator = UniquenessValidator.new({:attributes => {}, :solr_name => @solr_field}) | |
@record = stub(pid:"avalon:2") | |
@record.stub("errors").and_return([]) | |
@record.errors.stub('[]').and_return({}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RolesController < ApplicationController | |
include Hydra::RoleManagement::RolesBehavior | |
prepend_before_filter :accept_batches, only: [:destroy] | |
def destroy | |
@roles.each {|role| role.destroy} | |
redirect_to roles_path, notice: "Successfully deleted groups: #{params[:ids].join(", ")}" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/flash/htmlelements/VideoElement.as b/src/flash/htmlelements/VideoElement.as | |
index 700ecdf..e1d460a 100644 | |
--- a/src/flash/htmlelements/VideoElement.as | |
+++ b/src/flash/htmlelements/VideoElement.as | |
@@ -202,6 +202,14 @@ package htmlelements | |
sendEvent(HtmlMediaEvent.SEEKED); | |
break; | |
+ case "NetStream.Seek.Complete": | |
+ if (_isPreloading) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ //Force audio that isn't mp3s to video because the flash.media.Sound only handles mp3s | |
+ if (!_isVideo && _mediaUrl.indexOf("mp3") == -1) | |
+ _isVideo = true; | |
+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From the Dependent Policies Combining list, select the policy combining algorithm. | |
Deny Overrides | |
The deny-overrides policy-combining algorithm evaluates each policy in the order that it appears in the XACML policy set. If any policy in the set evaluates to deny, the policy combination evaluates immediately to deny. In other words a single deny takes precedence over other policy evaluations. If all policies are determined to be NotApplicable, the policy combination evaluates to NotApplicable. | |
First Applicable | |
(Default) The first-applicable policy combining algorithm evaluates each policy in the order that it appears in the XACML policy set. For an individual policy, if the target (resource) evaluates to TRUE and the policy conditions evaluate unambiguously to permit or deny, evaluation is immediately halted, and the policy combination evaluates to the effect of that individual policy. If the individual policy evaluates the target as FALSE or the policy conditions as NotApplicable, then the next poli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/flash/htmlelements/VideoElement.as b/src/flash/htmlelements/VideoElement.as | |
index 5a3e1ec..6f209cc 100644 | |
--- a/src/flash/htmlelements/VideoElement.as | |
+++ b/src/flash/htmlelements/VideoElement.as | |
@@ -242,8 +242,12 @@ package htmlelements | |
if (_isPreloading) { | |
- | |
+ _stream.seek(0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Started GET "/roles/new" for 127.0.0.1 at 2013-05-14 13:04:31 -0400 | |
Processing by RolesController#new as HTML | |
Rendered /home/cjcolvar/Code/avalon/hydra-role-management/app/views/roles/new.html.erb within layouts/blacklight (103.7ms) | |
Completed 500 Internal Server Error in 137ms | |
ActionView::Template::Error (undefined method `bootstrap_form_for' for #<#<Class:0x00000005ba59a0>:0x000000055cc998>): | |
1: <%= bootstrap_form_for @role, :url=>role_management.roles_path do |f| %> | |
2: <%= f.text_field :name, :label=> 'Role name' %> | |
3: <%= f.actions %> | |
4: <% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Changes from puppet script for pawpaw | |
Symlink /var/avalon to /srv/avalon | |
Comment out distribute-hls operation from avalon-video MH workflow | |
Shutdown red5 | |
Stop MH, tomcat | |
Move /usr/local/matterhorn to /srv/avalon/matterhorn, edit MATTERHORN_HOME in /etc/init.d/matterhorn, restart MH | |
Move /usr/local/fedora to /srv/avalon/fedora, symlink back to /usr/local/fedora, restart tomcat |