-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First pass of moving to rail3 and hobo 1.3
rake cookbook tasks working and rails server runs but not all views work yet.
- Loading branch information
Showing
89 changed files
with
4,622 additions
and
2,287 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
log | ||
tmp | ||
.DS_Store | ||
.bundle | ||
db/*.sqlite3 | ||
log/*.log | ||
tmp/ | ||
|
||
.DS_Store | ||
vendor/plugins/footnotes-edge | ||
tmtags | ||
app/views/taglibs/auto | ||
public/img/* | ||
rails3app | ||
.idea/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
rvm ruby-1.8.7@hobocookbook | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
source 'http://rubygems.org' | ||
|
||
gem 'rails', '3.0.8' | ||
gem 'rake', '0.8.7' | ||
|
||
# Bundle edge Rails instead: | ||
# gem 'rails', :git => 'git://github.com/rails/rails.git' | ||
|
||
gem 'sqlite3' | ||
gem 'mysql' | ||
|
||
# Use unicorn as the web server | ||
# gem 'unicorn' | ||
|
||
# Deploy with Capistrano | ||
# gem 'capistrano' | ||
gem 'yard' | ||
|
||
# To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+) | ||
# gem 'ruby-debug' | ||
# gem 'ruby-debug19', :require => 'ruby-debug' | ||
|
||
# Bundle the extra gems: | ||
# gem 'bj' | ||
# gem 'nokogiri' | ||
# gem 'sqlite3-ruby', :require => 'sqlite3' | ||
# gem 'aws-s3', :require => 'aws/s3' | ||
|
||
# Bundle gems for the local environment. Make sure to | ||
# put test-only gems in this group so their generators | ||
# and rake tasks are available in development mode: | ||
# group :development, :test do | ||
# gem 'webrat' | ||
# end | ||
|
||
gem 'maruku' | ||
|
||
gem "hobo", "1.3.0.RC" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
GEM | ||
remote: http://rubygems.org/ | ||
specs: | ||
abstract (1.0.0) | ||
actionmailer (3.0.8) | ||
actionpack (= 3.0.8) | ||
mail (~> 2.2.19) | ||
actionpack (3.0.8) | ||
activemodel (= 3.0.8) | ||
activesupport (= 3.0.8) | ||
builder (~> 2.1.2) | ||
erubis (~> 2.6.6) | ||
i18n (~> 0.5.0) | ||
rack (~> 1.2.1) | ||
rack-mount (~> 0.6.14) | ||
rack-test (~> 0.5.7) | ||
tzinfo (~> 0.3.23) | ||
activemodel (3.0.8) | ||
activesupport (= 3.0.8) | ||
builder (~> 2.1.2) | ||
i18n (~> 0.5.0) | ||
activerecord (3.0.8) | ||
activemodel (= 3.0.8) | ||
activesupport (= 3.0.8) | ||
arel (~> 2.0.10) | ||
tzinfo (~> 0.3.23) | ||
activeresource (3.0.8) | ||
activemodel (= 3.0.8) | ||
activesupport (= 3.0.8) | ||
activesupport (3.0.8) | ||
arel (2.0.10) | ||
builder (2.1.2) | ||
dryml (1.3.0.RC) | ||
actionpack (~> 3.0.0) | ||
hobo_support (= 1.3.0.RC) | ||
erubis (2.6.6) | ||
abstract (>= 1.0.0) | ||
hobo (1.3.0.RC) | ||
dryml (= 1.3.0.RC) | ||
hobo_fields (= 1.3.0.RC) | ||
hobo_support (= 1.3.0.RC) | ||
will_paginate (>= 3.0.pre) | ||
hobo_fields (1.3.0.RC) | ||
hobo_support (= 1.3.0.RC) | ||
hobo_support (1.3.0.RC) | ||
rails (~> 3.0.0) | ||
i18n (0.5.0) | ||
mail (2.2.19) | ||
activesupport (>= 2.3.6) | ||
i18n (>= 0.4.0) | ||
mime-types (~> 1.16) | ||
treetop (~> 1.4.8) | ||
maruku (0.6.0) | ||
syntax (>= 1.0.0) | ||
mime-types (1.16) | ||
mysql (2.8.1) | ||
polyglot (0.3.1) | ||
rack (1.2.3) | ||
rack-mount (0.6.14) | ||
rack (>= 1.0.0) | ||
rack-test (0.5.7) | ||
rack (>= 1.0) | ||
rails (3.0.8) | ||
actionmailer (= 3.0.8) | ||
actionpack (= 3.0.8) | ||
activerecord (= 3.0.8) | ||
activeresource (= 3.0.8) | ||
activesupport (= 3.0.8) | ||
bundler (~> 1.0) | ||
railties (= 3.0.8) | ||
railties (3.0.8) | ||
actionpack (= 3.0.8) | ||
activesupport (= 3.0.8) | ||
rake (>= 0.8.7) | ||
thor (~> 0.14.4) | ||
rake (0.8.7) | ||
sqlite3 (1.3.3) | ||
syntax (1.0.0) | ||
thor (0.14.6) | ||
treetop (1.4.9) | ||
polyglot (>= 0.3.1) | ||
tzinfo (0.3.27) | ||
will_paginate (3.0.pre2) | ||
yard (0.7.1) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
hobo (= 1.3.0.RC) | ||
maruku | ||
mysql | ||
rails (= 3.0.8) | ||
rake (= 0.8.7) | ||
sqlite3 | ||
yard |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
# Add your own tasks in files placed in lib/tasks ending in .rake, | ||
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. | ||
|
||
require(File.join(File.dirname(__FILE__), 'config', 'boot')) | ||
|
||
require 'thread' | ||
require File.expand_path('../config/application', __FILE__) | ||
require 'rake' | ||
require 'rake/testtask' | ||
require 'rake/rdoctask' | ||
|
||
require 'tasks/rails' | ||
Hobocookbook::Application.load_tasks | ||
|
||
|
||
|
||
require(File.join(File.dirname(__FILE__), 'config', 'boot')) | ||
|
||
# from previous version | ||
|
||
require 'vlad' | ||
Vlad.load(:app => nil, :scm => :git) | ||
#require 'thread' | ||
#require 'rake' | ||
#require 'rake/testtask' | ||
#require 'rake/rdoctask' | ||
# | ||
#require 'tasks/rails' | ||
# | ||
#require 'vlad' | ||
#Vlad.load(:app => nil, :scm => :git) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,19 @@ | ||
# Filters added to this controller apply to all controllers in the application. | ||
# Likewise, all the methods added will be available for all controllers. | ||
|
||
class ApplicationController < ActionController::Base | ||
helper :all # include all helpers, all the time | ||
protect_from_forgery | ||
|
||
# helper :all # include all helpers, all the time | ||
|
||
|
||
protect_from_forgery # :secret => 'fa42ca8790f4b08ffbaf2b0b854bdbcc' | ||
|
||
before_filter :login_required, :only => [:new, :edit] | ||
|
||
private | ||
|
||
def last_update(filename) | ||
Dir.chdir(File.open("#{RAILS_ROOT}/git-path").read.chomp) do | ||
head = File.open("#{RAILS_ROOT}/git-version").read.chomp | ||
commit = `git rev-list #{head} #{filename} | head -n 1` | ||
commit = `git rev-list #{head} #{filename} | head -n 1` | ||
date_s = `git show --pretty=format:%cD #{commit} | head -n 1` | ||
date_s ? Date.parse(date_s) : "" | ||
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
# Methods added to this helper will be available to all templates in the application. | ||
module ApplicationHelper | ||
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
class Guest < Hobo::Guest | ||
class Guest < Hobo::Model::Guest | ||
|
||
def can_update?(obj, field) | ||
false | ||
|
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
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
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.