cabot 0.0.4 → 0.0.5
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/cabot.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91f4d00cb6b418dff412b078cb0adb13bcad7eb03a096018d183e9ef3d4c26e7
|
4
|
+
data.tar.gz: 145299ecafad820715b48ac94740b70c15ffc618a92a36c2b52279fb81964a58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 675cdd4d9f8ef50cc341fc38f538a3978db9fabcca950f80f625173ab9da6e3355dc2e7c263c6aa11bec9999fc84a934ea8b1011a4fcbcd8e080c1e871059ab0
|
7
|
+
data.tar.gz: 66fdc41504bc1c6204f1e8d822d0a5703b849485907a06414cc53f041a87e32598ad134ab58679f7db69c12985ef730214bf6267bcb99774eea41ebb368bdb9c
|
data/lib/cabot.rb
CHANGED
@@ -3,7 +3,7 @@ class Cabot
|
|
3
3
|
# GET
|
4
4
|
module Index
|
5
5
|
def self.call(model, current_user = {})
|
6
|
-
object = model.capitalize.constantize
|
6
|
+
object = model.to_s.capitalize.constantize
|
7
7
|
params = Cabot::Parameters::Create.send(model)
|
8
8
|
|
9
9
|
object::Index.(params: params, current_user: current_user)
|
@@ -33,7 +33,7 @@ class Cabot
|
|
33
33
|
# PUT
|
34
34
|
module Update
|
35
35
|
def self.call(model, current_user = {})
|
36
|
-
object = model.capitalize.constantize
|
36
|
+
object = model.to_s.capitalize.constantize
|
37
37
|
params = Cabot::Parameters::Update.send(model)
|
38
38
|
|
39
39
|
object::Update.(params: params, current_user: current_user)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cabot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexandre Ovcharov
|
@@ -39,7 +39,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
39
39
|
version: '0'
|
40
40
|
requirements: []
|
41
41
|
rubyforge_project:
|
42
|
-
rubygems_version: 2.7.
|
42
|
+
rubygems_version: 2.7.7
|
43
43
|
signing_key:
|
44
44
|
specification_version: 4
|
45
45
|
summary: FatoryBot alternative for trailblazer
|