Skip to content

Instantly share code, notes, and snippets.

View rsim's full-sized avatar

Raimonds Simanovskis rsim

View GitHub Profile
1)
'Adapter with mysql DataMapper::Adapters::MysqlAdapter#read with a Collection bind value with an inclusion comparison that is not loaded should return expected values' FAILED
expected: [{#<DataMapper::Property @model=Article @name=:name>=>"Test 1", #<DataMapper::Property @model=Article @name=:parent_name>=>"Test 0"}, {#<DataMapper::Property @model=Article @name=:name>=>"Test 2", #<DataMapper::Property @model=Article @name=:parent_name>=>"Test 1"}, {#<DataMapper::Property @model=Article @name=:name>=>"Test 3", #<DataMapper::Property @model=Article @name=:parent_name>=>"Test 2"}, {#<DataMapper::Property @model=Article @name=:name>=>"Test 4", #<DataMapper::Property @model=Article @name=:parent_name>=>"Test 3"}],
got: [{#<DataMapper::Property @model=Article @name=:name>=>"Test 0", #<DataMapper::Property @model=Article @name=:parent_name>=>nil}] (using ==)
2)
'Adapter with mysql DataMapper::Adapters::MysqlAdapter#read with a Collection bind value with an inclusion comparison that is loaded should return e
require "rubygems"
require "activerecord"
# ActiveRecord::Base.establish_connection :adapter=>"oracle_enhanced",:username=>"hr",:password=>"hr",:database=>"orcl"
ActiveRecord::Base.establish_connection :adapter=>"jdbcsqlite3", :database=>"jruby_test.sqlite3", :timeout => 5000
ActiveRecord::Schema.define do
suppress_messages do
create_table :posts, :force => true do |t|
t.string :title
1) Failure:
test_reload_returns_assocition(AssociationProxyTest)
[./test/cases/associations_test.rb:188:in `test_reload_returns_assocition'
./test/cases/associations_test.rb:187:in `test_reload_returns_assocition'
/Users/raymond/rubygems/rails/activerecord/test/cases/../../lib/../../activemodel/lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `run']:
<[#<Project id: 2, name: "Active Controller", type: nil>, #<Project id: 1, name: "Active Record", type: nil>]> expected but was
<[#<Project id: 2, name: "Active Controller", type: nil>, #<Project id: 1, name: "Active Record", type: nil>]>.
require 'brewkit'
class Couchdb <Formula
@url='http://apache.multihomed.net/couchdb/0.9.1/apache-couchdb-0.9.1.tar.gz'
@homepage='http://couchdb.apache.org/'
@md5='9583efae5adfb3f9043e970fef825561'
depends_on 'spidermonkey'
depends_on 'icu4c'
depends_on 'erlang'
$ erl
Erlang R13B02 (erts-5.7.3) [source] [64-bit] [smp:2:2] [rq:2] [async-threads:0] [kernel-poll:false]
Eshell V5.7.3 (abort with ^G)
1> application:load(crypto).
ok
2> crypto:start().
{error,{shutdown,{crypto_app,start,[normal,[]]}}}
3>
=INFO REPORT==== 2-Oct-2009::15:57:00 ===
$ ls -la /usr/local/lib/erlang/lib/crypto-1.6.1/priv/lib
total 64
drwxr-xr-x 3 raymond staff 102 Oct 2 00:35 ./
drwxr-xr-x 4 raymond staff 136 Oct 2 00:35 ../
-r--r--r-- 1 raymond staff 30664 Oct 2 00:35 crypto_drv.so
$ couchdb
sh: line 0: exec: crypto_drv: not found
=INFO REPORT==== 2-Oct-2009::15:44:44 ===
application: crypto
exited: {shutdown,{crypto_app,start,[normal,[]]}}
type: temporary
Apache CouchDB 0.9.1 (LogLevel=info) is starting.
{"init terminating in do_boot","dlopen(/usr/local/Cellar/couchdb/0.9.1/lib/couchdb/erlang/lib/couch-0.9.1/priv/lib/couch_erl_driver.so, 2): Symbol not found: _driver_alloc\n Referenced from: /usr/local/Cellar/couchdb/0.9.1/lib/couchdb/erlang/lib/couch-0.9.1/priv/lib/couch_erl_driver.so\n Expected in: flat namespace\n in /usr/local/Cellar/couchdb/0.9.1/lib/couchdb/erlang/lib/couch-0.9.1/priv/lib/couch_erl_driver.so"}
$ otool -L /usr/local/Cellar/couchdb/0.9.1/lib/couchdb/erlang/lib/couch-0.9.1/priv/lib/couch_erl_driver.so
/usr/local/Cellar/couchdb/0.9.1/lib/couchdb/erlang/lib/couch-0.9.1/priv/lib/couch_erl_driver.so:
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 124.1.1)
libicuuc.43.dylib (compatibility version 43.0.0, current version 43.1.0)
../lib/libicudata.43.1.dylib (compatibility version 43.0.0, current version 43.1.0)
libicui18n.43.dylib (compatibility version 43.0.0, current version 43.1.0)
Darwin_DBG.OBJ/libjs.dylib (compatibility version 0.0.0, current version 0.0.0)
include_recipe "passenger_apache2::mod_rails"
if node[:rails][:active_applications]
node[:rails][:active_applications].each do |app, confs|
# confs = [confs] unless confs.is_a?(Array)
rails_app = node[:rails][:applications][app]
if rails_app[:rails_version]
{
"name": "app-dbatasks",
"default_attributes": {
"apache": {
"listen_ports": [
]
},
"rails": {
"active_applications": {