souls 0.9.6 → 0.9.7

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
  SHA256:
3
- metadata.gz: 76d16e22f896d21fad8dee314b75ddc65e42507d8fdabd494ed8f250ec785457
4
- data.tar.gz: 022b54f4f66325a19fb8877662411d6d4d00cf667bc2c04d83222dd77bffa1da
3
+ metadata.gz: 889a302559758a12cf2318206787f3848ca961cee8505218ff0414c797fd3f48
4
+ data.tar.gz: 9cc808cb6af449c3330b6fa67e559875621c3f45ab7268f1c65e3c3d1a8be0ad
5
5
  SHA512:
6
- metadata.gz: 9c3a5949f7b388f5bdd8863070e2704d25f4e94bc62f7434838b24b11c2cddacbe68d009ab6d089d518e5343e3f6c40d969333c926fc445df034435418ba450a
7
- data.tar.gz: 0d0131a7ac137d5fb15f502b2b863e7d666e7aa71796981f93b0b5c60dd1738cf6e5a40bded2e33c9fd766b2458a3d1e501f9b94716206d37c21bf163dd9210d
6
+ metadata.gz: b2d55d3e5bee86ae7b31fda1261c0c64be8dc1280bb253de49f5080adf396c378802b11ae07b0da4c08c13e22762850fb63d16c79ecabfa1f1d3c80c30c98805
7
+ data.tar.gz: f1f6c88288d458ee6c2125d0b2675dbeee6763300464018f97a55573f83bc53c6633a2e8b0237d19bf70e4ecd7d2290a042121d33261256fc2132bee0519b1e6
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- souls (0.9.4)
4
+ souls (0.9.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -269,6 +269,7 @@ module Souls
269
269
  def get_test_type type
270
270
  {
271
271
  bigint: 1,
272
+ float: 4.2,
272
273
  string: '"MyString"',
273
274
  text: '"MyString"',
274
275
  datetime: "Time.now",
@@ -307,8 +308,9 @@ module Souls
307
308
  f.each_line.with_index do |line, i|
308
309
  if @on
309
310
  break if line.include?("end") || line.include?("t.index")
311
+ field = "[String]" if line.include?("array: true")
310
312
  type, name = line.split(",")[0].gsub("\"", "").scan(/((?<=t\.).+(?=\s)) (.+)/)[0]
311
- field = type_check type
313
+ field ||= type_check type
312
314
  case name
313
315
  when "created_at", "updated_at"
314
316
  next
@@ -367,8 +369,9 @@ module Souls
367
369
  f.each_line.with_index do |line, i|
368
370
  if @on
369
371
  break if line.include?("end") || line.include?("t.index")
372
+ field = "[String]" if line.include?("array: true")
370
373
  type, name = line.split(",")[0].gsub("\"", "").scan(/((?<=t\.).+(?=\s)) (.+)/)[0]
371
- field = type_check type
374
+ field ||= type_check type
372
375
  case name
373
376
  when "created_at", "updated_at"
374
377
  next
@@ -1,3 +1,3 @@
1
1
  module Souls
2
- VERSION = "0.9.6"
2
+ VERSION = "0.9.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: souls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI