arxutils_sqlite3 0.1.38 → 0.1.39

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: 8caebf03a2f120db010e464d79cc95f2b3ee26cebd9dde11a5a606662e89c430
4
- data.tar.gz: 21442c4b58e7e8f36f9e4e304bbb0398622fa809f67879b51a482da26d9105ef
3
+ metadata.gz: 5ae5396c68947c9e83219e1e2be919fcfa7ec8d175248d4f8dc9ac8f1b0fb230
4
+ data.tar.gz: 38313d730e9842c68739cba8859af4f5529ca326b65b53df4bf83a77b408d325
5
5
  SHA512:
6
- metadata.gz: 4519bf2297f0656de79c4f0e436fedd1773456bd82d1def5790bbca2648ddeb9de1d49dc4b4c9c8529c4d9a6028baacc6f45a8d1fae342fd6d88c12cde69765f
7
- data.tar.gz: fa77d2171cc6db301db3a55035568331c2539d6204a2cacb4029498407e9d98319a8e96f6533f35346c35235cc641cb68c7a7aeaa006362a69a002e8e20ecbb8
6
+ metadata.gz: e489f145e1afa71f41aac39c75cf5602a1b6ec2dd22513f48e73c614a3655feb33154da12912eca8592d7b8a3b0a06f787d9f5e9406aed05eb82d333822cc527
7
+ data.tar.gz: c9e0b7a85fba185f6a15176adacbd2fccfa0dddbc24b038e323a8e9b6da1c4b5688e9c460b7c14d54ed9092f4c2173f7b342f7f922ca811773c40418b6be96af
data/Rakefile CHANGED
@@ -1,5 +1,16 @@
1
1
  require "bundler/gem_tasks"
2
+ =begin
3
+ require "rake/testtask"
2
4
 
5
+ Rake::TestTask.new do |t|
6
+ t.libs << "test"
7
+ end
8
+
9
+ desc "Run test"
10
+ task default: :test
11
+ =end
12
+
13
+ #=begin
3
14
  task default: %w[setup makeconfig migrate integrate]
4
15
 
5
16
  task cmi: %w[makeconfig migrate integrate]
@@ -7,21 +18,23 @@ task cmi: %w[makeconfig migrate integrate]
7
18
  # コマンドラインで指定したクラス名を含むオプション指定用ハッシュの定義を含むRubyスクリ
8
19
  # プトファイルの生成
9
20
  task :setup do
10
- sh "bundle exec ruby exe/arxutils-cli --cmd=s --klass=Enop"
21
+ sh "bundle exec ruby exe/arxutils_sqlite3 --cmd=s --klass=Enop"
11
22
  end
12
23
  # DB構成情報の生成
13
24
  task :makeconfig do
14
- sh "bundle exec ruby exe/arxutils-cli --cmd=c"
25
+ sh "bundle exec ruby exe/arxutils_sqlite3 --cmd=c"
15
26
  end
16
27
  # マイグレート用スクリプトファイルの生成とマイグレートの実行
17
28
  task :migrate do
18
- sh "bundle exec ruby exe/arxutils-cli --cmd=m --yaml=config/db_scheme.yml"
29
+ sh "bundle exec ruby exe/arxutils_sqlite3 --cmd=m --yaml=config/db_scheme.yml"
19
30
  end
20
31
  task :integrate do
21
- sh "bundle exec ruby exe/arxutils-cli --cmd=i"
32
+ sh "bundle exec ruby exe/arxutils_sqlite3 --cmd=i"
22
33
  end
23
34
 
24
35
  task :delete do
25
- sh "bundle exec ruby exe/arxutils-cli --cmd=d"
36
+ sh "bundle exec ruby exe/arxutils_sqlite3 --cmd=d"
26
37
  end
27
38
 
39
+ #=end
40
+
File without changes
@@ -1,4 +1,4 @@
1
1
  module Arxutils_Sqlite3
2
2
  # バージョン番号
3
- VERSION = "0.1.38".freeze
3
+ VERSION = "0.1.39".freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arxutils_sqlite3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.38
4
+ version: 0.1.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - yasuo kominami
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-08 00:00:00.000000000 Z
11
+ date: 2022-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -56,7 +56,7 @@ description: utility functions for ActiveRecord.
56
56
  email:
57
57
  - ykominami@gmail.com
58
58
  executables:
59
- - arxutils-cli
59
+ - arxutils_sqlite3
60
60
  extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
@@ -72,12 +72,9 @@ files:
72
72
  - Rakefile
73
73
  - arxutils_sqlite3.gemspec
74
74
  - bin/console
75
- - bin/makemigrate
76
75
  - bin/setup
77
- - bin/setupx.bat
78
- - bin/setupx.rb
79
76
  - config/.gitignore
80
- - exe/arxutils-cli
77
+ - exe/arxutils_sqlite3
81
78
  - lib/arxutils_sqlite3.rb
82
79
  - lib/arxutils_sqlite3/arx.rb
83
80
  - lib/arxutils_sqlite3/dbutil.rb
data/bin/makemigrate DELETED
@@ -1,55 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require "arxutils_sqlite3"
3
- require "simpleoptparse"
4
-
5
- require "yaml"
6
-
7
- AR_VERSION = 6.0
8
-
9
- opts = {
10
- db_dir: Arxutils_Sqlite3::Dbutil::DB_DIR,
11
- relation: {
12
- module: %w[Enop Dbutil],
13
- filename: "dbrelation.rb",
14
- dir: "lib/arxutils_sqlite3/dbutil"
15
- }
16
- }
17
- banner = "Usage: bundle exec ruby exe/makemigrate (-c|-r) (--mysql|--sqlite3) -s yaml_file"
18
-
19
- Simpleoptparse::Simpleoptparse.parse(ARGV, opts, banner, Arxutils_Sqlite3::VERSION, nil) do |parser|
20
- parser.on("-c", "--makeconfig") { |_x| opts["makeconfig"] = true }
21
- parser.on("-r", "--remigrate") { |_x| opts["remigrate"] = true }
22
- parser.on("-s yaml_file", "--setting yaml_file") { |file| opts["setting"] = file }
23
- parser.on("--mysql") { |_x| opts["dbconfig"] = Arxutils_Sqlite3::Dbutil::DBCONFIG_MYSQL }
24
- parser.on("--sqlite3") { |_x| opts["dbconfig"] = Arxutils_Sqlite3::Dbutil::DBCONFIG_SQLITE3 }
25
- end
26
-
27
- db_scheme_yaml_file = opts["setting"]
28
-
29
- if db_scheme_yaml_file.nil?
30
- puts banner
31
- exit 10
32
- end
33
-
34
- opts["makeconfig"] = !opts["makeconfig"].nil?
35
- opts["remigrate"] = !opts["remigrate"].nil?
36
-
37
- db_scheme_ary = YAML.load_file(db_scheme_yaml_file)
38
- #pp db_scheme_ary
39
-
40
- opts["dbconfig"] = Arxutils_Sqlite3::Dbutil::DBCONFIG_SQLITE3 unless opts["dbconfig"]
41
-
42
- env = ENV.fetch("ENV", nil)
43
- # env ||= "development"
44
- env ||= "production"
45
-
46
- Arxutils_Sqlite3::Migrate.migrate(
47
- Arxutils_Sqlite3::Dbutil::DB_DIR,
48
- Arxutils_Sqlite3::Dbutil::CONFIG_DIR,
49
- Arxutils_Sqlite3::Dbutil::DATABASELOG,
50
- Arxutils_Sqlite3::Dbutil::MIGRATE_DIR,
51
- env,
52
- db_scheme_ary,
53
- opts["dbconfig"],
54
- opts
55
- )
data/bin/setupx.bat DELETED
@@ -1,7 +0,0 @@
1
- REM set -euo pipefail
2
- REM IFS=$'\n\t'
3
- REM set -vx
4
-
5
- REM bundle install
6
- bundle exec ruby bin/setupx.rb
7
- # Do any other automated setup that you need to do here
data/bin/setupx.rb DELETED
@@ -1,4 +0,0 @@
1
- require "arxutils_sqlite3"
2
- require "pathname"
3
-
4
- puts $PROGRAM_NAME