ar_to_html_table 0.1.6 → 0.1.7

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/CHANGELOG CHANGED
@@ -1,5 +1,8 @@
1
- ar_to_html_table (0.1.6)
1
+ ar_to_html_table (0.1.7) October 24, 2010
2
2
 
3
3
  * Included ::ActionView::Helpers::DateHelper into column_formats so those methods can be use
4
4
  in formatters
5
5
 
6
+ * Coerce value to integer in seconds_to_time
7
+
8
+
@@ -78,6 +78,7 @@ module ArToHtmlTable
78
78
  # val: the value to be formatted
79
79
  # options: formatter options
80
80
  def seconds_to_time(val, options)
81
+ val = val.to_i
81
82
  hours = val / 3600
82
83
  minutes = (val / 60) - (hours * 60)
83
84
  seconds = val % 60
@@ -153,7 +153,7 @@ module ArToHtmlTable
153
153
  column_cache[column_name][value] = result
154
154
  end
155
155
  html.__send__(cell_type, (column[:class] ? {:class => column[:class]} : {})) do
156
- html << result
156
+ html << result.to_s
157
157
  end
158
158
  end
159
159
 
@@ -1,3 +1,3 @@
1
1
  module ArToHtmlTable
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ar_to_html_table
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 6
10
- version: 0.1.6
9
+ - 7
10
+ version: 0.1.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kip Cole
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-22 00:00:00 +08:00
18
+ date: 2010-10-24 00:00:00 +08:00
19
19
  default_executable:
20
20
  dependencies: []
21
21