Skip to content

Commit

Permalink
make it a gem
Browse files Browse the repository at this point in the history
  • Loading branch information
UnderpantsGnome committed Dec 29, 2010
1 parent b905488 commit bbdd3f3
Show file tree
Hide file tree
Showing 105 changed files with 9,847 additions and 540 deletions.
19 changes: 10 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
.bundle
db/*.sqlite3
log/*
tmp/*
.DS_Store
doc/api
doc/app
coverage
coverage.data
pkg
rerun.txt
config/database.yml
public/stylesheets/*.css
public/javascripts/cache
public/stylesheets/cache
test/dummy/config/database.yml
test/dummy/coverage
test/dummy/coverage.data
test/dummy/db/*.sqlite3
test/dummy/log/*
test/dummy/public/javascripts/cache
test/dummy/public/stylesheets/*.css
test/dummy/public/stylesheets/cache
test/dummy/tmp/*
6 changes: 4 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source 'http://rubygems.org'

gem 'rails', '3.0.3'
gem 'rails', '~> 3.0.3'
gem 'devise'
gem 'friendly_id', '3.1.8'
gem 'formtastic', '>= 1.2.3.beta'
Expand All @@ -9,7 +9,6 @@ gem 'haml-rails'
gem 'jquery-rails'
gem 'RedCloth'
gem 'sass', '>= 3.1.0.alpha.206'
gem 'mysql'
gem 'will_paginate', ">= 3.0.pre2"

group :development, :test do
Expand All @@ -22,12 +21,15 @@ group :development, :test do
gem 'cucumber-rails'
gem 'database_cleaner', '>= 0.6.0'
gem 'faker'
gem 'jeweler'
gem 'launchy'
gem 'machinist', '>= 2.0.0.beta2'
gem 'mysql'
gem 'pickle'
gem 'rcov'
gem 'redgreen'
gem 'rspec-rails', '2.0.1'
gem 'ruby-debug'
gem 'sqlite3-ruby'
gem 'wirble'
end
10 changes: 9 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,18 @@ GEM
gherkin (2.3.2)
json (~> 1.4.6)
term-ansicolor (~> 1.0.5)
git (1.2.5)
haml (3.0.25)
haml-rails (0.3.4)
actionpack (~> 3.0)
activesupport (~> 3.0)
haml (~> 3.0)
railties (~> 3.0)
i18n (0.5.0)
jeweler (1.5.2)
bundler (~> 1.0.0)
git (>= 1.2.5)
rake
jquery-rails (0.2.6)
rails (~> 3.0)
thor (~> 0.14.4)
Expand Down Expand Up @@ -161,6 +166,7 @@ GEM
ffi (~> 0.6.3)
json_pure
rubyzip
sqlite3-ruby (1.3.2)
sys-uname (0.8.5)
term-ansicolor (1.0.5)
thor (0.14.6)
Expand Down Expand Up @@ -194,16 +200,18 @@ DEPENDENCIES
friendly_id (= 3.1.8)
haml (>= 3.0.23)
haml-rails
jeweler
jquery-rails
launchy
machinist (>= 2.0.0.beta2)
mysql
pickle
rails (= 3.0.3)
rails (~> 3.0.3)
rcov
redgreen
rspec-rails (= 2.0.1)
ruby-debug
sass (>= 3.1.0.alpha.206)
sqlite3-ruby
will_paginate (>= 3.0.pre2)
wirble
20 changes: 20 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (c) 2010 Michael Moen

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4 changes: 2 additions & 2 deletions README.textile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
h1. Bloggy
h1. Jabe

h3. What is this?

Bloggy is a bare bones blogging engine that is ultimately intended to be installed as a gem. It will grow as its needs do.
Jabe is a bare bones blogging engine that is ultimately intended to be installed as a gem. It will grow as its needs do.

h2. Basic TODOs

Expand Down
58 changes: 53 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,55 @@
# 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.expand_path('../config/application', __FILE__)
require 'rubygems'
require 'bundler'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'rake'

Bloggy::Application.load_tasks
require 'jeweler'
Jeweler::Tasks.new do |gem|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
gem.name = "jabe"
gem.homepage = "http://github.com/pixels-and-bits/jabe"
gem.license = "MIT"
gem.summary = "Just Another Blog Engine"
gem.description = "Blog engine for Rails 3+"
gem.email = "[email protected]"
gem.authors = ['Michael Moen a.k.a. UnderpantsGnome', 'Neil Heinrich']
gem.files.exclude 'test/dummy'
gem.files.exclude 'spec'
# Include your dependencies below. Runtime dependencies are required when using your gem,
# and development dependencies are only needed for development (ie running rake tasks, tests, etc)
# gem.add_runtime_dependency 'jabber4r', '> 0.1'
# gem.add_development_dependency 'rspec', '> 1.2.3'
end
Jeweler::RubygemsDotOrgTasks.new

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end

require 'rcov/rcovtask'
Rcov::RcovTask.new do |test|
test.libs << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end

task :default => :test

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""

rdoc.rdoc_dir = 'rdoc'
rdoc.title = "jabe #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.5.0
2 changes: 1 addition & 1 deletion app/controllers/admin/settings_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class Admin::SettingsController < Admin::BaseController

def update
if SETTINGS.update_attributes(params[:settings])
Time.zone = SETTINGS.time_zone
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/entries_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def show
def entry
@entry ||= Entry.find(params[:id])
end

def comment
@comment ||= entry.comments.new
end
Expand Down
2 changes: 0 additions & 2 deletions app/helpers/admin/base_helper.rb

This file was deleted.

2 changes: 0 additions & 2 deletions app/helpers/admin/entries_helper.rb

This file was deleted.

2 changes: 0 additions & 2 deletions app/helpers/admin/settings_helper.rb

This file was deleted.

8 changes: 4 additions & 4 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module ApplicationHelper
def public_entry_url(entry)

end

def public_entry_path(entry)
"/#{entry.published_at.to_s(:url_part)}/#{entry.to_param}"
end

def public_entry_url(entry)
"#{SETTINGS.site_url}/#{public_entry_url(entry)}"
end
end
2 changes: 0 additions & 2 deletions app/helpers/comments_helper.rb

This file was deleted.

2 changes: 0 additions & 2 deletions app/helpers/entries_helper.rb

This file was deleted.

2 changes: 0 additions & 2 deletions app/helpers/home_helper.rb

This file was deleted.

2 changes: 0 additions & 2 deletions autotest/discover.rb

This file was deleted.

16 changes: 0 additions & 16 deletions config/app.yml

This file was deleted.

13 changes: 0 additions & 13 deletions config/boot.rb

This file was deleted.

22 changes: 0 additions & 22 deletions config/database.template.yml

This file was deleted.

Loading

0 comments on commit bbdd3f3

Please sign in to comment.