comfy_blog 0.1.4 → 0.1.5
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 +1 -1
- data/app/helpers/blog/application_helper.rb +5 -1
- data/comfy_blog.gemspec +2 -1
- data/test/unit/helpers/blog/application_helper_test.rb +10 -0
- metadata +9 -8
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.5
|
@@ -12,8 +12,12 @@ module Blog::ApplicationHelper
|
|
12
12
|
# URL helpers for blog_post_(path/url)
|
13
13
|
%w(path url).each do |type|
|
14
14
|
define_method "blog_post_#{type}" do |post|
|
15
|
-
send("dated_blog_post_#{type}", post.year, post.month, post.slug)
|
15
|
+
send("dated_blog_post_#{type}", post.year, ("%02d" % post.month), post.slug)
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
|
+
def blah
|
20
|
+
'blah'
|
21
|
+
end
|
22
|
+
|
19
23
|
end
|
data/comfy_blog.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "comfy_blog"
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Oleg Khabarov", "The Working Group Inc."]
|
@@ -102,6 +102,7 @@ Gem::Specification.new do |s|
|
|
102
102
|
"test/unit/.gitkeep",
|
103
103
|
"test/unit/comment_test.rb",
|
104
104
|
"test/unit/configuration_test.rb",
|
105
|
+
"test/unit/helpers/blog/application_helper_test.rb",
|
105
106
|
"test/unit/post_test.rb",
|
106
107
|
"test/unit/tag_test.rb",
|
107
108
|
"test/unit/tagging_test.rb"
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require File.expand_path('../../../test_helper', File.dirname(__FILE__))
|
2
|
+
|
3
|
+
class Blog::ApplicationHelperTest < ActionView::TestCase
|
4
|
+
|
5
|
+
def test_blog_post_path
|
6
|
+
assert_equal '/2012/01/default-title', blog_post_path(blog_posts(:default))
|
7
|
+
assert_equal 'http://test.host/2012/01/default-title', blog_post_url(blog_posts(:default))
|
8
|
+
end
|
9
|
+
|
10
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: comfy_blog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ date: 2012-02-08 00:00:00.000000000Z
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
17
|
-
requirement: &
|
17
|
+
requirement: &70211280481080 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 3.1.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70211280481080
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: rails_autolink
|
28
|
-
requirement: &
|
28
|
+
requirement: &70211280479140 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: 1.0.4
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70211280479140
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: jquery-rails
|
39
|
-
requirement: &
|
39
|
+
requirement: &70211280466080 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
version: 1.0.0
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *70211280466080
|
48
48
|
description: ''
|
49
49
|
email: oleg@twg.ca
|
50
50
|
executables: []
|
@@ -138,6 +138,7 @@ files:
|
|
138
138
|
- test/unit/.gitkeep
|
139
139
|
- test/unit/comment_test.rb
|
140
140
|
- test/unit/configuration_test.rb
|
141
|
+
- test/unit/helpers/blog/application_helper_test.rb
|
141
142
|
- test/unit/post_test.rb
|
142
143
|
- test/unit/tag_test.rb
|
143
144
|
- test/unit/tagging_test.rb
|
@@ -156,7 +157,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
156
157
|
version: '0'
|
157
158
|
segments:
|
158
159
|
- 0
|
159
|
-
hash:
|
160
|
+
hash: -503918461499753036
|
160
161
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
162
|
none: false
|
162
163
|
requirements:
|