arxutils 0.1.37 → 0.1.38
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.
- checksums.yaml +4 -4
- data/.gitignore +2 -2
- data/.rspec +0 -0
- data/.travis.yml +0 -0
- data/Gemfile +0 -0
- data/Gemfile.lock +81 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/SECURITY.md +21 -0
- data/arxutils.gemspec +10 -5
- data/bin/console +0 -0
- data/bin/setup +0 -0
- data/exe/arxutils +0 -0
- data/lib/arxutils/arx.rb +0 -0
- data/lib/arxutils/arxutils.rb +0 -0
- data/lib/arxutils/dbutil/dbinit.rb +14 -2
- data/lib/arxutils/dbutil/dbmgr.rb +0 -0
- data/lib/arxutils/hier.rb +0 -0
- data/lib/arxutils/migrate.rb +1 -1
- data/lib/arxutils/transactstate.rb +0 -0
- data/lib/arxutils/version.rb +1 -1
- data/lib/arxutils.rb +1 -1
- data/lib/config/mysql.tmpl +0 -0
- data/lib/config/sqlite3.tmpl +0 -0
- data/lib/template/base.tmpl +0 -0
- data/lib/template/current.tmpl +0 -0
- data/lib/template/invalid.tmpl +0 -0
- data/lib/template/noitem.tmpl +0 -0
- data/lib/template/relation.tmpl +0 -0
- data/lib/template/relation_count.tmpl +0 -0
- data/lib/template/relation_current.tmpl +0 -0
- data/lib/template/relation_invalid.tmpl +0 -0
- metadata +37 -36
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8843dd23f47002f43a70ea5b73ac8cf5d2306f5f0b989604ef7007afdf073472
|
|
4
|
+
data.tar.gz: 1e0877518f2f78e60126d34101a20dab3666c0fefe82961f2d696921ced18ccf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 51fdfe09bb56a1cc25146dd19095e7cc55664917db05da444e6bfe38fd40ea4611349399205e545c33558c4d24282050d5af075978f96fcb5749273e1d1b5ee7
|
|
7
|
+
data.tar.gz: dca19d84492fed1d8b617bcd6b1793315f140bc17b9eb31e22716c02baabf1ddc2071724b45194faa520d2311b28a8137a84ca8f75261caf5740615398f3750c
|
data/.gitignore
CHANGED
data/.rspec
CHANGED
|
File without changes
|
data/.travis.yml
CHANGED
|
File without changes
|
data/Gemfile
CHANGED
|
File without changes
|
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
arxutils (0.1.37)
|
|
5
|
+
activerecord (< 7.0)
|
|
6
|
+
encx
|
|
7
|
+
sqlite3
|
|
8
|
+
|
|
9
|
+
GEM
|
|
10
|
+
remote: https://rubygems.org/
|
|
11
|
+
specs:
|
|
12
|
+
activemodel (6.1.6.1)
|
|
13
|
+
activesupport (= 6.1.6.1)
|
|
14
|
+
activerecord (6.1.6.1)
|
|
15
|
+
activemodel (= 6.1.6.1)
|
|
16
|
+
activesupport (= 6.1.6.1)
|
|
17
|
+
activesupport (6.1.6.1)
|
|
18
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
19
|
+
i18n (>= 1.6, < 2)
|
|
20
|
+
minitest (>= 5.1)
|
|
21
|
+
tzinfo (~> 2.0)
|
|
22
|
+
zeitwerk (~> 2.3)
|
|
23
|
+
ast (2.4.2)
|
|
24
|
+
concurrent-ruby (1.1.10)
|
|
25
|
+
diff-lcs (1.5.0)
|
|
26
|
+
encx (0.1.0)
|
|
27
|
+
i18n (1.12.0)
|
|
28
|
+
concurrent-ruby (~> 1.0)
|
|
29
|
+
json (2.6.2)
|
|
30
|
+
minitest (5.16.2)
|
|
31
|
+
parallel (1.22.1)
|
|
32
|
+
parser (3.1.2.1)
|
|
33
|
+
ast (~> 2.4.1)
|
|
34
|
+
rainbow (3.1.1)
|
|
35
|
+
rake (13.0.6)
|
|
36
|
+
regexp_parser (2.5.0)
|
|
37
|
+
rexml (3.2.5)
|
|
38
|
+
rspec (3.11.0)
|
|
39
|
+
rspec-core (~> 3.11.0)
|
|
40
|
+
rspec-expectations (~> 3.11.0)
|
|
41
|
+
rspec-mocks (~> 3.11.0)
|
|
42
|
+
rspec-core (3.11.0)
|
|
43
|
+
rspec-support (~> 3.11.0)
|
|
44
|
+
rspec-expectations (3.11.0)
|
|
45
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
46
|
+
rspec-support (~> 3.11.0)
|
|
47
|
+
rspec-mocks (3.11.1)
|
|
48
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
49
|
+
rspec-support (~> 3.11.0)
|
|
50
|
+
rspec-support (3.11.0)
|
|
51
|
+
rubocop (1.35.0)
|
|
52
|
+
json (~> 2.3)
|
|
53
|
+
parallel (~> 1.10)
|
|
54
|
+
parser (>= 3.1.2.1)
|
|
55
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
56
|
+
regexp_parser (>= 1.8, < 3.0)
|
|
57
|
+
rexml (>= 3.2.5, < 4.0)
|
|
58
|
+
rubocop-ast (>= 1.20.1, < 2.0)
|
|
59
|
+
ruby-progressbar (~> 1.7)
|
|
60
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
|
61
|
+
rubocop-ast (1.21.0)
|
|
62
|
+
parser (>= 3.1.1.0)
|
|
63
|
+
ruby-progressbar (1.11.0)
|
|
64
|
+
sqlite3 (1.4.4)
|
|
65
|
+
tzinfo (2.0.5)
|
|
66
|
+
concurrent-ruby (~> 1.0)
|
|
67
|
+
unicode-display_width (2.2.0)
|
|
68
|
+
zeitwerk (2.6.0)
|
|
69
|
+
|
|
70
|
+
PLATFORMS
|
|
71
|
+
x64-mingw-ucrt
|
|
72
|
+
|
|
73
|
+
DEPENDENCIES
|
|
74
|
+
arxutils!
|
|
75
|
+
bundler
|
|
76
|
+
rake
|
|
77
|
+
rspec
|
|
78
|
+
rubocop
|
|
79
|
+
|
|
80
|
+
BUNDLED WITH
|
|
81
|
+
2.3.7
|
data/README.md
CHANGED
|
File without changes
|
data/Rakefile
CHANGED
|
File without changes
|
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.
|
data/arxutils.gemspec
CHANGED
|
@@ -27,14 +27,19 @@ Gem::Specification.new do |spec|
|
|
|
27
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
28
28
|
spec.require_paths = ["lib"]
|
|
29
29
|
|
|
30
|
-
spec.add_runtime_dependency "activesupport"
|
|
30
|
+
# spec.add_runtime_dependency "activesupport"
|
|
31
31
|
# spec.add_runtime_dependency "erb"
|
|
32
|
-
|
|
32
|
+
# spec.add_runtime_dependency "activerecord" , "~> 7.0.2.3"
|
|
33
|
+
spec.add_runtime_dependency "activerecord" , "< 7.0"
|
|
33
34
|
spec.add_runtime_dependency "sqlite3"
|
|
34
|
-
spec.add_runtime_dependency "mysql2" , "~> 0.4.1"
|
|
35
|
+
#spec.add_runtime_dependency "mysql2" , "~> 0.4.1"
|
|
36
|
+
spec.add_runtime_dependency "mysql2"
|
|
35
37
|
spec.add_runtime_dependency "encx"
|
|
36
38
|
|
|
37
|
-
spec.add_development_dependency "bundler", "~>
|
|
38
|
-
spec.add_development_dependency "rake", "
|
|
39
|
+
# spec.add_development_dependency "bundler", "~> 2.3.7"
|
|
40
|
+
# spec.add_development_dependency "rake", ">= 12.3.3"
|
|
41
|
+
spec.add_development_dependency "bundler"
|
|
42
|
+
spec.add_development_dependency "rake"
|
|
39
43
|
spec.add_development_dependency "rspec"
|
|
44
|
+
spec.add_development_dependency "rubocop"
|
|
40
45
|
end
|
data/bin/console
CHANGED
|
File without changes
|
data/bin/setup
CHANGED
|
File without changes
|
data/exe/arxutils
CHANGED
|
File without changes
|
data/lib/arxutils/arx.rb
CHANGED
|
File without changes
|
data/lib/arxutils/arxutils.rb
CHANGED
|
File without changes
|
|
@@ -3,8 +3,20 @@
|
|
|
3
3
|
require 'fileutils'
|
|
4
4
|
require 'yaml'
|
|
5
5
|
require 'active_record'
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
|
|
7
|
+
begin
|
|
8
|
+
require 'sqlite3'
|
|
9
|
+
rescue
|
|
10
|
+
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
begin
|
|
14
|
+
require 'mysql2'
|
|
15
|
+
rescue StandardError => ex
|
|
16
|
+
#p 1
|
|
17
|
+
rescue Exception => ex
|
|
18
|
+
#p 2
|
|
19
|
+
end
|
|
8
20
|
|
|
9
21
|
module Arxutils
|
|
10
22
|
# DB操作用ユーティリティクラス
|
|
File without changes
|
data/lib/arxutils/hier.rb
CHANGED
|
File without changes
|
data/lib/arxutils/migrate.rb
CHANGED
|
@@ -139,7 +139,7 @@ module Arxutils
|
|
|
139
139
|
additional = kind
|
|
140
140
|
end
|
|
141
141
|
fname = File.join( @migrate_dir , sprintf("%03d_create_%s%s.rb" , idy , additional , classname_downcase) )
|
|
142
|
-
File.open( fname , 'w' , {:encoding => Encoding::UTF_8}){ |f|
|
|
142
|
+
File.open( fname , 'w' , **{:encoding => Encoding::UTF_8}){ |f|
|
|
143
143
|
f.puts( content )
|
|
144
144
|
}
|
|
145
145
|
end
|
|
File without changes
|
data/lib/arxutils/version.rb
CHANGED
data/lib/arxutils.rb
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
require 'bigdecimal'
|
|
1
2
|
require 'active_support'
|
|
2
3
|
require 'active_support/core_ext'
|
|
3
4
|
require 'active_record'
|
|
@@ -10,6 +11,5 @@ require 'arxutils/dbutil/dbinit'
|
|
|
10
11
|
require 'arxutils/dbutil/dbmgr'
|
|
11
12
|
require 'arxutils/migrate'
|
|
12
13
|
|
|
13
|
-
|
|
14
14
|
module Arxutils
|
|
15
15
|
end
|
data/lib/config/mysql.tmpl
CHANGED
|
File without changes
|
data/lib/config/sqlite3.tmpl
CHANGED
|
File without changes
|
data/lib/template/base.tmpl
CHANGED
|
File without changes
|
data/lib/template/current.tmpl
CHANGED
|
File without changes
|
data/lib/template/invalid.tmpl
CHANGED
|
File without changes
|
data/lib/template/noitem.tmpl
CHANGED
|
File without changes
|
data/lib/template/relation.tmpl
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
metadata
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: arxutils
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.38
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- yasuo kominami
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-08-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
name:
|
|
14
|
+
name: activerecord
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - "
|
|
17
|
+
- - "<"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '0'
|
|
19
|
+
version: '7.0'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- - "
|
|
24
|
+
- - "<"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '0'
|
|
26
|
+
version: '7.0'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
name:
|
|
28
|
+
name: sqlite3
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- - "
|
|
31
|
+
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
33
|
+
version: '0'
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- - "
|
|
38
|
+
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '
|
|
40
|
+
version: '0'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
|
-
name:
|
|
42
|
+
name: mysql2
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
45
|
- - ">="
|
|
@@ -53,27 +53,27 @@ dependencies:
|
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '0'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
|
-
name:
|
|
56
|
+
name: encx
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- - "
|
|
59
|
+
- - ">="
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: 0
|
|
61
|
+
version: '0'
|
|
62
62
|
type: :runtime
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
|
-
- - "
|
|
66
|
+
- - ">="
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: 0
|
|
68
|
+
version: '0'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
|
-
name:
|
|
70
|
+
name: bundler
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
73
|
- - ">="
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
75
|
version: '0'
|
|
76
|
-
type: :
|
|
76
|
+
type: :development
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
@@ -81,35 +81,35 @@ dependencies:
|
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
82
|
version: '0'
|
|
83
83
|
- !ruby/object:Gem::Dependency
|
|
84
|
-
name:
|
|
84
|
+
name: rake
|
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
|
86
86
|
requirements:
|
|
87
|
-
- - "
|
|
87
|
+
- - ">="
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: '
|
|
89
|
+
version: '0'
|
|
90
90
|
type: :development
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
|
-
- - "
|
|
94
|
+
- - ">="
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: '
|
|
96
|
+
version: '0'
|
|
97
97
|
- !ruby/object:Gem::Dependency
|
|
98
|
-
name:
|
|
98
|
+
name: rspec
|
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
|
100
100
|
requirements:
|
|
101
|
-
- - "
|
|
101
|
+
- - ">="
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
|
-
version: '
|
|
103
|
+
version: '0'
|
|
104
104
|
type: :development
|
|
105
105
|
prerelease: false
|
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
107
|
requirements:
|
|
108
|
-
- - "
|
|
108
|
+
- - ">="
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
|
-
version: '
|
|
110
|
+
version: '0'
|
|
111
111
|
- !ruby/object:Gem::Dependency
|
|
112
|
-
name:
|
|
112
|
+
name: rubocop
|
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
|
114
114
|
requirements:
|
|
115
115
|
- - ">="
|
|
@@ -134,8 +134,10 @@ files:
|
|
|
134
134
|
- ".rspec"
|
|
135
135
|
- ".travis.yml"
|
|
136
136
|
- Gemfile
|
|
137
|
+
- Gemfile.lock
|
|
137
138
|
- README.md
|
|
138
139
|
- Rakefile
|
|
140
|
+
- SECURITY.md
|
|
139
141
|
- arxutils.gemspec
|
|
140
142
|
- bin/console
|
|
141
143
|
- bin/setup
|
|
@@ -162,7 +164,7 @@ files:
|
|
|
162
164
|
homepage: ''
|
|
163
165
|
licenses: []
|
|
164
166
|
metadata: {}
|
|
165
|
-
post_install_message:
|
|
167
|
+
post_install_message:
|
|
166
168
|
rdoc_options: []
|
|
167
169
|
require_paths:
|
|
168
170
|
- lib
|
|
@@ -177,9 +179,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
177
179
|
- !ruby/object:Gem::Version
|
|
178
180
|
version: '0'
|
|
179
181
|
requirements: []
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
signing_key:
|
|
182
|
+
rubygems_version: 3.3.7
|
|
183
|
+
signing_key:
|
|
183
184
|
specification_version: 4
|
|
184
185
|
summary: utility functions for ActiveRecord.
|
|
185
186
|
test_files: []
|