arxutils_sqlite3 0.1.61 → 0.1.63

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: 17be2bd82bd6e648b09f7e49c16ef003b4c61404796620641a1f7f1a6a63e704
4
- data.tar.gz: 2407844b80f1b15b74781a71a88f134c1538dc0900cc2a8cd71d8c621e4f4217
3
+ metadata.gz: ae34a8ad67914930d49020013dd63ba6b2a4a414e4ce2dc094fd0dc2047d9485
4
+ data.tar.gz: edd24cdd28322e757723cce583b72c3f78a6e565b95205a191d68027fb61608b
5
5
  SHA512:
6
- metadata.gz: 8de44db00668e653da29e044f0b4b3bd25256aa7ae466b6747a3417da40ae081954dd6bf45250ce6ea5978393a55620d6e0c75289c0607f8de690a2aca154024
7
- data.tar.gz: b5c8de59e6bb28ac0c41ad1e0320ab98982107434141c57a25e030a5261aed9ed0ed940efc6d8a0074a426c76709b167568b342e4332a664d57e53aace842cc6
6
+ metadata.gz: 81573eba04b6ccc77ccf196a82db90139b544d3867d781019349ca7692219815f1deb85d9556bd066bf80bc5bea681cefb61e12871ef18037e9e9ff9f3790ae6
7
+ data.tar.gz: 67100b137e1c8d795c66974092797cfda909be2ca40b3c227ffb847d7a947058a2203d6fb87d512708cb2e006298c2f0bb245a20c09f4453172ab11b611cd2e5
data/.rubocop_todo.yml CHANGED
@@ -1,11 +1,34 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2022-10-01 01:21:06 UTC using RuboCop version 1.36.0.
3
+ # on 2024-02-06 17:26:13 UTC using RuboCop version 1.60.2.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
+ # Offense count: 3
10
+ # This cop supports safe autocorrection (--autocorrect).
11
+ # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
12
+ # Include: **/*.gemfile, **/Gemfile, **/gems.rb
13
+ Bundler/OrderedGems:
14
+ Exclude:
15
+ - 'Gemfile'
16
+
17
+ # Offense count: 1
18
+ # This cop supports safe autocorrection (--autocorrect).
19
+ # Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
20
+ # SupportedStyles: case, end
21
+ Layout/CaseIndentation:
22
+ Exclude:
23
+ - 'lib/arxutils_sqlite3/migrate.rb'
24
+
25
+ # Offense count: 2
26
+ # This cop supports safe autocorrection (--autocorrect).
27
+ Layout/ElseAlignment:
28
+ Exclude:
29
+ - 'lib/arxutils_sqlite3/arx.rb'
30
+ - 'lib/arxutils_sqlite3/hier.rb'
31
+
9
32
  # Offense count: 1
10
33
  # This cop supports safe autocorrection (--autocorrect).
11
34
  # Configuration parameters: EnforcedStyle.
@@ -14,23 +37,49 @@ Layout/EmptyLinesAroundModuleBody:
14
37
  Exclude:
15
38
  - 'lib/dbacrecord.rb'
16
39
 
40
+ # Offense count: 3
41
+ # This cop supports safe autocorrection (--autocorrect).
42
+ # Configuration parameters: EnforcedStyleAlignWith, Severity.
43
+ # SupportedStylesAlignWith: keyword, variable, start_of_line
44
+ Layout/EndAlignment:
45
+ Exclude:
46
+ - 'lib/arxutils_sqlite3/arx.rb'
47
+ - 'lib/arxutils_sqlite3/hier.rb'
48
+ - 'lib/arxutils_sqlite3/migrate.rb'
49
+
17
50
  # Offense count: 1
18
51
  # This cop supports safe autocorrection (--autocorrect).
19
52
  Layout/HeredocIndentation:
20
53
  Exclude:
21
54
  - 'db/migrate/050_create_currentxenoplist.rb'
22
55
 
23
- # Offense count: 1
56
+ # Offense count: 3
24
57
  # This cop supports safe autocorrection (--autocorrect).
25
- # Configuration parameters: Width, AllowedPatterns, IgnoredPatterns.
58
+ # Configuration parameters: Width, AllowedPatterns.
26
59
  Layout/IndentationWidth:
27
60
  Exclude:
61
+ - 'lib/arxutils_sqlite3/arx.rb'
62
+ - 'lib/arxutils_sqlite3/hier.rb'
28
63
  - 'lib/dbacrecord.rb'
29
64
 
30
- # Offense count: 4
31
- # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes.
65
+ # Offense count: 1
66
+ # This cop supports safe autocorrection (--autocorrect).
67
+ # Configuration parameters: AllowInHeredoc.
68
+ Layout/TrailingWhitespace:
69
+ Exclude:
70
+ - 'lib/arxutils_sqlite3/dbutil/dbconnect.rb'
71
+
72
+ # Offense count: 2
73
+ # This cop supports unsafe autocorrection (--autocorrect-all).
74
+ Lint/RedundantRequireStatement:
75
+ Exclude:
76
+ - 'exe/arxutils_sqlite3'
77
+ - 'lib/arxutils_sqlite3/migrate.rb'
78
+
79
+ # Offense count: 3
80
+ # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
32
81
  Metrics/AbcSize:
33
- Max: 23
82
+ Max: 22
34
83
 
35
84
  # Offense count: 3
36
85
  # Configuration parameters: CountComments, CountAsOne.
@@ -38,7 +87,7 @@ Metrics/ClassLength:
38
87
  Max: 190
39
88
 
40
89
  # Offense count: 12
41
- # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
90
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
42
91
  Metrics/MethodLength:
43
92
  Max: 49
44
93
 
@@ -48,7 +97,7 @@ Metrics/ParameterLists:
48
97
  Max: 7
49
98
 
50
99
  # Offense count: 1
51
- # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
100
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
52
101
  Metrics/PerceivedComplexity:
53
102
  Max: 10
54
103
 
@@ -74,7 +123,7 @@ Naming/ClassAndModuleCamelCase:
74
123
  RSpec/MultipleMemoizedHelpers:
75
124
  Max: 11
76
125
 
77
- # Offense count: 5
126
+ # Offense count: 8
78
127
  # Configuration parameters: AllowedConstants.
79
128
  Style/Documentation:
80
129
  Exclude:
@@ -85,21 +134,23 @@ Style/Documentation:
85
134
  - 'db/migrate/030_create_xenoplist.rb'
86
135
  - 'db/migrate/040_create_invalidxenoplist.rb'
87
136
  - 'db/migrate/050_create_currentxenoplist.rb'
137
+ - 'lib/dbacrecord.rb'
88
138
 
89
139
  # Offense count: 5
90
140
  # This cop supports safe autocorrection (--autocorrect).
91
- # Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns, IgnoredMethods.
141
+ # Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns.
92
142
  # SupportedStyles: annotated, template, unannotated
93
143
  Style/FormatStringToken:
94
144
  EnforcedStyle: unannotated
95
145
 
96
- # Offense count: 7
146
+ # Offense count: 8
97
147
  # This cop supports unsafe autocorrection (--autocorrect-all).
98
148
  # Configuration parameters: EnforcedStyle.
99
149
  # SupportedStyles: always, always_true, never
100
150
  Style/FrozenStringLiteralComment:
101
151
  Exclude:
102
152
  - 'config/dbsetup.rb'
153
+ - 'config/opts.rb'
103
154
  - 'db/migrate/010_create_countdatetime.rb'
104
155
  - 'db/migrate/020_create_xenop.rb'
105
156
  - 'db/migrate/030_create_xenoplist.rb'
@@ -119,11 +170,41 @@ Style/HashSyntax:
119
170
  - 'db/migrate/030_create_xenoplist.rb'
120
171
  - 'db/migrate/040_create_invalidxenoplist.rb'
121
172
 
122
- # Offense count: 4
173
+ # Offense count: 1
174
+ # This cop supports safe autocorrection (--autocorrect).
175
+ Style/RedundantDoubleSplatHashBraces:
176
+ Exclude:
177
+ - 'lib/arxutils_sqlite3/migrate.rb'
178
+
179
+ # Offense count: 126
123
180
  # This cop supports safe autocorrection (--autocorrect).
124
181
  # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
125
182
  # SupportedStyles: single_quotes, double_quotes
126
183
  Style/StringLiterals:
127
184
  Exclude:
128
- - 'config/dbsetup.rb'
129
- - 'lib/dbacrecord.rb'
185
+ - 'arxutils_sqlite3.gemspec'
186
+ - 'lib/arxutils_sqlite3.rb'
187
+ - 'lib/arxutils_sqlite3/arx.rb'
188
+ - 'lib/arxutils_sqlite3/cli.rb'
189
+ - 'lib/arxutils_sqlite3/config.rb'
190
+ - 'lib/arxutils_sqlite3/dbutil.rb'
191
+ - 'lib/arxutils_sqlite3/dbutil/dbconnect.rb'
192
+ - 'lib/arxutils_sqlite3/hier.rb'
193
+ - 'lib/arxutils_sqlite3/migrate.rb'
194
+ - 'lib/arxutils_sqlite3/rake_task.rb'
195
+ - 'lib/arxutils_sqlite3/util.rb'
196
+ - 'lib/arxutils_sqlite3/version.rb'
197
+
198
+ # Offense count: 1
199
+ # This cop supports safe autocorrection (--autocorrect).
200
+ # Configuration parameters: EnforcedStyleForMultiline.
201
+ # SupportedStylesForMultiline: comma, consistent_comma, no_comma
202
+ Style/TrailingCommaInHashLiteral:
203
+ Exclude:
204
+ - 'lib/arxutils_sqlite3/migrate.rb'
205
+
206
+ # Offense count: 2
207
+ # This cop supports unsafe autocorrection (--autocorrect-all).
208
+ Style/ZeroLengthPredicate:
209
+ Exclude:
210
+ - 'lib/arxutils_sqlite3/hier.rb'
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 3.3.1
data/Gemfile CHANGED
@@ -5,27 +5,39 @@ source 'https://rubygems.org'
5
5
  # Specify your gem's dependencies in arxutils_sqlite3.gemspec
6
6
  gemspec
7
7
 
8
- gem 'activerecord', '~> 6.1'
8
+ # gem 'activerecord', '~> 6.1.7.5'
9
+ gem 'activerecord', '~> 7.1.3.4'
9
10
  gem 'activesupport'
11
+ gem 'base64'
12
+ gem 'nkf'
13
+ gem 'csv'
14
+ gem 'mutex_m'
15
+ gem 'bigdecimal'
10
16
  gem 'bundler'
11
- gem 'rake', '~> 13.0'
17
+ gem 'rake', '~> 13.1'
12
18
  gem 'simpleoptparse'
13
- gem 'sqlite3'
19
+ gem 'sqlite3' , '2.0.2'
14
20
  gem 'ykutils'
15
- gem 'ykxutils'
21
+ gem 'ykxutils' , path: '../ykxutils'
22
+
23
+ group :development, :test do
24
+ gem 'power_assert', '~> 2.0.3'
25
+ end
16
26
 
17
27
  group :development do
18
- gem 'yard'
28
+ gem 'yard', '~> 0.9.36'
29
+ gem 'rufo'
19
30
  end
20
31
 
21
32
  group :test, optional: true do
33
+ gem 'debug'
34
+ # gem 'rspec-core'
22
35
  gem 'rspec', '~> 3.0'
23
- # gem "rspec"
24
- gem 'power_assert', '~> 1.1.5'
25
- gem 'rubocop', '~> 1.7'
36
+ # gem 'rubocop', '~> 1.50'
37
+ gem 'rubocop'
26
38
  gem 'rubocop-performance'
27
- gem 'rubocop-rake'
28
- gem 'rubocop-rspec'
39
+ gem 'rubocop-rake', require: false
40
+ gem 'rubocop-rspec', require: false
29
41
  end
30
42
 
31
43
  # group :test do
data/Gemfile.lock CHANGED
@@ -1,120 +1,175 @@
1
+ PATH
2
+ remote: ../ykxutils
3
+ specs:
4
+ ykxutils (0.1.13)
5
+ erubi
6
+ tilt
7
+
1
8
  PATH
2
9
  remote: .
3
10
  specs:
4
- arxutils_sqlite3 (0.1.61)
5
- activerecord (~> 6.1)
6
- activesupport
11
+ arxutils_sqlite3 (0.1.63)
7
12
  bundler
8
- rake (~> 13.0)
9
- simpleoptparse
10
- sqlite3
11
- ykutils
13
+ sqlite3 (= 2.0.2)
12
14
  ykxutils
13
15
 
14
16
  GEM
15
17
  remote: https://rubygems.org/
16
18
  specs:
17
- activemodel (6.1.7)
18
- activesupport (= 6.1.7)
19
- activerecord (6.1.7)
20
- activemodel (= 6.1.7)
21
- activesupport (= 6.1.7)
22
- activesupport (6.1.7)
19
+ activemodel (7.1.3.4)
20
+ activesupport (= 7.1.3.4)
21
+ activerecord (7.1.3.4)
22
+ activemodel (= 7.1.3.4)
23
+ activesupport (= 7.1.3.4)
24
+ timeout (>= 0.4.0)
25
+ activesupport (7.1.3.4)
26
+ base64
27
+ bigdecimal
23
28
  concurrent-ruby (~> 1.0, >= 1.0.2)
29
+ connection_pool (>= 2.2.5)
30
+ drb
24
31
  i18n (>= 1.6, < 2)
25
32
  minitest (>= 5.1)
33
+ mutex_m
26
34
  tzinfo (~> 2.0)
27
- zeitwerk (~> 2.3)
28
35
  ast (2.4.2)
29
- concurrent-ruby (1.1.10)
30
- diff-lcs (1.5.0)
31
- erubi (1.11.0)
36
+ base64 (0.2.0)
37
+ bigdecimal (3.1.7)
38
+ concurrent-ruby (1.2.3)
39
+ connection_pool (2.4.1)
40
+ csv (3.2.8)
41
+ debug (1.9.1)
42
+ irb (~> 1.10)
43
+ reline (>= 0.3.8)
44
+ diff-lcs (1.5.1)
45
+ drb (2.2.1)
46
+ erubi (1.12.0)
32
47
  erubis (2.7.0)
33
- filex (0.1.7)
48
+ filex (0.1.8)
49
+ bundler
34
50
  erubis
35
51
  messagex
36
- i18n (1.12.0)
52
+ rake (~> 13.0)
53
+ i18n (1.14.4)
37
54
  concurrent-ruby (~> 1.0)
38
- json (2.6.2)
55
+ io-console (0.7.2)
56
+ irb (1.12.0)
57
+ rdoc
58
+ reline (>= 0.4.2)
59
+ json (2.7.1)
60
+ language_server-protocol (3.17.0.3)
39
61
  messagex (0.1.5)
40
- minitest (5.16.3)
41
- parallel (1.22.1)
42
- parser (3.1.2.1)
62
+ minitest (5.22.3)
63
+ mutex_m (0.2.0)
64
+ nkf (0.2.0)
65
+ parallel (1.24.0)
66
+ parser (3.3.0.5)
43
67
  ast (~> 2.4.1)
44
- power_assert (1.1.7)
68
+ racc
69
+ power_assert (2.0.3)
70
+ psych (5.1.2)
71
+ stringio
72
+ racc (1.7.3)
45
73
  rainbow (3.1.1)
46
- rake (13.0.6)
47
- regexp_parser (2.6.0)
48
- rexml (3.2.5)
49
- rspec (3.11.0)
50
- rspec-core (~> 3.11.0)
51
- rspec-expectations (~> 3.11.0)
52
- rspec-mocks (~> 3.11.0)
53
- rspec-core (3.11.0)
54
- rspec-support (~> 3.11.0)
55
- rspec-expectations (3.11.1)
74
+ rake (13.1.0)
75
+ rdoc (6.6.2)
76
+ psych (>= 4.0.0)
77
+ regexp_parser (2.9.0)
78
+ reline (0.4.3)
79
+ io-console (~> 0.5)
80
+ rexml (3.2.6)
81
+ rspec (3.13.0)
82
+ rspec-core (~> 3.13.0)
83
+ rspec-expectations (~> 3.13.0)
84
+ rspec-mocks (~> 3.13.0)
85
+ rspec-core (3.13.0)
86
+ rspec-support (~> 3.13.0)
87
+ rspec-expectations (3.13.0)
56
88
  diff-lcs (>= 1.2.0, < 2.0)
57
- rspec-support (~> 3.11.0)
58
- rspec-mocks (3.11.1)
89
+ rspec-support (~> 3.13.0)
90
+ rspec-mocks (3.13.0)
59
91
  diff-lcs (>= 1.2.0, < 2.0)
60
- rspec-support (~> 3.11.0)
61
- rspec-support (3.11.1)
62
- rubocop (1.36.0)
92
+ rspec-support (~> 3.13.0)
93
+ rspec-support (3.13.1)
94
+ rubocop (1.62.1)
63
95
  json (~> 2.3)
96
+ language_server-protocol (>= 3.17.0)
64
97
  parallel (~> 1.10)
65
- parser (>= 3.1.2.1)
98
+ parser (>= 3.3.0.2)
66
99
  rainbow (>= 2.2.2, < 4.0)
67
100
  regexp_parser (>= 1.8, < 3.0)
68
101
  rexml (>= 3.2.5, < 4.0)
69
- rubocop-ast (>= 1.20.1, < 2.0)
102
+ rubocop-ast (>= 1.31.1, < 2.0)
70
103
  ruby-progressbar (~> 1.7)
71
- unicode-display_width (>= 1.4.0, < 3.0)
72
- rubocop-ast (1.21.0)
73
- parser (>= 3.1.1.0)
74
- rubocop-performance (1.15.0)
75
- rubocop (>= 1.7.0, < 2.0)
76
- rubocop-ast (>= 0.4.0)
104
+ unicode-display_width (>= 2.4.0, < 3.0)
105
+ rubocop-ast (1.31.2)
106
+ parser (>= 3.3.0.4)
107
+ rubocop-capybara (2.20.0)
108
+ rubocop (~> 1.41)
109
+ rubocop-factory_bot (2.25.1)
110
+ rubocop (~> 1.41)
111
+ rubocop-performance (1.20.2)
112
+ rubocop (>= 1.48.1, < 2.0)
113
+ rubocop-ast (>= 1.30.0, < 2.0)
77
114
  rubocop-rake (0.6.0)
78
115
  rubocop (~> 1.0)
79
- rubocop-rspec (2.13.2)
80
- rubocop (~> 1.33)
81
- ruby-progressbar (1.11.0)
116
+ rubocop-rspec (2.27.1)
117
+ rubocop (~> 1.40)
118
+ rubocop-capybara (~> 2.17)
119
+ rubocop-factory_bot (~> 2.22)
120
+ ruby-progressbar (1.13.0)
121
+ rufo (0.17.1)
82
122
  simpleoptparse (0.1.2)
83
- sqlite3 (1.5.2-x86_64-linux)
84
- tilt (2.0.11)
85
- tzinfo (2.0.5)
123
+ sqlite3 (2.0.2-aarch64-linux-gnu)
124
+ sqlite3 (2.0.2-arm-linux-gnu)
125
+ sqlite3 (2.0.2-arm64-darwin)
126
+ sqlite3 (2.0.2-x86-linux-gnu)
127
+ sqlite3 (2.0.2-x86_64-darwin)
128
+ sqlite3 (2.0.2-x86_64-linux-gnu)
129
+ stringio (3.1.0)
130
+ tilt (2.3.0)
131
+ timeout (0.4.1)
132
+ tzinfo (2.0.6)
86
133
  concurrent-ruby (~> 1.0)
87
- unicode-display_width (2.3.0)
88
- webrick (1.7.0)
89
- yard (0.9.28)
90
- webrick (~> 1.7.0)
134
+ unicode-display_width (2.5.0)
135
+ yard (0.9.36)
91
136
  ykutils (0.1.7)
92
137
  erubi
93
138
  filex
94
139
  tilt
95
- ykxutils (0.1.7)
96
- zeitwerk (2.6.1)
97
140
 
98
141
  PLATFORMS
142
+ aarch64-linux
143
+ arm-linux
144
+ arm64-darwin
145
+ x86-linux
146
+ x86_64-darwin
99
147
  x86_64-linux
100
148
 
101
149
  DEPENDENCIES
102
- activerecord (~> 6.1)
150
+ activerecord (~> 7.1.3.4)
103
151
  activesupport
104
152
  arxutils_sqlite3!
153
+ base64
154
+ bigdecimal
105
155
  bundler
106
- power_assert (~> 1.1.5)
107
- rake (~> 13.0)
156
+ csv
157
+ debug
158
+ mutex_m
159
+ nkf
160
+ power_assert (~> 2.0.3)
161
+ rake (~> 13.1)
108
162
  rspec (~> 3.0)
109
- rubocop (~> 1.7)
163
+ rubocop
110
164
  rubocop-performance
111
165
  rubocop-rake
112
166
  rubocop-rspec
167
+ rufo
113
168
  simpleoptparse
114
- sqlite3
115
- yard
169
+ sqlite3 (= 2.0.2)
170
+ yard (~> 0.9.36)
116
171
  ykutils
117
- ykxutils
172
+ ykxutils!
118
173
 
119
174
  BUNDLED WITH
120
- 2.3.22
175
+ 2.5.3
data/SECURITY.md ADDED
@@ -0,0 +1,21 @@
1
+ # Security Policy
2
+
3
+ ## Supported Versions
4
+
5
+ Use this section to tell people about which versions of your project are
6
+ currently being supported with security updates.
7
+
8
+ | Version | Supported |
9
+ | ------- | ------------------ |
10
+ | 5.1.x | :white_check_mark: |
11
+ | 5.0.x | :x: |
12
+ | 4.0.x | :white_check_mark: |
13
+ | < 4.0 | :x: |
14
+
15
+ ## Reporting a Vulnerability
16
+
17
+ Use this section to tell people how to report a vulnerability.
18
+
19
+ Tell them where to go, how often they can expect to get an update on a
20
+ reported vulnerability, what to expect if the vulnerability is accepted or
21
+ declined, etc.
@@ -36,24 +36,25 @@ Gem::Specification.new do |spec|
36
36
 
37
37
  spec.add_runtime_dependency 'bundler'
38
38
 
39
- spec.add_runtime_dependency 'activerecord', '~> 6.1'
40
- spec.add_runtime_dependency 'activesupport'
41
- spec.add_runtime_dependency 'rake', '~> 13.0'
42
- spec.add_runtime_dependency 'simpleoptparse'
43
- spec.add_runtime_dependency 'sqlite3'
44
- spec.add_runtime_dependency 'ykutils'
39
+ # spec.add_runtime_dependency 'activerecord', '~> 6.1'
40
+ # spec.add_runtime_dependency 'activesupport'
41
+ # spec.add_runtime_dependency 'rake', '~> 13.0'
42
+ # spec.add_runtime_dependency 'simpleoptparse'
43
+ spec.add_runtime_dependency 'sqlite3', '2.0.2'
44
+ # spec.add_runtime_dependency 'ykutils'
45
45
  spec.add_runtime_dependency 'ykxutils'
46
46
 
47
- spec.add_development_dependency 'power_assert', '~> 1.1.5'
48
- spec.add_development_dependency 'rspec', '~> 3.0'
49
- spec.add_development_dependency 'rubocop', '~> 1.7'
50
- spec.add_development_dependency 'rubocop-performance'
51
- spec.add_development_dependency 'rubocop-rake'
52
- spec.add_development_dependency 'rubocop-rspec'
53
- spec.add_development_dependency 'yard'
47
+ # spec.add_development_dependency 'power_assert', '~> 2.0.3'
48
+ # spec.add_development_dependency 'rspec', '~> 3.0'
49
+ # spec.add_development_dependency 'rubocop', '~> 1.7'
50
+ # spec.add_development_dependency 'rubocop-performance'
51
+ # spec.add_development_dependency 'rubocop-rake'
52
+ # spec.add_development_dependency 'rubocop-rspec'
53
+ # spec.add_development_dependency 'yard'
54
54
  # Uncomment to register a new dependency of your gem
55
55
  # spec.add_dependency "example-gem", "~> 1.0"
56
56
 
57
57
  # For more information and examples about making a new gem, checkout our
58
58
  # guide at: https://bundler.io/guides/creating_gem.html
59
+ spec.metadata["rubygems_mfa_required"] = "true"
59
60
  end
data/bin/setup CHANGED
@@ -3,7 +3,7 @@ set -euo pipefail
3
3
  IFS=$'\n\t'
4
4
  set -vx
5
5
 
6
- bundle config path --local vendor/bundle
6
+ # bundle config path --local vendor/bundle
7
7
  bundle install
8
8
  bundle exec rake arx:arxutils_sqlite3
9
9
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'erb'
4
- require 'ykutils'
3
+ require "erb"
4
+ require "ykutils"
5
5
 
6
6
  module Arxutils_Sqlite3
7
7
  # スキーマ設定に基づき、テンプレートから変換する
@@ -28,10 +28,10 @@ module Arxutils_Sqlite3
28
28
  @field ||= Struct.new(:name, :type, :null)
29
29
 
30
30
  @data[:ary] = if @data[:items]
31
- @data[:items].map { |x| @field.new(*x) }
32
- else
33
- []
34
- end
31
+ @data[:items].map { |x| @field.new(*x) }
32
+ else
33
+ []
34
+ end
35
35
  end
36
36
 
37
37
  # テンプレートファイルを元にした変換結果を返す
@@ -11,7 +11,7 @@ module Arxutils_Sqlite3
11
11
  @dbconfig_path = @config.make_dbconfig_path(@dbconfig)
12
12
 
13
13
  @db_scheme_ary = nil
14
- if yaml_fname && yaml_fname.strip != ''
14
+ if yaml_fname && yaml_fname.strip != ""
15
15
  yaml_pn = Pathname.new(yaml_fname)
16
16
  @db_scheme_ary = YAML.load_file(yaml_pn)
17
17
  end
@@ -69,7 +69,8 @@ module Arxutils_Sqlite3
69
69
  Arxutils_Sqlite3::Dbutil::Dbconnect.db_connect(@config, @dbconfig, @env)
70
70
 
71
71
  # マイグレーション実行
72
- ActiveRecord::MigrationContext.new(migrate_dir, ActiveRecord::SchemaMigration).up
72
+ # ActiveRecord::MigrationContext.new(migrate_dir, ActiveRecord::SchemaMigration).up
73
+ ActiveRecord::MigrationContext.new(migrate_dir).up
73
74
  end
74
75
 
75
76
  def acr