Permalink
Browse files

Rebrand to Schnitzelpress. Better now than later.

  • Loading branch information...
1 parent 44782c0 commit 02147c0130ea1dcd332e59dc7924bd66af2478cd @hmans committed Feb 26, 2012
View
2 README.md
@@ -1,4 +1,4 @@
-# SchnitzelPress
+# Schnitzelpress
## A lean, mean blogging machine for hackers and fools.
View
2 bin/schnitzelpress
@@ -2,4 +2,4 @@
require "rubygems"
require "schnitzelpress/cli"
-SchnitzelPress::Cli.start
+Schnitzelpress::Cli.start
View
6 lib/schnitzelpress.rb
@@ -27,13 +27,13 @@
Mongoid.logger.level = 3
-module SchnitzelPress
+module Schnitzelpress
mattr_reader :mongo_uri
class << self
def mongo_uri=(uri)
Mongoid::Config.from_hash("uri" => uri)
- SchnitzelPress::Post.create_indexes
+ Schnitzelpress::Post.create_indexes
@@mongo_uri = uri
end
@@ -48,7 +48,7 @@ module Haml::Filters::Redcarpet
include Haml::Filters::Base
def render(text)
- Redcarpet::Markdown.new(SchnitzelPress::MarkdownRenderer,
+ Redcarpet::Markdown.new(Schnitzelpress::MarkdownRenderer,
:autolink => true, :space_after_headers => true, :fenced_code_blocks => true).
render(text)
end
View
2 lib/schnitzelpress/actions/admin.rb
@@ -1,4 +1,4 @@
-module SchnitzelPress
+module Schnitzelpress
module Actions
module Admin
extend ActiveSupport::Concern
View
2 lib/schnitzelpress/actions/auth.rb
@@ -1,7 +1,7 @@
require 'omniauth'
require 'omniauth-browserid'
-module SchnitzelPress
+module Schnitzelpress
module Actions
module Auth
extend ActiveSupport::Concern
View
2 lib/schnitzelpress/actions/blog.rb
@@ -1,4 +1,4 @@
-module SchnitzelPress
+module Schnitzelpress
module Actions
module Blog
extend ActiveSupport::Concern
View
12 lib/schnitzelpress/app.rb
@@ -1,4 +1,4 @@
-module SchnitzelPress
+module Schnitzelpress
class App < Sinatra::Base
STATIC_PATHS = ["/favicon.ico", "/img", "/js"]
@@ -12,14 +12,14 @@ class App < Sinatra::Base
use Rack::MethodOverride
use Rack::Session::Cookie
- helpers SchnitzelPress::Helpers
+ helpers Schnitzelpress::Helpers
include Rack::Utils
- include SchnitzelPress::Actions::Auth
- include SchnitzelPress::Actions::Admin
- include SchnitzelPress::Actions::Blog
+ include Schnitzelpress::Actions::Auth
+ include Schnitzelpress::Actions::Admin
+ include Schnitzelpress::Actions::Blog
configure do
- set :blog_title, "My SchnitzelPress Blog"
+ set :blog_title, "My Schnitzelpress Blog"
set :blog_description, ""
set :author_name, "Author"
set :disqus_name, nil
View
4 lib/schnitzelpress/cli.rb
@@ -1,12 +1,12 @@
require "thor"
-module SchnitzelPress
+module Schnitzelpress
class Cli < Thor
include Thor::Actions
source_root(File.expand_path('../../templates', __FILE__))
- desc "create NAME", "Creates a new SchnitzelPress blog."
+ desc "create NAME", "Creates a new Schnitzelpress blog."
method_option :git, :aliases => "-g", :default => false,
:desc => "Initialize a git repository in your blog's directory."
View
2 lib/schnitzelpress/helpers.rb
@@ -1,4 +1,4 @@
-module SchnitzelPress
+module Schnitzelpress
module Helpers
def h(*args)
escape_html(*args)
View
2 lib/schnitzelpress/markdown_renderer.rb
@@ -1,4 +1,4 @@
-module SchnitzelPress
+module Schnitzelpress
class MarkdownRenderer < Redcarpet::Render::HTML
include Redcarpet::Render::SmartyPants
View
2 lib/schnitzelpress/post.rb
@@ -7,7 +7,7 @@
SoundCloudProvider << "http://*.soundcloud.com/*"
OEmbed::Providers.register(SoundCloudProvider)
-module SchnitzelPress
+module Schnitzelpress
class Post
include Mongoid::Document
include Mongoid::Timestamps
View
6 lib/schnitzelpress/rake.rb
@@ -1,6 +1,6 @@
require 'schnitzelpress'
-desc 'Run the SchnitzelPress console'
+desc 'Run the Schnitzelpress console'
task :console do
require 'pry'
ARGV.clear
@@ -10,11 +10,11 @@
namespace :db do
desc 'Import Heroku database to local database'
task :pull do
- system "MONGO_URL=\"#{SchnitzelPress.mongo_uri}\" heroku mongo:pull"
+ system "MONGO_URL=\"#{Schnitzelpress.mongo_uri}\" heroku mongo:pull"
end
desc 'Push local database to Heroku'
task :push do
- system "MONGO_URL=\"#{SchnitzelPress.mongo_uri}\" heroku mongo:push"
+ system "MONGO_URL=\"#{Schnitzelpress.mongo_uri}\" heroku mongo:push"
end
end
View
2 lib/schnitzelpress/static.rb
@@ -1,4 +1,4 @@
-module SchnitzelPress
+module Schnitzelpress
class Static
def initialize(app, public_dir = './public')
@file = Rack::File.new(public_dir)
View
2 lib/schnitzelpress/version.rb
@@ -1,3 +1,3 @@
-module SchnitzelPress
+module Schnitzelpress
VERSION = "0.2.0"
end
View
8 lib/templates/new_blog/app.rb.tt
@@ -3,17 +3,17 @@ require 'rubygems'
require 'bundler'
Bundler.require
-SchnitzelPress.mongo_uri = case SchnitzelPress.env
+Schnitzelpress.mongo_uri = case Schnitzelpress.env
when "development" then 'mongodb://localhost/<%= @name %>'
when "production" then ENV['MONGOLAB_URI'] || ENV['MONGOHQ_URL'] || ENV['MONGO_URL']
end
-class App < SchnitzelPress::App
+class App < Schnitzelpress::App
configure do
set :blog_title, "<%= @name %>"
- set :blog_description, "A new blog powered by SchnitzelPress."
+ set :blog_description, "A new blog powered by Schnitzelpress."
set :author_name, "Your Name"
- set :footer, "powered by [SchnitzelPress #{SchnitzelPress::VERSION}](http://schnitzelpress.org)"
+ set :footer, "powered by [Schnitzelpress #{Schnitzelpress::VERSION}](http://schnitzelpress.org)"
# Set :uid to your email address. Only the user with this email address
# will be able to log into the administration section of your blog.
View
2 lib/templates/new_blog/config.ru.tt
@@ -5,7 +5,7 @@ require File.expand_path("../app.rb", __FILE__)
# on Heroku, but feel free to change this if eg. you'd prefer
# to use Memcache.
#
-if SchnitzelPress.env.production?
+if Schnitzelpress.env.production?
use Rack::Cache, {
:verbose => true,
:metastore => URI.encode("file:/tmp/cache/meta"),
View
2 lib/views/index.haml
@@ -5,7 +5,7 @@
- else
#welcome
:redcarpet
- **Congratulations on setting up your new SchnitzelPress blog!**
+ **Congratulations on setting up your new Schnitzelpress blog!**
A world of hackery and adventure awaits.
<span class="heart">♥</span>
View
2 schnitzelpress.gemspec
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
gem.name = "schnitzelpress"
gem.require_paths = ["lib"]
- gem.version = SchnitzelPress::VERSION
+ gem.version = Schnitzelpress::VERSION
# base dependencies
gem.add_dependency 'rack', '~> 1.4.1'
View
4 spec/app_spec.rb
@@ -1,12 +1,12 @@
require 'spec_helper'
-class TestApp < SchnitzelPress::App
+class TestApp < Schnitzelpress::App
configure do
set :blog_title, "A Test Blog"
end
end
-describe SchnitzelPress::App do
+describe Schnitzelpress::App do
include Rack::Test::Methods
def app
View
2 spec/factories.rb
@@ -1,5 +1,5 @@
FactoryGirl.define do
- factory :post, :class => SchnitzelPress::Post do
+ factory :post, :class => Schnitzelpress::Post do
title { Faker::Lorem.sentence }
body { Faker::Lorem.paragraphs }
published_at { Time.now }
View
4 spec/post_spec.rb
@@ -1,6 +1,6 @@
require 'spec_helper'
-describe SchnitzelPress::Post do
+describe Schnitzelpress::Post do
subject do
Factory.build(:post)
end
@@ -81,7 +81,7 @@
it 'should return the latest published posts' do
2.times { Factory :draft_post }
5.times { Factory :published_post }
- SchnitzelPress::Post.latest.size.should == 5
+ Schnitzelpress::Post.latest.size.should == 5
end
end
View
2 spec/spec_helper.rb
@@ -7,7 +7,7 @@
require 'schnitzelpress'
-SchnitzelPress.mongo_uri = 'mongodb://localhost/_schreihals_test'
+Schnitzelpress.mongo_uri = 'mongodb://localhost/_schreihals_test'
require 'awesome_print'
require 'rack/test'

0 comments on commit 02147c0

Please sign in to comment.