super_tools 2.1.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/test.yml +21 -0
- data/.gitignore +5 -0
- data/.ruby-version +1 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +161 -150
- data/dependabot.yml +7 -0
- data/lib/super_form/basic.rb +2 -7
- data/lib/super_form/concerns/atomic_save.rb +3 -3
- data/lib/super_form/reform.rb +28 -6
- data/lib/super_formatter/ecan/head.rb +4 -4
- data/lib/super_formatter/ecan/import.rb +4 -3
- data/lib/super_formatter/ecan/row.rb +3 -2
- data/lib/super_formatter/hct/head.rb +5 -5
- data/lib/super_formatter/hct/import.rb +4 -3
- data/lib/super_formatter/hct/row.rb +4 -3
- data/lib/super_formatter/shopline/head.rb +16 -16
- data/lib/super_formatter/shopline/import.rb +5 -6
- data/lib/super_formatter/shopline/order.rb +9 -8
- data/lib/super_formatter/shopline/row.rb +2 -2
- data/lib/super_formatter/tcat/head.rb +4 -4
- data/lib/super_formatter/tcat/import.rb +4 -4
- data/lib/super_formatter/tcat/row.rb +5 -4
- data/lib/super_interaction/beyond.rb +1 -1
- data/lib/super_interaction/engine.rb +2 -0
- data/lib/super_process/basic.rb +12 -0
- data/lib/super_process/core.rb +26 -25
- data/lib/super_search/scroll.rb +11 -8
- data/lib/super_spreadsheet/loader.rb +14 -14
- data/lib/super_table/action_view.rb +4 -4
- data/lib/super_table/builder.rb +5 -4
- data/lib/super_table/record.rb +1 -1
- data/lib/super_tools/version.rb +2 -2
- data/lib/super_tools.rb +42 -30
- data/lib/super_zipcode/taiwan.rb +131 -102
- data/super_tools.gemspec +16 -22
- metadata +89 -61
- data/lib/super_logger/formatter.rb +0 -15
metadata
CHANGED
@@ -1,43 +1,49 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: super_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- eddie
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
22
|
+
version: '3'
|
20
23
|
type: :development
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
29
|
+
version: '2'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '3'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: rake
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
|
-
- - "
|
37
|
+
- - ">="
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
39
|
+
version: '12.2'
|
34
40
|
type: :development
|
35
41
|
prerelease: false
|
36
42
|
version_requirements: !ruby/object:Gem::Requirement
|
37
43
|
requirements:
|
38
|
-
- - "
|
44
|
+
- - ">="
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
46
|
+
version: '12.2'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: minitest
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,49 +73,69 @@ dependencies:
|
|
67
73
|
- !ruby/object:Gem::Version
|
68
74
|
version: '0'
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
76
|
+
name: warning
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
72
78
|
requirements:
|
73
79
|
- - ">="
|
74
80
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
76
|
-
type: :
|
81
|
+
version: '0'
|
82
|
+
type: :development
|
77
83
|
prerelease: false
|
78
84
|
version_requirements: !ruby/object:Gem::Requirement
|
79
85
|
requirements:
|
80
86
|
- - ">="
|
81
87
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
88
|
+
version: '0'
|
83
89
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
90
|
+
name: sqlite3
|
85
91
|
requirement: !ruby/object:Gem::Requirement
|
86
92
|
requirements:
|
87
|
-
- -
|
93
|
+
- - '='
|
88
94
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
95
|
+
version: 1.4.4
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - '='
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 1.4.4
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: rails
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '6'
|
110
|
+
- - "<"
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '7'
|
90
113
|
type: :runtime
|
91
114
|
prerelease: false
|
92
115
|
version_requirements: !ruby/object:Gem::Requirement
|
93
116
|
requirements:
|
94
|
-
- - "
|
117
|
+
- - ">"
|
95
118
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
119
|
+
version: '6'
|
120
|
+
- - "<"
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '7'
|
97
123
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
124
|
+
name: nokogiri
|
99
125
|
requirement: !ruby/object:Gem::Requirement
|
100
126
|
requirements:
|
101
127
|
- - ">="
|
102
128
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
129
|
+
version: '1.6'
|
104
130
|
type: :runtime
|
105
131
|
prerelease: false
|
106
132
|
version_requirements: !ruby/object:Gem::Requirement
|
107
133
|
requirements:
|
108
134
|
- - ">="
|
109
135
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
136
|
+
version: '1.6'
|
111
137
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
138
|
+
name: fast_excel
|
113
139
|
requirement: !ruby/object:Gem::Requirement
|
114
140
|
requirements:
|
115
141
|
- - ">="
|
@@ -123,7 +149,7 @@ dependencies:
|
|
123
149
|
- !ruby/object:Gem::Version
|
124
150
|
version: '0'
|
125
151
|
- !ruby/object:Gem::Dependency
|
126
|
-
name: roo
|
152
|
+
name: roo
|
127
153
|
requirement: !ruby/object:Gem::Requirement
|
128
154
|
requirements:
|
129
155
|
- - ">="
|
@@ -137,21 +163,21 @@ dependencies:
|
|
137
163
|
- !ruby/object:Gem::Version
|
138
164
|
version: '0'
|
139
165
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
166
|
+
name: roo-xls
|
141
167
|
requirement: !ruby/object:Gem::Requirement
|
142
168
|
requirements:
|
143
|
-
- -
|
169
|
+
- - '='
|
144
170
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
171
|
+
version: 1.2.0
|
146
172
|
type: :runtime
|
147
173
|
prerelease: false
|
148
174
|
version_requirements: !ruby/object:Gem::Requirement
|
149
175
|
requirements:
|
150
|
-
- -
|
176
|
+
- - '='
|
151
177
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
178
|
+
version: 1.2.0
|
153
179
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
180
|
+
name: spreadsheet
|
155
181
|
requirement: !ruby/object:Gem::Requirement
|
156
182
|
requirements:
|
157
183
|
- - ">="
|
@@ -179,7 +205,7 @@ dependencies:
|
|
179
205
|
- !ruby/object:Gem::Version
|
180
206
|
version: 1.0.5
|
181
207
|
- !ruby/object:Gem::Dependency
|
182
|
-
name:
|
208
|
+
name: forwardable
|
183
209
|
requirement: !ruby/object:Gem::Requirement
|
184
210
|
requirements:
|
185
211
|
- - ">="
|
@@ -193,49 +219,49 @@ dependencies:
|
|
193
219
|
- !ruby/object:Gem::Version
|
194
220
|
version: '0'
|
195
221
|
- !ruby/object:Gem::Dependency
|
196
|
-
name:
|
222
|
+
name: warehouse_items
|
197
223
|
requirement: !ruby/object:Gem::Requirement
|
198
224
|
requirements:
|
199
225
|
- - "~>"
|
200
226
|
- !ruby/object:Gem::Version
|
201
|
-
version:
|
227
|
+
version: 1.0.0
|
202
228
|
type: :runtime
|
203
229
|
prerelease: false
|
204
230
|
version_requirements: !ruby/object:Gem::Requirement
|
205
231
|
requirements:
|
206
232
|
- - "~>"
|
207
233
|
- !ruby/object:Gem::Version
|
208
|
-
version:
|
234
|
+
version: 1.0.0
|
209
235
|
- !ruby/object:Gem::Dependency
|
210
|
-
name:
|
236
|
+
name: searchkick
|
211
237
|
requirement: !ruby/object:Gem::Requirement
|
212
238
|
requirements:
|
213
|
-
- - "
|
239
|
+
- - ">="
|
214
240
|
- !ruby/object:Gem::Version
|
215
|
-
version: 0
|
241
|
+
version: '0'
|
216
242
|
type: :runtime
|
217
243
|
prerelease: false
|
218
244
|
version_requirements: !ruby/object:Gem::Requirement
|
219
245
|
requirements:
|
220
|
-
- - "
|
246
|
+
- - ">="
|
221
247
|
- !ruby/object:Gem::Version
|
222
|
-
version: 0
|
248
|
+
version: '0'
|
223
249
|
- !ruby/object:Gem::Dependency
|
224
|
-
name:
|
250
|
+
name: reform
|
225
251
|
requirement: !ruby/object:Gem::Requirement
|
226
252
|
requirements:
|
227
|
-
- -
|
253
|
+
- - '='
|
228
254
|
- !ruby/object:Gem::Version
|
229
|
-
version:
|
255
|
+
version: 2.6.2
|
230
256
|
type: :runtime
|
231
257
|
prerelease: false
|
232
258
|
version_requirements: !ruby/object:Gem::Requirement
|
233
259
|
requirements:
|
234
|
-
- -
|
260
|
+
- - '='
|
235
261
|
- !ruby/object:Gem::Version
|
236
|
-
version:
|
262
|
+
version: 2.6.2
|
237
263
|
- !ruby/object:Gem::Dependency
|
238
|
-
name:
|
264
|
+
name: reform-rails
|
239
265
|
requirement: !ruby/object:Gem::Requirement
|
240
266
|
requirements:
|
241
267
|
- - ">="
|
@@ -249,33 +275,33 @@ dependencies:
|
|
249
275
|
- !ruby/object:Gem::Version
|
250
276
|
version: '0'
|
251
277
|
- !ruby/object:Gem::Dependency
|
252
|
-
name:
|
278
|
+
name: dry-types
|
253
279
|
requirement: !ruby/object:Gem::Requirement
|
254
280
|
requirements:
|
255
|
-
- -
|
281
|
+
- - '='
|
256
282
|
- !ruby/object:Gem::Version
|
257
|
-
version:
|
283
|
+
version: 1.5.1
|
258
284
|
type: :runtime
|
259
285
|
prerelease: false
|
260
286
|
version_requirements: !ruby/object:Gem::Requirement
|
261
287
|
requirements:
|
262
|
-
- -
|
288
|
+
- - '='
|
263
289
|
- !ruby/object:Gem::Version
|
264
|
-
version:
|
290
|
+
version: 1.5.1
|
265
291
|
- !ruby/object:Gem::Dependency
|
266
|
-
name:
|
292
|
+
name: dry-logic
|
267
293
|
requirement: !ruby/object:Gem::Requirement
|
268
294
|
requirements:
|
269
|
-
- -
|
295
|
+
- - '='
|
270
296
|
- !ruby/object:Gem::Version
|
271
|
-
version:
|
297
|
+
version: 1.2.0
|
272
298
|
type: :runtime
|
273
299
|
prerelease: false
|
274
300
|
version_requirements: !ruby/object:Gem::Requirement
|
275
301
|
requirements:
|
276
|
-
- -
|
302
|
+
- - '='
|
277
303
|
- !ruby/object:Gem::Version
|
278
|
-
version:
|
304
|
+
version: 1.2.0
|
279
305
|
description: Rails 開發環境常用工具 Forms/Process/Spreadsheet
|
280
306
|
email:
|
281
307
|
- eddie.li.624@gmail.com
|
@@ -283,7 +309,9 @@ executables: []
|
|
283
309
|
extensions: []
|
284
310
|
extra_rdoc_files: []
|
285
311
|
files:
|
312
|
+
- ".github/workflows/test.yml"
|
286
313
|
- ".gitignore"
|
314
|
+
- ".ruby-version"
|
287
315
|
- ".travis.yml"
|
288
316
|
- Gemfile
|
289
317
|
- Gemfile.lock
|
@@ -292,6 +320,7 @@ files:
|
|
292
320
|
- Rakefile
|
293
321
|
- bin/console
|
294
322
|
- bin/setup
|
323
|
+
- dependabot.yml
|
295
324
|
- lib/super_form/basic.rb
|
296
325
|
- lib/super_form/concerns/atomic_save.rb
|
297
326
|
- lib/super_form/reform.rb
|
@@ -319,7 +348,7 @@ files:
|
|
319
348
|
- lib/super_interaction/views/layouts/beyond.haml
|
320
349
|
- lib/super_interaction/views/layouts/modal_bs3.haml
|
321
350
|
- lib/super_interaction/views/layouts/modal_bs4.haml
|
322
|
-
- lib/
|
351
|
+
- lib/super_process/basic.rb
|
323
352
|
- lib/super_process/core.rb
|
324
353
|
- lib/super_search/scroll.rb
|
325
354
|
- lib/super_spreadsheet/loader.rb
|
@@ -337,7 +366,7 @@ homepage: https://github.com/superlanding/super_tools
|
|
337
366
|
licenses:
|
338
367
|
- MIT
|
339
368
|
metadata: {}
|
340
|
-
post_install_message:
|
369
|
+
post_install_message:
|
341
370
|
rdoc_options: []
|
342
371
|
require_paths:
|
343
372
|
- lib
|
@@ -352,9 +381,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
352
381
|
- !ruby/object:Gem::Version
|
353
382
|
version: '0'
|
354
383
|
requirements: []
|
355
|
-
|
356
|
-
|
357
|
-
signing_key:
|
384
|
+
rubygems_version: 3.2.33
|
385
|
+
signing_key:
|
358
386
|
specification_version: 4
|
359
387
|
summary: Rails 開發環境常用工具 Forms/Process/Spreadsheet
|
360
388
|
test_files: []
|
@@ -1,15 +0,0 @@
|
|
1
|
-
module SuperLogger
|
2
|
-
class Formatter < ::Logger::Formatter
|
3
|
-
include ActiveSupport::TaggedLogging::Formatter
|
4
|
-
|
5
|
-
def call(severity, timestamp, progname, msg)
|
6
|
-
format(
|
7
|
-
"%s[%-5s] %s%s\n",
|
8
|
-
timestamp.to_s,
|
9
|
-
severity,
|
10
|
-
progname ? "#{progname} -- " : nil,
|
11
|
-
"#{tags_text}#{msg}"
|
12
|
-
)
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|