master_data_tool 0.21.0 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/master_data_tool +2 -2
- data/lib/master_data_tool/config.rb +1 -1
- data/lib/master_data_tool/version.rb +1 -1
- metadata +6 -22
- data/.rspec +0 -3
- data/Appraisals +0 -17
- data/Gemfile +0 -10
- data/Rakefile +0 -8
- data/bin/console +0 -15
- data/bin/setup +0 -8
- data/docker-compose.yml +0 -25
- data/gemfiles/.bundle/config +0 -2
- data/gemfiles/activerecord5.2.gemfile +0 -9
- data/gemfiles/activerecord6.0.gemfile +0 -9
- data/gemfiles/activerecord6.1.gemfile +0 -9
- data/gemfiles/activerecord7.0.gemfile +0 -9
- data/log/test.log +0 -0
- data/master_data_tool.gemspec +0 -43
- data/scripts/drop_db.sh +0 -11
- data/scripts/setup.sh +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9f7536e73b11752d8c35e86e416f24076e7872641a2c6a4b0e56ef107aed56f
|
4
|
+
data.tar.gz: 2f1f3fe58965dc6310a082556d5b1fc84fc3508b4c2ad990f2e65d54eb0133cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5148d6a465c4df3d7380a2a16a5f25a4e4dc028c2e874e2ebdde5de42cc030facce89216ea19c26fb0ad10fa052b30a835936de7fb5a329f4e6dc98546424bc
|
7
|
+
data.tar.gz: 953dadca59bffae777c0c623d6039d2e030eb0eefc99674db55a4802a4f98fb13a0b0d544ecce7c90b064c4f7fe1751c392a08bb96b2832b093dc85df8c7ea91
|
data/exe/master_data_tool
CHANGED
@@ -22,7 +22,7 @@ module MasterDataTool
|
|
22
22
|
option :delete_all_ignore_foreign_key, default: nil, type: :boolean
|
23
23
|
desc 'import', 'import'
|
24
24
|
def import
|
25
|
-
spec_config = MasterDataTool.config.spec_config(options[
|
25
|
+
spec_config = MasterDataTool.config.spec_config(options[:spec_name])
|
26
26
|
new_options = config.default_import_options.with_indifferent_access.merge(options)
|
27
27
|
new_options[:spec_config] = spec_config
|
28
28
|
|
@@ -57,7 +57,7 @@ module MasterDataTool
|
|
57
57
|
ignore_column_names = options[:ignore_column_names]
|
58
58
|
only_tables = options[:only_tables]
|
59
59
|
verbose = options[:verbose]
|
60
|
-
spec_config = MasterDataTool.config.spec_config(options[
|
60
|
+
spec_config = MasterDataTool.config.spec_config(options[:spec_name])
|
61
61
|
|
62
62
|
executor = MasterDataTool::Dump::Executor.new(
|
63
63
|
spec_config: spec_config,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: master_data_tool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.22.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takahiro Ooishi
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -186,21 +186,9 @@ executables:
|
|
186
186
|
extensions: []
|
187
187
|
extra_rdoc_files: []
|
188
188
|
files:
|
189
|
-
- ".rspec"
|
190
|
-
- Appraisals
|
191
|
-
- Gemfile
|
192
189
|
- LICENSE
|
193
190
|
- README.md
|
194
|
-
- Rakefile
|
195
|
-
- bin/console
|
196
|
-
- bin/setup
|
197
|
-
- docker-compose.yml
|
198
191
|
- exe/master_data_tool
|
199
|
-
- gemfiles/.bundle/config
|
200
|
-
- gemfiles/activerecord5.2.gemfile
|
201
|
-
- gemfiles/activerecord6.0.gemfile
|
202
|
-
- gemfiles/activerecord6.1.gemfile
|
203
|
-
- gemfiles/activerecord7.0.gemfile
|
204
192
|
- lib/generators/master_data_tool/install/install_generator.rb
|
205
193
|
- lib/generators/master_data_tool/install/templates/create_master_data_statuses.rb.erb
|
206
194
|
- lib/master_data_tool.rb
|
@@ -223,17 +211,13 @@ files:
|
|
223
211
|
- lib/master_data_tool/report/verify_report.rb
|
224
212
|
- lib/master_data_tool/spec_config.rb
|
225
213
|
- lib/master_data_tool/version.rb
|
226
|
-
- log/test.log
|
227
|
-
- master_data_tool.gemspec
|
228
|
-
- scripts/drop_db.sh
|
229
|
-
- scripts/setup.sh
|
230
214
|
- sig/master_data_tool.rbs
|
231
215
|
homepage: https://github.com/taka0125/master_data_tool
|
232
216
|
licenses: []
|
233
217
|
metadata:
|
234
218
|
homepage_uri: https://github.com/taka0125/master_data_tool
|
235
219
|
source_code_uri: https://github.com/taka0125/master_data_tool
|
236
|
-
post_install_message:
|
220
|
+
post_install_message:
|
237
221
|
rdoc_options: []
|
238
222
|
require_paths:
|
239
223
|
- lib
|
@@ -248,8 +232,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
248
232
|
- !ruby/object:Gem::Version
|
249
233
|
version: '0'
|
250
234
|
requirements: []
|
251
|
-
rubygems_version: 3.
|
252
|
-
signing_key:
|
235
|
+
rubygems_version: 3.4.10
|
236
|
+
signing_key:
|
253
237
|
specification_version: 4
|
254
238
|
summary: マスタデータの管理ツール
|
255
239
|
test_files: []
|
data/.rspec
DELETED
data/Appraisals
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
appraise 'activerecord5.2' do
|
2
|
-
gem 'activerecord', '~> 5.2.0'
|
3
|
-
end
|
4
|
-
|
5
|
-
appraise 'activerecord6.0' do
|
6
|
-
gem 'activerecord', '~> 6.0.0'
|
7
|
-
end
|
8
|
-
|
9
|
-
appraise 'activerecord6.1' do
|
10
|
-
gem 'activerecord', '~> 6.1.0'
|
11
|
-
end
|
12
|
-
|
13
|
-
if RUBY_VERSION >= '2.7.0'
|
14
|
-
appraise 'activerecord7.0' do
|
15
|
-
gem 'activerecord', '~> 7.0.0'
|
16
|
-
end
|
17
|
-
end
|
data/Gemfile
DELETED
data/Rakefile
DELETED
data/bin/console
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require "bundler/setup"
|
5
|
-
require "master_data_tool"
|
6
|
-
|
7
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
-
# with your gem easier. You can also use a different console, if you like.
|
9
|
-
|
10
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
-
# require "pry"
|
12
|
-
# Pry.start
|
13
|
-
|
14
|
-
require "irb"
|
15
|
-
IRB.start(__FILE__)
|
data/bin/setup
DELETED
data/docker-compose.yml
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
version: '3.9'
|
2
|
-
|
3
|
-
x-mysql: &mysql
|
4
|
-
image: mysql:5.7
|
5
|
-
container_name: master_data_tool_mysql57
|
6
|
-
environment:
|
7
|
-
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-f3WpxNreVT2NgQry}
|
8
|
-
platform: linux/x86_64
|
9
|
-
ports:
|
10
|
-
- 127.0.0.1:${DB_PORT:-33306}:3306
|
11
|
-
volumes:
|
12
|
-
- mysql:/var/lib/mysql
|
13
|
-
command: >
|
14
|
-
mysqld
|
15
|
-
--sql-mode=NO_ENGINE_SUBSTITUTION
|
16
|
-
--character-set-server=utf8mb4
|
17
|
-
--innodb-file-per-table=1
|
18
|
-
--innodb-large-prefix
|
19
|
-
|
20
|
-
services:
|
21
|
-
mysql:
|
22
|
-
<<: *mysql
|
23
|
-
|
24
|
-
volumes:
|
25
|
-
mysql:
|
data/gemfiles/.bundle/config
DELETED
data/log/test.log
DELETED
File without changes
|
data/master_data_tool.gemspec
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "lib/master_data_tool/version"
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = "master_data_tool"
|
7
|
-
spec.version = MasterDataTool::VERSION
|
8
|
-
spec.authors = ["Takahiro Ooishi"]
|
9
|
-
spec.email = ["taka0125@gmail.com"]
|
10
|
-
|
11
|
-
spec.summary = "マスタデータの管理ツール"
|
12
|
-
spec.description = "システムが稼働する上で最初から必要なデータ(マスタデータ)を管理するツールです。"
|
13
|
-
spec.homepage = "https://github.com/taka0125/master_data_tool"
|
14
|
-
spec.required_ruby_version = ">= 2.6.0"
|
15
|
-
|
16
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
17
|
-
spec.metadata["source_code_uri"] = spec.homepage
|
18
|
-
|
19
|
-
# Specify which files should be added to the gem when it is released.
|
20
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
21
|
-
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
22
|
-
`git ls-files -z`.split("\x0").reject do |f|
|
23
|
-
(f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
24
|
-
end
|
25
|
-
end
|
26
|
-
spec.bindir = "exe"
|
27
|
-
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
28
|
-
spec.require_paths = ["lib"]
|
29
|
-
|
30
|
-
spec.add_development_dependency 'rspec'
|
31
|
-
spec.add_development_dependency 'mysql2'
|
32
|
-
spec.add_development_dependency 'psych', '~> 3.1'
|
33
|
-
spec.add_development_dependency 'appraisal'
|
34
|
-
spec.add_development_dependency 'ridgepole'
|
35
|
-
spec.add_development_dependency 'database_cleaner-active_record'
|
36
|
-
spec.add_development_dependency 'standalone_activerecord_boot_loader', '>= 0.3 '
|
37
|
-
spec.add_development_dependency 'simplecov'
|
38
|
-
|
39
|
-
spec.add_dependency 'activerecord', '>= 5.1.7'
|
40
|
-
spec.add_dependency 'activesupport'
|
41
|
-
spec.add_dependency 'thor'
|
42
|
-
spec.add_dependency 'activerecord-import'
|
43
|
-
end
|
data/scripts/drop_db.sh
DELETED
data/scripts/setup.sh
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
set -ex
|
3
|
-
|
4
|
-
CURRENT=$(cd $(dirname $0);pwd)
|
5
|
-
|
6
|
-
mysql \
|
7
|
-
-u ${DB_USERNAME} \
|
8
|
-
-h ${DB_HOST} \
|
9
|
-
-p${DB_PASSWORD} \
|
10
|
-
--port ${DB_PORT} \
|
11
|
-
-e "CREATE DATABASE IF NOT EXISTS ${DB_NAME}"
|
12
|
-
|
13
|
-
bundle exec ridgepole \
|
14
|
-
-c ${CURRENT}/../spec/dummy/config/database.yml \
|
15
|
-
--apply \
|
16
|
-
-f ${CURRENT}/../spec/dummy/db/Schemafile \
|
17
|
-
-E test
|