rollin 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a2c32191bfacf8a3806320873f8616bcd527ac8c
4
- data.tar.gz: f00eddf1f6e960db06dbb6c854a46fbb9be0e3f7
3
+ metadata.gz: 2b327be9370a5f1d910a127ac1f6d2316c65fad6
4
+ data.tar.gz: 4b553d48c23aaab6197fc9960dfd3fd7c99c5a80
5
5
  SHA512:
6
- metadata.gz: 6585b788143321aa37e98ad8d80530fc3733464439c0f0134fdab205d05798c1dc17dc11b5b0f7eb4e2536cf96ea48951931df1792a97d2c3632f75f4983ea51
7
- data.tar.gz: 17803515ff2bf385fb0740b1bdbce0531c62df2a412a585f5f2e487ca56b5b7b5e114c0cf56ca686b56b0c2b59c5f5839611b11ed7d9be13c4d5abd91fe241b2
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 begging of your article with the format:
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 tag
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
  [![Build Status](https://travis-ci.org/marano/rollin.png)](https://travis-ci.org/marano/rollin)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -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 @searh.is_a? String
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.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-04 00:00:00.000000000 Z
11
+ date: 2013-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler