Adapter | iterations/s | std.dev. | iterations | time (s) |
---|---|---|---|---|
basic_metadata_tests create_stub | ||||
postgres | 661.473 | (±12.7%) | 3306 | 4.998 |
sequel_postgres | 1469.010 | (±11.6%) | 7336 | 4.994 |
basic_metadata_tests create_with_text | ||||
postgres | 552.374 | (±10.6%) | 2761 | 4.998 |
sequel_postgres | 1221.849 | (±11.8%) | 6103 | 4.995 |
basic_metadata_tests create_with_many_fields | ||||
postgres | 480.882 | (±15.9%) | 2403 | 4.997 |
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
{ | |
"name": "pf2e", | |
"title": "Pathfinder 2nd Edition", | |
"description": "An early alpha game system for running games of Pathfinder 2nd Edition in the Foundry VTT environment.", | |
"version": 0.453, | |
"schema": 0.411, | |
"minimumCoreVersion": "0.4.5", | |
"author": "hooking", | |
"scripts": [ | |
"./scripts/init.js", |
I hereby claim:
- I am tpendragon on github.
- I am tpendragon (https://keybase.io/tpendragon) on keybase.
- I have a public key whose fingerprint is 4D27 C5C7 83AF 916D DFD3 AE7E AB67 7006 525E C407
To claim this, I am signing this object:
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
# Same 6021 Triples | |
# JSON-LD (I don't have a TTL parser...) | |
iex(34)> Benchwarmer.benchmark(fn -> Client.get(%ExFedora.Client{url: "http://localhost:8984/rest"}, "4e/38/da/ba/4e38daba-a6b9-4ffb-a138-52041782f2cb") end) | |
*** #Function<20.54118792/0 in :erl_eval.expr/5> *** | |
4.3 sec 1 iterations 4351705.0 μs/op | |
[%Benchwarmer.Results{args: [], duration: 4351705, | |
function: #Function<20.54118792/0 in :erl_eval.expr/5>, n: 1, prev_n: 1}] | |
# 4.3 seconds |
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
default: | |
plugins: | |
- textcolor | |
- link | |
- fullscreen | |
- preview | |
- code | |
- contextmenu | |
- paste |
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
Run options: include {:locations=>{"./spec/controllers/shelters_controller_spec.rb"=>[61]}} | |
SheltersController | |
Fails to PATCH update when submitting invalid data | |
"#<ActiveModel::Errors:0x00000005446ad8 @base=#<Shelter id: 1, name: nil, phone_number: \"606-555-1212\", | |
contact_person: \"Shelter Contact\", rescue_group_id: nil, created_at: \"2013-12-27 20:33:10\", | |
updated_at: \"2013-12-27 20:33:10\">, @messages={:name=>[\"can't be blank\"]}>" | |
"#<ActionDispatch::Flash::FlashHash:0x000000068fdd28 @discard=#<Set: {}>, | |
@flashes={:notice=>\"Successfully updated Shelter!\"}, @now=nil>" | |
fails to update a shelter with bad info |
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
describe "relationships" do | |
before(:each) do | |
@new_object = DummyAsset.new | |
@new_object.title = "subbla" | |
@new_object.save | |
subject.title = "bla" | |
subject.descMetadata.creator = @new_object | |
end | |
it "should have accessible relationship attributes" do | |
expect(subject.descMetadata.license.title).to eq "subbla" |
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 MainsController < ApplicationController | |
def index | |
[City, State, Country].each do |klass| | |
@search = klass.search(params[:q]) | |
@result = @search.result | |
break unless @result.blank? | |
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
require 'spec_helper' | |
describe Car do | |
let(:manufacturer) { FactoryGirl.create(:manufacturer)} | |
let(:car) { FactoryGirl.create(:car, manufacturer: manufacturer)} | |
it "basic_articles with no extras required" do | |
basic_article = FactoryGirl.create(:basic_article, requires_extra: false) | |
expect(manufacturer.selectable_cars.count).to eq(1) | |
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
# Monkey patch in requiring nsec as the cache timestamp format. | |
module ActiveRecord | |
class Base | |
self.cache_timestamp_format = :nsec | |
end | |
end | |
module ActiveRecord | |
module ConnectionAdapters | |
class Mysql2Adapter < AbstractMysqlAdapter |
NewerOlder