inline_templates 0.0.3 → 0.0.4

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
1
  ---
2
2
  SHA1:
3
- metadata.gz: cdaa377c8da57c63aa268b4173579fe4b50e6f29
4
- data.tar.gz: a38406882ed495ef4349f39755ee35701ceaad35
3
+ metadata.gz: 37edba5533b3f50ef02c284d351c0c30c91a8956
4
+ data.tar.gz: 0b9900b7d7c207ba0db0b300ec4c68aa77e9cc2d
5
5
  SHA512:
6
- metadata.gz: 78a33c47e1f38aa055353a7e7d80b55cbba1acff724803d4ed365f1625d79886ce324db3b67bef5363d0997ad5e70847a6dee57578aa184218898f871fe4d4cb
7
- data.tar.gz: 1974e3083ba7b0f2c37e2bc44404733b076c234554a03c7a6647902914f2309b3029cb7dd83bcc895c8d2428fa7894f7ca659c60828dcae880985e92d4ad17c8
6
+ metadata.gz: aebdef1aab1a2f7069f5b3abe2cf9c4a9de962305baef2f7db675c8df820f3fcc6c7dccdd505a0aaec270eec82e3b921f0b60d41d6305823c4adbeae1aa9ced6
7
+ data.tar.gz: e0d13dbc6a3fcb33b765e983d57adb8968908368608ab65cf7d069b83c4b55ac262ba4aec56b63ce0fef56d3f81d06665e344be73762f7d1575cd117dc3de362
@@ -18,7 +18,11 @@ module InlineTemplates
18
18
  args.map! &BufferWrapper.method(:unwrap)
19
19
  block = BufferWrapper.create_proxy_proc(block, @buffer) unless block.nil?
20
20
 
21
- BufferWrapper.wrap @object.__send__(name, *args, &block), @buffer
21
+ result = @object.__send__(name, *args, &block)
22
+
23
+ return result if name.to_s == "to_str"
24
+
25
+ BufferWrapper.wrap result, @buffer
22
26
  end
23
27
 
24
28
  def respond_to_missing?(name, include_private = false)
@@ -1,3 +1,3 @@
1
1
  module InlineTemplates
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inline_templates
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Gridasov