pleiades 0.1.2 → 0.1.3
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b8022a4bc27211e7fef3326880c967d4ad80c564f3783e52ce93a606f7ca962
|
4
|
+
data.tar.gz: 04d994257f27de7bc89108369539380cf4cea95b79ec13d7a52ee6b9593f852f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5556d2ba1221927d585b4e007067686b3995a7d339581281feb8f9c0be72006b0cfb2e5db8708a09af637a89a690840793a061b8f1f3806d9f37d5239e83f8ca
|
7
|
+
data.tar.gz: ed4aab7a461816e4b9191a9c3e6a31b3b201cd6b982f0eaa3af7d790247049ad23db216130cda05a7c4d930c5dd54146df05d903a6b7e8979fb6203a16a30698
|
@@ -4,12 +4,14 @@ require 'pleiades/core/config'
|
|
4
4
|
class Pleiades::CommandGenerator < Rails::Generators::NamedBase
|
5
5
|
source_root File.expand_path('templates', __dir__)
|
6
6
|
|
7
|
-
argument :
|
7
|
+
argument :name, type: :string, desc: 'Specify command class name.'
|
8
|
+
argument :names, type: :array, desc: 'Specify command class name.', default: []
|
8
9
|
|
9
10
|
dir_options =
|
10
11
|
{
|
11
12
|
aliases: '-d',
|
12
|
-
desc: 'Specify the directory to generate commands.'
|
13
|
+
desc: 'Specify the directory to generate commands.',
|
14
|
+
default: ''
|
13
15
|
}
|
14
16
|
class_option :dir, dir_options
|
15
17
|
|
@@ -19,7 +19,7 @@ class Pleiades::SetupGenerator < Rails::Generators::Base
|
|
19
19
|
def gen_base_command
|
20
20
|
return if base_command_exist?
|
21
21
|
|
22
|
-
copy_file File.basename(
|
22
|
+
copy_file File.basename(base_command_path), base_command_path
|
23
23
|
end
|
24
24
|
|
25
25
|
def gen_command_concern
|
@@ -51,12 +51,12 @@ class Pleiades::SetupGenerator < Rails::Generators::Base
|
|
51
51
|
# UserModelのマイグレーションファイル生成
|
52
52
|
def gen_user_table
|
53
53
|
generate 'model', "user #{migration_arguments}"
|
54
|
-
|
54
|
+
|
55
55
|
user_schemas.each_pair do |key, val|
|
56
56
|
next unless val[:options]
|
57
57
|
|
58
58
|
inject_into_file(
|
59
|
-
migration_file_path,
|
59
|
+
Dir.glob(migration_file_path).last,
|
60
60
|
", #{val[:options]}",
|
61
61
|
after: key
|
62
62
|
)
|
data/lib/pleiades/version.rb
CHANGED