migu 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 575e9aba3368e61fd768bc9ecb89f8476f76a1f2ef8fb30ecc22d4adc7f4b43a
4
+ data.tar.gz: d623cfa8ff2de0225bcaf15f7782bab9bfda9928f088aa8bfdb9aa8a46336d93
5
+ SHA512:
6
+ metadata.gz: e5dabb2a7b313d60fec1fd04267db995f43e5ea0a5363e06fc3b7d276af80ad837052d36020d0d0c6a67ee03a8ad1f98ee758617509e978ae3f5d43e9612bfd0
7
+ data.tar.gz: 5a56a63448ebbc80448100f1b9f8173c84154650d00edc99516bc0fd2a393214be5c1ca870473569ab90e54cb344831026f1f60685ddcb17dee32c6b9ae396b8
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.standard.yml ADDED
File without changes
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2023-06-30
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at me@moeki.dev. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gemspec
6
+
7
+ gem "rake", "~> 13.0"
8
+ gem "rspec", "~> 3.0"
data/Gemfile.lock ADDED
@@ -0,0 +1,53 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ migu (0.1.0)
5
+ activesupport (~> 4.2)
6
+ dry-cli (~> 1.0)
7
+ sqlite3 (~> 1.6)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ activesupport (4.2.11.3)
13
+ i18n (~> 0.7)
14
+ minitest (~> 5.1)
15
+ thread_safe (~> 0.3, >= 0.3.4)
16
+ tzinfo (~> 1.1)
17
+ concurrent-ruby (1.2.2)
18
+ diff-lcs (1.5.0)
19
+ dry-cli (1.0.0)
20
+ i18n (0.9.5)
21
+ concurrent-ruby (~> 1.0)
22
+ minitest (5.18.1)
23
+ rake (13.0.6)
24
+ rspec (3.12.0)
25
+ rspec-core (~> 3.12.0)
26
+ rspec-expectations (~> 3.12.0)
27
+ rspec-mocks (~> 3.12.0)
28
+ rspec-core (3.12.2)
29
+ rspec-support (~> 3.12.0)
30
+ rspec-expectations (3.12.3)
31
+ diff-lcs (>= 1.2.0, < 2.0)
32
+ rspec-support (~> 3.12.0)
33
+ rspec-mocks (3.12.5)
34
+ diff-lcs (>= 1.2.0, < 2.0)
35
+ rspec-support (~> 3.12.0)
36
+ rspec-support (3.12.1)
37
+ sqlite3 (1.6.3-arm64-darwin)
38
+ sqlite3 (1.6.3-x86_64-linux)
39
+ thread_safe (0.3.6)
40
+ tzinfo (1.2.11)
41
+ thread_safe (~> 0.1)
42
+
43
+ PLATFORMS
44
+ arm64-darwin-22
45
+ x86_64-linux
46
+
47
+ DEPENDENCIES
48
+ migu!
49
+ rake (~> 13.0)
50
+ rspec (~> 3.0)
51
+
52
+ BUNDLED WITH
53
+ 2.4.7
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 Moeki Kawakami
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,109 @@
1
+ # Migu
2
+
3
+ Migu is a migration tool for vector databases that lack a well-established migration mechanism. It is implemented as a Ruby code base.
4
+
5
+ ## Installation
6
+
7
+ Install the gem and add to the application's Gemfile by executing:
8
+
9
+ $ bundle add migu
10
+
11
+ If bundler is not being used to manage dependencies, install the gem by executing:
12
+
13
+ $ gem install migu
14
+
15
+ ## Usage
16
+
17
+ ```
18
+ $ migu help
19
+ Commands:
20
+ migu generate NAME # Generate migration file to migu/migrate/ directory
21
+ migu init # Initialize Migu SQLite3 database. migu/state.sqlite3 will be created.
22
+ migu ls # List migrations
23
+ migu migrate # Migrate all migrations
24
+ migu reset # Migu Reset
25
+ migu rollback # Rollback 1 migration
26
+ migu version # Print version
27
+ ```
28
+
29
+ ### Init
30
+
31
+ Initialize Migu SQLite3 databse for managing migration states.
32
+
33
+ ```
34
+ migu init
35
+ ```
36
+
37
+ This command will create `migu/state.sqlite3`.
38
+
39
+ ### Generate
40
+
41
+ Generate migration file to `migu/migrate/**.rb`.
42
+
43
+ ```
44
+ migu generate create_users
45
+ ```
46
+
47
+ ### Define migration class
48
+
49
+ Example:
50
+
51
+ ```ruby
52
+ class CreateUsers < Migu::Migration
53
+ def self.time
54
+ "2023-06-30 23:27:50 +0900" # Do not edit
55
+ end
56
+
57
+ def up
58
+ client = Weaviate::Client.new
59
+ client.schema.create(
60
+ # ...
61
+ )
62
+ end
63
+
64
+ def down
65
+ client.schema.delete(
66
+ # ...
67
+ )
68
+ end
69
+ end
70
+ ```
71
+
72
+ ### Migrate
73
+
74
+ ```
75
+ migu migrate
76
+ ```
77
+
78
+ ### Rollback
79
+
80
+ ```
81
+ migu rollback
82
+ ```
83
+
84
+ ### List
85
+
86
+ ```bash
87
+ $ migu ls
88
+ bundle exec migu ls
89
+ CreateUsers migrated
90
+ CreatePosts not_migrated
91
+ ```
92
+
93
+ ## Development
94
+
95
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
96
+
97
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
98
+
99
+ ## Contributing
100
+
101
+ Bug reports and pull requests are welcome on GitHub at https://github.com/moekidev/migu. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/moekidev/migu/blob/main/CODE_OF_CONDUCT.md).
102
+
103
+ ## License
104
+
105
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
106
+
107
+ ## Code of Conduct
108
+
109
+ Everyone interacting in the migu project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/moekidev/migu/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: %i[spec]
data/exe/migu ADDED
@@ -0,0 +1,105 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "dry/cli"
5
+ require "migu"
6
+
7
+ module Migu
8
+ module CLI
9
+ module Commands
10
+ extend Dry::CLI::Registry
11
+
12
+ class Version < Dry::CLI::Command
13
+ desc "Print version"
14
+
15
+ def call(*)
16
+ puts "v#{Migu::VERSION}"
17
+ end
18
+ end
19
+
20
+ class Init < Dry::CLI::Command
21
+ desc "Initialize Migu SQLite3 database. migu/state.sqlite3 will be created."
22
+
23
+ def call(*)
24
+ if Migu::State.new.db.execute("select * from sqlite_master where type = 'table' and name = 'state'").empty?
25
+ puts "Already initialized"
26
+ return
27
+ end
28
+ Migu::State.new.create_table
29
+ puts "Migu initialized"
30
+ end
31
+ end
32
+
33
+ class Reset < Dry::CLI::Command
34
+ desc "Migu Reset"
35
+
36
+ def call(*)
37
+ if Migu::State.new.db.execute("select * from sqlite_master where type = 'table' and name = 'state'").empty?
38
+ puts "Already reset"
39
+ return
40
+ end
41
+ Migu::State.new.migrated.each do |migration|
42
+ if migration.nil?
43
+ break
44
+ end
45
+ puts "==== Rollback #{migration[1]} ===="
46
+ migration_class = Migu::Migrator.new.migrations.find { |migration|
47
+ migration.name == migration[1]
48
+ }
49
+ migration_class.new.down
50
+ Migu::State.new.delete(migration[1])
51
+ end
52
+ Migu::State.new.reset_table
53
+ puts "Migu reset"
54
+ end
55
+ end
56
+
57
+ class Migrate < Dry::CLI::Command
58
+ desc "Migrate all migrations"
59
+
60
+ def call
61
+ Migu::Migrator.new.migrate
62
+ end
63
+ end
64
+
65
+ class Rollback < Dry::CLI::Command
66
+ desc "Rollback 1 migration"
67
+
68
+ def call
69
+ Migu::Migrator.new.rollback
70
+ end
71
+ end
72
+
73
+ class Generate < Dry::CLI::Command
74
+ desc "Generate migration file to migu/migrate/ directory"
75
+
76
+ argument :name, required: true, desc: "migration name"
77
+
78
+ def call(name:, **)
79
+ filepath = Migu::Generator.new.generate(name)
80
+ puts "Generated #{filepath}"
81
+ end
82
+ end
83
+
84
+ class Ls < Dry::CLI::Command
85
+ desc "List migrations"
86
+
87
+ def call(*)
88
+ Migu::Migrator.new.migrations.each do |migration|
89
+ puts "#{migration.name} #{Migu::State.new.find(migration.name) ? "migrated" : "not_migrated"}"
90
+ end
91
+ end
92
+ end
93
+
94
+ register "version", Version, aliases: ["v", "-v", "--version"]
95
+ register "init", Init
96
+ register "reset", Reset
97
+ register "migrate", Migrate
98
+ register "rollback", Rollback
99
+ register "generate", Generate
100
+ register "ls", Ls
101
+ end
102
+ end
103
+ end
104
+
105
+ Dry::CLI.new(Migu::CLI::Commands).call
@@ -0,0 +1,35 @@
1
+ require "active_support/inflector"
2
+
3
+ module Migu
4
+ class Generator
5
+ attr_reader :path
6
+
7
+ def initialize
8
+ @path = "migu/migrate"
9
+ end
10
+
11
+ def generate(name)
12
+ time = Time.now
13
+ filename = "#{time.strftime("%Y%m%d%H%M%S")}_#{name}.rb"
14
+ filepath = File.join(path, filename)
15
+ Dir.mkdir(path) unless Dir.exist?(path)
16
+ File.open(filepath, "w") do |file|
17
+ file.write(<<-EOS)
18
+ class #{name.camelize} < Migu::Migration
19
+ def self.time
20
+ "#{time.to_s}"
21
+ end
22
+
23
+ def up
24
+ end
25
+
26
+ def down
27
+ end
28
+ end
29
+ EOS
30
+
31
+ return filepath
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,12 @@
1
+ module Migu
2
+ class Migration
3
+ def self.time
4
+ end
5
+
6
+ def up
7
+ end
8
+
9
+ def down
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,36 @@
1
+ module Migu
2
+ class Migrator
3
+ attr_reader :migrations
4
+
5
+ def initialize(migrations = Migu::Migration.subclasses)
6
+ @migrations = migrations.sort { |a, b| a.time <=> b.time }
7
+ end
8
+
9
+ def state
10
+ Migu::State.new
11
+ end
12
+
13
+ def migrate
14
+ migrations.each do |migration|
15
+ unless state.find(migration.name)
16
+ puts "==== Migrate #{migration.name} ===="
17
+ migration.new.up
18
+ state.insert(migration.name, migration.time.to_s)
19
+ end
20
+ end
21
+ end
22
+
23
+ def rollback
24
+ if state.migrated.empty?
25
+ puts "==== No migrations to rollback ===="
26
+ return
27
+ end
28
+ migration = migrations.find { |migration|
29
+ migration.name == state.migrated.last[1]
30
+ }
31
+ puts "==== Rollback #{migration.name} ===="
32
+ migration.new.down
33
+ state.delete(migration.name)
34
+ end
35
+ end
36
+ end
data/lib/migu/state.rb ADDED
@@ -0,0 +1,63 @@
1
+ require "sqlite3"
2
+
3
+ module Migu
4
+ class State
5
+ attr_reader :db
6
+
7
+ def initialize
8
+ Dir.mkdir("migu") unless Dir.exist?("migu")
9
+ File.open("migu/state.sqlite3", "w") {} unless File.exist?("migu/state.sqlite3")
10
+ @db = SQLite3::Database.new("migu/state.sqlite3")
11
+ end
12
+
13
+ def create_table
14
+ if db.execute("select * from sqlite_master where type = 'table' and name = 'state'").empty?
15
+ rows = db.execute <<-SQL
16
+ create table state (
17
+ id integer primary key autoincrement,
18
+ migration_name text not null,
19
+ defined_at datetime not null,
20
+ created_at datetime not null
21
+ );
22
+ SQL
23
+ end
24
+ end
25
+
26
+ def reset_table
27
+ unless db.execute("select * from sqlite_master where type = 'table' and name = 'state'").empty?
28
+ db.execute("drop table state")
29
+ end
30
+ end
31
+
32
+ def insert(migration_name, defined_at, created_at = Time.now.to_s)
33
+ db.execute(
34
+ "insert into state (migration_name, defined_at, created_at) values (?, ?, ?)",
35
+ migration_name,
36
+ defined_at,
37
+ created_at
38
+ ) do |row|
39
+ return row
40
+ end
41
+ end
42
+
43
+ def delete(migration_name)
44
+ db.execute("delete from state where migration_name = ?", migration_name) do |row|
45
+ return row
46
+ end
47
+ end
48
+
49
+ def find(migration_name)
50
+ db.execute("select * from state where migration_name = ?", migration_name) do |row|
51
+ return row
52
+ end
53
+ end
54
+
55
+ def migrated
56
+ rows = []
57
+ db.execute("select * from state order by defined_at asc") do |row|
58
+ rows << row
59
+ end
60
+ rows
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Migu
4
+ VERSION = "0.1.0"
5
+ end
data/lib/migu.rb ADDED
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "migu/version"
4
+ require_relative "migu/migration"
5
+ require_relative "migu/migrator"
6
+ require_relative "migu/state"
7
+ require_relative "migu/generator"
8
+
9
+ Dir['migu/migrate/*.rb'].each do |file|
10
+ load file
11
+ end
12
+
13
+ module Migu
14
+ class Error < StandardError; end
15
+ # Your code goes here...
16
+ end
data/migu.gemspec ADDED
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/migu/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "migu"
7
+ spec.version = Migu::VERSION
8
+ spec.authors = ["Moeki Kawakami"]
9
+ spec.email = ["me@moeki.dev"]
10
+
11
+ spec.summary = "Ruby code base migration tool."
12
+ spec.description = "Ruby code base migration tool."
13
+ spec.homepage = "https://github.com/moekidev/migu"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = ">= 2.7.0"
16
+
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ spec.metadata["source_code_uri"] = "https://github.com/moekidev/migu"
19
+
20
+ # Specify which files should be added to the gem when it is released.
21
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
22
+ spec.files = Dir.chdir(__dir__) do
23
+ `git ls-files -z`.split("\x0").reject do |f|
24
+ (File.expand_path(f) == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor)})
25
+ end
26
+ end
27
+ spec.bindir = "exe"
28
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
29
+ spec.require_paths = ["lib"]
30
+
31
+ # Uncomment to register a new dependency of your gem
32
+ spec.add_dependency "sqlite3", "~> 1.6"
33
+ spec.add_dependency "dry-cli", "~> 1.0"
34
+ spec.add_dependency "activesupport", "~> 4.2"
35
+
36
+ # For more information and examples about making a new gem, check out our
37
+ # guide at: https://bundler.io/guides/creating_gem.html
38
+ end
data/sig/migu.rbs ADDED
File without changes
metadata ADDED
@@ -0,0 +1,106 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: migu
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Moeki Kawakami
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2023-06-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: sqlite3
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.6'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: dry-cli
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: activesupport
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '4.2'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '4.2'
55
+ description: Ruby code base migration tool.
56
+ email:
57
+ - me@moeki.dev
58
+ executables:
59
+ - migu
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".rspec"
64
+ - ".standard.yml"
65
+ - CHANGELOG.md
66
+ - CODE_OF_CONDUCT.md
67
+ - Gemfile
68
+ - Gemfile.lock
69
+ - LICENSE.txt
70
+ - README.md
71
+ - Rakefile
72
+ - exe/migu
73
+ - lib/migu.rb
74
+ - lib/migu/generator.rb
75
+ - lib/migu/migration.rb
76
+ - lib/migu/migrator.rb
77
+ - lib/migu/state.rb
78
+ - lib/migu/version.rb
79
+ - migu.gemspec
80
+ - sig/migu.rbs
81
+ homepage: https://github.com/moekidev/migu
82
+ licenses:
83
+ - MIT
84
+ metadata:
85
+ homepage_uri: https://github.com/moekidev/migu
86
+ source_code_uri: https://github.com/moekidev/migu
87
+ post_install_message:
88
+ rdoc_options: []
89
+ require_paths:
90
+ - lib
91
+ required_ruby_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: 2.7.0
96
+ required_rubygems_version: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
101
+ requirements: []
102
+ rubygems_version: 3.3.26
103
+ signing_key:
104
+ specification_version: 4
105
+ summary: Ruby code base migration tool.
106
+ test_files: []