html_tables 0.2.3 → 0.2.4

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
  SHA1:
3
- metadata.gz: d4dae0880bd58223f742b0f48b35cf488e3d6873
4
- data.tar.gz: 55efcaec6b3086475de6b56745ed05305a4618ed
3
+ metadata.gz: da969925311ead6db4dfe24b444b1da3e69a033e
4
+ data.tar.gz: 81ba2eed3b73f84bcd0c3e0ac7e2e2e1350b5024
5
5
  SHA512:
6
- metadata.gz: c4b19d7a98ba598f4458293a68c94bcacce53f0434d301a2990455a9838db4bdb48894da5b46aab108f5adf478b661de5c9feddee1932559bc2c0e6f3e805b9e
7
- data.tar.gz: 6add4afa7362940a4d6395086fa0ca26e13a0281e4cf3b6319c79c150999081e7a5b6a5a45ab091e822d04c272d8f185e3f79839c11feea82f543a49f3361251
6
+ metadata.gz: 0e9d9971dc4ad4723da5d6d37e2e07f05f728f4f1f51bfd3c7bbd42796b8150d599381879a6d50325be4f5136d9dbaf77348d1f741eea13da8d3339d20c77935
7
+ data.tar.gz: 5a4e92587dffa59fef5450ac864209a1815bd2d3d9da323cf53aece9bfa3fd262ffb765a9bf77409a3ee6531dd0ce1e4526d970b4973ce76f30bb18f6470c0b1
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 0.2.4
2
+ -----
3
+ * Fixed a conflict when the same class have Symbolize and SimpleEnum fields.
4
+
1
5
  0.2.3
2
6
  -----
3
7
  * Better support for enum gems: simple_enum and Symbolize for now.
@@ -133,10 +133,10 @@ module HtmlTables
133
133
  tmp = item.public_send(column)
134
134
  if tmp.is_a?(Symbol)
135
135
  # tries common symbol-storing libraries
136
- if item.class.respond_to?(:human_enum_name) # simple_enum
137
- tmp = item.class.human_enum_name(column, tmp)
138
- elsif item.respond_to?(:"#{column}_text") # symbolize
136
+ if item.respond_to?(:"#{column}_text") # symbolize
139
137
  tmp = item.public_send("#{column}_text")
138
+ elsif item.class.respond_to?(:human_enum_name) # simple_enum
139
+ tmp = item.class.human_enum_name(column, tmp)
140
140
  end
141
141
  end
142
142
  tmp
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
  module HtmlTables
4
- VERSION = '0.2.3'
4
+ VERSION = '0.2.4'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html_tables
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fábio David Batista
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-24 00:00:00.000000000 Z
11
+ date: 2014-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n