export_to 1.2.0 → 1.3.0

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.
data/bin/test_all CHANGED
@@ -6,13 +6,22 @@
6
6
  set -e
7
7
 
8
8
  # Define test matrix: ruby_version:rails_version
9
+ # Keep in sync with the matrix in .github/workflows/ci.yml (and gemfiles/).
10
+ # ruby_version is "major.minor"; the newest installed patch version is used.
9
11
  TEST_MATRIX=(
10
- "2.7.6:6.1"
11
- "3.0.7:6.1"
12
- "3.0.7:7.0"
13
- "3.1.7:6.1"
14
- "3.1.7:7.0"
15
- "3.1.7:7.1"
12
+ "2.7:6.1"
13
+ "3.0:6.1"
14
+ "3.0:7.0"
15
+ "3.1:6.1"
16
+ "3.1:7.0"
17
+ "3.1:7.1"
18
+ "3.2:7.0"
19
+ "3.2:7.1"
20
+ "3.3:7.1"
21
+ "3.3:8.0"
22
+ "3.3:8.1"
23
+ "3.4:8.0"
24
+ "3.4:8.1"
16
25
  )
17
26
 
18
27
  SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
@@ -60,13 +69,14 @@ for test_case in "${TEST_MATRIX[@]}"; do
60
69
 
61
70
  # Set Ruby version
62
71
  if [ "$RUBY_MANAGER" == "rbenv" ]; then
63
- if ! rbenv versions | grep -q "^[* ]*${ruby_version}"; then
72
+ installed_version="$(rbenv versions --bare | grep -E "^${ruby_version//./\\.}\\." | sort -V | tail -n 1)"
73
+ if [ -z "${installed_version}" ]; then
64
74
  echo -e "${RED}Ruby ${ruby_version} not installed in rbenv. Skipping...${NC}"
65
75
  FAILED=$((FAILED + 1))
66
76
  FAILED_TESTS+=("Ruby ${ruby_version} / Rails ${rails_version} (Ruby not installed)")
67
77
  continue
68
78
  fi
69
- export RBENV_VERSION="${ruby_version}"
79
+ export RBENV_VERSION="${installed_version}"
70
80
  elif [ "$RUBY_MANAGER" == "rvm" ]; then
71
81
  if ! rvm list | grep -q "ruby-${ruby_version}"; then
72
82
  echo -e "${RED}Ruby ${ruby_version} not installed in rvm. Skipping...${NC}"
data/export_to.gemspec CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = "https://github.com/superlanding/export_to"
15
15
  spec.license = "MIT"
16
16
 
17
- spec.required_ruby_version = ">= 2.7.0", "< 3.4.0"
17
+ spec.required_ruby_version = ">= 2.7.0"
18
18
 
19
19
  # Specify which files should be added to the gem when it is released.
20
20
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -33,5 +33,6 @@ Gem::Specification.new do |spec|
33
33
  spec.add_dependency "fast_excel", "~> 0.4"
34
34
  spec.add_dependency "spreadsheet", "~> 1.3"
35
35
  spec.add_dependency "iconv", "~> 1.0"
36
- spec.add_dependency "activesupport", ">= 6.0", "< 8"
36
+ spec.add_dependency "activesupport", ">= 6.0", "< 8.2"
37
+ spec.add_dependency "csv"
37
38
  end
@@ -1,8 +1,9 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- export_to (1.1.2)
5
- activesupport (>= 6.0, < 8)
4
+ export_to (1.3.0)
5
+ activesupport (>= 6.0, < 8.2)
6
+ csv
6
7
  fast_excel (~> 0.4)
7
8
  iconv (~> 1.0)
8
9
  spreadsheet (~> 1.3)
@@ -38,17 +39,18 @@ GEM
38
39
  tzinfo (~> 2.0)
39
40
  base64 (0.3.0)
40
41
  benchmark (0.5.0)
41
- bigdecimal (4.0.1)
42
+ bigdecimal (4.1.3)
42
43
  builder (3.3.0)
43
- concurrent-ruby (1.3.6)
44
+ concurrent-ruby (1.3.8)
44
45
  crass (1.0.6)
46
+ csv (3.3.6)
45
47
  drb (2.2.3)
46
48
  erubi (1.13.1)
47
49
  fast_excel (0.5.0)
48
50
  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)
51
+ ffi (1.17.4-arm64-darwin)
52
+ ffi (1.17.4-x86_64-linux-gnu)
53
+ i18n (1.15.2)
52
54
  concurrent-ruby (~> 1.0)
53
55
  iconv (1.1.1)
54
56
  logger (1.7.0)
@@ -84,7 +86,7 @@ GEM
84
86
  ruby-ole (1.2.13.1)
85
87
  securerandom (0.4.1)
86
88
  shoulda-context (2.0.0)
87
- spreadsheet (1.3.4)
89
+ spreadsheet (1.3.5)
88
90
  bigdecimal
89
91
  logger
90
92
  ruby-ole
@@ -108,4 +110,4 @@ DEPENDENCIES
108
110
  shoulda-context
109
111
 
110
112
  BUNDLED WITH
111
- 2.3.27
113
+ 2.4.22
@@ -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", "8.0.5.1"
8
+ gem "railties", "8.0.5.1"
9
+ gem "rake", ">= 13"
10
+ gem "logger", "~> 1.5"
@@ -0,0 +1,171 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ export_to (1.3.0)
5
+ activesupport (>= 6.0, < 8.2)
6
+ csv
7
+ fast_excel (~> 0.4)
8
+ iconv (~> 1.0)
9
+ spreadsheet (~> 1.3)
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ actionpack (8.0.5.1)
15
+ actionview (= 8.0.5.1)
16
+ activesupport (= 8.0.5.1)
17
+ nokogiri (>= 1.8.5)
18
+ rack (>= 2.2.4)
19
+ rack-session (>= 1.0.1)
20
+ rack-test (>= 0.6.3)
21
+ rails-dom-testing (~> 2.2)
22
+ rails-html-sanitizer (~> 1.6)
23
+ useragent (~> 0.16)
24
+ actionview (8.0.5.1)
25
+ activesupport (= 8.0.5.1)
26
+ builder (~> 3.1)
27
+ erubi (~> 1.11)
28
+ rails-dom-testing (~> 2.2)
29
+ rails-html-sanitizer (~> 1.6)
30
+ activesupport (8.0.5.1)
31
+ base64
32
+ benchmark (>= 0.3)
33
+ bigdecimal
34
+ concurrent-ruby (~> 1.0, >= 1.3.1)
35
+ connection_pool (>= 2.2.5)
36
+ drb
37
+ i18n (>= 1.6, < 2)
38
+ logger (>= 1.4.2)
39
+ minitest (>= 5.1)
40
+ securerandom (>= 0.3)
41
+ tzinfo (~> 2.0, >= 2.0.5)
42
+ uri (>= 0.13.1)
43
+ base64 (0.3.0)
44
+ benchmark (0.5.0)
45
+ bigdecimal (4.1.3)
46
+ builder (3.3.0)
47
+ concurrent-ruby (1.3.8)
48
+ connection_pool (3.0.2)
49
+ crass (1.0.7)
50
+ csv (3.3.6)
51
+ drb (2.2.3)
52
+ erb (6.0.7)
53
+ erubi (1.13.1)
54
+ fast_excel (0.5.0)
55
+ ffi (> 1.9, < 2)
56
+ ffi (1.17.4-aarch64-linux-gnu)
57
+ ffi (1.17.4-aarch64-linux-musl)
58
+ ffi (1.17.4-arm-linux-gnu)
59
+ ffi (1.17.4-arm-linux-musl)
60
+ ffi (1.17.4-arm64-darwin)
61
+ ffi (1.17.4-x86_64-darwin)
62
+ ffi (1.17.4-x86_64-linux-gnu)
63
+ ffi (1.17.4-x86_64-linux-musl)
64
+ i18n (1.15.2)
65
+ concurrent-ruby (~> 1.0)
66
+ iconv (1.1.1)
67
+ io-console (0.9.4)
68
+ irb (1.18.0)
69
+ pp (>= 0.6.0)
70
+ prism (>= 1.3.0)
71
+ rdoc (>= 4.0.0)
72
+ reline (>= 0.4.2)
73
+ logger (1.7.0)
74
+ loofah (2.25.2)
75
+ crass (~> 1.0.2)
76
+ nokogiri (>= 1.12.0)
77
+ minitest (5.27.0)
78
+ nokogiri (1.19.4-aarch64-linux-gnu)
79
+ racc (~> 1.4)
80
+ nokogiri (1.19.4-aarch64-linux-musl)
81
+ racc (~> 1.4)
82
+ nokogiri (1.19.4-arm-linux-gnu)
83
+ racc (~> 1.4)
84
+ nokogiri (1.19.4-arm-linux-musl)
85
+ racc (~> 1.4)
86
+ nokogiri (1.19.4-arm64-darwin)
87
+ racc (~> 1.4)
88
+ nokogiri (1.19.4-x86_64-darwin)
89
+ racc (~> 1.4)
90
+ nokogiri (1.19.4-x86_64-linux-gnu)
91
+ racc (~> 1.4)
92
+ nokogiri (1.19.4-x86_64-linux-musl)
93
+ racc (~> 1.4)
94
+ pp (0.6.4)
95
+ prettyprint
96
+ prettyprint (0.2.0)
97
+ prism (1.9.0)
98
+ racc (1.8.1)
99
+ rack (3.2.7)
100
+ rack-session (2.1.2)
101
+ base64 (>= 0.1.0)
102
+ rack (>= 3.0.0)
103
+ rack-test (2.2.0)
104
+ rack (>= 1.3)
105
+ rackup (2.3.1)
106
+ rack (>= 3)
107
+ rails-dom-testing (2.3.0)
108
+ activesupport (>= 5.0.0)
109
+ minitest
110
+ nokogiri (>= 1.6)
111
+ rails-html-sanitizer (1.7.1)
112
+ loofah (~> 2.25, >= 2.25.2)
113
+ 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)
114
+ railties (8.0.5.1)
115
+ actionpack (= 8.0.5.1)
116
+ activesupport (= 8.0.5.1)
117
+ irb (~> 1.13)
118
+ rackup (>= 1.0.0)
119
+ rake (>= 12.2)
120
+ thor (~> 1.0, >= 1.2.2)
121
+ tsort (>= 0.2)
122
+ zeitwerk (~> 2.6)
123
+ rake (13.4.2)
124
+ rbs (4.2.0)
125
+ logger
126
+ prism (>= 1.6.0)
127
+ tsort
128
+ rdoc (8.0.0)
129
+ erb
130
+ prism (>= 1.6.0)
131
+ rbs (>= 4.0.0)
132
+ tsort
133
+ reline (0.7.0)
134
+ io-console (~> 0.5)
135
+ ruby-ole (1.2.13.1)
136
+ securerandom (0.4.1)
137
+ shoulda-context (2.0.0)
138
+ spreadsheet (1.3.5)
139
+ bigdecimal
140
+ logger
141
+ ruby-ole
142
+ thor (1.5.0)
143
+ tsort (0.2.0)
144
+ tzinfo (2.0.6)
145
+ concurrent-ruby (~> 1.0)
146
+ uri (1.1.1)
147
+ useragent (0.16.11)
148
+ zeitwerk (2.8.3)
149
+
150
+ PLATFORMS
151
+ aarch64-linux-gnu
152
+ aarch64-linux-musl
153
+ arm-linux-gnu
154
+ arm-linux-musl
155
+ arm64-darwin
156
+ x86_64-darwin
157
+ x86_64-linux-gnu
158
+ x86_64-linux-musl
159
+
160
+ DEPENDENCIES
161
+ activesupport (= 8.0.5.1)
162
+ bundler (>= 2.0.0)
163
+ export_to!
164
+ logger (~> 1.5)
165
+ minitest (~> 5.0)
166
+ railties (= 8.0.5.1)
167
+ rake (>= 13)
168
+ shoulda-context
169
+
170
+ BUNDLED WITH
171
+ 2.7.2
@@ -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", "8.1.3.1"
8
+ gem "railties", "8.1.3.1"
9
+ gem "rake", ">= 13"
10
+ gem "logger", "~> 1.5"
@@ -0,0 +1,171 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ export_to (1.3.0)
5
+ activesupport (>= 6.0, < 8.2)
6
+ csv
7
+ fast_excel (~> 0.4)
8
+ iconv (~> 1.0)
9
+ spreadsheet (~> 1.3)
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ actionpack (8.1.3.1)
15
+ actionview (= 8.1.3.1)
16
+ activesupport (= 8.1.3.1)
17
+ nokogiri (>= 1.8.5)
18
+ rack (>= 2.2.4)
19
+ rack-session (>= 1.0.1)
20
+ rack-test (>= 0.6.3)
21
+ rails-dom-testing (~> 2.2)
22
+ rails-html-sanitizer (~> 1.6)
23
+ useragent (~> 0.16)
24
+ actionview (8.1.3.1)
25
+ activesupport (= 8.1.3.1)
26
+ builder (~> 3.1)
27
+ erubi (~> 1.11)
28
+ rails-dom-testing (~> 2.2)
29
+ rails-html-sanitizer (~> 1.6)
30
+ activesupport (8.1.3.1)
31
+ base64
32
+ bigdecimal
33
+ concurrent-ruby (~> 1.0, >= 1.3.1)
34
+ connection_pool (>= 2.2.5)
35
+ drb
36
+ i18n (>= 1.6, < 2)
37
+ json
38
+ logger (>= 1.4.2)
39
+ minitest (>= 5.1)
40
+ securerandom (>= 0.3)
41
+ tzinfo (~> 2.0, >= 2.0.5)
42
+ uri (>= 0.13.1)
43
+ base64 (0.3.0)
44
+ bigdecimal (4.1.3)
45
+ builder (3.3.0)
46
+ concurrent-ruby (1.3.8)
47
+ connection_pool (3.0.2)
48
+ crass (1.0.7)
49
+ csv (3.3.6)
50
+ drb (2.2.3)
51
+ erb (6.0.7)
52
+ erubi (1.13.1)
53
+ fast_excel (0.5.0)
54
+ ffi (> 1.9, < 2)
55
+ ffi (1.17.4-aarch64-linux-gnu)
56
+ ffi (1.17.4-aarch64-linux-musl)
57
+ ffi (1.17.4-arm-linux-gnu)
58
+ ffi (1.17.4-arm-linux-musl)
59
+ ffi (1.17.4-arm64-darwin)
60
+ ffi (1.17.4-x86_64-darwin)
61
+ ffi (1.17.4-x86_64-linux-gnu)
62
+ ffi (1.17.4-x86_64-linux-musl)
63
+ i18n (1.15.2)
64
+ concurrent-ruby (~> 1.0)
65
+ iconv (1.1.1)
66
+ io-console (0.9.4)
67
+ irb (1.18.0)
68
+ pp (>= 0.6.0)
69
+ prism (>= 1.3.0)
70
+ rdoc (>= 4.0.0)
71
+ reline (>= 0.4.2)
72
+ json (3.0.2)
73
+ logger (1.7.0)
74
+ loofah (2.25.2)
75
+ crass (~> 1.0.2)
76
+ nokogiri (>= 1.12.0)
77
+ minitest (5.27.0)
78
+ nokogiri (1.19.4-aarch64-linux-gnu)
79
+ racc (~> 1.4)
80
+ nokogiri (1.19.4-aarch64-linux-musl)
81
+ racc (~> 1.4)
82
+ nokogiri (1.19.4-arm-linux-gnu)
83
+ racc (~> 1.4)
84
+ nokogiri (1.19.4-arm-linux-musl)
85
+ racc (~> 1.4)
86
+ nokogiri (1.19.4-arm64-darwin)
87
+ racc (~> 1.4)
88
+ nokogiri (1.19.4-x86_64-darwin)
89
+ racc (~> 1.4)
90
+ nokogiri (1.19.4-x86_64-linux-gnu)
91
+ racc (~> 1.4)
92
+ nokogiri (1.19.4-x86_64-linux-musl)
93
+ racc (~> 1.4)
94
+ pp (0.6.4)
95
+ prettyprint
96
+ prettyprint (0.2.0)
97
+ prism (1.9.0)
98
+ racc (1.8.1)
99
+ rack (3.2.7)
100
+ rack-session (2.1.2)
101
+ base64 (>= 0.1.0)
102
+ rack (>= 3.0.0)
103
+ rack-test (2.2.0)
104
+ rack (>= 1.3)
105
+ rackup (2.3.1)
106
+ rack (>= 3)
107
+ rails-dom-testing (2.3.0)
108
+ activesupport (>= 5.0.0)
109
+ minitest
110
+ nokogiri (>= 1.6)
111
+ rails-html-sanitizer (1.7.1)
112
+ loofah (~> 2.25, >= 2.25.2)
113
+ 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)
114
+ railties (8.1.3.1)
115
+ actionpack (= 8.1.3.1)
116
+ activesupport (= 8.1.3.1)
117
+ irb (~> 1.13)
118
+ rackup (>= 1.0.0)
119
+ rake (>= 12.2)
120
+ thor (~> 1.0, >= 1.2.2)
121
+ tsort (>= 0.2)
122
+ zeitwerk (~> 2.6)
123
+ rake (13.4.2)
124
+ rbs (4.2.0)
125
+ logger
126
+ prism (>= 1.6.0)
127
+ tsort
128
+ rdoc (8.0.0)
129
+ erb
130
+ prism (>= 1.6.0)
131
+ rbs (>= 4.0.0)
132
+ tsort
133
+ reline (0.7.0)
134
+ io-console (~> 0.5)
135
+ ruby-ole (1.2.13.1)
136
+ securerandom (0.4.1)
137
+ shoulda-context (2.0.0)
138
+ spreadsheet (1.3.5)
139
+ bigdecimal
140
+ logger
141
+ ruby-ole
142
+ thor (1.5.0)
143
+ tsort (0.2.0)
144
+ tzinfo (2.0.6)
145
+ concurrent-ruby (~> 1.0)
146
+ uri (1.1.1)
147
+ useragent (0.16.11)
148
+ zeitwerk (2.8.3)
149
+
150
+ PLATFORMS
151
+ aarch64-linux-gnu
152
+ aarch64-linux-musl
153
+ arm-linux-gnu
154
+ arm-linux-musl
155
+ arm64-darwin
156
+ x86_64-darwin
157
+ x86_64-linux-gnu
158
+ x86_64-linux-musl
159
+
160
+ DEPENDENCIES
161
+ activesupport (= 8.1.3.1)
162
+ bundler (>= 2.0.0)
163
+ export_to!
164
+ logger (~> 1.5)
165
+ minitest (~> 5.0)
166
+ railties (= 8.1.3.1)
167
+ rake (>= 13)
168
+ shoulda-context
169
+
170
+ BUNDLED WITH
171
+ 2.7.2
@@ -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", "8.0.5.1"
8
+ gem "railties", "8.0.5.1"
9
+ gem "rake", ">= 13"
10
+ gem "logger", "~> 1.5"