rollin 0.1.1 → 0.1.2
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.
- checksums.yaml +4 -4
- data/README.md +6 -2
- data/VERSION +1 -1
- data/lib/rollin/article.rb +4 -2
- data/spec/rollin_spec.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b327be9370a5f1d910a127ac1f6d2316c65fad6
|
4
|
+
data.tar.gz: 4b553d48c23aaab6197fc9960dfd3fd7c99c5a80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73bc774472c390304f873eed8623cb8870382ece42681dadaf66d6844e60279c43e0df90024a53fbfa9d3e9b149e99d97bcf57fa8099754bd63bb72771e1b7a8
|
7
|
+
data.tar.gz: 488cde7c30425ccd613553b75166b3c85021c0cd83f1a76b89a1d71a3e69472dee0b260f8383cd17311ef38ebd72316169b46497fecb7dd4176f047d0a72d1bd
|
data/README.md
CHANGED
@@ -38,7 +38,7 @@ First you will need to have the following structure in your filesystem.
|
|
38
38
|
|
39
39
|
### Metatags
|
40
40
|
|
41
|
-
You may define articles metatags at the
|
41
|
+
You may define articles metatags at the beginning of your article with the format:
|
42
42
|
|
43
43
|
---
|
44
44
|
author: Zé
|
@@ -78,7 +78,7 @@ It is YAML snippet and follows a similar format to Jekyll's [yaml front matter](
|
|
78
78
|
|
79
79
|
blog.article('2013_05_01_My_first_post') # => #Rollin::Article(:title => "My first post" ...)
|
80
80
|
|
81
|
-
#### By
|
81
|
+
#### By metatag
|
82
82
|
|
83
83
|
blog.articles(:tags => "development") # => A list of articles tagged with development
|
84
84
|
|
@@ -110,6 +110,10 @@ It is YAML snippet and follows a similar format to Jekyll's [yaml front matter](
|
|
110
110
|
|
111
111
|
You can find a more detailed documentation at the [rollin_spec.rb](https://github.com/marano/rollin/blob/master/spec/rollin_spec.rb) file.
|
112
112
|
|
113
|
+
### Concerns
|
114
|
+
|
115
|
+
Since it is meant to be used in a blogging domain it is not optimized with caching. You should implement cache in the infrastructure layer, what shouldn't be hard in a mostly static environment.
|
116
|
+
|
113
117
|
## Build status
|
114
118
|
|
115
119
|
[](https://travis-ci.org/marano/rollin)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/lib/rollin/article.rb
CHANGED
@@ -17,7 +17,7 @@ class Rollin::Article
|
|
17
17
|
|
18
18
|
def matches?(search)
|
19
19
|
return true if @id == search
|
20
|
-
return false if
|
20
|
+
return false if search.is_a? String
|
21
21
|
|
22
22
|
search = search.clone
|
23
23
|
|
@@ -64,7 +64,9 @@ class Rollin::Article
|
|
64
64
|
redcarpet = Redcarpet::Markdown.new(Redcarpet::Render::HTML,
|
65
65
|
autolink: true,
|
66
66
|
space_after_headers: true,
|
67
|
-
hard_wrap: true
|
67
|
+
hard_wrap: true,
|
68
|
+
fenced_code_blocks: true,
|
69
|
+
disable_indented_code_blocks: true)
|
68
70
|
redcarpet.render(read_from_file.content)
|
69
71
|
end
|
70
72
|
|
data/spec/rollin_spec.rb
CHANGED
@@ -48,6 +48,7 @@ describe 'how rollin works' do
|
|
48
48
|
context 'searching for articles' do
|
49
49
|
it 'searches by article id' do
|
50
50
|
blog.article('2013_05_01_My_first_post').should == first_article
|
51
|
+
blog.article('this_article_does_not_exist').should be_nil
|
51
52
|
end
|
52
53
|
|
53
54
|
it 'searches by metatags' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rollin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- marano
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|