bezel-app 0.0.9 → 0.0.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1ab93ac65a1a99a06d3e9cb01690323114b45637
4
- data.tar.gz: 0e767e424254664732c4544b3469af011e7d7443
3
+ metadata.gz: 13eeedad401062f448db3e0547e360dab956971e
4
+ data.tar.gz: c8323f39c94b53aa5d2bcf9526088a85035e1d02
5
5
  SHA512:
6
- metadata.gz: 06b82285ac975f5b1cdf9da82575a85b4733ae3e0c67dfd020fb230241cf88ac87aab20c0d0cff341f6c96d8c801dd014c6b6dbf43a14867227038f24b06f54d
7
- data.tar.gz: 24aadc46c8afb80ec0648345c0b1a4a209bbe283492b69643e0c9f9b56d7b1524de4f2dbbb89016a1b8b1dcc2c7dd7410734acf425fc374d66c4d15503481126
6
+ metadata.gz: 8893720efc46d1d87a8d12070931a39a4ff03f7abb8c88ec4969f8bf3f2debb356247f8ed461d52cb8a2a27bb83956c9fe6e637079527feb25a25eac2672e507
7
+ data.tar.gz: 1a84176775e16677a277a02c72643766e497ceb6aa73e41bea8befd4ac48b9fbbce1e92449034af07da2a855ad516099f6185f5a8401c29f62c742b89a4ecbd2
data/bezel-app.gemspec CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'bezel-app'
8
- spec.version = '0.0.9'
8
+ spec.version = '0.0.10'
9
9
  spec.authors = ['Keith Thompson']
10
10
  spec.email = ['KeithM_Thompson@outlook.com']
11
11
 
@@ -53,10 +53,16 @@ module Bezel
53
53
  end
54
54
 
55
55
  def render(template_name)
56
+ body = ''
56
57
  file_name = "app/views/"
57
58
  file_name += "#{self.class.to_s.underscore}/"
58
59
  file_name += "#{template_name}.html.erb"
59
- content = ERB.new(File.read(file_name)).result(binding)
60
+ File.open(file_name, 'r') do |file|
61
+ file.each_line do |line|
62
+ body += line
63
+ end
64
+ end
65
+ content = ERB.new(body).result(binding)
60
66
 
61
67
  render_content(content, "text/html")
62
68
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bezel-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keith Thompson