deas-erubis 0.5.6 → 0.5.7
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
|
-
---
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c0204eb47a1180a031a1a11a29caab0976f5b39fb4ccef568233412f56d6c430
|
4
|
+
data.tar.gz: fb5bd04de25f587fc1dee0fbaf2775eaa7df2cddb2df932c3133b2a850c259fe
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7e71c0d4da8bf8b620d020a73f45f56fe3619c2a066b2963d1c0db86a99f069a53e568fe01f3b820f4a835e070c53cd84bcf88e8ee75eac14fbd262d94bb8cff
|
7
|
+
data.tar.gz: 405b34ca7935fc9dfd23d2f66ea50b15e06fe06008c23e407f4c4a98f071f67b86667ac216b133cd46b0ea5bc105d49230a926852a59511f67fb743c4efb1d41
|
data/deas-erubis.gemspec
CHANGED
@@ -18,9 +18,9 @@ Gem::Specification.new do |gem|
|
|
18
18
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
19
19
|
gem.require_paths = ["lib"]
|
20
20
|
|
21
|
-
gem.add_development_dependency("assert", ["~> 2.
|
21
|
+
gem.add_development_dependency("assert", ["~> 2.17.0"])
|
22
22
|
|
23
|
-
gem.add_dependency("deas", ["~> 0.43.
|
23
|
+
gem.add_dependency("deas", ["~> 0.43.5"])
|
24
24
|
gem.add_dependency("erubis")
|
25
25
|
gem.add_dependency("much-plugin", ["~> 0.2.0"])
|
26
26
|
|
data/lib/deas-erubis/source.rb
CHANGED
@@ -54,8 +54,7 @@ module Deas::Erubis
|
|
54
54
|
end
|
55
55
|
raise ArgumentError, "#{template_desc} does not exist"
|
56
56
|
end
|
57
|
-
|
58
|
-
template(filename, content)
|
57
|
+
template(filename, File.read(filename.to_s))
|
59
58
|
end
|
60
59
|
end
|
61
60
|
|
data/lib/deas-erubis/version.rb
CHANGED
File without changes
|
@@ -15,10 +15,12 @@ class Deas::Erubis::TemplateEngine
|
|
15
15
|
@locals = { 'local1' => Factory.string }
|
16
16
|
@content = Proc.new{ "<span>some content</span>" }
|
17
17
|
|
18
|
-
@
|
19
|
-
|
20
|
-
|
18
|
+
@template_source = Deas::TemplateSource.new(TEMPLATE_ROOT)
|
19
|
+
@template_source.engine("erb", Deas::Erubis::TemplateEngine, {
|
20
|
+
"default_template_source" => @template_source
|
21
21
|
})
|
22
|
+
|
23
|
+
@engine = @template_source.engines["erb"]
|
22
24
|
end
|
23
25
|
subject{ @engine }
|
24
26
|
|
data/test/unit/source_tests.rb
CHANGED
@@ -214,7 +214,7 @@ class Deas::Erubis::Source
|
|
214
214
|
class RenderContentTests < RenderTests
|
215
215
|
desc "when yielding to a given content block"
|
216
216
|
setup do
|
217
|
-
@template_name = "
|
217
|
+
@template_name = "yield_no_view"
|
218
218
|
@content = Proc.new{ "<span>some content</span>" }
|
219
219
|
end
|
220
220
|
|
metadata
CHANGED
@@ -1,70 +1,81 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: deas-erubis
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.5.7
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
6
|
+
authors:
|
7
7
|
- Kelly Redding
|
8
8
|
- Collin Redding
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2019-05-21 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: assert
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
version: 2.16.3
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 2.17.0
|
23
21
|
type: :development
|
24
|
-
version_requirements: *id001
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: deas
|
27
22
|
prerelease: false
|
28
|
-
|
29
|
-
requirements:
|
30
|
-
- - ~>
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version:
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 2.17.0
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: deas
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 0.43.5
|
33
35
|
type: :runtime
|
34
|
-
version_requirements: *id002
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: erubis
|
37
36
|
prerelease: false
|
38
|
-
|
39
|
-
requirements:
|
40
|
-
-
|
41
|
-
-
|
42
|
-
|
43
|
-
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: 0.43.5
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: erubis
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
44
49
|
type: :runtime
|
45
|
-
version_requirements: *id003
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: much-plugin
|
48
50
|
prerelease: false
|
49
|
-
|
50
|
-
requirements:
|
51
|
-
- -
|
52
|
-
- !ruby/object:Gem::Version
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: much-plugin
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
53
62
|
version: 0.2.0
|
54
63
|
type: :runtime
|
55
|
-
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 0.2.0
|
56
70
|
description: Deas template engine for rendering erb templates using Erubis
|
57
|
-
email:
|
71
|
+
email:
|
58
72
|
- kelly@kellyredding.com
|
59
73
|
- collin.redding@me.com
|
60
74
|
executables: []
|
61
|
-
|
62
75
|
extensions: []
|
63
|
-
|
64
76
|
extra_rdoc_files: []
|
65
|
-
|
66
|
-
|
67
|
-
- .gitignore
|
77
|
+
files:
|
78
|
+
- ".gitignore"
|
68
79
|
- Gemfile
|
69
80
|
- LICENSE
|
70
81
|
- README.md
|
@@ -86,7 +97,7 @@ files:
|
|
86
97
|
- test/support/templates/view.erb
|
87
98
|
- test/support/templates/with_capture_partial.erb
|
88
99
|
- test/support/templates/with_partial.erb
|
89
|
-
- test/support/templates/
|
100
|
+
- test/support/templates/yield_no_view.erb
|
90
101
|
- test/support/templates/yield_view.erb
|
91
102
|
- test/system/template_engine_tests.rb
|
92
103
|
- test/unit/source_tests.rb
|
@@ -94,29 +105,30 @@ files:
|
|
94
105
|
- test/unit/template_helpers_tests.rb
|
95
106
|
- tmp/.gitkeep
|
96
107
|
homepage: http://github.com/redding/deas-erubis
|
97
|
-
licenses:
|
108
|
+
licenses:
|
98
109
|
- MIT
|
99
110
|
metadata: {}
|
100
|
-
|
101
111
|
post_install_message:
|
102
112
|
rdoc_options: []
|
103
|
-
|
104
|
-
require_paths:
|
113
|
+
require_paths:
|
105
114
|
- lib
|
106
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
-
|
109
|
-
|
110
|
-
|
111
|
-
|
115
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '0'
|
120
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
112
125
|
requirements: []
|
113
|
-
|
114
126
|
rubyforge_project:
|
115
|
-
rubygems_version: 2.
|
127
|
+
rubygems_version: 2.7.7
|
116
128
|
signing_key:
|
117
129
|
specification_version: 4
|
118
130
|
summary: Deas template engine for rendering erb templates using Erubis
|
119
|
-
test_files:
|
131
|
+
test_files:
|
120
132
|
- test/helper.rb
|
121
133
|
- test/support/factory.rb
|
122
134
|
- test/support/templates/_partial1.erb
|
@@ -129,7 +141,7 @@ test_files:
|
|
129
141
|
- test/support/templates/view.erb
|
130
142
|
- test/support/templates/with_capture_partial.erb
|
131
143
|
- test/support/templates/with_partial.erb
|
132
|
-
- test/support/templates/
|
144
|
+
- test/support/templates/yield_no_view.erb
|
133
145
|
- test/support/templates/yield_view.erb
|
134
146
|
- test/system/template_engine_tests.rb
|
135
147
|
- test/unit/source_tests.rb
|