padrino-views 0.4 → 0.4.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/padrino/views.rb +4 -5
- data/lib/sinatra/views.rb +0 -2
- data/padrino-views.gemspec +2 -3
- data/test/test_helper.rb +1 -0
- metadata +11 -3
data/lib/padrino/views.rb
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
require 'sinatra/views'
|
|
2
2
|
require 'padrino-core'
|
|
3
|
-
require 'pp'
|
|
4
3
|
|
|
5
4
|
module Padrino
|
|
6
5
|
module Views
|
|
7
6
|
|
|
8
7
|
def self.registered(app)
|
|
9
|
-
app.send(:include, Sinatra::Views::InstanceMethods)
|
|
10
|
-
app.extend(Sinatra::Views::ClassMethods)
|
|
11
|
-
app.send(:include, InstanceMethods)
|
|
12
|
-
app.extend(ClassMethods)
|
|
8
|
+
app.send(:include, ::Sinatra::Views::InstanceMethods)
|
|
9
|
+
app.extend(::Sinatra::Views::ClassMethods)
|
|
10
|
+
app.send(:include, ::Padrino::Views::InstanceMethods)
|
|
11
|
+
app.extend(::Padrino::Views::ClassMethods)
|
|
13
12
|
end
|
|
14
13
|
|
|
15
14
|
module InstanceMethods
|
data/lib/sinatra/views.rb
CHANGED
data/padrino-views.gemspec
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
|
|
3
|
-
require 'lib/version'
|
|
4
|
-
|
|
5
3
|
Gem::Specification.new do |s|
|
|
6
4
|
s.name = "padrino-views"
|
|
7
|
-
s.version = 0.4
|
|
5
|
+
s.version = "0.4.1"
|
|
8
6
|
s.authors = ["Florian Gilcher"]
|
|
9
7
|
s.email = "florian.gilcher@asquera.de"
|
|
8
|
+
s.homepage = "http://github.com/Asquera/sinatra-views"
|
|
10
9
|
s.summary = "Padrino Plugin to provide a View layer to Padrino."
|
|
11
10
|
s.description = <<-DESC
|
|
12
11
|
Padriono Plugin to provide a View layer to Padrino.
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: padrino-views
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
+
hash: 13
|
|
4
5
|
prerelease: false
|
|
5
6
|
segments:
|
|
6
7
|
- 0
|
|
7
8
|
- 4
|
|
8
|
-
|
|
9
|
+
- 1
|
|
10
|
+
version: 0.4.1
|
|
9
11
|
platform: ruby
|
|
10
12
|
authors:
|
|
11
13
|
- Florian Gilcher
|
|
@@ -20,9 +22,11 @@ dependencies:
|
|
|
20
22
|
name: padrino
|
|
21
23
|
prerelease: false
|
|
22
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
|
25
|
+
none: false
|
|
23
26
|
requirements:
|
|
24
27
|
- - ">="
|
|
25
28
|
- !ruby/object:Gem::Version
|
|
29
|
+
hash: 39
|
|
26
30
|
segments:
|
|
27
31
|
- 0
|
|
28
32
|
- 9
|
|
@@ -49,7 +53,7 @@ files:
|
|
|
49
53
|
- Rakefile
|
|
50
54
|
- LICENSE
|
|
51
55
|
has_rdoc: true
|
|
52
|
-
homepage:
|
|
56
|
+
homepage: http://github.com/Asquera/sinatra-views
|
|
53
57
|
licenses: []
|
|
54
58
|
|
|
55
59
|
post_install_message:
|
|
@@ -58,23 +62,27 @@ rdoc_options: []
|
|
|
58
62
|
require_paths:
|
|
59
63
|
- lib
|
|
60
64
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
65
|
+
none: false
|
|
61
66
|
requirements:
|
|
62
67
|
- - ">="
|
|
63
68
|
- !ruby/object:Gem::Version
|
|
69
|
+
hash: 3
|
|
64
70
|
segments:
|
|
65
71
|
- 0
|
|
66
72
|
version: "0"
|
|
67
73
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
|
+
none: false
|
|
68
75
|
requirements:
|
|
69
76
|
- - ">="
|
|
70
77
|
- !ruby/object:Gem::Version
|
|
78
|
+
hash: 3
|
|
71
79
|
segments:
|
|
72
80
|
- 0
|
|
73
81
|
version: "0"
|
|
74
82
|
requirements: []
|
|
75
83
|
|
|
76
84
|
rubyforge_project:
|
|
77
|
-
rubygems_version: 1.3.
|
|
85
|
+
rubygems_version: 1.3.7
|
|
78
86
|
signing_key:
|
|
79
87
|
specification_version: 3
|
|
80
88
|
summary: Padrino Plugin to provide a View layer to Padrino.
|