jsonschema_serializer 0.0.1 → 0.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5ff79bf4ed3d32004617cd27553db4d78259564
|
4
|
+
data.tar.gz: af09ee9cb24e9d22ab131be621fb6eced08c72dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2042a3ee18d60c3f8a88279d2013099a0f12e15935882fb91ebb01d5633b2a624ba9d6c1a0653489f1e3dab5cfd41c2b217be16ec98e7a1b366f444dbd84a261
|
7
|
+
data.tar.gz: c8e60dd65ddecfafe0195cb5bf05d2d7605f4d6d5aaf775b967942fc5f59de7a224068c6f4b5346a93dacd419fe5bf801a2a4ec1145148fec97df56ce78ad775
|
data/.rubocop.yml
CHANGED
@@ -14,13 +14,15 @@ Gem::Specification.new do |spec|
|
|
14
14
|
The goal behind this gem is to generate JsonSchema.
|
15
15
|
This can be done using thanks to a Builder class or
|
16
16
|
an ActiveRecord serialization module.
|
17
|
+
The project is still at an early stage so all PR or feature request will
|
18
|
+
be welcome on the Github repo
|
17
19
|
EOT
|
18
20
|
spec.homepage = "https://github.com/mberlanda/jsonschema_serializer"
|
19
21
|
spec.licenses = ['MIT']
|
20
22
|
|
21
23
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
22
24
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
23
|
-
spec.metadata = { "source_code_uri" => "https://github.com/mberlanda/
|
25
|
+
spec.metadata = { "source_code_uri" => "https://github.com/mberlanda/jsonschema_serializer" }
|
24
26
|
# if spec.respond_to?(:metadata)
|
25
27
|
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
26
28
|
# else
|
@@ -5,14 +5,10 @@ require_relative 'builder'
|
|
5
5
|
# ActiveRecord classes with the minimum effort
|
6
6
|
|
7
7
|
module JsonschemaSerializer
|
8
|
-
# :no-rdoc:
|
9
8
|
module ActiveRecord
|
10
|
-
# :no-rdoc:
|
11
9
|
def self.included(klass)
|
12
10
|
klass.extend(ClassMethods)
|
13
11
|
end
|
14
|
-
|
15
|
-
# :no-rdoc:
|
16
12
|
module ClassMethods
|
17
13
|
# Serialize an ActiveRecord class into a
|
18
14
|
# JsonschemaSerializer::Builder object
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsonschema_serializer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mauro Berlanda
|
@@ -56,6 +56,8 @@ description: |2
|
|
56
56
|
The goal behind this gem is to generate JsonSchema.
|
57
57
|
This can be done using thanks to a Builder class or
|
58
58
|
an ActiveRecord serialization module.
|
59
|
+
The project is still at an early stage so all PR or feature request will
|
60
|
+
be welcome on the Github repo
|
59
61
|
email:
|
60
62
|
- mauro.berlanda@gmail.com
|
61
63
|
executables: []
|
@@ -82,7 +84,7 @@ homepage: https://github.com/mberlanda/jsonschema_serializer
|
|
82
84
|
licenses:
|
83
85
|
- MIT
|
84
86
|
metadata:
|
85
|
-
source_code_uri: https://github.com/mberlanda/
|
87
|
+
source_code_uri: https://github.com/mberlanda/jsonschema_serializer
|
86
88
|
post_install_message:
|
87
89
|
rdoc_options:
|
88
90
|
- "--title"
|