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: c303e9dfbed28743e63d0c5d542eb7c7ab357b9e2b7fbf8d0ca2a8ab40a7a551
4
- data.tar.gz: 0dd07f1e245f0c56fd8ab7857c92ed2a4c94dbc8213102c643f606ee513132ae
3
+ metadata.gz: 3b8022a4bc27211e7fef3326880c967d4ad80c564f3783e52ce93a606f7ca962
4
+ data.tar.gz: 04d994257f27de7bc89108369539380cf4cea95b79ec13d7a52ee6b9593f852f
5
5
  SHA512:
6
- metadata.gz: e26d3c12ade048b4ba9e45a170c88d5a837b78af8a2c09893b8da2643ac1c1f10e76841a2942874df72f47e76713450bed3b24d3c4c4c94f802cf1745de021fc
7
- data.tar.gz: 84d6fcc5db36955ce9b20532451ef09bd92620e5eafcca39523885392481a996ad43517ce866a1395d2f2f6e020ed4bca4113285e9344d7e1e20b55799093fb3
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 :names, type: :array, desc: 'Specify command class name.'
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
 
@@ -8,6 +8,7 @@ class Pleiades::InstallGenerator < Rails::Generators::Base
8
8
  #{cst::CONFIG}
9
9
  #{cst::INITIALIZER}
10
10
  #{cst::ROUTER}
11
+ #{cst::ROUTING_PROXY}
11
12
  ]
12
13
 
13
14
  file_paths.each { |f| copy_file File.basename(f), f }
@@ -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(command_file_path), command_file_path
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
  )
@@ -1,3 +1,3 @@
1
1
  module Pleiades
2
- VERSION = '0.1.2'.freeze
2
+ VERSION = '0.1.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pleiades
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - HarukiKubota