hubbub 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,6 +29,7 @@ class ApplicationController < ActionController::Base
29
29
  end
30
30
 
31
31
  def feed_publisher_request?
32
+ logger.info "Feed Publisher Request?"
32
33
  Hubbub::Config[:publisher] && Hubbub::Config[:publisher][:user_agent] &&
33
34
  request.env['HTTP_USER_AGENT'].include?(Hubbub::Config[:publisher][:user_agent])
34
35
  end
@@ -8,10 +8,10 @@ class ArticlesController < ApplicationController
8
8
 
9
9
  format.atom do
10
10
  if feed_publisher_request?
11
- redirect_to feed_publisher_url
12
- else
13
11
  @articles = Article.feed_items
14
12
  render :layout => false
13
+ else
14
+ redirect_to feed_publisher_url
15
15
  end
16
16
  end
17
17
  end
@@ -13,9 +13,9 @@ site_url: http://depth-first.com
13
13
 
14
14
  # Uncomment to enable a feed publisher to handle atom requests
15
15
  # user requests
16
- # publisher:
17
- # redirect: http://feeds/feedburner.com/my-blog
18
- # user_agent: FeedBurner
16
+ publisher:
17
+ redirect: http://feeds.feedburner.com/depth-first
18
+ user_agent: FeedBurner
19
19
 
20
20
  # Page limit
21
21
  items_per_page: 50
@@ -9,7 +9,7 @@
9
9
  #
10
10
  # It's strongly recommended to check this file into your version control system.
11
11
 
12
- ActiveRecord::Schema.define(:version => 20091229164415) do
12
+ ActiveRecord::Schema.define(:version => 20100104224344) do
13
13
 
14
14
  create_table "articles", :force => true do |t|
15
15
  t.string "title"
@@ -24,6 +24,15 @@ ActiveRecord::Schema.define(:version => 20091229164415) do
24
24
  add_index "articles", ["title_slug"], :name => "index_articles_on_title_slug"
25
25
  add_index "articles", ["user_id"], :name => "index_articles_on_user_id"
26
26
 
27
+ create_table "comments", :force => true do |t|
28
+ t.text "body"
29
+ t.integer "article_id"
30
+ t.datetime "created_at"
31
+ t.datetime "updated_at"
32
+ end
33
+
34
+ add_index "comments", ["article_id"], :name => "index_comments_on_article_id"
35
+
27
36
  create_table "logins", :force => true do |t|
28
37
  t.string "openid_identifier"
29
38
  t.datetime "created_at"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubbub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - rich
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-02 00:00:00 -08:00
12
+ date: 2010-01-05 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency