xlsxtream_rails 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xlsxtream_rails/class_methods.rb +8 -0
- data/lib/xlsxtream_rails/version.rb +1 -1
- data/lib/xlsxtream_rails.rb +6 -2
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a54b0cad604244bd9547c4b096192ac193b7e326dc4b013eab909b78edea6c2
|
4
|
+
data.tar.gz: e565f309ddb38b134d307c1558dad4a2b0696787688af64853923de4bbbde1d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cac8f0033dd5a7d1b2af96243e011d573da24885a2013ce819d66d806da6b28b88c18d30f6c9cd9bd96d61402df45bdd6081efe57a9ea2b2badcbec67728e66d
|
7
|
+
data.tar.gz: 1dfa9fffbdc4092d0ae4641d5311eaa27940fcad75af1b28645f75109622ea4543243ec3ef70fb45172c065359158326647d88b80995098243431f61590e1a7d
|
data/lib/xlsxtream_rails.rb
CHANGED
@@ -1,11 +1,15 @@
|
|
1
1
|
require "xlsxtream"
|
2
|
+
require "xlsxtream_rails/class_methods"
|
2
3
|
require "xlsxtream_rails/utils"
|
3
4
|
require "xlsxtream_rails/version"
|
4
5
|
require "xlsxtream_rails/railtie"
|
5
6
|
|
6
7
|
module XlsxtreamRails
|
8
|
+
def self.included(base)
|
9
|
+
base.send(:extend, ClassMethods)
|
10
|
+
end
|
11
|
+
|
7
12
|
def xlsx_columns(opts = {})
|
8
|
-
|
9
|
-
column_names.map { |x| x.to_sym }
|
13
|
+
self.class.to_xlsx
|
10
14
|
end
|
11
15
|
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.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- doabit
|
@@ -51,6 +51,7 @@ files:
|
|
51
51
|
- lib/tasks/xlsxtream_rails_tasks.rake
|
52
52
|
- lib/xlsxtream_rails.rb
|
53
53
|
- lib/xlsxtream_rails/action_controller.rb
|
54
|
+
- lib/xlsxtream_rails/class_methods.rb
|
54
55
|
- lib/xlsxtream_rails/railtie.rb
|
55
56
|
- lib/xlsxtream_rails/utils.rb
|
56
57
|
- lib/xlsxtream_rails/version.rb
|