souls 0.9.6 → 0.9.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/souls/init.rb +5 -2
- data/lib/souls/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 889a302559758a12cf2318206787f3848ca961cee8505218ff0414c797fd3f48
|
4
|
+
data.tar.gz: 9cc808cb6af449c3330b6fa67e559875621c3f45ab7268f1c65e3c3d1a8be0ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2d55d3e5bee86ae7b31fda1261c0c64be8dc1280bb253de49f5080adf396c378802b11ae07b0da4c08c13e22762850fb63d16c79ecabfa1f1d3c80c30c98805
|
7
|
+
data.tar.gz: f1f6c88288d458ee6c2125d0b2675dbeee6763300464018f97a55573f83bc53c6633a2e8b0237d19bf70e4ecd7d2290a042121d33261256fc2132bee0519b1e6
|
data/Gemfile.lock
CHANGED
data/lib/souls/init.rb
CHANGED
@@ -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
|
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
|
374
|
+
field ||= type_check type
|
372
375
|
case name
|
373
376
|
when "created_at", "updated_at"
|
374
377
|
next
|
data/lib/souls/version.rb
CHANGED