htmlgrid 1.1.9 → 1.2.0

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
  SHA256:
3
- metadata.gz: 370b1739a798ffa17c0c56589053a41e37823a3b4d07fec1bcfac170aaa7a53e
4
- data.tar.gz: c6b553780c2b7295b08d97c28918558367cc0dc7db588933cf918cc826b8f2ec
3
+ metadata.gz: 26aeff8e4a47ea2131562e6f103e9cadb612c3b808e3ae6d90f0e25b3dcf128b
4
+ data.tar.gz: 9caab5fa8932c5ba549d9418a4423f78a2f8b1b8a8de9b6910baa6a897532292
5
5
  SHA512:
6
- metadata.gz: efa18848338ec66e1ea3c12edbcb17bcdcc3bc05039c1d00b7800613fa17f6dfb0e64d707af3755318d219c908730bc16791f194d60c792f96967bafadb80726
7
- data.tar.gz: 0d6977f37541df5f7453801e32c9fba27ecd4ec03a1944cd302d857abc0955396ff613f718afa7111eac54bce648b1d010feba7593693bc1ba77aa063a575cb3
6
+ metadata.gz: a29d7a640c61ed177cf6311402f3fd1d2c1a57612945520453584c32c20fd8947d6c0b9e22a9ca86da23cf2a57725b0b1db7f27777c04877fd11c6f140a57d2c
7
+ data.tar.gz: 784fa143ed7b7ce3bcd3253ca5e8ae90322a49440da4d62e5bb9596a4468c4ae05b76a2f5ad1232f50fa516cb8c11d2a22987c586c4aa4c0b0a67d3b4dea4567
@@ -38,6 +38,7 @@ module HtmlGrid
38
38
  JAVASCRIPTS = []
39
39
  @@local_doc_dir = File.join(Dir.pwd, 'doc')
40
40
  def TemplateMethods.get_inline(ressource)
41
+ return nil unless ressource
41
42
  local_file = File.join(@@local_doc_dir, URI(ressource).path)
42
43
  File.exist?(local_file) ? File.read(local_file) : nil
43
44
  end
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
  # encoding: utf-8
3
3
  module HtmlGrid
4
- VERSION = '1.1.9'
4
+ VERSION = '1.2.0'
5
5
  end
@@ -21,7 +21,7 @@
21
21
  # ywesee - intellectual capital connected, Winterthurerstrasse 52, CH-8006 Zuerich, Switzerland
22
22
  # htmlgrid@ywesee.com, downloads.ywesee.com/ruby/htmlgrid
23
23
  #
24
- # TestTemplate -- htmlgrid -- 19.11.2002 -- hwyss@ywesee.com
24
+ # TestTemplate -- htmlgrid -- 19.11.2002 -- hwyss@ywesee.com
25
25
 
26
26
  $LOAD_PATH << File.expand_path("../lib", File.dirname(__FILE__))
27
27
  $LOAD_PATH << File.dirname(__FILE__)
@@ -73,7 +73,7 @@ class Template < HtmlGrid::Template
73
73
  },
74
74
  ]
75
75
  COMPONENTS = {
76
- [0,0] => :foo,
76
+ [0,0] => :foo,
77
77
  }
78
78
  LEGACY_INTERFACE = false
79
79
  def foo(model)
@@ -116,4 +116,7 @@ class TestTemplate < Minitest::Test
116
116
  assert(result.index(line), "#{idx} Missing: #{line} in #{result}")
117
117
  }
118
118
  end
119
+ def test_to_html_with_nil_inline
120
+ assert_nil(cpHtmlGrid::TemplateMethods.get_inline(nil))
121
+ end
119
122
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: htmlgrid
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.9
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masaomi Hatakeyama, Zeno R.R. Davatz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-05 00:00:00.000000000 Z
11
+ date: 2021-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sbsm
@@ -246,7 +246,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
246
246
  - !ruby/object:Gem::Version
247
247
  version: '0'
248
248
  requirements: []
249
- rubygems_version: 3.1.2
249
+ rubygems_version: 3.2.4
250
250
  signing_key:
251
251
  specification_version: 4
252
252
  summary: HtmlGrid is a Html-ToolKit for Ruby Webframeworks.