roger 0.12.0 → 0.12.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzYxZWRjNGYwZjA1NjRmNzQ4NDA1YjA5NTJlYjg2Y2VjNGE2ODQwMA==
4
+ YzlmMjAwN2Q1MDE3NTExZDkwMzM2NGY1ZmQ5YmFkMjAxZmYxYzE5Yg==
5
5
  data.tar.gz: !binary |-
6
- NTA4Y2Y4MjIwMjA1OGYzNzgxM2Y1NmZiZTljMDgxOGQ2OGU0YTFlNw==
6
+ YTc1YTVkYzY1MGU1ZTQ5Mjc3NGUyZGRlNzM2ZjgwYmQ0NDY2NzEyZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjkxOTQ2MmY4MzYzYTcxMDVjNzY5MTAyYzU1NjA3MzgyYzE0OWFlODdlMjRk
10
- ZjdlOGUzNDg1M2M1NjYwMjQ0OTg1NDRkOTA4YmZiM2ZhZjFmMjAxZmVhNTk4
11
- MDg5ZjNiYjM3MjViMmRiZDYwNzQ3MzkyNWM2ZmY5OGM4ODFhNTE=
9
+ NmEzMzFmYWFiMDczMGViZjNkNWNhMzk0ZDUzMDVlMTEyMjljOWM0MWQ5ZmEy
10
+ M2Q1ZWQ1MDg1YWUxMTBkMTM4MTI1MzBhMWZmOTYyNzkxNmI0NTg2YTk3OTQ1
11
+ OGVjMTY2ZWJhZDY0Yjc1NWU5YzA3ZGJjMzEyNDZmZTQ4NjNhNGI=
12
12
  data.tar.gz: !binary |-
13
- ODhjNWUwNzI0ODMxN2E0YThkMzc2NmQ5MWI3MjM2MWY3YjRmNzEyOTczNzZi
14
- YjZkMDlkMjM2NjdjNzBjZWU1OWNlOTJiNDZiZDUwZTM1OTI2OWRmZDU4OTEx
15
- YWVhMjJjMmViYmFiMTI1YzJhZDFlZjE2NTRlZjMzOTYwNzQxY2Y=
13
+ MjY2MjM5MTMyZjI5OWU3ODg5NTc1YjI4OTZmYmZlODY2ODRkZTVhNDEwZWE4
14
+ NWQ1Y2FkOTFlZDExOGNlMmYzNTIyODQ1OGQyMjRlMTVkNmU0MDU4Y2YxZWY0
15
+ NDhlNjM3MmExZTcxODUyYzBiYWY2NDNlMDI1ZDQ4ODQ1NmQ0ZGU=
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## Version 0.12.1
4
+ * Fix bug when passing ENV to templates and added regression test
5
+
3
6
  ## Version 0.12.0
4
7
  * Allow passing blocks to partials. Keep in mind that you'll need to use the `<% ... %>` form when using blocks.
5
8
 
@@ -147,7 +147,8 @@ module Roger
147
147
  attr_accessor :_content_for_blocks
148
148
 
149
149
  def initialize(template, env={})
150
- @_template, @_env = template, @_content_for_blocks = {}, env
150
+ @_content_for_blocks = {}
151
+ @_template, @_env = template, env
151
152
  end
152
153
 
153
154
  # The current Roger::Template in use
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "roger"
5
- s.version = "0.12.0"
5
+ s.version = "0.12.1"
6
6
 
7
7
  s.authors = ["Flurin Egger", "Edwin van der Graaf", "Joran Kapteijns"]
8
8
  s.email = ["info@digitpaint.nl", "flurin@digitpaint.nl"]
@@ -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.0
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-06 00:00:00.000000000 Z
13
+ date: 2014-05-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: thor