sinatra-pages 1.5.1 → 1.5.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.
- data/README.markdown +17 -16
- data/lib/sinatra/pages.rb +8 -0
- metadata +4 -4
data/README.markdown
CHANGED
|
@@ -9,7 +9,7 @@ In order to install this gem, you just need to install the gem from your command
|
|
|
9
9
|
You should take into account that this library have the following dependencies:
|
|
10
10
|
|
|
11
11
|
* [sinatra][1]
|
|
12
|
-
* [tilt][
|
|
12
|
+
* [tilt][12]
|
|
13
13
|
* [haml][2]
|
|
14
14
|
* [sass][3]
|
|
15
15
|
|
|
@@ -93,6 +93,7 @@ This extension defines the following setup as default. In any case, you are able
|
|
|
93
93
|
* __:stylesheet__ => [*:css*, *:sass*, *:scss*] || **:scss**
|
|
94
94
|
* __:format__ => [*:tidy*, *:ugly*] || **:tidy**
|
|
95
95
|
* __:cache__ => [*:write*, *:read*] || **:write**
|
|
96
|
+
* __:encoding__ => [*:ascii*, *:utf8*, *:utf16*, *:utf32*] || **:utf8**
|
|
96
97
|
* __:escaping__ => [*true*, *false*] || **:false**
|
|
97
98
|
|
|
98
99
|
### Customization
|
|
@@ -135,36 +136,36 @@ Everybody is welcome to contribute to this project by commenting the source code
|
|
|
135
136
|
In case you would like to contribute on this library, here's the list of extra dependencies you would need:
|
|
136
137
|
|
|
137
138
|
* [rspec][5]
|
|
138
|
-
* [
|
|
139
|
-
* [rack-test][7]
|
|
139
|
+
* [rack-test][6]
|
|
140
140
|
|
|
141
141
|
### Contributors
|
|
142
|
-
* [Julio Javier Cicchelli][
|
|
142
|
+
* [Julio Javier Cicchelli][7]
|
|
143
143
|
|
|
144
144
|
### Sites
|
|
145
145
|
The following sites are proudly using this extension:
|
|
146
146
|
|
|
147
|
-
* [Rock & Code][
|
|
148
|
-
* [Izcheznali][
|
|
147
|
+
* [Rock & Code][10]
|
|
148
|
+
* [Izcheznali][11]
|
|
149
|
+
* [Amsterdam Ruby User Group][13]
|
|
149
150
|
|
|
150
151
|
If your site is also using this extension, please let us know!
|
|
151
152
|
|
|
152
153
|
### Notes
|
|
153
|
-
This extension have been tested on the versions 1.8.6, 1.8.7 and 1.9.1 of the [Ruby interpreter][
|
|
154
|
+
This extension have been tested on the versions 1.8.6, 1.8.7 and 1.9.1 of the [Ruby interpreter][8].
|
|
154
155
|
|
|
155
156
|
### License
|
|
156
|
-
This extension is licensed under the [MIT License][
|
|
157
|
+
This extension is licensed under the [MIT License][9].
|
|
157
158
|
|
|
158
159
|
[1]: http://www.sinatrarb.com/
|
|
159
160
|
[2]: http://haml-lang.com/
|
|
160
161
|
[3]: http://sass-lang.com/
|
|
161
162
|
[4]: http://rack.rubyforge.org/
|
|
162
163
|
[5]: http://rspec.info/
|
|
163
|
-
[6]: http://
|
|
164
|
-
[7]: http://
|
|
165
|
-
[8]: http://
|
|
166
|
-
[9]: http://
|
|
167
|
-
[10]: http://
|
|
168
|
-
[11]: http://
|
|
169
|
-
[12]: http://
|
|
170
|
-
[13]: http://
|
|
164
|
+
[6]: http://gitrdoc.com/brynary/rack-test/tree/master
|
|
165
|
+
[7]: http://github.com/mr-rock
|
|
166
|
+
[8]: http://www.ruby-lang.org/en/
|
|
167
|
+
[9]: http://creativecommons.org/licenses/MIT/
|
|
168
|
+
[10]: http://rock-n-code.com
|
|
169
|
+
[11]: http://izcheznali.net
|
|
170
|
+
[12]: http://github.com/rtomayko/tilt
|
|
171
|
+
[13]: http://amsterdam-rb.org
|
data/lib/sinatra/pages.rb
CHANGED
|
@@ -16,6 +16,7 @@ module Sinatra
|
|
|
16
16
|
app.set :stylesheet, :scss
|
|
17
17
|
app.set :cache, :write
|
|
18
18
|
app.set :format, :tidy
|
|
19
|
+
app.set :encoding, :utf8
|
|
19
20
|
app.disable :escaping
|
|
20
21
|
|
|
21
22
|
app.configure do
|
|
@@ -74,6 +75,13 @@ module Sinatra
|
|
|
74
75
|
options[:read_cache] = true if settings.cache == :read
|
|
75
76
|
end
|
|
76
77
|
|
|
78
|
+
options[:encoding] = case settings.encoding
|
|
79
|
+
when :utf8 then 'utf-8'
|
|
80
|
+
when :utf16 then 'utf-16'
|
|
81
|
+
when :utf32 then 'utf-32'
|
|
82
|
+
when :ascii then 'ascii-8bits'
|
|
83
|
+
end
|
|
84
|
+
|
|
77
85
|
options
|
|
78
86
|
end
|
|
79
87
|
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sinatra-pages
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 7
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 5
|
|
9
|
-
-
|
|
10
|
-
version: 1.5.
|
|
9
|
+
- 2
|
|
10
|
+
version: 1.5.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Julio Javier Cicchelli
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2010-10-
|
|
18
|
+
date: 2010-10-07 00:00:00 +02:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|