iodine 0.7.11 → 0.7.12
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of iodine might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/ext/iodine/fio.c +341 -154
- data/ext/iodine/fio.h +71 -33
- data/ext/iodine/fio_cli.c +25 -24
- data/ext/iodine/fiobj.h +4 -0
- data/ext/iodine/{fiobj4sock.h → fiobj4fio.h} +0 -0
- data/ext/iodine/fiobj_mustache.c +77 -54
- data/ext/iodine/fiobj_mustache.h +21 -3
- data/ext/iodine/http.c +19 -0
- data/ext/iodine/http.h +5 -1
- data/ext/iodine/http_internal.h +0 -2
- data/ext/iodine/iodine_connection.c +1 -1
- data/ext/iodine/iodine_http.c +17 -9
- data/ext/iodine/iodine_mustache.c +174 -91
- data/ext/iodine/mustache_parser.h +772 -695
- data/ext/iodine/redis_engine.c +0 -1
- data/lib/iodine/mustache.rb +4 -4
- data/lib/iodine/version.rb +1 -1
- metadata +4 -4
data/ext/iodine/redis_engine.c
CHANGED
data/lib/iodine/mustache.rb
CHANGED
@@ -3,7 +3,7 @@ module Iodine
|
|
3
3
|
#
|
4
4
|
# The Iodine Mustache templating engine provides increased XSS protection through agressive HTML escaping. It's also faster than the original (Ruby based) Mustache templating engine.
|
5
5
|
#
|
6
|
-
# Another difference is that the Iodine Mustache templating engine
|
6
|
+
# Another difference is that the Iodine Mustache templating engine makes it eady to load the templates from the disk (or specify a virtual filename), allowing for easy patial template path resolution.
|
7
7
|
#
|
8
8
|
# There's no monkey-patch for `mustache` Ruby gem since the API is incompatible.
|
9
9
|
#
|
@@ -94,16 +94,16 @@ module Iodine
|
|
94
94
|
# iodine_view.render(data_1000_escaped)
|
95
95
|
# end
|
96
96
|
#
|
97
|
-
# x.report("Ruby Mustache - no
|
97
|
+
# x.report("Ruby Mustache - no caching - render list of 1000") do |times|
|
98
98
|
# tmp = Mustache.new
|
99
99
|
# tmp.template = template
|
100
100
|
# tmp.render(data_1000)
|
101
101
|
# end
|
102
|
-
# x.report("Iodine::Mustache - no
|
102
|
+
# x.report("Iodine::Mustache - no caching - render list of 1000") do |times|
|
103
103
|
# Iodine::Mustache.render(nil, data_1000, template)
|
104
104
|
# end
|
105
|
-
# nil
|
106
105
|
# end
|
106
|
+
# nil
|
107
107
|
# end
|
108
108
|
#
|
109
109
|
# benchmark_mustache
|
data/lib/iodine/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iodine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boaz Segev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -136,7 +136,7 @@ files:
|
|
136
136
|
- ext/iodine/fio_siphash.h
|
137
137
|
- ext/iodine/fio_tmpfile.h
|
138
138
|
- ext/iodine/fiobj.h
|
139
|
-
- ext/iodine/
|
139
|
+
- ext/iodine/fiobj4fio.h
|
140
140
|
- ext/iodine/fiobj_ary.c
|
141
141
|
- ext/iodine/fiobj_ary.h
|
142
142
|
- ext/iodine/fiobj_data.c
|
@@ -210,7 +210,7 @@ licenses:
|
|
210
210
|
- MIT
|
211
211
|
metadata:
|
212
212
|
allowed_push_host: https://rubygems.org
|
213
|
-
post_install_message: 'Thank you for installing Iodine 0.7.
|
213
|
+
post_install_message: 'Thank you for installing Iodine 0.7.12.
|
214
214
|
|
215
215
|
'
|
216
216
|
rdoc_options: []
|