roger 0.12.0 → 0.12.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.
- checksums.yaml +8 -8
- data/CHANGELOG.md +3 -0
- data/lib/roger/template.rb +2 -1
- data/roger.gemspec +1 -1
- data/test/unit/template_test.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzlmMjAwN2Q1MDE3NTExZDkwMzM2NGY1ZmQ5YmFkMjAxZmYxYzE5Yg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTc1YTVkYzY1MGU1ZTQ5Mjc3NGUyZGRlNzM2ZjgwYmQ0NDY2NzEyZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NmEzMzFmYWFiMDczMGViZjNkNWNhMzk0ZDUzMDVlMTEyMjljOWM0MWQ5ZmEy
|
10
|
+
M2Q1ZWQ1MDg1YWUxMTBkMTM4MTI1MzBhMWZmOTYyNzkxNmI0NTg2YTk3OTQ1
|
11
|
+
OGVjMTY2ZWJhZDY0Yjc1NWU5YzA3ZGJjMzEyNDZmZTQ4NjNhNGI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjY2MjM5MTMyZjI5OWU3ODg5NTc1YjI4OTZmYmZlODY2ODRkZTVhNDEwZWE4
|
14
|
+
NWQ1Y2FkOTFlZDExOGNlMmYzNTIyODQ1OGQyMjRlMTVkNmU0MDU4Y2YxZWY0
|
15
|
+
NDhlNjM3MmExZTcxODUyYzBiYWY2NDNlMDI1ZDQ4ODQ1NmQ0ZGU=
|
data/CHANGELOG.md
CHANGED
data/lib/roger/template.rb
CHANGED
@@ -147,7 +147,8 @@ module Roger
|
|
147
147
|
attr_accessor :_content_for_blocks
|
148
148
|
|
149
149
|
def initialize(template, env={})
|
150
|
-
@
|
150
|
+
@_content_for_blocks = {}
|
151
|
+
@_template, @_env = template, env
|
151
152
|
end
|
152
153
|
|
153
154
|
# The current Roger::Template in use
|
data/roger.gemspec
CHANGED
data/test/unit/template_test.rb
CHANGED
@@ -135,6 +135,14 @@ module Roger
|
|
135
135
|
assert_equal template.render, "BA"
|
136
136
|
end
|
137
137
|
|
138
|
+
# Environment
|
139
|
+
|
140
|
+
def test_template_env
|
141
|
+
template = Template.new("<%= env[:test] %>", @config.update(:source_path => @base + "html/test.html.erb"))
|
142
|
+
assert_equal template.render(:test => "test"), "test"
|
143
|
+
end
|
144
|
+
|
145
|
+
|
138
146
|
|
139
147
|
end
|
140
148
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Flurin Egger
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-05-
|
13
|
+
date: 2014-05-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: thor
|