spud_blog 0.6.3 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +40 -0
- data/app/controllers/blog_controller.rb +12 -9
- data/app/controllers/news_controller.rb +11 -3
- data/app/controllers/spud/admin/news_posts_controller.rb +1 -9
- data/app/controllers/spud/admin/post_categories_controller.rb +1 -1
- data/app/controllers/spud/admin/posts_controller.rb +1 -9
- data/app/controllers/spud/blog/sitemaps_controller.rb +2 -1
- data/app/models/spud_post_category_sweeper.rb +41 -0
- data/app/models/spud_post_comment.rb +1 -0
- data/app/models/spud_post_comment_sweeper.rb +33 -0
- data/app/models/spud_post_sweeper.rb +44 -0
- data/db/migrate/20120125180945_create_spud_posts.rb +15 -0
- data/db/migrate/20120125181022_create_spud_post_categories.rb +13 -0
- data/db/migrate/20120125181359_create_spud_post_comments.rb +13 -0
- data/db/migrate/20120127143054_add_url_to_spud_posts.rb +6 -0
- data/db/migrate/20120127144942_add_url_to_spud_post_categories.rb +8 -0
- data/db/migrate/20120210165540_add_is_news_to_spud_posts.rb +6 -0
- data/lib/spud_blog/configuration.rb +10 -3
- data/lib/spud_blog/version.rb +5 -0
- data/lib/tasks/spud_blog_tasks.rake +4 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +56 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +15 -0
- data/test/dummy/config/environment.rb +10 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/db/schema.rb +64 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- metadata +170 -14
@@ -0,0 +1,10 @@
|
|
1
|
+
# Load the rails application
|
2
|
+
require File.expand_path('../application', __FILE__)
|
3
|
+
|
4
|
+
Spud::Blog.configure do |config|
|
5
|
+
config.news_enabled = true
|
6
|
+
config.news_layout = 'application'
|
7
|
+
end
|
8
|
+
|
9
|
+
# Initialize the rails application
|
10
|
+
Dummy::Application.initialize!
|
@@ -0,0 +1,37 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# In the development environment your application's code is reloaded on
|
5
|
+
# every request. This slows down response time but is perfect for development
|
6
|
+
# since you don't have to restart the web server when you make code changes.
|
7
|
+
config.cache_classes = false
|
8
|
+
|
9
|
+
# Log error messages when you accidentally call methods on nil.
|
10
|
+
config.whiny_nils = true
|
11
|
+
|
12
|
+
# Show full error reports and disable caching
|
13
|
+
config.consider_all_requests_local = true
|
14
|
+
config.action_controller.perform_caching = false
|
15
|
+
|
16
|
+
# Don't care if the mailer can't send
|
17
|
+
config.action_mailer.raise_delivery_errors = false
|
18
|
+
|
19
|
+
# Print deprecation notices to the Rails logger
|
20
|
+
config.active_support.deprecation = :log
|
21
|
+
|
22
|
+
# Only use best-standards-support built into browsers
|
23
|
+
config.action_dispatch.best_standards_support = :builtin
|
24
|
+
|
25
|
+
# Raise exception on mass assignment protection for Active Record models
|
26
|
+
config.active_record.mass_assignment_sanitizer = :strict
|
27
|
+
|
28
|
+
# Log the query plan for queries taking more than this (works
|
29
|
+
# with SQLite, MySQL, and PostgreSQL)
|
30
|
+
config.active_record.auto_explain_threshold_in_seconds = 0.5
|
31
|
+
|
32
|
+
# Do not compress assets
|
33
|
+
config.assets.compress = false
|
34
|
+
|
35
|
+
# Expands the lines which load the assets
|
36
|
+
config.assets.debug = true
|
37
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# Code is not reloaded between requests
|
5
|
+
config.cache_classes = true
|
6
|
+
|
7
|
+
# Full error reports are disabled and caching is turned on
|
8
|
+
config.consider_all_requests_local = false
|
9
|
+
config.action_controller.perform_caching = true
|
10
|
+
|
11
|
+
# Disable Rails's static asset server (Apache or nginx will already do this)
|
12
|
+
config.serve_static_assets = false
|
13
|
+
|
14
|
+
# Compress JavaScripts and CSS
|
15
|
+
config.assets.compress = true
|
16
|
+
|
17
|
+
# Don't fallback to assets pipeline if a precompiled asset is missed
|
18
|
+
config.assets.compile = false
|
19
|
+
|
20
|
+
# Generate digests for assets URLs
|
21
|
+
config.assets.digest = true
|
22
|
+
|
23
|
+
# Defaults to Rails.root.join("public/assets")
|
24
|
+
# config.assets.manifest = YOUR_PATH
|
25
|
+
|
26
|
+
# Specifies the header that your server uses for sending files
|
27
|
+
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
28
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
29
|
+
|
30
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
31
|
+
# config.force_ssl = true
|
32
|
+
|
33
|
+
# See everything in the log (default is :info)
|
34
|
+
# config.log_level = :debug
|
35
|
+
|
36
|
+
# Prepend all log lines with the following tags
|
37
|
+
# config.log_tags = [ :subdomain, :uuid ]
|
38
|
+
|
39
|
+
# Use a different logger for distributed setups
|
40
|
+
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
41
|
+
|
42
|
+
# Use a different cache store in production
|
43
|
+
# config.cache_store = :mem_cache_store
|
44
|
+
|
45
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server
|
46
|
+
# config.action_controller.asset_host = "http://assets.example.com"
|
47
|
+
|
48
|
+
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
|
49
|
+
# config.assets.precompile += %w( search.js )
|
50
|
+
|
51
|
+
# Disable delivery errors, bad email addresses will be ignored
|
52
|
+
# config.action_mailer.raise_delivery_errors = false
|
53
|
+
|
54
|
+
# Enable threaded mode
|
55
|
+
# config.threadsafe!
|
56
|
+
|
57
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
58
|
+
# the I18n.default_locale when a translation can not be found)
|
59
|
+
config.i18n.fallbacks = true
|
60
|
+
|
61
|
+
# Send deprecation notices to registered listeners
|
62
|
+
config.active_support.deprecation = :notify
|
63
|
+
|
64
|
+
# Log the query plan for queries taking more than this (works
|
65
|
+
# with SQLite, MySQL, and PostgreSQL)
|
66
|
+
# config.active_record.auto_explain_threshold_in_seconds = 0.5
|
67
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Configure static asset server for tests with Cache-Control for performance
|
11
|
+
config.serve_static_assets = true
|
12
|
+
config.static_cache_control = "public, max-age=3600"
|
13
|
+
|
14
|
+
# Log error messages when you accidentally call methods on nil
|
15
|
+
config.whiny_nils = true
|
16
|
+
|
17
|
+
# Show full error reports and disable caching
|
18
|
+
config.consider_all_requests_local = true
|
19
|
+
config.action_controller.perform_caching = false
|
20
|
+
|
21
|
+
# Raise exceptions instead of rendering exception templates
|
22
|
+
config.action_dispatch.show_exceptions = false
|
23
|
+
|
24
|
+
# Disable request forgery protection in test environment
|
25
|
+
config.action_controller.allow_forgery_protection = false
|
26
|
+
|
27
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
28
|
+
# The :test delivery method accumulates sent emails in the
|
29
|
+
# ActionMailer::Base.deliveries array.
|
30
|
+
config.action_mailer.delivery_method = :test
|
31
|
+
|
32
|
+
# Raise exception on mass assignment protection for Active Record models
|
33
|
+
config.active_record.mass_assignment_sanitizer = :strict
|
34
|
+
|
35
|
+
# Print deprecation notices to the stderr
|
36
|
+
config.active_support.deprecation = :stderr
|
37
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format
|
4
|
+
# (all these examples are active by default):
|
5
|
+
# ActiveSupport::Inflector.inflections do |inflect|
|
6
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
7
|
+
# inflect.singular /^(ox)en/i, '\1'
|
8
|
+
# inflect.irregular 'person', 'people'
|
9
|
+
# inflect.uncountable %w( fish sheep )
|
10
|
+
# end
|
11
|
+
#
|
12
|
+
# These inflection rules are supported but not enabled by default:
|
13
|
+
# ActiveSupport::Inflector.inflections do |inflect|
|
14
|
+
# inflect.acronym 'RESTful'
|
15
|
+
# end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
# Make sure the secret is at least 30 characters and all random,
|
6
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
+
Dummy::Application.config.secret_token = '3a89d4b95c1fd9c3d43623d8e2b5a907988d00bfdbfb6de2ae26b760a49fcdc86937728b8cdf3301e4df1342c5f44a3d8d83410d857e341f1907c9c467b9bcf4'
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
|
4
|
+
|
5
|
+
# Use the database for sessions instead of the cookie-based default,
|
6
|
+
# which shouldn't be used to store highly confidential information
|
7
|
+
# (create the session table with "rails generate session_migration")
|
8
|
+
# Dummy::Application.config.session_store :active_record_store
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
#
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json]
|
9
|
+
end
|
10
|
+
|
11
|
+
# Disable root element in JSON by default.
|
12
|
+
ActiveSupport.on_load(:active_record) do
|
13
|
+
self.include_root_in_json = false
|
14
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended to check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(:version => 20120210165540) do
|
15
|
+
|
16
|
+
create_table "spud_post_categories", :force => true do |t|
|
17
|
+
t.string "name"
|
18
|
+
t.datetime "created_at", :null => false
|
19
|
+
t.datetime "updated_at", :null => false
|
20
|
+
t.integer "parent_id", :default => 0
|
21
|
+
t.string "url_name"
|
22
|
+
end
|
23
|
+
|
24
|
+
add_index "spud_post_categories", ["parent_id"], :name => "index_spud_post_categories_on_parent_id"
|
25
|
+
add_index "spud_post_categories", ["url_name"], :name => "index_spud_post_categories_on_url_name"
|
26
|
+
|
27
|
+
create_table "spud_post_categories_posts", :id => false, :force => true do |t|
|
28
|
+
t.integer "spud_post_id"
|
29
|
+
t.integer "spud_post_category_id"
|
30
|
+
end
|
31
|
+
|
32
|
+
add_index "spud_post_categories_posts", ["spud_post_category_id"], :name => "index_spud_post_categories_posts_on_spud_post_category_id"
|
33
|
+
|
34
|
+
create_table "spud_post_comments", :force => true do |t|
|
35
|
+
t.integer "spud_post_id"
|
36
|
+
t.string "author"
|
37
|
+
t.text "content"
|
38
|
+
t.boolean "approved", :default => false
|
39
|
+
t.datetime "created_at", :null => false
|
40
|
+
t.datetime "updated_at", :null => false
|
41
|
+
end
|
42
|
+
|
43
|
+
add_index "spud_post_comments", ["approved"], :name => "index_spud_post_comments_on_approved"
|
44
|
+
add_index "spud_post_comments", ["spud_post_id"], :name => "index_spud_post_comments_on_spud_post_id"
|
45
|
+
|
46
|
+
create_table "spud_posts", :force => true do |t|
|
47
|
+
t.integer "spud_user_id"
|
48
|
+
t.string "title"
|
49
|
+
t.text "content"
|
50
|
+
t.boolean "comments_enabled", :default => false
|
51
|
+
t.boolean "visible", :default => true
|
52
|
+
t.datetime "published_at"
|
53
|
+
t.datetime "created_at", :null => false
|
54
|
+
t.datetime "updated_at", :null => false
|
55
|
+
t.string "url_name"
|
56
|
+
t.boolean "is_news", :default => false
|
57
|
+
end
|
58
|
+
|
59
|
+
add_index "spud_posts", ["is_news"], :name => "index_spud_posts_on_is_news"
|
60
|
+
add_index "spud_posts", ["spud_user_id"], :name => "index_spud_posts_on_spud_user_id"
|
61
|
+
add_index "spud_posts", ["url_name"], :name => "index_spud_posts_on_url_name"
|
62
|
+
add_index "spud_posts", ["visible"], :name => "index_spud_posts_on_visible"
|
63
|
+
|
64
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spud_blog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,21 +9,99 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-03-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: &70153959711060 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.2.1
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70153959711060
|
14
25
|
- !ruby/object:Gem::Dependency
|
15
26
|
name: spud_core
|
16
|
-
requirement: &
|
27
|
+
requirement: &70153959710480 !ruby/object:Gem::Requirement
|
17
28
|
none: false
|
18
29
|
requirements:
|
19
|
-
- -
|
30
|
+
- - ~>
|
20
31
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
32
|
+
version: 0.7.0
|
22
33
|
type: :runtime
|
23
34
|
prerelease: false
|
24
|
-
version_requirements: *
|
25
|
-
|
26
|
-
|
35
|
+
version_requirements: *70153959710480
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: mysql2
|
38
|
+
requirement: &70153959710080 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70153959710080
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rspec
|
49
|
+
requirement: &70153959709620 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *70153959709620
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: rspec-rails
|
60
|
+
requirement: &70153959709160 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *70153959709160
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: factory_girl
|
71
|
+
requirement: &70153959708660 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - =
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 2.5.0
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *70153959708660
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: mocha
|
82
|
+
requirement: &70153959708160 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - =
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: 0.10.3
|
88
|
+
type: :development
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: *70153959708160
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: database_cleaner
|
93
|
+
requirement: &70153959707680 !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
95
|
+
requirements:
|
96
|
+
- - =
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: 0.7.1
|
99
|
+
type: :development
|
100
|
+
prerelease: false
|
101
|
+
version_requirements: *70153959707680
|
102
|
+
description: Spud blogging/news and rss engine.
|
103
|
+
email:
|
104
|
+
- greg@westlakedesign.com
|
27
105
|
executables: []
|
28
106
|
extensions: []
|
29
107
|
extra_rdoc_files: []
|
@@ -34,8 +112,8 @@ files:
|
|
34
112
|
- app/assets/javascripts/spud/admin/post_categories.js
|
35
113
|
- app/assets/javascripts/spud/admin/post_comments.js
|
36
114
|
- app/assets/javascripts/spud/admin/posts.js
|
37
|
-
- app/assets/javascripts/spud/blog.js
|
38
115
|
- app/assets/javascripts/spud/blog/sitemaps.js
|
116
|
+
- app/assets/javascripts/spud/blog.js
|
39
117
|
- app/assets/stylesheets/news.css
|
40
118
|
- app/assets/stylesheets/spud/admin/news_posts.css
|
41
119
|
- app/assets/stylesheets/spud/admin/post_categories.css
|
@@ -58,7 +136,10 @@ files:
|
|
58
136
|
- app/helpers/spud/blog/sitemaps_helper.rb
|
59
137
|
- app/models/spud_post.rb
|
60
138
|
- app/models/spud_post_category.rb
|
139
|
+
- app/models/spud_post_category_sweeper.rb
|
61
140
|
- app/models/spud_post_comment.rb
|
141
|
+
- app/models/spud_post_comment_sweeper.rb
|
142
|
+
- app/models/spud_post_sweeper.rb
|
62
143
|
- app/views/blog/_comment.html.erb
|
63
144
|
- app/views/blog/_comment_form.html.erb
|
64
145
|
- app/views/blog/index.html.erb
|
@@ -85,12 +166,52 @@ files:
|
|
85
166
|
- config/application.rb
|
86
167
|
- config/boot.rb
|
87
168
|
- config/routes.rb
|
169
|
+
- db/migrate/20120125180945_create_spud_posts.rb
|
170
|
+
- db/migrate/20120125181022_create_spud_post_categories.rb
|
171
|
+
- db/migrate/20120125181359_create_spud_post_comments.rb
|
172
|
+
- db/migrate/20120127143054_add_url_to_spud_posts.rb
|
173
|
+
- db/migrate/20120127144942_add_url_to_spud_post_categories.rb
|
174
|
+
- db/migrate/20120210165540_add_is_news_to_spud_posts.rb
|
88
175
|
- lib/generators/spud/blog/random_posts_generator.rb
|
89
176
|
- lib/generators/spud/blog/views_generator.rb
|
90
|
-
- lib/spud_blog.rb
|
91
177
|
- lib/spud_blog/configuration.rb
|
92
178
|
- lib/spud_blog/engine.rb
|
93
|
-
|
179
|
+
- lib/spud_blog/version.rb
|
180
|
+
- lib/spud_blog.rb
|
181
|
+
- lib/tasks/spud_blog_tasks.rake
|
182
|
+
- MIT-LICENSE
|
183
|
+
- Rakefile
|
184
|
+
- README.rdoc
|
185
|
+
- test/dummy/app/assets/javascripts/application.js
|
186
|
+
- test/dummy/app/assets/stylesheets/application.css
|
187
|
+
- test/dummy/app/controllers/application_controller.rb
|
188
|
+
- test/dummy/app/helpers/application_helper.rb
|
189
|
+
- test/dummy/app/views/layouts/application.html.erb
|
190
|
+
- test/dummy/config/application.rb
|
191
|
+
- test/dummy/config/boot.rb
|
192
|
+
- test/dummy/config/database.yml
|
193
|
+
- test/dummy/config/environment.rb
|
194
|
+
- test/dummy/config/environments/development.rb
|
195
|
+
- test/dummy/config/environments/production.rb
|
196
|
+
- test/dummy/config/environments/test.rb
|
197
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
198
|
+
- test/dummy/config/initializers/inflections.rb
|
199
|
+
- test/dummy/config/initializers/mime_types.rb
|
200
|
+
- test/dummy/config/initializers/secret_token.rb
|
201
|
+
- test/dummy/config/initializers/session_store.rb
|
202
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
203
|
+
- test/dummy/config/locales/en.yml
|
204
|
+
- test/dummy/config/routes.rb
|
205
|
+
- test/dummy/config.ru
|
206
|
+
- test/dummy/db/schema.rb
|
207
|
+
- test/dummy/public/404.html
|
208
|
+
- test/dummy/public/422.html
|
209
|
+
- test/dummy/public/500.html
|
210
|
+
- test/dummy/public/favicon.ico
|
211
|
+
- test/dummy/Rakefile
|
212
|
+
- test/dummy/README.rdoc
|
213
|
+
- test/dummy/script/rails
|
214
|
+
homepage: http://github.com/davydotcom/spud_blog
|
94
215
|
licenses: []
|
95
216
|
post_install_message:
|
96
217
|
rdoc_options: []
|
@@ -102,16 +223,51 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
102
223
|
- - ! '>='
|
103
224
|
- !ruby/object:Gem::Version
|
104
225
|
version: '0'
|
226
|
+
segments:
|
227
|
+
- 0
|
228
|
+
hash: 497624753889644128
|
105
229
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
230
|
none: false
|
107
231
|
requirements:
|
108
232
|
- - ! '>='
|
109
233
|
- !ruby/object:Gem::Version
|
110
234
|
version: '0'
|
235
|
+
segments:
|
236
|
+
- 0
|
237
|
+
hash: 497624753889644128
|
111
238
|
requirements: []
|
112
239
|
rubyforge_project:
|
113
|
-
rubygems_version: 1.8.
|
240
|
+
rubygems_version: 1.8.10
|
114
241
|
signing_key:
|
115
242
|
specification_version: 3
|
116
|
-
summary: Spud Blog Engine
|
117
|
-
test_files:
|
243
|
+
summary: Spud Blog Engine.
|
244
|
+
test_files:
|
245
|
+
- test/dummy/app/assets/javascripts/application.js
|
246
|
+
- test/dummy/app/assets/stylesheets/application.css
|
247
|
+
- test/dummy/app/controllers/application_controller.rb
|
248
|
+
- test/dummy/app/helpers/application_helper.rb
|
249
|
+
- test/dummy/app/views/layouts/application.html.erb
|
250
|
+
- test/dummy/config/application.rb
|
251
|
+
- test/dummy/config/boot.rb
|
252
|
+
- test/dummy/config/database.yml
|
253
|
+
- test/dummy/config/environment.rb
|
254
|
+
- test/dummy/config/environments/development.rb
|
255
|
+
- test/dummy/config/environments/production.rb
|
256
|
+
- test/dummy/config/environments/test.rb
|
257
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
258
|
+
- test/dummy/config/initializers/inflections.rb
|
259
|
+
- test/dummy/config/initializers/mime_types.rb
|
260
|
+
- test/dummy/config/initializers/secret_token.rb
|
261
|
+
- test/dummy/config/initializers/session_store.rb
|
262
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
263
|
+
- test/dummy/config/locales/en.yml
|
264
|
+
- test/dummy/config/routes.rb
|
265
|
+
- test/dummy/config.ru
|
266
|
+
- test/dummy/db/schema.rb
|
267
|
+
- test/dummy/public/404.html
|
268
|
+
- test/dummy/public/422.html
|
269
|
+
- test/dummy/public/500.html
|
270
|
+
- test/dummy/public/favicon.ico
|
271
|
+
- test/dummy/Rakefile
|
272
|
+
- test/dummy/README.rdoc
|
273
|
+
- test/dummy/script/rails
|