This file contains hidden or 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
// Forked from https://gist.githubusercontent.com/camillevilla/16b53c50eccc11de0cb40ee0be7dcf03/raw/51f2473d5b04bb72e835ac9168381d87c0961d31/github-pr-urls.js | |
// PR search at https://github.com/pulls | |
// is:pr org:sul-dlss head:update-dependencies created:2018-05-08..2018-05-09 | |
// Repo order used in our update script and status table | |
// https://github.com/sul-dlss/access-update-scripts/blob/master/infrastructure/ruby | |
var repoList= "argo common-accessioning dlme dlme-harvest dlme-transform dor-services-app dor_indexing_app dor-fetcher-service gis-robot-suite google-books hydra_etd hydrus lyberservices-scripts modsulator-app-rails preservation_catalog preservation_robots pre-assembly repository-api rialto-etl rialto-webapp robot-console sul_pub sdr-services-app was-registrar-app was_robot_suite was-thumbnail-service workflow-server-rails" | |
repoList = repoList.split(' ') |
This file contains hidden or 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 'hydra/datastream/rights_metadata' | |
module Hydra | |
module Datastream | |
class RightsMetadata < ActiveFedora::NokogiriDatastream | |
class PermissionsViolation < ::RuntimeError | |
end | |
# Validates permissions changes | |
def validate_permissions(type, actor, access_level) | |
# do some validations, throw some errors, whatever | |
raise PermissionsViolation if [type, actor, access_level] == [:person, "person123", "edit"] |
This file contains hidden or 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
perl 5.10.0: | |
real 97m48.002s | |
user 92m7.045s | |
sys 1m5.712s | |
python 2.6.4: | |
real 91m8.783s | |
user 85m40.705s | |
sys 1m0.568s |