factory_bot_generator 0.2.0 → 0.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
  SHA1:
3
- metadata.gz: a8e2b57e2af67871c6b6c54596841030db50b964
4
- data.tar.gz: 61c9edbd7b1c1e54ed563874472b69e6ae8ce3d6
3
+ metadata.gz: 96174c6da4981e6de3af9a8f7e515c56dee456bb
4
+ data.tar.gz: 951432e8e9f0726889d6dac40e02bc17457678c7
5
5
  SHA512:
6
- metadata.gz: b5211badac305503f7a27ce5e40e30d4a5bdbfd00ac0408f1b1e9bef253c41ae083dd0b3781783a044fac1d29d7d2005c21bea40cd88be000ef932fd748d80f0
7
- data.tar.gz: 2d87195a69608eb85a7ab78611a33b86e61fcb9703269684e3adc0d314a5c0f3d9b3ad226a1d205149d53a98966a92bee57401a84afcabc58195718e1b723dc8
6
+ metadata.gz: bb5d882a2a2154b35ac4819c4c1bff557924bce8db78826f4ad41bc925891eb495fa0433ae78e5f1196129e3e9553b491ba2fe7801d221151a84be0c808ce72c
7
+ data.tar.gz: 20bf4cf1d64f7f6fe0ef3b07e577be48b46b2af4152087829092ff9ca46a31cd499f588d091bd2cab687bc318816b230870a389534820b640cd4c0a1d84767d7
data/.gitignore CHANGED
@@ -11,3 +11,5 @@
11
11
  .rspec_status
12
12
 
13
13
  .idea/
14
+
15
+ Gemfile.lock
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- factory_bot_generator (0.2.0)
4
+ factory_bot_generator (0.2.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FactoryBotGenerator
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
@@ -1,7 +1,7 @@
1
1
  FactoryBot.define do
2
2
  factory :<%= name %>, class: <%= record.class %> do
3
3
  <% columns.each do |column| %>
4
- <% quote = FactoryBotGenerator::QUOTE_AROUND_VALUE_TYPES.include?(record.class.columns_hash[column].type) %>
4
+ <% quote = FactoryBotGenerator::Base::QUOTE_AROUND_VALUE_TYPES.include?(record.class.columns_hash[column].type) %>
5
5
  <%= "%-#{indent}s" % column %> <%== "'" if quote %><%== record.public_send(column) %><%== "'" if quote %>
6
6
  <% end %>
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factory_bot_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serge Kislak