#Phoenix 1.1.x to 1.2.0 Upgrade Instructions
To generate new projects as 1.2.0, install the new mix archive:
mix archive.install https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez
/* | |
* | |
* First, set up a backend to answer the request if there's not a cache hit. | |
* | |
*/ | |
backend default { | |
# Set a host. | |
.host = "192.168.1.100"; |
diff --git a/gc.c b/gc.c | |
--- a/gc.c | |
+++ b/gc.c | |
@@ -77,6 +77,41 @@ void *alloca (); | |
#ifndef GC_MALLOC_LIMIT | |
#define GC_MALLOC_LIMIT 8000000 | |
#endif | |
+#define HEAP_MIN_SLOTS 10000 | |
+#define FREE_MIN 4096 | |
+ |
require "money" | |
class Decorator < BasicObject | |
undef_method :== | |
def initialize(component) | |
@component = component | |
end | |
def method_missing(name, *args, &block) |
require 'i18n' | |
if (Rails.env.development? || Rails.env.test?) && ENV['DEBUG_TRANSLATION'] | |
module I18n | |
class << self | |
def translate_with_debug(*args) | |
puts "Translate: #{args.inspect}" | |
translate_without_debug(*args) | |
end | |
alias_method_chain :translate, :debug |
require 'test_helper' | |
require 'minitest/autorun' | |
module Tenderlove | |
class Spec < MiniTest::Spec | |
include ActiveSupport::Testing::SetupAndTeardown | |
include ActiveRecord::TestFixtures | |
alias :method_name :__name__ if defined? :__name__ | |
self.fixture_path = File.join(Rails.root, 'test', 'fixtures') |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "precise64" | |
config.vm.network :private_network, ip: "192.168.33.2" | |
config.vm.synced_folder ".", "/Projects", id: "vagrant-root" | |
config.vm.provider(:vmware_fusion) do |v| | |
v.vmx["memsize"] = "2048" |
<article> | |
<header> | |
<h3><%= comment.author %></h3> | |
</header> | |
<%= comment.body %> | |
</article> |
#!/usr/bin/env bash | |
version="1.5.10" | |
pcre_version="8.34" | |
set -e | |
rm -rf nginx-$version* | |
# download nginx |
class DatabaseImporter | |
def initialize(sql_file) | |
@sql_file = sql_file | |
end | |
def all_values | |
tables_names.inject({}) { |memo,name| memo[name] = values_for(name); memo } | |
end |