beef-articles 0.3.34 → 0.3.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile
CHANGED
@@ -4,7 +4,7 @@ require 'rake'
|
|
4
4
|
begin
|
5
5
|
require 'jeweler'
|
6
6
|
Jeweler::Tasks.new do |gem|
|
7
|
-
gem.name = "articles"
|
7
|
+
gem.name = "beef-articles"
|
8
8
|
gem.summary = %Q{Article/Blogging engine}
|
9
9
|
gem.email = "steve@wearebeef.co.uk"
|
10
10
|
gem.homepage = "http://github.com/beef/articles"
|
@@ -13,7 +13,7 @@ begin
|
|
13
13
|
gem.add_dependency( "jackdempsey-acts_as_commentable")
|
14
14
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
15
15
|
end
|
16
|
-
|
16
|
+
Jeweler::GemcutterTasks.new
|
17
17
|
rescue LoadError
|
18
18
|
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
19
19
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.35
|
@@ -1,11 +1,11 @@
|
|
1
1
|
class Admin::ArticlesController < Admin::BaseController
|
2
2
|
unloadable
|
3
|
-
sortable_attributes :created_at, :published_at, :title, :permalink, :published_to, :body, :description, :allow_comments, :
|
3
|
+
sortable_attributes :created_at, :published_at, :title, :permalink, :published_to, :body, :description, :allow_comments, :created => 'users.name', :updated => 'updated_bies_articles.name'
|
4
4
|
|
5
5
|
# GET /articles
|
6
6
|
# GET /articles.xml
|
7
7
|
def index
|
8
|
-
@articles = Article.paginate :page => params[:page], :per_page => 20, :order => sort_order(:default => 'desc')
|
8
|
+
@articles = Article.paginate :page => params[:page], :per_page => 20, :order => sort_order(:default => 'desc'), :include => [:created_by, :updated_by]
|
9
9
|
|
10
10
|
respond_to do |format|
|
11
11
|
format.html # index.html.erb
|
@@ -76,7 +76,7 @@ class Admin::CategoriesController < Admin::BaseController
|
|
76
76
|
if @category.destroy
|
77
77
|
flash[:notice] = 'Category was successfully deleted.'
|
78
78
|
else
|
79
|
-
flash[:error] = 'Category could not be deleted as
|
79
|
+
flash[:error] = 'Category could not be deleted as it has content associated with it'
|
80
80
|
end
|
81
81
|
|
82
82
|
respond_to do |format|
|
@@ -11,8 +11,8 @@
|
|
11
11
|
<tr>
|
12
12
|
<%= sortable_table_header :name => "Title", :sort => "title" %>
|
13
13
|
<%= sortable_table_header :name => "Status", :sort => "published_at" %>
|
14
|
-
<%= sortable_table_header :name => "Author", :sort => "
|
15
|
-
<%= sortable_table_header :name => "Editor", :sort => "
|
14
|
+
<%= sortable_table_header :name => "Author", :sort => "created" %>
|
15
|
+
<%= sortable_table_header :name => "Editor", :sort => "updated" %>
|
16
16
|
<%= sortable_table_header :name => "Updated", :sort => "updated_at" %>
|
17
17
|
<%= sortable_table_header :name => "Created", :sort => "created_at" %>
|
18
18
|
<%= sortable_table_header :name => "Published At", :sort => "published_at" %>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beef-articles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.35
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve England
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-10-28 00:00:00 +00:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -71,7 +71,6 @@ files:
|
|
71
71
|
- app/views/comments/_comment.html.erb
|
72
72
|
- app/views/comments/_form.html.erb
|
73
73
|
- app/views/comments/new.html.erb
|
74
|
-
- articles.gemspec
|
75
74
|
- config/routes.rb
|
76
75
|
- generators/articles_migration/articles_migration_generator.rb
|
77
76
|
- generators/articles_migration/templates/migration.rb
|
@@ -81,9 +80,10 @@ files:
|
|
81
80
|
- test/database.yml
|
82
81
|
- test/schema.rb
|
83
82
|
- test/test_helper.rb
|
84
|
-
has_rdoc:
|
83
|
+
has_rdoc: true
|
85
84
|
homepage: http://github.com/beef/articles
|
86
|
-
licenses:
|
85
|
+
licenses: []
|
86
|
+
|
87
87
|
post_install_message:
|
88
88
|
rdoc_options:
|
89
89
|
- --charset=UTF-8
|
data/articles.gemspec
DELETED
@@ -1,85 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{articles}
|
8
|
-
s.version = "0.3.34"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Steve England"]
|
12
|
-
s.date = %q{2009-09-25}
|
13
|
-
s.email = %q{steve@wearebeef.co.uk}
|
14
|
-
s.extra_rdoc_files = [
|
15
|
-
"LICENSE",
|
16
|
-
"README.rdoc"
|
17
|
-
]
|
18
|
-
s.files = [
|
19
|
-
".document",
|
20
|
-
".gitignore",
|
21
|
-
"LICENSE",
|
22
|
-
"README.rdoc",
|
23
|
-
"Rakefile",
|
24
|
-
"VERSION",
|
25
|
-
"app/controllers/admin/articles_controller.rb",
|
26
|
-
"app/controllers/admin/categories_controller.rb",
|
27
|
-
"app/controllers/admin/comments_controller.rb",
|
28
|
-
"app/controllers/articles_controller.rb",
|
29
|
-
"app/controllers/comments_controller.rb",
|
30
|
-
"app/helpers/articles_helper.rb",
|
31
|
-
"app/helpers/comments_helper.rb",
|
32
|
-
"app/models/article.rb",
|
33
|
-
"app/models/category.rb",
|
34
|
-
"app/models/comment.rb",
|
35
|
-
"app/views/admin/articles/index.html.erb",
|
36
|
-
"app/views/admin/articles/preview.js.rjs",
|
37
|
-
"app/views/admin/articles/show.html.erb",
|
38
|
-
"app/views/admin/categories/index.html.erb",
|
39
|
-
"app/views/admin/categories/show.html.erb",
|
40
|
-
"app/views/admin/comments/index.html.erb",
|
41
|
-
"app/views/articles/_article.html.erb",
|
42
|
-
"app/views/articles/index.html.erb",
|
43
|
-
"app/views/articles/index.rss.builder",
|
44
|
-
"app/views/articles/show.html.erb",
|
45
|
-
"app/views/comments/_comment.html.erb",
|
46
|
-
"app/views/comments/_form.html.erb",
|
47
|
-
"app/views/comments/new.html.erb",
|
48
|
-
"articles.gemspec",
|
49
|
-
"config/routes.rb",
|
50
|
-
"generators/articles_migration/articles_migration_generator.rb",
|
51
|
-
"generators/articles_migration/templates/migration.rb",
|
52
|
-
"lib/articles.rb",
|
53
|
-
"rails/init.rb",
|
54
|
-
"test/articles_test.rb",
|
55
|
-
"test/database.yml",
|
56
|
-
"test/schema.rb",
|
57
|
-
"test/test_helper.rb"
|
58
|
-
]
|
59
|
-
s.homepage = %q{http://github.com/beef/articles}
|
60
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
61
|
-
s.require_paths = ["lib"]
|
62
|
-
s.rubygems_version = %q{1.3.5}
|
63
|
-
s.summary = %q{Article/Blogging engine}
|
64
|
-
s.test_files = [
|
65
|
-
"test/articles_test.rb",
|
66
|
-
"test/test_helper.rb",
|
67
|
-
"test/schema.rb"
|
68
|
-
]
|
69
|
-
|
70
|
-
if s.respond_to? :specification_version then
|
71
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
72
|
-
s.specification_version = 3
|
73
|
-
|
74
|
-
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
75
|
-
s.add_runtime_dependency(%q<mbleigh-acts-as-taggable-on>, [">= 0"])
|
76
|
-
s.add_runtime_dependency(%q<jackdempsey-acts_as_commentable>, [">= 0"])
|
77
|
-
else
|
78
|
-
s.add_dependency(%q<mbleigh-acts-as-taggable-on>, [">= 0"])
|
79
|
-
s.add_dependency(%q<jackdempsey-acts_as_commentable>, [">= 0"])
|
80
|
-
end
|
81
|
-
else
|
82
|
-
s.add_dependency(%q<mbleigh-acts-as-taggable-on>, [">= 0"])
|
83
|
-
s.add_dependency(%q<jackdempsey-acts_as_commentable>, [">= 0"])
|
84
|
-
end
|
85
|
-
end
|