Skip to content

Commit

Permalink
Patch empty value and Introspection change (#9)
Browse files Browse the repository at this point in the history
* Introspection change
* let empty value be a child of the generator to get standard functions
  • Loading branch information
matt-taylor authored Mar 14, 2022
1 parent 957cb1f commit 658f0f0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
json_schematize (0.5.0)
json_schematize (0.5.2)

GEM
remote: https://rubygems.org/
Expand Down
1 change: 1 addition & 0 deletions lib/json_schematize.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
require "json_schematize/base"
require "json_schematize/boolean"
require "json_schematize/generator"
require "json_schematize/empty_value"
require "json_schematize/version"

module JsonSchematize
Expand Down
5 changes: 4 additions & 1 deletion lib/json_schematize/empty_value.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# frozen_string_literal: true

class JsonSchematize::EmptyValue
require "json_schematize/generator"

class JsonSchematize::EmptyValue < ::JsonSchematize::Generator
def initialize(*)
super
end
end
1 change: 0 additions & 1 deletion lib/json_schematize/generator.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# frozen_string_literal: true

require "json_schematize/empty_value"
require "json_schematize/field"
require "json_schematize/introspect"

Expand Down
2 changes: 1 addition & 1 deletion lib/json_schematize/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module JsonSchematize
VERSION = "0.5.1"
VERSION = "0.5.2"
end

0 comments on commit 658f0f0

Please sign in to comment.