cabot 0.1.0 → 0.1.1
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 +3 -4
- 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: 727da6ae13acdda5290c3c8901550a0f15df76ded763268828aa01dda68d1d5b
|
|
4
|
+
data.tar.gz: 181fcc35438ef2bf295aaa84c99dccac59717b24cf50d25dcca2649f03433971
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 279baa4a5738552194d7283c210ada00094c7fb8fe69be0b7cb7871e1c77c98e103387378a74ca9faaf663d0a82240ef105fd234bf4d659fb3644c2d5e142dd2
|
|
7
|
+
data.tar.gz: 42fd3f6452060c278361d7176026419429b58fd4c955c75a2aae7292eec064b3bf602509e2f3626022e1cd0d70e433980c2f3bbdf1ce01c70b4edca2c666b85c
|
data/lib/cabot.rb
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# Cabot gem
|
|
1
2
|
class Cabot
|
|
2
3
|
def initialize(result)
|
|
3
4
|
@result = result
|
|
@@ -11,13 +12,11 @@ class Cabot
|
|
|
11
12
|
@serializer ||= @result[:serializer]
|
|
12
13
|
end
|
|
13
14
|
|
|
14
|
-
|
|
15
15
|
# GET
|
|
16
16
|
module Index
|
|
17
17
|
def self.call(model, current_user = {})
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
@params = Cabot::Parameters::Index.send(model)
|
|
18
|
+
object = model.to_s.camelize.constantize
|
|
19
|
+
params = Cabot::Parameters::Index.send(model)
|
|
21
20
|
|
|
22
21
|
Cabot.new(object::Index.(params: params, current_user: current_user))
|
|
23
22
|
end
|
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.1.
|
|
4
|
+
version: 0.1.1
|
|
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
|