blog_logic 1.3.1 → 1.4.0

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/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.1
1
+ 1.4.0
@@ -63,12 +63,17 @@ class BlogCategory
63
63
  (self.posts + self.children.map{ |c| c.posts }).uniq.flatten
64
64
  end
65
65
 
66
+ def path
67
+ "#{Blog.first.path}/topics/#{self.slug}"
68
+ end
69
+
66
70
  def subcategory?
67
71
  ! self.root?
68
72
  end
69
73
 
70
74
  def url
71
- "#{Blog.first.path}/topics/#{self.slug}"
75
+ warn "[DEPRECATION] `url` is deprecated. Please use `path` instead."
76
+ self.path
72
77
  end
73
78
 
74
79
  private
data/blog_logic.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "blog_logic"
8
- s.version = "1.3.1"
8
+ s.version = "1.4.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Bantik"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blog_logic
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
- - 3
9
- - 1
10
- version: 1.3.1
8
+ - 4
9
+ - 0
10
+ version: 1.4.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bantik