export_to 1.0.0 → 1.1.1

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.
@@ -0,0 +1,97 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ export_to (1.1.0)
5
+ activesupport (>= 6.0, < 8)
6
+ fast_excel (~> 0.4)
7
+ iconv (~> 1.0)
8
+ spreadsheet (~> 1.3)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ actionpack (6.1.7.10)
14
+ actionview (= 6.1.7.10)
15
+ activesupport (= 6.1.7.10)
16
+ rack (~> 2.0, >= 2.0.9)
17
+ rack-test (>= 0.6.3)
18
+ rails-dom-testing (~> 2.0)
19
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
20
+ actionview (6.1.7.10)
21
+ activesupport (= 6.1.7.10)
22
+ builder (~> 3.1)
23
+ erubi (~> 1.4)
24
+ rails-dom-testing (~> 2.0)
25
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
26
+ activesupport (6.1.7.10)
27
+ concurrent-ruby (~> 1.0, >= 1.0.2)
28
+ i18n (>= 1.6, < 2)
29
+ minitest (>= 5.1)
30
+ tzinfo (~> 2.0)
31
+ zeitwerk (~> 2.3)
32
+ bigdecimal (4.0.1)
33
+ builder (3.3.0)
34
+ concurrent-ruby (1.3.6)
35
+ crass (1.0.6)
36
+ erubi (1.13.1)
37
+ fast_excel (0.5.0)
38
+ ffi (> 1.9, < 2)
39
+ ffi (1.17.3)
40
+ i18n (1.14.8)
41
+ concurrent-ruby (~> 1.0)
42
+ iconv (1.1.1)
43
+ logger (1.7.0)
44
+ loofah (2.25.0)
45
+ crass (~> 1.0.2)
46
+ nokogiri (>= 1.12.0)
47
+ method_source (1.1.0)
48
+ minitest (5.26.1)
49
+ nokogiri (1.17.2-arm64-darwin)
50
+ racc (~> 1.4)
51
+ nokogiri (1.17.2-x86_64-linux)
52
+ racc (~> 1.4)
53
+ racc (1.8.1)
54
+ rack (2.2.21)
55
+ rack-test (2.2.0)
56
+ rack (>= 1.3)
57
+ rails-dom-testing (2.3.0)
58
+ activesupport (>= 5.0.0)
59
+ minitest
60
+ nokogiri (>= 1.6)
61
+ rails-html-sanitizer (1.6.2)
62
+ loofah (~> 2.21)
63
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
64
+ railties (6.1.7.10)
65
+ actionpack (= 6.1.7.10)
66
+ activesupport (= 6.1.7.10)
67
+ method_source
68
+ rake (>= 12.2)
69
+ thor (~> 1.0)
70
+ rake (13.3.1)
71
+ ruby-ole (1.2.13.1)
72
+ shoulda-context (2.0.0)
73
+ spreadsheet (1.3.4)
74
+ bigdecimal
75
+ logger
76
+ ruby-ole
77
+ thor (1.5.0)
78
+ tzinfo (2.0.6)
79
+ concurrent-ruby (~> 1.0)
80
+ zeitwerk (2.6.18)
81
+
82
+ PLATFORMS
83
+ arm64-darwin-21
84
+ x86_64-linux
85
+
86
+ DEPENDENCIES
87
+ activesupport (~> 6.1.0)
88
+ bundler (>= 2.0.0)
89
+ export_to!
90
+ logger (~> 1.5)
91
+ minitest (~> 5.0)
92
+ railties (~> 6.1.0)
93
+ rake (>= 13)
94
+ shoulda-context
95
+
96
+ BUNDLED WITH
97
+ 2.2.33
@@ -0,0 +1,10 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ gemspec path: ".."
6
+
7
+ gem "activesupport", "~> 7.0.0"
8
+ gem "railties", "~> 7.0.0"
9
+ gem "rake", ">= 13"
10
+ gem "logger", "~> 1.5"
@@ -0,0 +1,110 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ export_to (1.1.0)
5
+ activesupport (>= 6.0, < 8)
6
+ fast_excel (~> 0.4)
7
+ iconv (~> 1.0)
8
+ spreadsheet (~> 1.3)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ actionpack (7.0.10)
14
+ actionview (= 7.0.10)
15
+ activesupport (= 7.0.10)
16
+ racc
17
+ rack (~> 2.0, >= 2.2.4)
18
+ rack-test (>= 0.6.3)
19
+ rails-dom-testing (~> 2.0)
20
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
21
+ actionview (7.0.10)
22
+ activesupport (= 7.0.10)
23
+ builder (~> 3.1)
24
+ erubi (~> 1.4)
25
+ rails-dom-testing (~> 2.0)
26
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
27
+ activesupport (7.0.10)
28
+ base64
29
+ benchmark (>= 0.3)
30
+ bigdecimal
31
+ concurrent-ruby (~> 1.0, >= 1.0.2)
32
+ drb
33
+ i18n (>= 1.6, < 2)
34
+ logger (>= 1.4.2)
35
+ minitest (>= 5.1)
36
+ mutex_m
37
+ securerandom (>= 0.3)
38
+ tzinfo (~> 2.0)
39
+ base64 (0.3.0)
40
+ benchmark (0.5.0)
41
+ bigdecimal (4.0.1)
42
+ builder (3.3.0)
43
+ concurrent-ruby (1.3.6)
44
+ crass (1.0.6)
45
+ drb (2.2.3)
46
+ erubi (1.13.1)
47
+ fast_excel (0.5.0)
48
+ ffi (> 1.9, < 2)
49
+ ffi (1.17.3)
50
+ i18n (1.14.8)
51
+ concurrent-ruby (~> 1.0)
52
+ iconv (1.1.1)
53
+ logger (1.7.0)
54
+ loofah (2.25.0)
55
+ crass (~> 1.0.2)
56
+ nokogiri (>= 1.12.0)
57
+ method_source (1.1.0)
58
+ minitest (5.26.1)
59
+ mutex_m (0.3.0)
60
+ nokogiri (1.17.2-arm64-darwin)
61
+ racc (~> 1.4)
62
+ nokogiri (1.17.2-x86_64-linux)
63
+ racc (~> 1.4)
64
+ racc (1.8.1)
65
+ rack (2.2.21)
66
+ rack-test (2.2.0)
67
+ rack (>= 1.3)
68
+ rails-dom-testing (2.3.0)
69
+ activesupport (>= 5.0.0)
70
+ minitest
71
+ nokogiri (>= 1.6)
72
+ rails-html-sanitizer (1.6.2)
73
+ loofah (~> 2.21)
74
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
75
+ railties (7.0.10)
76
+ actionpack (= 7.0.10)
77
+ activesupport (= 7.0.10)
78
+ method_source
79
+ rake (>= 12.2)
80
+ thor (~> 1.0)
81
+ zeitwerk (~> 2.5)
82
+ rake (13.3.1)
83
+ ruby-ole (1.2.13.1)
84
+ securerandom (0.3.2)
85
+ shoulda-context (2.0.0)
86
+ spreadsheet (1.3.4)
87
+ bigdecimal
88
+ logger
89
+ ruby-ole
90
+ thor (1.5.0)
91
+ tzinfo (2.0.6)
92
+ concurrent-ruby (~> 1.0)
93
+ zeitwerk (2.6.18)
94
+
95
+ PLATFORMS
96
+ arm64-darwin-21
97
+ x86_64-linux
98
+
99
+ DEPENDENCIES
100
+ activesupport (~> 7.0.0)
101
+ bundler (>= 2.0.0)
102
+ export_to!
103
+ logger (~> 1.5)
104
+ minitest (~> 5.0)
105
+ railties (~> 7.0.0)
106
+ rake (>= 13)
107
+ shoulda-context
108
+
109
+ BUNDLED WITH
110
+ 2.2.33
@@ -0,0 +1,10 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ gemspec path: ".."
6
+
7
+ gem "activesupport", "~> 6.1.0"
8
+ gem "railties", "~> 6.1.0"
9
+ gem "rake", ">= 13"
10
+ gem "logger", "~> 1.5"
@@ -0,0 +1,98 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ export_to (1.1.0)
5
+ activesupport (>= 6.0, < 8)
6
+ fast_excel (~> 0.4)
7
+ iconv (~> 1.0)
8
+ spreadsheet (~> 1.3)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ actionpack (6.1.7.10)
14
+ actionview (= 6.1.7.10)
15
+ activesupport (= 6.1.7.10)
16
+ rack (~> 2.0, >= 2.0.9)
17
+ rack-test (>= 0.6.3)
18
+ rails-dom-testing (~> 2.0)
19
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
20
+ actionview (6.1.7.10)
21
+ activesupport (= 6.1.7.10)
22
+ builder (~> 3.1)
23
+ erubi (~> 1.4)
24
+ rails-dom-testing (~> 2.0)
25
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
26
+ activesupport (6.1.7.10)
27
+ concurrent-ruby (~> 1.0, >= 1.0.2)
28
+ i18n (>= 1.6, < 2)
29
+ minitest (>= 5.1)
30
+ tzinfo (~> 2.0)
31
+ zeitwerk (~> 2.3)
32
+ bigdecimal (4.0.1)
33
+ builder (3.3.0)
34
+ concurrent-ruby (1.3.6)
35
+ crass (1.0.6)
36
+ erubi (1.13.1)
37
+ fast_excel (0.5.0)
38
+ ffi (> 1.9, < 2)
39
+ ffi (1.17.3-arm64-darwin)
40
+ ffi (1.17.3-x86_64-linux-gnu)
41
+ i18n (1.14.8)
42
+ concurrent-ruby (~> 1.0)
43
+ iconv (1.1.1)
44
+ logger (1.7.0)
45
+ loofah (2.25.0)
46
+ crass (~> 1.0.2)
47
+ nokogiri (>= 1.12.0)
48
+ method_source (1.1.0)
49
+ minitest (5.27.0)
50
+ nokogiri (1.18.10-arm64-darwin)
51
+ racc (~> 1.4)
52
+ nokogiri (1.18.10-x86_64-linux-gnu)
53
+ racc (~> 1.4)
54
+ racc (1.8.1)
55
+ rack (2.2.21)
56
+ rack-test (2.2.0)
57
+ rack (>= 1.3)
58
+ rails-dom-testing (2.3.0)
59
+ activesupport (>= 5.0.0)
60
+ minitest
61
+ nokogiri (>= 1.6)
62
+ rails-html-sanitizer (1.6.2)
63
+ loofah (~> 2.21)
64
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
65
+ railties (6.1.7.10)
66
+ actionpack (= 6.1.7.10)
67
+ activesupport (= 6.1.7.10)
68
+ method_source
69
+ rake (>= 12.2)
70
+ thor (~> 1.0)
71
+ rake (13.3.1)
72
+ ruby-ole (1.2.13.1)
73
+ shoulda-context (2.0.0)
74
+ spreadsheet (1.3.4)
75
+ bigdecimal
76
+ logger
77
+ ruby-ole
78
+ thor (1.5.0)
79
+ tzinfo (2.0.6)
80
+ concurrent-ruby (~> 1.0)
81
+ zeitwerk (2.6.18)
82
+
83
+ PLATFORMS
84
+ arm64-darwin-21
85
+ x86_64-linux
86
+
87
+ DEPENDENCIES
88
+ activesupport (~> 6.1.0)
89
+ bundler (>= 2.0.0)
90
+ export_to!
91
+ logger (~> 1.5)
92
+ minitest (~> 5.0)
93
+ railties (~> 6.1.0)
94
+ rake (>= 13)
95
+ shoulda-context
96
+
97
+ BUNDLED WITH
98
+ 2.3.27
@@ -0,0 +1,10 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ gemspec path: ".."
6
+
7
+ gem "activesupport", "~> 7.0.0"
8
+ gem "railties", "~> 7.0.0"
9
+ gem "rake", ">= 13"
10
+ gem "logger", "~> 1.5"
@@ -0,0 +1,111 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ export_to (1.1.0)
5
+ activesupport (>= 6.0, < 8)
6
+ fast_excel (~> 0.4)
7
+ iconv (~> 1.0)
8
+ spreadsheet (~> 1.3)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ actionpack (7.0.10)
14
+ actionview (= 7.0.10)
15
+ activesupport (= 7.0.10)
16
+ racc
17
+ rack (~> 2.0, >= 2.2.4)
18
+ rack-test (>= 0.6.3)
19
+ rails-dom-testing (~> 2.0)
20
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
21
+ actionview (7.0.10)
22
+ activesupport (= 7.0.10)
23
+ builder (~> 3.1)
24
+ erubi (~> 1.4)
25
+ rails-dom-testing (~> 2.0)
26
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
27
+ activesupport (7.0.10)
28
+ base64
29
+ benchmark (>= 0.3)
30
+ bigdecimal
31
+ concurrent-ruby (~> 1.0, >= 1.0.2)
32
+ drb
33
+ i18n (>= 1.6, < 2)
34
+ logger (>= 1.4.2)
35
+ minitest (>= 5.1)
36
+ mutex_m
37
+ securerandom (>= 0.3)
38
+ tzinfo (~> 2.0)
39
+ base64 (0.3.0)
40
+ benchmark (0.5.0)
41
+ bigdecimal (4.0.1)
42
+ builder (3.3.0)
43
+ concurrent-ruby (1.3.6)
44
+ crass (1.0.6)
45
+ drb (2.2.3)
46
+ erubi (1.13.1)
47
+ fast_excel (0.5.0)
48
+ ffi (> 1.9, < 2)
49
+ ffi (1.17.3-arm64-darwin)
50
+ ffi (1.17.3-x86_64-linux-gnu)
51
+ i18n (1.14.8)
52
+ concurrent-ruby (~> 1.0)
53
+ iconv (1.1.1)
54
+ logger (1.7.0)
55
+ loofah (2.25.0)
56
+ crass (~> 1.0.2)
57
+ nokogiri (>= 1.12.0)
58
+ method_source (1.1.0)
59
+ minitest (5.27.0)
60
+ mutex_m (0.3.0)
61
+ nokogiri (1.18.10-arm64-darwin)
62
+ racc (~> 1.4)
63
+ nokogiri (1.18.10-x86_64-linux-gnu)
64
+ racc (~> 1.4)
65
+ racc (1.8.1)
66
+ rack (2.2.21)
67
+ rack-test (2.2.0)
68
+ rack (>= 1.3)
69
+ rails-dom-testing (2.3.0)
70
+ activesupport (>= 5.0.0)
71
+ minitest
72
+ nokogiri (>= 1.6)
73
+ rails-html-sanitizer (1.6.2)
74
+ loofah (~> 2.21)
75
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
76
+ railties (7.0.10)
77
+ actionpack (= 7.0.10)
78
+ activesupport (= 7.0.10)
79
+ method_source
80
+ rake (>= 12.2)
81
+ thor (~> 1.0)
82
+ zeitwerk (~> 2.5)
83
+ rake (13.3.1)
84
+ ruby-ole (1.2.13.1)
85
+ securerandom (0.4.1)
86
+ shoulda-context (2.0.0)
87
+ spreadsheet (1.3.4)
88
+ bigdecimal
89
+ logger
90
+ ruby-ole
91
+ thor (1.5.0)
92
+ tzinfo (2.0.6)
93
+ concurrent-ruby (~> 1.0)
94
+ zeitwerk (2.6.18)
95
+
96
+ PLATFORMS
97
+ arm64-darwin-21
98
+ x86_64-linux
99
+
100
+ DEPENDENCIES
101
+ activesupport (~> 7.0.0)
102
+ bundler (>= 2.0.0)
103
+ export_to!
104
+ logger (~> 1.5)
105
+ minitest (~> 5.0)
106
+ railties (~> 7.0.0)
107
+ rake (>= 13)
108
+ shoulda-context
109
+
110
+ BUNDLED WITH
111
+ 2.3.27
@@ -0,0 +1,10 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ gemspec path: ".."
6
+
7
+ gem "activesupport", "~> 7.1.0"
8
+ gem "railties", "~> 7.1.0"
9
+ gem "rake", ">= 13"
10
+ gem "logger", "~> 1.5"
@@ -0,0 +1,147 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ export_to (1.1.0)
5
+ activesupport (>= 6.0, < 8)
6
+ fast_excel (~> 0.4)
7
+ iconv (~> 1.0)
8
+ spreadsheet (~> 1.3)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ actionpack (7.1.6)
14
+ actionview (= 7.1.6)
15
+ activesupport (= 7.1.6)
16
+ cgi
17
+ nokogiri (>= 1.8.5)
18
+ racc
19
+ rack (>= 2.2.4)
20
+ rack-session (>= 1.0.1)
21
+ rack-test (>= 0.6.3)
22
+ rails-dom-testing (~> 2.2)
23
+ rails-html-sanitizer (~> 1.6)
24
+ actionview (7.1.6)
25
+ activesupport (= 7.1.6)
26
+ builder (~> 3.1)
27
+ cgi
28
+ erubi (~> 1.11)
29
+ rails-dom-testing (~> 2.2)
30
+ rails-html-sanitizer (~> 1.6)
31
+ activesupport (7.1.6)
32
+ base64
33
+ benchmark (>= 0.3)
34
+ bigdecimal
35
+ concurrent-ruby (~> 1.0, >= 1.0.2)
36
+ connection_pool (>= 2.2.5)
37
+ drb
38
+ i18n (>= 1.6, < 2)
39
+ logger (>= 1.4.2)
40
+ minitest (>= 5.1)
41
+ mutex_m
42
+ securerandom (>= 0.3)
43
+ tzinfo (~> 2.0)
44
+ base64 (0.3.0)
45
+ benchmark (0.5.0)
46
+ bigdecimal (4.0.1)
47
+ builder (3.3.0)
48
+ cgi (0.5.1)
49
+ concurrent-ruby (1.3.6)
50
+ connection_pool (2.5.5)
51
+ crass (1.0.6)
52
+ date (3.5.1)
53
+ drb (2.2.3)
54
+ erb (4.0.4)
55
+ cgi (>= 0.3.3)
56
+ erubi (1.13.1)
57
+ fast_excel (0.5.0)
58
+ ffi (> 1.9, < 2)
59
+ ffi (1.17.3-arm64-darwin)
60
+ ffi (1.17.3-x86_64-linux-gnu)
61
+ i18n (1.14.8)
62
+ concurrent-ruby (~> 1.0)
63
+ iconv (1.1.1)
64
+ io-console (0.8.2)
65
+ irb (1.16.0)
66
+ pp (>= 0.6.0)
67
+ rdoc (>= 4.0.0)
68
+ reline (>= 0.4.2)
69
+ logger (1.7.0)
70
+ loofah (2.25.0)
71
+ crass (~> 1.0.2)
72
+ nokogiri (>= 1.12.0)
73
+ minitest (5.27.0)
74
+ mutex_m (0.3.0)
75
+ nokogiri (1.18.10-arm64-darwin)
76
+ racc (~> 1.4)
77
+ nokogiri (1.18.10-x86_64-linux-gnu)
78
+ racc (~> 1.4)
79
+ pp (0.6.3)
80
+ prettyprint
81
+ prettyprint (0.2.0)
82
+ psych (5.3.1)
83
+ date
84
+ stringio
85
+ racc (1.8.1)
86
+ rack (3.2.4)
87
+ rack-session (2.1.1)
88
+ base64 (>= 0.1.0)
89
+ rack (>= 3.0.0)
90
+ rack-test (2.2.0)
91
+ rack (>= 1.3)
92
+ rackup (2.3.1)
93
+ rack (>= 3)
94
+ rails-dom-testing (2.3.0)
95
+ activesupport (>= 5.0.0)
96
+ minitest
97
+ nokogiri (>= 1.6)
98
+ rails-html-sanitizer (1.6.2)
99
+ loofah (~> 2.21)
100
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
101
+ railties (7.1.6)
102
+ actionpack (= 7.1.6)
103
+ activesupport (= 7.1.6)
104
+ cgi
105
+ irb
106
+ rackup (>= 1.0.0)
107
+ rake (>= 12.2)
108
+ thor (~> 1.0, >= 1.2.2)
109
+ tsort (>= 0.2)
110
+ zeitwerk (~> 2.6)
111
+ rake (13.3.1)
112
+ rdoc (7.0.3)
113
+ erb
114
+ psych (>= 4.0.0)
115
+ tsort
116
+ reline (0.6.3)
117
+ io-console (~> 0.5)
118
+ ruby-ole (1.2.13.1)
119
+ securerandom (0.4.1)
120
+ shoulda-context (2.0.0)
121
+ spreadsheet (1.3.4)
122
+ bigdecimal
123
+ logger
124
+ ruby-ole
125
+ stringio (3.2.0)
126
+ thor (1.5.0)
127
+ tsort (0.2.0)
128
+ tzinfo (2.0.6)
129
+ concurrent-ruby (~> 1.0)
130
+ zeitwerk (2.6.18)
131
+
132
+ PLATFORMS
133
+ arm64-darwin-21
134
+ x86_64-linux
135
+
136
+ DEPENDENCIES
137
+ activesupport (~> 7.1.0)
138
+ bundler (>= 2.0.0)
139
+ export_to!
140
+ logger (~> 1.5)
141
+ minitest (~> 5.0)
142
+ railties (~> 7.1.0)
143
+ rake (>= 13)
144
+ shoulda-context
145
+
146
+ BUNDLED WITH
147
+ 2.3.27
@@ -3,7 +3,7 @@ module ExportTo
3
3
  class_attribute :options
4
4
  class_attribute :head_titles
5
5
  class_attribute :body_keys
6
- class_attribute :column_formats
6
+ class_attribute :column_options
7
7
  class_attribute :body_column_proc
8
8
 
9
9
  class_attribute :presenter_klass
@@ -99,15 +99,15 @@ module ExportTo
99
99
  self.options = options
100
100
  end
101
101
 
102
- def set(title, key, format: {}, &block)
102
+ def set(title, key, options={}, &block)
103
103
  self.head_titles ||= []
104
104
  self.body_keys ||= []
105
- self.column_formats ||= []
105
+ self.column_options ||= []
106
106
  self.body_column_proc ||= []
107
107
 
108
108
  self.head_titles.push(title)
109
109
  self.body_keys.push(key)
110
- self.column_formats.push(format)
110
+ self.column_options.push(options)
111
111
  self.body_column_proc.push(block)
112
112
  end
113
113
 
@@ -4,7 +4,7 @@ module ExportTo
4
4
 
5
5
  def export
6
6
  rows.each! do |columns, model, x|
7
- worksheet.set_row(x, height, nil)
7
+ worksheet.set_row(x, height, nil) if x > 0
8
8
  worksheet.write_row(x, columns)
9
9
  end
10
10
 
@@ -20,20 +20,20 @@ module ExportTo
20
20
  def worksheet
21
21
  @worksheet ||= begin
22
22
  ws = workbook.add_worksheet(options.fetch(:worksheet) { "Default" })
23
- # 設定表頭樣式
24
- ws.set_row(0, height, head_format)
25
23
 
26
24
  # 表身樣式
27
- column_formats.each_with_index do |format, i|
28
- next if format.blank?
29
-
30
- width = format.delete(:width) { FastExcel::DEF_COL_WIDTH }
25
+ column_options.each_with_index do |column_options, i|
26
+ next if column_options.blank?
31
27
 
32
- puts "#{i} -> #{width} -> #{format}"
28
+ width = column_options.fetch(:width) { FastExcel::DEF_COL_WIDTH }
29
+ format = column_options.fetch(:format) { {} }
33
30
 
34
31
  ws.set_column(i, i, width, workbook.add_format(format))
35
32
  end
36
33
 
34
+ # 設定表頭樣式
35
+ ws.set_row(0, height, head_format)
36
+
37
37
  ws
38
38
  end
39
39
  end
@@ -54,8 +54,8 @@ module ExportTo
54
54
  options.fetch(:height) { 20 }
55
55
  end
56
56
 
57
- def column_formats
58
- @column_formats ||= rows.class.column_formats.dup || []
57
+ def column_options
58
+ @column_options ||= rows.class.column_options
59
59
  end
60
60
  end
61
61
  end
@@ -1,3 +1,3 @@
1
1
  module ExportTo
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.1"
3
3
  end
data/lib/export_to.rb CHANGED
@@ -1,6 +1,7 @@
1
+ require 'logger'
2
+ require 'active_support'
1
3
  require 'active_support/core_ext/object'
2
4
  require 'active_support/core_ext/class'
3
- require 'active_support'
4
5
  require 'fast_excel'
5
6
  require 'spreadsheet'
6
7
  require 'csv'