htmlgrid 1.0.3 → 1.0.4

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/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.0.4 / 23.12.2011
2
+
3
+ * Added force_encoding('utf-8') to the return value of Grid#to_html method
4
+
1
5
  === 1.0.3 / 23.12.2011
2
6
 
3
7
  * patch grid.c for Ruby 1.9.3
@@ -22,6 +22,7 @@
22
22
  # ywesee - intellectual capital connected, Winterthurerstrasse 52, CH-8006 Zuerich, Switzerland
23
23
  # htmlgrid@ywesee.com, www.ywesee.com/htmlgrid
24
24
  #
25
+ # Template -- htmlgrid -- 09.01.2012 -- mhatakeyama@ywesee.com
25
26
  # Template -- htmlgrid -- 23.10.2002 -- hwyss@ywesee.com
26
27
 
27
28
  require 'htmlgrid/grid'
@@ -260,7 +261,7 @@ module HtmlGrid
260
261
  end
261
262
  def to_html(context)
262
263
  @grid.set_attributes(@attributes)
263
- super << @grid.to_html(context)
264
+ super << @grid.to_html(context).force_encoding('utf-8')
264
265
  end
265
266
  private
266
267
  def back(model=@model, session=@session)
data/lib/htmlgrid/grid.rb CHANGED
@@ -25,7 +25,7 @@
25
25
  # HtmlGrid::Grid -- htmlgrid -- 09.12.2011 -- mhatakeyama@ywesee.com
26
26
  # HtmlGrid::Grid -- htmlgrid -- 12.01.2010 -- hwyss@ywesee.com
27
27
  begin
28
- VERSION = '1.0.3'
28
+ VERSION = '1.0.4'
29
29
  begin
30
30
  # for gem install
31
31
  ext_dir = File.expand_path('../../ext/htmlgrid', File.dirname(__FILE__))
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: 17
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 3
10
- version: 1.0.3
9
+ - 4
10
+ version: 1.0.4
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: 2011-12-23 00:00:00 +01:00
18
+ date: 2012-01-09 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency