welcome_application_record 1.0.1 → 1.0.2
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 +4 -4
- data/lib/welcome_application_record.rb +1 -1
- metadata +30 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9b14d5f63c71a703509d4fd38c39a93c37eac681
|
|
4
|
+
data.tar.gz: 91f15911308c42c683e8d00fecde018b60f3a71f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 92abda34912408a9c483ebe443ee189cb7027abfb045dc5b2e051f7cedd4dcbf3660cd9637c32264b65c4180e2ec73d2dd6ac28dd194ca3964ec5b932510942a
|
|
7
|
+
data.tar.gz: 1faf06ab4e5fae5e17be5bda262f4bd9e31788f2b9b0dc34ea21bc71b59f3ea1aafdf795b05af66a4bfa634e7946011f3cbaf285b405418d46812e4c684f49f4
|
|
@@ -8,7 +8,7 @@ class WelcomeApplicationRecord
|
|
|
8
8
|
f << "end"
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
-
model_files = Dir["#{project_path}/app/models/*.rb"]
|
|
11
|
+
model_files = Dir["#{project_path}/app/models/*.rb", "#{project_path}/app/models/**/*.rb"]
|
|
12
12
|
model_files.each do |file_path|
|
|
13
13
|
current_content = File.read(file_path)
|
|
14
14
|
replace_content = current_content.gsub("< ActiveRecord::Base", "< ApplicationRecord")
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: welcome_application_record
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tai Tri Vo
|
|
@@ -9,7 +9,35 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
date: 2019-08-07 00:00:00.000000000 Z
|
|
12
|
-
dependencies:
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: bundler
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '1.16'
|
|
20
|
+
type: :development
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '1.16'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: rake
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '10.0'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '10.0'
|
|
13
41
|
description: A simple gem which convert to extend ApplicationRecord instead to directly
|
|
14
42
|
extend ActiveRecord::Base
|
|
15
43
|
email:
|