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 Asset < ActiveRecord::Base | |
# used for extra mime types that dont follow the convention | |
@@extra_content_types = { :audio => ['application/ogg'], :movie => ['application/x-shockwave-flash'], :pdf => ['application/pdf'] }.freeze | |
cattr_reader :extra_content_types | |
# use #send due to a ruby 1.8.2 issue | |
@@movie_condition = send(:sanitize_sql, ['content_type LIKE ? OR content_type IN (?)', 'video%', extra_content_types[:movie]]).freeze | |
@@audio_condition = send(:sanitize_sql, ['content_type LIKE ? OR content_type IN (?)', 'audio%', extra_content_types[:audio]]).freeze | |
@@image_condition = send(:sanitize_sql, ['content_type IN (?)', Technoweenie::AttachmentFu.content_types]).freeze | |
@@other_condition = send(:sanitize_sql, [ |
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
danlynn:mephisto-emk-rails-2.2 danlynn$ git push public | |
error: object directory /data/git/repositories/7/f2/88/1b/jamesfleeting/mephisto.git/objects does not exist; check .git/objects/info/alternates. | |
error: object directory /data/git/repositories/0/89/0e/7c/igotimac/birdblog.git/objects does not exist; check .git/objects/info/alternates. | |
error: object directory /data/git/repositories/0/89/0e/7c/igotimac/birdblog.git/objects does not exist; check .git/objects/info/alternates. | |
error: object directory /data/git/repositories/7/f2/88/1b/jamesfleeting/mephisto.git/objects does not exist; check .git/objects/info/alternates. | |
Counting objects: 89, done. | |
Compressing objects: 100% (56/56), done. | |
Writing objects: 100% (56/56), 6.85 KiB, done. | |
Total 56 (delta 42), reused 0 (delta 0) | |
error: object directory /data/git/repositories/7/f2/88/1b/jamesfleeting/mephisto.git/objects does not exist; check .git/objects/info/alternates. |
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
danlynn:delete danlynn$ git clone git://github.com/emk/mephisto.git | |
Initialized empty Git repository in /Users/danlynn/Documents/temp/delete/mephisto/.git/ | |
remote: error: object directory /data/git/repositories/7/f2/88/1b/jamesfleeting/mephisto.git/objects does not exist; check .git/objects/info/alternates. | |
remote: error: object directory /data/git/repositories/0/89/0e/7c/igotimac/birdblog.git/objects does not exist; check .git/objects/info/alternates. | |
remote: error: object directory /data/git/repositories/0/89/0e/7c/igotimac/birdblog.git/objects does not exist; check .git/objects/info/alternates. | |
remote: error: object directory /data/git/repositories/7/f2/88/1b/jamesfleeting/mephisto.git/objects does not exist; check .git/objects/info/alternates. | |
remote: error: object directory /data/git/repositories/7/f2/88/1b/jamesfleeting/mephisto.git/objects does not exist; check .git/objects/info/alternates. | |
remote: error: object directory /data/git/repositories/0/89/0e/7c/igotimac/birdblog.git/objects does not e |
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
danlynn:delete danlynn$ git clone git://github.com/emk/mephisto.git | |
Initialized empty Git repository in /Users/danlynn/Documents/temp/delete/mephisto/.git/ | |
remote: error: object directory /data/git/repositories/7/f2/88/1b/jamesfleeting/mephisto.git/objects does not exist; check .git/objects/info/alternates. | |
remote: error: object directory /data/git/repositories/0/89/0e/7c/igotimac/birdblog.git/objects does not exist; check .git/objects/info/alternates. | |
remote: error: object directory /data/git/repositories/0/89/0e/7c/igotimac/birdblog.git/objects does not exist; check .git/objects/info/alternates. | |
remote: error: object directory /data/git/repositories/7/f2/88/1b/jamesfleeting/mephisto.git/objects does not exist; check .git/objects/info/alternates. | |
remote: error: object directory /data/git/repositories/7/f2/88/1b/jamesfleeting/mephisto.git/objects does not exist; check .git/objects/info/alternates. | |
remote: error: object directory /data/git/repositories/0/89/0e/7c/igotimac/birdblog.git/objects does not e |
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
danlynn:delete danlynn$ git clone git@github.com:danlynn/mephisto.git | |
Initialized empty Git repository in /Users/danlynn/Documents/temp/delete/mephisto/.git/ | |
error: object directory /data/git/repositories/7/f2/88/1b/jamesfleeting/mephisto.git/objects does not exist; check .git/objects/info/alternates. | |
error: object directory /data/git/repositories/0/89/0e/7c/igotimac/birdblog.git/objects does not exist; check .git/objects/info/alternates. | |
error: object directory /data/git/repositories/0/89/0e/7c/igotimac/birdblog.git/objects does not exist; check .git/objects/info/alternates. | |
error: object directory /data/git/repositories/7/f2/88/1b/jamesfleeting/mephisto.git/objects does not exist; check .git/objects/info/alternates. | |
remote: error: object directory /data/git/repositories/7/f2/88/1b/jamesfleeting/mephisto.git/objects does not exist; check .git/objects/info/alternates. | |
remote: error: object directory /data/git/repositories/0/89/0e/7c/igotimac/birdblog.git/objects does not exist; check .git/objects/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
# Run this rake file by navigating to the 'vendor/plugins/filtered_column_code_macro' | |
# directory on the command line and run "rake" to generate a new 'default_coderay.css' | |
# or by running "rake test" to execute the unit tests. | |
require 'rake' | |
require 'rake/testtask' | |
require 'pathname' | |
# require the coderay gem in the vendor/gems dir | |
# (not dependent on globally installed coderay gem) | |
$: << Pathname.glob(Pathname(__FILE__).parent.parent.parent + 'gems' + 'coderay*' + 'lib').to_s |
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
# XmlObjectParser by Dan Lynn | |
xml_str = <<XMLEND | |
<inventory title="OmniCorp Store #45x10^3"> | |
<section name="health"> | |
<item upc="123456789" stock="12"> | |
<name>Invisibility Cream</name> | |
<price>14.50</price> | |
<description>Makes you invisible</description> | |
</item> |
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
Feature: Manage Users | |
In order to manage user details | |
As a security enthusiast | |
I want to edit user profiles only when authorized | |
Scenario Outline: Show or hide edit profile link | |
Given the following user records | |
| username | password | admin | | |
| bob | secret | false | | |
| admin | secret | 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
Failures = Struct.new(:log, :last_success) | |
class Failures | |
def to_s | |
"log=#{log.size}, last_success=#{last_success}" | |
end | |
end | |
Failure = Struct.new(:time, :message) | |
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
danlynn:ZIPCodeLookupClient danlynn$ svn proplist --verbose ZipCodeLookUp.java | |
Properties on 'ZipCodeLookUp.java': | |
svn:eol-style | |
native |
OlderNewer