Skip to content

Instantly share code, notes, and snippets.

$_->path_info =~ m/$URI/;
my $ext = apilib::set_ext($q,$2);
(my $header, my $type)=apilib::set_output_format($ext);
my $fh = $q->upload('myfile');
if (defined $fh) {
my $io_handle = $fh->handle;
my $buffer;
open (OUTFILE, '>>', "$stageout_dir/$1.tgz");
while (my $bytesread = $io_handle->read($buffer, 1024)) {
print OUTFILE $buffer;
source 'http://rubygems.org'
gem 'rails', '3.0.3'
gem 'devise'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3-ruby', :require => 'sqlite3'
group :development, :test do
abstract (1.0.0)
actionmailer (3.0.3)
actionpack (3.0.3)
activemodel (3.0.3)
activerecord (3.0.3)
activeresource (3.0.3)
activesupport (3.0.3)
arel (2.0.7)
aruba (0.3.2)
authlogic (2.1.6)
abstract (1.0.0)
actionmailer (3.0.3)
actionpack (3.0.3)
activemodel (3.0.3)
activerecord (3.0.3)
activeresource (3.0.3)
activesupport (3.0.3)
arel (2.0.8, 2.0.7)
bcrypt-ruby (2.1.4)
builder (2.1.2)
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"
version="2.1">
<persistence-unit name="primary">
<properties>
<property name="javax.persistence.schema-generation.database.action" value="drop-and-create"/>
</properties>