factory_list 0.1.2 → 0.1.3
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/factory_list.rb +2 -1
- data/lib/factory_list/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: 2d88eb11d36e79a13372564696a8e8f4dc15388a4bd819326e2866732e381c6a
|
4
|
+
data.tar.gz: 5d308ac63d64de169ecfd862bfbee691273ed3968765d5bcd6762290c0df4777
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 177d35f25359ef69411e7847d545682436caa1cc95a941669714bae79a669d6247cdd3344b2e4b736897548281dbdd92c0ab53c05fd58b39208f0f97bd71755b
|
7
|
+
data.tar.gz: 8c23500838dca09241f468fa58ac0bae3466e97bf3d02430d0deda1ddb889e6763077510a7dd2053fc1c7e4af5dd0208f2ee7e6368ff6b79d72d898b65e3988c
|
data/Gemfile.lock
CHANGED
data/lib/factory_list.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require "factory_list/version"
|
2
2
|
require 'factory_bot'
|
3
|
+
require 'ripper'
|
3
4
|
|
4
5
|
module FactoryList
|
5
6
|
class Error < StandardError; end
|
@@ -12,7 +13,7 @@ module FactoryList
|
|
12
13
|
puts "file: #{file}"
|
13
14
|
file_path = File.join(dir, file)
|
14
15
|
File.open(file_path, 'r') do |f|
|
15
|
-
tokens = Ripper.tokenize(f.read)
|
16
|
+
tokens = ::Ripper.tokenize(f.read)
|
16
17
|
tokens.each_with_index do |token, i|
|
17
18
|
if token == 'factory'
|
18
19
|
factory = tokens[i + 3]
|
data/lib/factory_list/version.rb
CHANGED