beef-articles 0.4.12 → 0.4.13

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -9,8 +9,8 @@ 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")
13
- gem.add_dependency( "jackdempsey-acts_as_commentable")
12
+ gem.add_dependency( "acts-as-taggable-on")
13
+ gem.add_dependency( "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
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.12
1
+ 0.4.13
@@ -55,8 +55,6 @@ class ArticlesController < ApplicationController
55
55
  @images = Asset.images.all(:conditions => {:id => asset_ids }).sort{|x,y| asset_ids.index(y.id.to_s) <=> asset_ids.index(x.id.to_s) }.reverse
56
56
  @documents = Asset.documents.all(:conditions => {:id => asset_ids }).sort{|x,y| asset_ids.index(y.id.to_s) <=> asset_ids.index(x.id.to_s) }.reverse
57
57
 
58
- RAILS_DEFAULT_LOGGER.debug session[:article_preview].inspect
59
-
60
58
  @article.id = 0
61
59
  @article.published_at = Time.now
62
60
  @article.created_by = current_user
@@ -77,14 +77,14 @@ module ArticlesHelper
77
77
  grouped_by_year.each do |year, articles|
78
78
  current = this_year.to_i == year
79
79
  html << "<li#{' class="current"' if current}>"
80
- html << link_to("#{year}", {:controller => 'articles', :action => 'index', :year => year, :month => nil, :day => nil})
80
+ html << link_to("#{year}", articles_path(:year => year, :month => nil, :day => nil))
81
81
  html << (" (#{articles.size})")
82
82
  if current
83
83
  grouped_by_month = articles.group_by{ |a| a.published_at.month }.sort.reverse
84
84
  html << '<ul>'
85
85
  grouped_by_month.each do |month, articles|
86
86
  html << '<li>'
87
- html << link_to("#{Date::MONTHNAMES[month]}", {:controller => 'articles', :action => 'index', :year => year, :month => month, :day => nil})
87
+ html << link_to("#{Date::MONTHNAMES[month]}", articles_path(:year => year, :month => month, :day => nil))
88
88
  html << (" (#{articles.size})")
89
89
  html << '</li>'
90
90
  end
@@ -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.12"
8
+ s.version = "0.4.13"
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-04-16}
12
+ s.date = %q{2010-05-24}
13
13
  s.email = %q{steve@wearebeef.co.uk}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
@@ -60,7 +60,7 @@ 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.5}
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",
@@ -72,16 +72,16 @@ Gem::Specification.new do |s|
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"])
77
- s.add_runtime_dependency(%q<jackdempsey-acts_as_commentable>, [">= 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
+ s.add_runtime_dependency(%q<acts_as_commentable>, [">= 0"])
78
78
  else
79
- s.add_dependency(%q<mbleigh-acts-as-taggable-on>, [">= 0"])
80
- s.add_dependency(%q<jackdempsey-acts_as_commentable>, [">= 0"])
79
+ s.add_dependency(%q<acts-as-taggable-on>, [">= 0"])
80
+ s.add_dependency(%q<acts_as_commentable>, [">= 0"])
81
81
  end
82
82
  else
83
- s.add_dependency(%q<mbleigh-acts-as-taggable-on>, [">= 0"])
84
- s.add_dependency(%q<jackdempsey-acts_as_commentable>, [">= 0"])
83
+ s.add_dependency(%q<acts-as-taggable-on>, [">= 0"])
84
+ s.add_dependency(%q<acts_as_commentable>, [">= 0"])
85
85
  end
86
86
  end
87
87
 
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beef-articles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.12
4
+ hash: 21
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 4
9
+ - 13
10
+ version: 0.4.13
5
11
  platform: ruby
6
12
  authors:
7
13
  - Steve England
@@ -9,29 +15,37 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2010-04-16 00:00:00 +01:00
18
+ date: 2010-05-24 00:00:00 +01:00
13
19
  default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
- name: mbleigh-acts-as-taggable-on
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ name: acts-as-taggable-on
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
20
26
  requirements:
21
27
  - - ">="
22
28
  - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
23
32
  version: "0"
24
- version:
25
- - !ruby/object:Gem::Dependency
26
- name: jackdempsey-acts_as_commentable
27
33
  type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: acts_as_commentable
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
30
40
  requirements:
31
41
  - - ">="
32
42
  - !ruby/object:Gem::Version
43
+ hash: 3
44
+ segments:
45
+ - 0
33
46
  version: "0"
34
- version:
47
+ type: :runtime
48
+ version_requirements: *id002
35
49
  description:
36
50
  email: steve@wearebeef.co.uk
37
51
  executables: []
@@ -92,21 +106,27 @@ rdoc_options:
92
106
  require_paths:
93
107
  - lib
94
108
  required_ruby_version: !ruby/object:Gem::Requirement
109
+ none: false
95
110
  requirements:
96
111
  - - ">="
97
112
  - !ruby/object:Gem::Version
113
+ hash: 3
114
+ segments:
115
+ - 0
98
116
  version: "0"
99
- version:
100
117
  required_rubygems_version: !ruby/object:Gem::Requirement
118
+ none: false
101
119
  requirements:
102
120
  - - ">="
103
121
  - !ruby/object:Gem::Version
122
+ hash: 3
123
+ segments:
124
+ - 0
104
125
  version: "0"
105
- version:
106
126
  requirements: []
107
127
 
108
128
  rubyforge_project:
109
- rubygems_version: 1.3.5
129
+ rubygems_version: 1.3.7
110
130
  signing_key:
111
131
  specification_version: 3
112
132
  summary: Article/Blogging engine