rollin 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -2
- data/VERSION +1 -1
- data/lib/rollin/blog.rb +1 -1
- data/spec/blog_spec.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64fa7df26bceb4a3fe35782699c1afab30b60804
|
4
|
+
data.tar.gz: b5ba1a16871dd231f33c45e030f2195aae0ddb9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 632a32e255b9a6e23d850cd4f082673a8eb2d911eb853c2ce4d6da68965022077cbdf2ccc4feb4fe592bc459e5a80103ff0d23a2fdb079cdf9c5bd71e8416737
|
7
|
+
data.tar.gz: 418c44e0f0a10f6b228a597c89eaf6da9b61f8312548a627be5f82f2d8e33594839906a53d8d6cd5da18e235693ad8c07f38f2e0686d4a3ac944464e2dc0f6cd
|
data/README.md
CHANGED
@@ -21,7 +21,7 @@ First you will need to have the following structure in your filesystem.
|
|
21
21
|
├── my_posts
|
22
22
|
└── 2013_05_01_My_first_post.mk
|
23
23
|
|
24
|
-
###
|
24
|
+
### Articles
|
25
25
|
|
26
26
|
In your code.
|
27
27
|
|
@@ -38,7 +38,7 @@ In your code.
|
|
38
38
|
anArticle.month # => 05
|
39
39
|
anArticle.day # => 01
|
40
40
|
|
41
|
-
###
|
41
|
+
### Monthly archive
|
42
42
|
|
43
43
|
a_monthly_archive = blog.monthly_archive.first
|
44
44
|
|
@@ -46,6 +46,14 @@ In your code.
|
|
46
46
|
a_monthly_archive.month # => 5
|
47
47
|
a_monthly_archive.articles # => [ Rollin::Article(:title => "My first post" ...) ]
|
48
48
|
|
49
|
+
### Annual archive
|
50
|
+
|
51
|
+
an_annual_archive = blog.annual_archive.first
|
52
|
+
|
53
|
+
an_annual_archive.year # => 2013
|
54
|
+
an_annual_archive.articles # => [ Rollin::Article(:title => "My first post" ...) ]
|
55
|
+
an_annual_archive.monthly_archive # => [ Rollin::MonthArchive(:year => 2013, :month => 5 ...) ]
|
56
|
+
|
49
57
|
### Finding an article
|
50
58
|
|
51
59
|
blog.find_article_by_id('2013_05_01_My_first_post') # => #Rollin::Article(:title => "My first post" ...)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.14
|
data/lib/rollin/blog.rb
CHANGED
data/spec/blog_spec.rb
CHANGED
@@ -12,8 +12,8 @@ describe Rollin::Blog do
|
|
12
12
|
blog.monthly_archive.size.should == 3
|
13
13
|
end
|
14
14
|
|
15
|
-
it 'has the right amount of
|
16
|
-
blog.
|
15
|
+
it 'has the right amount of annual archives' do
|
16
|
+
blog.annual_archive.size.should == 2
|
17
17
|
end
|
18
18
|
|
19
19
|
it 'finds article by its id' do
|