beef-articles 0.4.18 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -9,7 +9,7 @@ begin
9
9
  gem.email = "steve@wearebeef.co.uk"
10
10
  gem.homepage = "http://github.com/beef/articles"
11
11
  gem.authors = ["Steve England"]
12
- gem.add_dependency( "mbleigh-acts-as-taggable-on")
12
+ gem.add_dependency( "acts-as-taggable-on")
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
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.18
1
+ 0.5.1
@@ -21,7 +21,7 @@ class Admin::CommentsController < Admin::BaseController
21
21
  def destroy
22
22
  @comment = Comment.find(params[:id])
23
23
  if spam_markable? and params[:spam]
24
- Viking.mark_as_spam(@comment.spam_signature)
24
+ Viking.mark_as_spam({:signature => @comment.spam_signature})
25
25
  end
26
26
  @comment.destroy
27
27
  flash[:notice] = 'Comment was successfully deleted.'
@@ -96,7 +96,7 @@ module ArticlesHelper
96
96
  end
97
97
 
98
98
  def related_articles(taggable, &block)
99
- articles = Article.published.all(taggable.related_search_options(:tags, Article, :limit => 3))
99
+ articles = Article.published.tagged_with(taggable.tag_list, :limit => 3)
100
100
  return if articles.empty?
101
101
  if block_given?
102
102
  yield(articles)
@@ -6,7 +6,7 @@
6
6
  <div id="supporting-content">
7
7
  <h2>Archive</h2>
8
8
  <%= archive %>
9
- <%= link_to ('RSS', {:tag => params[:tag], :page => nil, :format => 'rss'}, :class => 'rss') unless params[:year] %>
9
+ <%= link_to('RSS', {:tag => params[:tag], :page => nil, :format => 'rss'}, :class => 'rss') unless params[:year] %>
10
10
  </div>
11
11
 
12
12
  <!-- so:main-content -->
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{beef-articles}
8
- s.version = "0.4.18"
8
+ s.version = "0.5.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Steve England"]
12
- s.date = %q{2010-07-02}
12
+ s.date = %q{2010-07-09}
13
13
  s.email = %q{steve@wearebeef.co.uk}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
@@ -60,27 +60,27 @@ Gem::Specification.new do |s|
60
60
  s.homepage = %q{http://github.com/beef/articles}
61
61
  s.rdoc_options = ["--charset=UTF-8"]
62
62
  s.require_paths = ["lib"]
63
- s.rubygems_version = %q{1.3.6}
63
+ s.rubygems_version = %q{1.3.7}
64
64
  s.summary = %q{Article/Blogging engine}
65
65
  s.test_files = [
66
66
  "test/articles_test.rb",
67
- "test/schema.rb",
68
- "test/test_helper.rb"
67
+ "test/test_helper.rb",
68
+ "test/schema.rb"
69
69
  ]
70
70
 
71
71
  if s.respond_to? :specification_version then
72
72
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
73
73
  s.specification_version = 3
74
74
 
75
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
76
- s.add_runtime_dependency(%q<mbleigh-acts-as-taggable-on>, [">= 0"])
75
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
76
+ s.add_runtime_dependency(%q<acts-as-taggable-on>, [">= 0"])
77
77
  s.add_runtime_dependency(%q<jackdempsey-acts_as_commentable>, [">= 0"])
78
78
  else
79
- s.add_dependency(%q<mbleigh-acts-as-taggable-on>, [">= 0"])
79
+ s.add_dependency(%q<acts-as-taggable-on>, [">= 0"])
80
80
  s.add_dependency(%q<jackdempsey-acts_as_commentable>, [">= 0"])
81
81
  end
82
82
  else
83
- s.add_dependency(%q<mbleigh-acts-as-taggable-on>, [">= 0"])
83
+ s.add_dependency(%q<acts-as-taggable-on>, [">= 0"])
84
84
  s.add_dependency(%q<jackdempsey-acts_as_commentable>, [">= 0"])
85
85
  end
86
86
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beef-articles
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 9
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
- - 4
8
- - 18
9
- version: 0.4.18
8
+ - 5
9
+ - 1
10
+ version: 0.5.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Steve England
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-07-02 00:00:00 +01:00
18
+ date: 2010-07-09 00:00:00 +01:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
- name: mbleigh-acts-as-taggable-on
22
+ name: acts-as-taggable-on
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 3
27
30
  segments:
28
31
  - 0
29
32
  version: "0"
@@ -33,9 +36,11 @@ dependencies:
33
36
  name: jackdempsey-acts_as_commentable
34
37
  prerelease: false
35
38
  requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
36
40
  requirements:
37
41
  - - ">="
38
42
  - !ruby/object:Gem::Version
43
+ hash: 3
39
44
  segments:
40
45
  - 0
41
46
  version: "0"
@@ -101,27 +106,31 @@ rdoc_options:
101
106
  require_paths:
102
107
  - lib
103
108
  required_ruby_version: !ruby/object:Gem::Requirement
109
+ none: false
104
110
  requirements:
105
111
  - - ">="
106
112
  - !ruby/object:Gem::Version
113
+ hash: 3
107
114
  segments:
108
115
  - 0
109
116
  version: "0"
110
117
  required_rubygems_version: !ruby/object:Gem::Requirement
118
+ none: false
111
119
  requirements:
112
120
  - - ">="
113
121
  - !ruby/object:Gem::Version
122
+ hash: 3
114
123
  segments:
115
124
  - 0
116
125
  version: "0"
117
126
  requirements: []
118
127
 
119
128
  rubyforge_project:
120
- rubygems_version: 1.3.6
129
+ rubygems_version: 1.3.7
121
130
  signing_key:
122
131
  specification_version: 3
123
132
  summary: Article/Blogging engine
124
133
  test_files:
125
134
  - test/articles_test.rb
126
- - test/schema.rb
127
135
  - test/test_helper.rb
136
+ - test/schema.rb