rack-blogengine 0.1.5 → 0.1.6

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: e1ac611f30d7558778b156825c66a1b65f8e77e3
4
- data.tar.gz: 6b16217da824dde68105d447bb539b3c5366b62e
3
+ metadata.gz: 3c4c77afa0dea08adb6a4132ab7fb0558236f726
4
+ data.tar.gz: ecea1dcb841499269f9fc4001ef1bf26c4089813
5
5
  SHA512:
6
- metadata.gz: 0df749ef6cddacf0c71664d84c0952e2c3cc03310b3100e1fd251ab5575fbd5e76b9199357ad07afc1c13baf7a98e32ecf63237f2b7e87d9d3ebedcedc502624
7
- data.tar.gz: 30023202e69c94406b4c684f2eec763ec373348337d378c2dedd2dcbe1221cc94619ac7a01f33d565c43608f45ad7dddb8dfdddbaa5859c68fa7ae02be6ae14b
6
+ metadata.gz: 1fe14fb5518c1474c4029e6b64876c7f98264b65609b608e0613480a7de4e85f7331be316849ccdcbb604199821abf49f84b31c9c7847eb46e11366946c82f90
7
+ data.tar.gz: f2089d8343898c35f138e02736f07b7adf378fcd46431e29ac9442f1f2b88b16f795ee996d754e85ba17a5b1eb736c37dfb3e2596c2bb2903c4fa0ab7820cb55
@@ -13,8 +13,11 @@ module Rack
13
13
 
14
14
  def exec_content_operator(documents, target)
15
15
  @html.scan(/\{\%(.*?)\%\}/).each do |contentoperator|
16
+ contentoperator = contentoperator[0].strip.to_sym
16
17
  operator = Operator.new(target)
17
- operator.send(contentoperator[0].strip.to_sym, documents, @html)
18
+ operatorhtml = operator.send(contentoperator, documents, @html)
19
+
20
+ @html["{% "+contentoperator.to_s+" %}"] = operatorhtml
18
21
  end
19
22
  end
20
23
  end
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Blogengine
3
- VERSION = "0.1.5".freeze
3
+ VERSION = "0.1.6".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-blogengine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benny1992
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-08 00:00:00.000000000 Z
11
+ date: 2014-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler