Skip to content
This repository has been archived by the owner on May 28, 2021. It is now read-only.

Commit

Permalink
bye bye padrino
Browse files Browse the repository at this point in the history
  • Loading branch information
timmyc committed Aug 27, 2010
1 parent 8ac64e8 commit 2680198
Show file tree
Hide file tree
Showing 43 changed files with 198 additions and 693 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -1,2 +1,4 @@
db/development.db
tmp/*
log/*
.rvmrc
20 changes: 2 additions & 18 deletions Gemfile
Expand Up @@ -7,28 +7,12 @@ gem 'thin' # or mongrel

# Component requirements
gem 'haml'
gem 'data_objects'
gem 'do_sqlite3'
gem 'datamapper'
gem 'dm-core'
gem 'dm-validations'
gem 'dm-tags'
gem "dm-sqlite-adapter"
gem 'builder'
gem 'activerecord'
gem 'sinatra-activerecord'

# Test requirements
gem 'rspec', :group => "test", :require => "spec"
gem 'rack-test', :require => 'rack/test', :group => 'test'

# Padrino
gem 'padrino', "0.9.10"

# Cowpu Gems
gem 'feedtools'

group :production do
#gem 'bundler', '>0.9.9'
#gem 'pg'
#gem 'dm-postgres-adapter'
#gem 'do_postgres'
end
20 changes: 6 additions & 14 deletions Rakefile
@@ -1,15 +1,7 @@
require File.dirname(__FILE__) + '/config/boot.rb'
require 'thor'
require 'padrino-core/cli/rake'
# require your app file first
require 'sinatra-ar-exmple-app'
require 'sinatra/activerecord/rake'

PadrinoTasks.init

task :import do
require 'feed_tools'
import_url = ENV["import_url"] || "http://haiku2.com/cowpu.xml"
cowpu_feed = FeedTools::Feed.open(import_url)
cowpu_feed.items.each do |item|
title = item.title.gsub("Central Oregon Web Professionals Usergroup: ",'')
Post.create(:title => title, :body => item.description, :created_at => item.published, :account_id => 1)
end
end
$ rake -T
rake db:create_migration # create an ActiveRecord migration in ./db/migrate
rake db:migrate # migrate your database
33 changes: 0 additions & 33 deletions admin/app.rb

This file was deleted.

47 changes: 0 additions & 47 deletions admin/controllers/accounts.rb

This file was deleted.

6 changes: 0 additions & 6 deletions admin/controllers/base.rb

This file was deleted.

48 changes: 0 additions & 48 deletions admin/controllers/posts.rb

This file was deleted.

21 changes: 0 additions & 21 deletions admin/controllers/sessions.rb

This file was deleted.

40 changes: 0 additions & 40 deletions admin/views/accounts/_form.haml

This file was deleted.

15 changes: 0 additions & 15 deletions admin/views/accounts/edit.haml

This file was deleted.

31 changes: 0 additions & 31 deletions admin/views/accounts/index.haml

This file was deleted.

14 changes: 0 additions & 14 deletions admin/views/accounts/new.haml

This file was deleted.

11 changes: 0 additions & 11 deletions admin/views/base/_sidebar.haml

This file was deleted.

7 changes: 0 additions & 7 deletions admin/views/base/index.haml

This file was deleted.

34 changes: 0 additions & 34 deletions admin/views/layouts/application.haml

This file was deleted.

0 comments on commit 2680198

Please sign in to comment.