xlsxtream_rails 0.7.0 → 0.8.0

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
  SHA256:
3
- metadata.gz: 744d930605ccd3e7d39a90dc38887739001a5725f20ca7a43ef046a52b030945
4
- data.tar.gz: de0b14ad7f35d31961ce91bc5522dfe380c66b95f0f12857c431bf0580838f56
3
+ metadata.gz: f2d0c21cedd9e6ad0db1e0901c8aa34c6f807af2a6ff74f7c2cc9f0ad73e55e9
4
+ data.tar.gz: 5472a61f18f68506ed8b5c223223408dfe8e34ae3f8cece760e721ae5827926d
5
5
  SHA512:
6
- metadata.gz: 9f3761bd105dc7f803c1b929e1f402483143eafe4e6c030e4653cc091d395f48a8ed3aa27cae5594c1797eca64ceee2ba5e42425149a30a6c6dd9f5f684a5228
7
- data.tar.gz: 61a863cbc7e32cf755e92e9ee5d9dfc9fb2fb1ddd56e852dc4d722ea56ce47b9427b5bb077a1dcac94ab30cb4e69b51de8d39f90550f7d9525ed2c5ed47b96ab
6
+ metadata.gz: e5fe3f222f21df6d7ba3cc9e676e4e4502f1f5faca10382a937db0085f79ebfef2c32fa795903ba160a0f5009a6e240966158b319919a5d11dc35fbeed75ca67
7
+ data.tar.gz: 3871dedd5b52ee8bd034a1e48129071cd36345dbfe8d22b325b3fc9d0913ee0cbeec27bc2fe15b0b8e8890adffbb063d4c776cf40cae5f9fa1a6c7c0a293f069
@@ -1,12 +1,8 @@
1
1
  module XlsxtreamRails
2
2
  module ClassMethods
3
- # TODO
4
3
  def to_xlsx
5
- (column_names - except_xlsx_columns).map { |x| x.to_sym }
6
- end
7
-
8
- def except_xlsx_columns
9
- []
4
+ except_columns = respond_to?(:xlsx_except_columns) ? xlsx_except_columns : []
5
+ (column_names - except_columns).map { |x| x.to_sym }
10
6
  end
11
7
  end
12
8
  end
@@ -1,3 +1,3 @@
1
1
  module XlsxtreamRails
2
- VERSION = "0.7.0"
2
+ VERSION = "0.8.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xlsxtream_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - doabit