schemable 0.1.1 → 0.1.2

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: 23d1aa40009aa3403271634f66a3bde5b008708f20d65854f623760fe7be1a1c
4
- data.tar.gz: 2afc50495c89114cf8215eeb3793d3abc30f4339b81cd19dc2372eb5dc7196fb
3
+ metadata.gz: ff54bf6e14c37d3fdc76b31bd73073334d753539e3dea0e0deecf63268863633
4
+ data.tar.gz: debcf929b72f6ac7afdcc4906aeb80407a0b5aa9dfdde86f401dfb17099af0b7
5
5
  SHA512:
6
- metadata.gz: 1e5e2039c722547d1464572d4afed575c63f15fde2c3320b01d9e20884e2044673a792ab0716c5a5f87769df4e58af40c79e29683c2fae11f816533dae13bb68
7
- data.tar.gz: dbd6c7b1ac35ce5045e1ed2a00eafffb0758fb03937942e6bb435c1dafb1b06c6f9db756295faf9ed5db99f90dbd202f47921b0e0d22f3beb90592342e763cd1
6
+ metadata.gz: d159f7c5489bf55387f20d8552d6f6c393396a9692798de7f74e34b73a1a9ae645fdffd82fc66f8264a1ab385da0136d4ab663e5952e6e3bc0f89a2b255addcb
7
+ data.tar.gz: c509ac7d2711b2ff22b15fed2430fe4f434ddd3b842fca01c6a42f263e0b9027f950a302b410b348ac369c4bf35549f3e178c2596d687562269fdc86df2dd7cd
@@ -12,7 +12,7 @@ module Schemable
12
12
  end
13
13
 
14
14
  def copy_initializer
15
- target_path = "lib/swagger/definitions/#{@model_name.underscore.downcase.singlurize}.rb"
15
+ target_path = "lib/swagger/definitions/#{@model_name.underscore.downcase.singularize}.rb"
16
16
 
17
17
  if Rails.root.join(target_path).exist?
18
18
  say_status('skipped', 'Model definition already exists')
@@ -29,7 +29,7 @@ module Swagger
29
29
  attr_accessor :instance
30
30
 
31
31
  def initialize
32
- @instance ||= JSONAPI::Serializable::Renderer.new.render(FactoryBot.create(:#{@model_name.underscore.downcase.singlurize}), class: serializers_map, include: [])
32
+ @instance ||= JSONAPI::Serializable::Renderer.new.render(FactoryBot.create(:#{@model_name.underscore.downcase.singularize}), class: serializers_map, include: [])
33
33
  end
34
34
 
35
35
  def serializer
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Schemable
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schemable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Muhammad Nawzad