souls 1.0.0 → 1.0.4

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: 802c671c18062437af5878d02916f480ff2492c09bf92abfe23e9e96aa96acac
4
- data.tar.gz: b234b857bf8e99649404103e3d5880459524dd9b32213982f4e146bfaee98c0e
3
+ metadata.gz: 9e3525a04bc649413b5c96f81f3c1a9cbebc57c37b4b87375fb6c559898a6ec2
4
+ data.tar.gz: a857ecd8ba137e6a9c4171c66b35293929a814266e34670cebc7ef0b1d46200f
5
5
  SHA512:
6
- metadata.gz: 39a59330870e6db812c0c6313bb8e3c32d130aac558dbd05de08e9437ac788b97b22b4f75c2e33e591b17f5106f8d0e95522c882e390d482fd3826a4334491c6
7
- data.tar.gz: 3597458e06f3cf5e31574eebfb4f27516e897765dc7420ef888997b7820852f02d921dcc45eb3f560fe9bf5e982632aaf7598e89eef5372fd1628a886af64c1b
6
+ metadata.gz: 411a5d3163622009602ce86d691892b904a5c13bd6154de9db149dec09a9f51199a2c2dec64faee840ba847fd20badd1b6b01fb38a3f7f1c5dd88067d0a4d522
7
+ data.tar.gz: 8f637b81a378f151aff45116d88c3cd081a360c56bf6a51729ae8b336be95ea4bb54dafb57433d43ca7dd4e819c95633bc4168291a148af32e601239355d008f
data/README.md CHANGED
@@ -12,7 +12,7 @@
12
12
  <a aria-label="Downloads Number" href="https://rubygems.org/gems/souls">
13
13
  <img alt="" src="https://badgen.net/rubygems/dt/souls">
14
14
  </a>
15
- <a aria-label="License" href="https://github.com/elsoul/souls/blob/master/LICENSE">
15
+ <a aria-label="License" href="https://github.com/elsoul/souls/blob/master/LICENSE.txt">
16
16
  <img alt="" src="https://badgen.net/badge/license/Apache/blue">
17
17
  </a>
18
18
  </p>
@@ -65,6 +65,10 @@ module Souls
65
65
  def create_migration(class_name)
66
66
  pluralized_class_name = class_name.underscore.pluralize
67
67
  singularized_class_name = class_name.underscore.singularize
68
+ Souls::DB.new.invoke(:model, [singularized_class_name], {})
69
+ Souls::DB.new.invoke(:rspec_model, [singularized_class_name], {})
70
+ Souls::DB.new.invoke(:model_rbs, [singularized_class_name], {})
71
+ puts(Paint["Created file! : ", :green])
68
72
  system("rake db:create_migration NAME=create_#{pluralized_class_name}")
69
73
  file_path = Dir["db/migrate/*create_#{pluralized_class_name}.rb"].first
70
74
  File.open(file_path, "w") do |f|
@@ -80,10 +84,6 @@ module Souls
80
84
  end
81
85
  TEXT
82
86
  end
83
- Souls::DB.new.invoke(:create_migration_rbs, [pluralized_class_name], {})
84
- Souls::DB.new.invoke(:model, [singularized_class_name], {})
85
- Souls::DB.new.invoke(:rspec_model, [singularized_class_name], {})
86
- Souls::DB.new.invoke(:model_rbs, [singularized_class_name], {})
87
87
  rescue Thor::Error => e
88
88
  raise(Thor::Error, e)
89
89
  end
@@ -119,7 +119,7 @@ module Souls
119
119
  else
120
120
  get_columns_num(class_name: class_name)
121
121
  end
122
- relation_params = cols.select { |col| col[:column_name].match?(/_id$/) }
122
+ relation_params = cols.select { |n| n[:column_name].match?(/_id$/) }
123
123
  user_check =
124
124
  relation_params.map do |param|
125
125
  param[:column_name] == "user_id"
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "1.0.0".freeze
2
+ VERSION = "1.0.4".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.4
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.4
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: souls
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2021-10-11 00:00:00.000000000 Z
13
+ date: 2021-10-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport