htmlgrid 1.0.0 → 1.0.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.
- data/.gemtest +0 -0
- data/History.txt +5 -0
- data/lib/htmlgrid/component.rb +8 -3
- data/lib/htmlgrid/grid.rb +12 -3
- metadata +11 -10
data/.gemtest
ADDED
|
File without changes
|
data/History.txt
CHANGED
data/lib/htmlgrid/component.rb
CHANGED
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
# ywesee - intellectual capital connected, Winterthurerstrasse 52, CH-8006 Zuerich, Switzerland
|
|
23
23
|
# htmlgrid@ywesee.com, www.ywesee.com/htmlgrid
|
|
24
24
|
#
|
|
25
|
-
# Component -- htmlgrid --
|
|
25
|
+
# HtmlGrid::Component -- htmlgrid -- 09.12.2012 -- mhatakeyama@ywesee.com
|
|
26
|
+
# HtmlGrid::Component -- htmlgrid -- 23.10.2002 -- hwyss@ywesee.com
|
|
26
27
|
#++
|
|
27
28
|
|
|
28
29
|
module HtmlGrid
|
|
@@ -213,8 +214,12 @@ module HtmlGrid
|
|
|
213
214
|
@attributes.store('tabIndex', tab.to_s)
|
|
214
215
|
end
|
|
215
216
|
def to_html(context)
|
|
216
|
-
|
|
217
|
-
|
|
217
|
+
if RUBY_VERSION > "1.9"
|
|
218
|
+
_to_html(context, @value).to_s.force_encoding('utf-8')
|
|
219
|
+
else
|
|
220
|
+
_to_html(context, @value).to_s
|
|
221
|
+
end
|
|
222
|
+
end
|
|
218
223
|
@@nl2br_ptrn = /(\r\n)|(\n)|(\r)/
|
|
219
224
|
def _to_html(context, value=@value)
|
|
220
225
|
if(value.is_a?(Array))
|
data/lib/htmlgrid/grid.rb
CHANGED
|
@@ -22,10 +22,19 @@
|
|
|
22
22
|
# ywesee - intellectual capital connected, Winterthurerstrasse 52, CH-8006 Zuerich, Switzerland
|
|
23
23
|
# htmlgrid@ywesee.com, www.ywesee.com/htmlgrid
|
|
24
24
|
#
|
|
25
|
-
# Grid -- htmlgrid --
|
|
25
|
+
# HtmlGrid::Grid -- htmlgrid -- 09.12.2011 -- mhatakeyama@ywesee.com
|
|
26
|
+
# HtmlGrid::Grid -- htmlgrid -- 12.01.2010 -- hwyss@ywesee.com
|
|
26
27
|
begin
|
|
27
|
-
VERSION = '1.0.
|
|
28
|
-
|
|
28
|
+
VERSION = '1.0.1'
|
|
29
|
+
begin
|
|
30
|
+
# for gem install
|
|
31
|
+
ext_dir = File.expand_path('../../ext/htmlgrid', File.dirname(__FILE__))
|
|
32
|
+
ext_lib = File.join(ext_dir, 'htmlgrid.so')
|
|
33
|
+
require ext_lib
|
|
34
|
+
rescue LoadError
|
|
35
|
+
# for setup.rb install
|
|
36
|
+
require 'htmlgrid.so'
|
|
37
|
+
end
|
|
29
38
|
rescue LoadError
|
|
30
39
|
puts "could not find htmlgrid.so, falling back to pure-ruby class"
|
|
31
40
|
module HtmlGrid
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: htmlgrid
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
5
|
-
prerelease:
|
|
4
|
+
hash: 21
|
|
5
|
+
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 1.0.
|
|
9
|
+
- 1
|
|
10
|
+
version: 1.0.1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Masaomi Hatakeyama, Zeno R.R. Davatz
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date:
|
|
18
|
+
date: 2011-12-09 00:00:00 +01:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|
|
@@ -26,12 +26,12 @@ dependencies:
|
|
|
26
26
|
requirements:
|
|
27
27
|
- - ">="
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
|
-
hash:
|
|
29
|
+
hash: 41
|
|
30
30
|
segments:
|
|
31
31
|
- 2
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
version: 2.
|
|
32
|
+
- 9
|
|
33
|
+
- 1
|
|
34
|
+
version: 2.9.1
|
|
35
35
|
type: :development
|
|
36
36
|
version_requirements: *id001
|
|
37
37
|
description: HtmlGrid is a Html-ToolKit for Ruby Webframeworks.
|
|
@@ -130,6 +130,7 @@ files:
|
|
|
130
130
|
- test/test_text.rb
|
|
131
131
|
- usage-en.txt
|
|
132
132
|
- widget/Tooltip.js
|
|
133
|
+
- .gemtest
|
|
133
134
|
has_rdoc: true
|
|
134
135
|
homepage: http://scm.ywesee.com/?p=htmlgrid/.git;a=summary
|
|
135
136
|
licenses: []
|
|
@@ -161,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
161
162
|
requirements: []
|
|
162
163
|
|
|
163
164
|
rubyforge_project: htmlgrid
|
|
164
|
-
rubygems_version: 1.
|
|
165
|
+
rubygems_version: 1.4.2
|
|
165
166
|
signing_key:
|
|
166
167
|
specification_version: 3
|
|
167
168
|
summary: HtmlGrid is a Html-ToolKit for Ruby Webframeworks.
|