json-schema-serializer 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 466a7da01b15a1e212581fdac863dbea33ff469fdc41aa8b158a7203f4e8082e
4
- data.tar.gz: 29e92d4f1bb61a91ded2b2d88f8ab3afe7a2470678b25f6b3bf2e15f1998637c
3
+ metadata.gz: f207536a1ba36cfa5ed2e197638d815ab1eb24e71abd373889eefb86042c38f8
4
+ data.tar.gz: 052f1f62be3e4742036b7e7fa5088b28bef3460c1111527adf677774f144d461
5
5
  SHA512:
6
- metadata.gz: c8c9a3c7b6d722b06c898feb3b47fdc50eeaa7413a52d97df02e620fa8acb1834bee8bef88a13f112dec849d2efdf1090b68fd6d86d40e9237f8ef7d364b8bbc
7
- data.tar.gz: 4ff50230eeaa258532d6219e319879805a9a596629b87f195f1d82c8aa048f1d8a9f9a66963598521f71f193363ba8684141e76bb81a28ed33b43feaf5f222ae
6
+ metadata.gz: 66c04803cfc518eac8d2db50948f7ccbd48fef7d9ac8e757dc81b625bb87d21c10edd9af0d41d7e74278354e5da658642d05a8a62f16aeb3b3ec5dda73eb32df
7
+ data.tar.gz: 53597adc44e4a90c81536b8edd629affdd9f7fbbbbee07cd3fd3f8f4d9accb94220ad1c9f00b1a34f9548ee8a154e3cc0938e76aded65960929824ff0a154c74
data/.rubocop.yml CHANGED
@@ -19,3 +19,5 @@ Style/PercentLiteralDelimiters:
19
19
  ! '%x': ()
20
20
  Airbnb/SimpleModifierConditional:
21
21
  Enabled: false
22
+ RSpec/EmptyExampleGroup:
23
+ Enabled: false
@@ -12,16 +12,10 @@ Gem::Specification.new do |spec|
12
12
  spec.summary = "JSON Schema based serializer"
13
13
  spec.homepage = "https://github.com/Narazaka/json-schema-serializer"
14
14
 
15
- # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
16
- # to allow pushing to a single host or delete this section to allow pushing to any host.
17
- if spec.respond_to?(:metadata)
18
- spec.metadata["homepage_uri"] = spec.homepage
19
- spec.metadata["source_code_uri"] = "https://github.com/Narazaka/json-schema-serializer.git"
20
- spec.metadata["changelog_uri"] = "https://github.com/Narazaka/json-schema-serializer/blob/master/CHANGELOG.md"
21
- else
22
- raise "RubyGems 2.0 or newer is required to protect against " \
23
- "public gem pushes."
24
- end
15
+ spec.metadata["homepage_uri"] = spec.homepage
16
+ spec.metadata["source_code_uri"] = "https://github.com/Narazaka/json-schema-serializer.git"
17
+ spec.metadata["changelog_uri"] = "https://github.com/Narazaka/json-schema-serializer/blob/master/CHANGELOG.md"
18
+ spec.metadata["documentation_uri"] = "https://www.rubydoc.info/gems/#{spec.name}/#{spec.version}"
25
19
 
26
20
  # Specify which files should be added to the gem when it is released.
27
21
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -23,6 +23,7 @@ module JSON
23
23
  default = try_hash(schema, :default)
24
24
  format = try_hash(schema, :format)
25
25
  obj = default if obj.nil?
26
+
26
27
  if options[:inject_key]
27
28
  inject_key = try_hash(schema, options[:inject_key])
28
29
  injector = try_hash(options[:injectors], inject_key) if inject_key
@@ -1,7 +1,7 @@
1
1
  module Json
2
2
  module Schema
3
3
  module Serializer
4
- VERSION = "1.2.0".freeze
4
+ VERSION = "1.2.1".freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json-schema-serializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Narazaka
@@ -159,7 +159,6 @@ extra_rdoc_files: []
159
159
  files:
160
160
  - ".github/workflows/ruby.yml"
161
161
  - ".gitignore"
162
- - ".prettierignore"
163
162
  - ".prettierrc"
164
163
  - ".rspec"
165
164
  - ".rubocop.yml"
@@ -182,6 +181,7 @@ metadata:
182
181
  homepage_uri: https://github.com/Narazaka/json-schema-serializer
183
182
  source_code_uri: https://github.com/Narazaka/json-schema-serializer.git
184
183
  changelog_uri: https://github.com/Narazaka/json-schema-serializer/blob/master/CHANGELOG.md
184
+ documentation_uri: https://www.rubydoc.info/gems/json-schema-serializer/1.2.1
185
185
  post_install_message:
186
186
  rdoc_options: []
187
187
  require_paths:
data/.prettierignore DELETED
@@ -1,2 +0,0 @@
1
- # for power-assert
2
- /spec