query_report 1.0.19 → 1.0.20

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: 0f157b5489f576a76802cb9421600a0ef3efb36d
4
- data.tar.gz: 4cb8183d6c9768dcff6e515c81e5641fd793bebd
3
+ metadata.gz: 72ecea2b5888973d9466d275b82d9b430aede2a0
4
+ data.tar.gz: ece6ae1a06070abfd8e135db96d084b451014fd8
5
5
  SHA512:
6
- metadata.gz: 343f17dbce358ded12cbd8ee9ec857a7ad4dfbff7e8ab3b6855aa95b401ce76dcf27ab03f1d8a380115da87010ebad33739515a67f045ad95ca56253afe0f80c
7
- data.tar.gz: 4c87698f68389a1f70e9afc3b3ba004db6dcdb41bc728868441e051839cb12e57d8a4ac0f8aebecd3d01949998ce3b9ba963641945f978ba173cccd7f7857489
6
+ metadata.gz: a7ab2b78338519ab00943689c92bd17573dd63658eff709c07e5cfef6abd1c8a4e39c284037a24e2de15b57850749d531fd2e574ab3e16a9f0792ff7bd5c2625
7
+ data.tar.gz: b03d1fd45a9f515c74e4f860469f77e869166346226d36dddd6c7df0a0040d858d3ad491125908ae6f1ed75c930113db1a00e91ba5f269a5fe91a944263504a4
@@ -38,7 +38,7 @@ module QueryReport
38
38
  @columns = @columns.delete_if { |col| col.only_on_web? } unless render_from_view
39
39
 
40
40
  query.map do |record|
41
- array = @columns.collect { |column| [column.humanize, column.value(record)] }
41
+ array = @columns.collect { |column| [column.humanize, render_from_view ? column.value(record) : strip_tags(column.value(record))] }
42
42
  Hash[*array.flatten]
43
43
  end
44
44
  end
@@ -1,3 +1,3 @@
1
1
  module QueryReport
2
- VERSION = "1.0.19"
2
+ VERSION = "1.0.20"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: query_report
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.19
4
+ version: 1.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - A.K.M. Ashrafuzzaman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-26 00:00:00.000000000 Z
11
+ date: 2014-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails