factory_bot_generator 0.1.0 → 0.2.0

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: e48d0a18a5138212e9933b02a5c2eba49ede8cdb
4
- data.tar.gz: 155d667b33ac7287b44997329717317496a7ef83
3
+ metadata.gz: a8e2b57e2af67871c6b6c54596841030db50b964
4
+ data.tar.gz: 61c9edbd7b1c1e54ed563874472b69e6ae8ce3d6
5
5
  SHA512:
6
- metadata.gz: 4bd645ba0074325ece094174d93468b0070c2e5f38c0c43a1f63cfee87b2ddf0744b8e4ab2073957f758819d8645180f29b798d13645f7fec7f98a147f30ac9e
7
- data.tar.gz: 51b993d3d4f5c155efc7191e9aee43a3834826277323cfbbe13f290a7b7bcdfe46ab47a404ce64233ea4ab15fa6f9d74fdae9aa2337c7b5899665fa139857589
6
+ metadata.gz: b5211badac305503f7a27ce5e40e30d4a5bdbfd00ac0408f1b1e9bef253c41ae083dd0b3781783a044fac1d29d7d2005c21bea40cd88be000ef932fd748d80f0
7
+ data.tar.gz: 2d87195a69608eb85a7ab78611a33b86e61fcb9703269684e3adc0d314a5c0f3d9b3ad226a1d205149d53a98966a92bee57401a84afcabc58195718e1b723dc8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- factory_bot_generator (0.1.0)
4
+ factory_bot_generator (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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 = FactoryGenerator::QUOTE_AROUND_VALUE_TYPES.include?(record.class.columns_hash[column].type) %>
4
+ <% quote = FactoryBotGenerator::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
@@ -20,7 +20,7 @@ module FactoryBotGenerator
20
20
 
21
21
  def render
22
22
  ActionView::Base.new(File.dirname(__FILE__)).render(
23
- file: 'factory_generator.erb',
23
+ file: 'factory_bot_generator.erb',
24
24
  locals: {
25
25
  name: name,
26
26
  columns: columns,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FactoryBotGenerator
4
- VERSION = '0.1.0'
4
+ VERSION = '0.2.0'
5
5
  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.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serge Kislak
@@ -114,9 +114,9 @@ files:
114
114
  - bin/console
115
115
  - bin/setup
116
116
  - factory_bot_generator.gemspec
117
+ - lib/factory_bot_generator.erb
117
118
  - lib/factory_bot_generator.rb
118
119
  - lib/factory_bot_generator/version.rb
119
- - lib/factory_generator.erb
120
120
  homepage: ''
121
121
  licenses:
122
122
  - MIT