sinatra_fedora 1.0 → 1.0.1
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/lib/sinatra_fedora/fedora.rb +10 -0
- metadata +54 -32
@@ -32,6 +32,12 @@
|
|
32
32
|
require 'sinatra/base'
|
33
33
|
|
34
34
|
module Sinatra
|
35
|
+
module HTMLEscapeHelper
|
36
|
+
def h(text)
|
37
|
+
Rack::Utils.escape_html(text)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
35
41
|
module Templates
|
36
42
|
def render(engine, data, options={}, locals={}, &block)
|
37
43
|
# merge app-level options
|
@@ -73,9 +79,13 @@ module Sinatra
|
|
73
79
|
output
|
74
80
|
end
|
75
81
|
end
|
82
|
+
|
83
|
+
helpers HTMLEscapeHelper
|
76
84
|
end
|
77
85
|
|
78
86
|
class Fedora < Sinatra::Base
|
87
|
+
helpers Sinatra::HTMLEscapeHelper
|
88
|
+
|
79
89
|
def self.inherited(klass)
|
80
90
|
super
|
81
91
|
descendents.push(klass)
|
metadata
CHANGED
@@ -1,60 +1,82 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra_fedora
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Daniel Durante
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2011-06-28 00:00:00 -04:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
15
22
|
name: sinatra
|
16
|
-
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
25
|
none: false
|
18
|
-
requirements:
|
19
|
-
- -
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 15
|
30
|
+
segments:
|
31
|
+
- 1
|
32
|
+
- 0
|
33
|
+
version: "1.0"
|
22
34
|
type: :development
|
23
|
-
|
24
|
-
|
25
|
-
description: Converts class names intro controllers and automatically maps them. Same
|
26
|
-
thing with views and both, views and controllers, can be configured to your liking.
|
27
|
-
It combines the best of both Padrino and Sinatra.
|
35
|
+
version_requirements: *id001
|
36
|
+
description: Converts class names intro controllers and automatically maps them. Same thing with views and both, views and controllers, can be configured to your liking. It combines the best of both Padrino and Sinatra.
|
28
37
|
email: officedebo@gmail.com
|
29
38
|
executables: []
|
39
|
+
|
30
40
|
extensions: []
|
41
|
+
|
31
42
|
extra_rdoc_files: []
|
32
|
-
|
43
|
+
|
44
|
+
files:
|
33
45
|
- lib/sinatra_fedora.rb
|
34
46
|
- lib/sinatra_fedora/fedora.rb
|
35
|
-
|
36
|
-
|
47
|
+
has_rdoc: true
|
48
|
+
homepage: https://github.com/durango/sinatra_fedora
|
49
|
+
licenses:
|
37
50
|
- MIT
|
38
51
|
post_install_message:
|
39
52
|
rdoc_options: []
|
40
|
-
|
53
|
+
|
54
|
+
require_paths:
|
41
55
|
- lib
|
42
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
56
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
43
57
|
none: false
|
44
|
-
requirements:
|
45
|
-
- -
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
|
48
|
-
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
hash: 3
|
62
|
+
segments:
|
63
|
+
- 0
|
64
|
+
version: "0"
|
65
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
66
|
none: false
|
50
|
-
requirements:
|
51
|
-
- -
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
hash: 3
|
71
|
+
segments:
|
72
|
+
- 0
|
73
|
+
version: "0"
|
54
74
|
requirements: []
|
75
|
+
|
55
76
|
rubyforge_project:
|
56
|
-
rubygems_version: 1.
|
77
|
+
rubygems_version: 1.6.2
|
57
78
|
signing_key:
|
58
79
|
specification_version: 3
|
59
80
|
summary: An even classier way to use Sinatra.
|
60
81
|
test_files: []
|
82
|
+
|