grape_resource 0.1.5 → 0.1.6
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/Gemfile.lock +2 -2
- data/grape_resource.gemspec +1 -1
- data/lib/generators/grape_resource/generator_helpers.rb +1 -1
- data/lib/grape_resource/version.rb +1 -1
- 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: 421577f147eded9d9bbd5d8769e8452465fe3b624a5a10c85f559cae2952cf3c
|
|
4
|
+
data.tar.gz: 9864559eb19a2c13911ce59d8af68b07456a7354038c28215e37d2e4d2ccf852
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 871ae765c5e9c72239083c0ea5313eccc78fc1105b4d457e09c338e9c5cc2aaf3acaa5df75cf898458468bf183345cdcd2c0368e43bd995cefd15a9d9f74746b
|
|
7
|
+
data.tar.gz: 122872c7877d184d5bf361931b075901eb737363d771d0311ba4f5822f27ae4659e2f08ec8a262f9c0a643902f12d1c0c1deaa0178833b8ded0cc56d7045f2bb
|
data/Gemfile.lock
CHANGED
data/grape_resource.gemspec
CHANGED
|
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
|
|
|
7
7
|
spec.name = "grape_resource"
|
|
8
8
|
spec.version = GrapeResource::VERSION
|
|
9
9
|
spec.authors = ["Yunan Helmy", "Ashar Mubasir"]
|
|
10
|
-
spec.email = ["helmy@extrainteger.com", "
|
|
10
|
+
spec.email = ["helmy@extrainteger.com", "asharmubasir@gmail.com"]
|
|
11
11
|
|
|
12
12
|
spec.summary = "GrapeResource is opinionated resource generator for your Grape API"
|
|
13
13
|
spec.description = "GrapeResource is opinionated resource generator for your Grape API mounted inside Rails"
|
|
@@ -97,7 +97,7 @@ module GrapeResource
|
|
|
97
97
|
def attributes_for_params
|
|
98
98
|
@entities = {}
|
|
99
99
|
editable_attributes.map do |col|
|
|
100
|
-
@entities[col.name] = col.type.downcase
|
|
100
|
+
@entities[col.name] = col.type.downcase.in?(["text", "uuid"]) ? "String" : col.type.capitalize
|
|
101
101
|
end
|
|
102
102
|
@entities
|
|
103
103
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: grape_resource
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yunan Helmy
|
|
@@ -71,7 +71,7 @@ description: GrapeResource is opinionated resource generator for your Grape API
|
|
|
71
71
|
inside Rails
|
|
72
72
|
email:
|
|
73
73
|
- helmy@extrainteger.com
|
|
74
|
-
-
|
|
74
|
+
- asharmubasir@gmail.com
|
|
75
75
|
executables: []
|
|
76
76
|
extensions: []
|
|
77
77
|
extra_rdoc_files: []
|