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/frameworks/desktop/views/select_field.js b/frameworks/desktop/views | |
index 67df81a..c4dfb22 100644 | |
--- a/frameworks/desktop/views/select_field.js | |
+++ b/frameworks/desktop/views/select_field.js | |
@@ -253,6 +253,8 @@ SC.SelectFieldView = SC.FieldView.extend( | |
found = null ; // matching object goes here. | |
while(!found && (--loc >= 0)) { | |
object = objects.objectAt? objects.objectAt(loc) : objects[loc] ; | |
+ | |
+ if (!object) continue; |
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
// ========================================================================== | |
// Project: Alc.LedgerView | |
// Copyright: ©2009 Westside Consulting LLC | |
// ========================================================================== | |
/*globals Alc */ | |
/** @class | |
(Document Your View Here) |
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
--- a/frameworks/desktop/views/select_field.js | |
+++ b/frameworks/desktop/views/select_field.js | |
@@ -253,6 +253,8 @@ SC.SelectFieldView = SC.FieldView.extend( | |
found = null ; // matching object goes here. | |
while(!found && (--loc >= 0)) { | |
object = objects.objectAt? objects.objectAt(loc) : objects[loc] ; | |
+ | |
+ if (!object) continue; | |
// get value using valueKey if there is one or use 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
diff --git a/lib/rack/chunked.rb b/lib/rack/chunked.rb | |
index dddf969..0ee8fb9 100644 | |
--- a/lib/rack/chunked.rb | |
+++ b/lib/rack/chunked.rb | |
@@ -35,7 +35,7 @@ module Rack | |
def each | |
term = "\r\n" | |
@body.each do |chunk| | |
- size = bytesize(chunk) | |
+ size = chunk.nil? ? 0 : bytesize(chunk) |
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
Then /^I should see a link to "([^\"]*)" with text "([^\"]*)"$/ do |url, text| | |
pp self | |
pp response_body.class | |
puts response_body.public_methods.sort | |
#response_body.should have_selector("a[href='#{ url }']") do |element| | |
response_body.should have_selector('a', {'href' => 'mem_direct.php'}) do |element| | |
pp element | |
element.should contain(text) | |
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
get '/views/*' do | |
# Get file path. if refers to a directory, try index.html | |
path = params[:splat].first.split('/') | |
path = File.join('views', *path) | |
path = File.join(path, 'index.html') if File.directory?(path) | |
logger.debug(path) | |
# set long expiration headers | |
one_year = 360 * 24 * 60 * 60 # a little less than a year for proxy's-sake | |
time = Time.now + one_year |
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
lsiden@morpheus:~/projects/busbingo$ git push heroku |tee heroku.push.log | |
Counting objects: 5, done. | |
Delta compression using up to 2 threads. | |
Compressing objects: 100% (3/3), done. | |
Writing objects: 100% (3/3), 371 bytes, done. | |
Total 3 (delta 1), reused 0 (delta 0) | |
-----> Heroku receiving push | |
-----> Rack app detected |
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
# modified from https://gist.github.com/763374 | |
module DataMapper | |
module Resource | |
def taint! property | |
self.persistence_state = PersistenceState::Dirty.new(self) \ | |
unless self.persistence_state.kind_of?(PersistenceState::Dirty) | |
self.persistence_state.original_attributes[properties[property]] = Object.new | |
end | |
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
#!/bin/bash | |
# Use this script instead of ~/.rvm/bin/rvm-prompt | |
# and the output of rvm-prompt will show up in your command prompt | |
# only if you are in a Ruby project directory. | |
# see http://stackoverflow.com/a/4264351/270511 | |
# and http://unix.stackexchange.com/questions/13464/is-there-a-way-to-find-a-file-in-an-inverse-recursive-search |
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
# mount | |
rootfs on / type rootfs (ro,relatime) | |
tmpfs on /dev type tmpfs (rw,relatime,mode=755) | |
devpts on /dev/pts type devpts (rw,relatime,mode=600) | |
proc on /proc type proc (rw,relatime) | |
sysfs on /sys type sysfs (rw,relatime) | |
none on /acct type cgroup (rw,relatime,cpuacct) | |
tmpfs on /mnt/asec type tmpfs (rw,relatime,mode=755,gid=1000) | |
tmpfs on /mnt/obb type tmpfs (rw,relatime,mode=755,gid=1000) | |
none on /dev/cpuctl type cgroup (rw,relatime,cpu) |