aipim-rails 0.0.169 → 0.0.172
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/aipim +6 -8
- data/lib/aipim-rails/parser.rb +3 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d80f7dd94812105060e19234b6cd135910534c92
|
4
|
+
data.tar.gz: b99173f7b55e717f6206ff9c44efdc5bf4be48ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb8ccd6e75836f0505f0f27ad2e112ee7b4917f1b48ef87ef053d6b02af7fb97cadc57ae10a1f86a121b2014520356f535b8a25e98ed6859abe79f43fc8ac484
|
7
|
+
data.tar.gz: f60f3a1eb4b0ef2799f70a007880a954f60ea6d62ae834d3de680480787163aa820d57fe5dd7b4562ae51c005f3c6095373e444176d094136ca6d2458d78711a
|
data/bin/aipim
CHANGED
@@ -5,14 +5,12 @@ path = File.expand_path(File.dirname(__FILE__))+"/../"
|
|
5
5
|
# pegar o nome dos arquivos das features
|
6
6
|
def get_files
|
7
7
|
files = []
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
files << f if !(f =~ /.feature\z/).nil?
|
15
|
-
end
|
8
|
+
ls = %x[ls features].split("\n")
|
9
|
+
ls.each do |f|
|
10
|
+
f = f.split("/")
|
11
|
+
f.delete_at(0) if f[0] == "features"
|
12
|
+
f = f[0]
|
13
|
+
files << f if !(f =~ /.feature\z/).nil?
|
16
14
|
end
|
17
15
|
files
|
18
16
|
end
|
data/lib/aipim-rails/parser.rb
CHANGED
@@ -3,10 +3,9 @@ require 'aipim-rails/parser_helper'
|
|
3
3
|
module Parser
|
4
4
|
|
5
5
|
def self.init(filename)
|
6
|
-
filename
|
6
|
+
parser(filename)
|
7
7
|
end
|
8
8
|
|
9
|
-
|
10
9
|
def self.tag_screenshot(line,file,workset)
|
11
10
|
if line && ParserHelper.is_tag?(line) && ParserHelper.is_screenshot?(line)
|
12
11
|
workset[:screenshot] = true
|
@@ -74,9 +73,9 @@ module Parser
|
|
74
73
|
screenshot: false,
|
75
74
|
screenshot_counter: 0,
|
76
75
|
screenshots: screenshots,
|
77
|
-
feature_name:
|
76
|
+
feature_name: "",
|
78
77
|
feature_description: [],
|
79
|
-
context_name:
|
78
|
+
context_name: "",
|
80
79
|
context_description: [],
|
81
80
|
scenarios: []
|
82
81
|
}
|