koboldy 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -21
- data/lib/koboldy/run.rb +3 -3
- data/lib/koboldy/version.rb +1 -1
- data/test/kobold/run_test.rb +8 -22
- 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: c850df52a34add5899550b1068f1e022e56b22b3
|
4
|
+
data.tar.gz: 3875ae4eb29e5517ea48033c2305a2dffbc77839
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2dc934e3acd502541c424fc14f62981213a0548fb51bd668a0b4056828521b027d1bb6d63fc844367016e99a00d7303303e78a2cbf2b9c3dac61e988a143d7ac
|
7
|
+
data.tar.gz: b54fa7a26bdbdf9b53181efcdfe4f94a7a5185aa55795cb4da9ecd345cf04ee67871f2662b7e8357c98dde6822f327419fcaa0146458f54f4c88036b0cfd2bc7
|
data/README.md
CHANGED
@@ -90,37 +90,23 @@ cmd.check_and_save("result.txt")
|
|
90
90
|
"additions": {
|
91
91
|
"count": 2,
|
92
92
|
"messages": [
|
93
|
-
|
94
|
-
|
95
|
-
],
|
96
|
-
[
|
97
|
-
"Screen is new: 0017_01_05_open_contact5"
|
98
|
-
]
|
93
|
+
"0004_03_01_bargain_store_details",
|
94
|
+
"0017_01_05_open_contact5"
|
99
95
|
]
|
100
96
|
},
|
101
97
|
"orphans": {
|
102
98
|
"count": 3,
|
103
99
|
"messages": [
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
[
|
108
|
-
"Error: Approved screen is orphaned: 0102_02_01_open_recipe_2446163"
|
109
|
-
],
|
110
|
-
[
|
111
|
-
"Error: Approved screen is orphaned: 0102_02_02_open_tukurepo_2446163"
|
112
|
-
]
|
100
|
+
"0000_01_03_hot_recommend",
|
101
|
+
"0102_02_01_open_recipe_2446163",
|
102
|
+
"0102_02_02_open_tukurepo_2446163"
|
113
103
|
]
|
114
104
|
},
|
115
105
|
"different": {
|
116
106
|
"count": 2,
|
117
107
|
"messages": [
|
118
|
-
|
119
|
-
|
120
|
-
],
|
121
|
-
[
|
122
|
-
"Error: Screens are different for 0000_01_05_my_folder"
|
123
|
-
]
|
108
|
+
"0000_01_04_recent",
|
109
|
+
"0000_01_05_my_folder"
|
124
110
|
]
|
125
111
|
}
|
126
112
|
}
|
data/lib/koboldy/run.rb
CHANGED
@@ -120,19 +120,19 @@ class Koboldy
|
|
120
120
|
|
121
121
|
def additions(result)
|
122
122
|
result.scan(/Screen is new:.*/).map do |line|
|
123
|
-
line.to_s.split(/\u001b\[0m\u001b\[90m/)
|
123
|
+
line.to_s.split(/\u001b\[0m\u001b\[90m/).first.gsub(/\AScreen is new: /, "")
|
124
124
|
end
|
125
125
|
end
|
126
126
|
|
127
127
|
def orphans(result)
|
128
128
|
result.scan(/Error: Approved screen is orphaned.*/).map do |line|
|
129
|
-
line.to_s.split(/\u001b\[0m\u001b\[90m/)
|
129
|
+
line.to_s.split(/\u001b\[0m\u001b\[90m/).first.gsub(/\AError: Approved screen is orphaned: /, "")
|
130
130
|
end
|
131
131
|
end
|
132
132
|
|
133
133
|
def different(result)
|
134
134
|
result.scan(/Error: Screens are different for.*/).map do |line|
|
135
|
-
line.to_s.split(/\u001b\[0m\u001b\[90m/)
|
135
|
+
line.to_s.split(/\u001b\[0m\u001b\[90m/).first.gsub(/\AError: Screens are different for /, "")
|
136
136
|
end
|
137
137
|
end
|
138
138
|
end # class Run
|
data/lib/koboldy/version.rb
CHANGED
data/test/kobold/run_test.rb
CHANGED
@@ -37,37 +37,23 @@ class RunTest < Test::Unit::TestCase
|
|
37
37
|
"additions": {
|
38
38
|
"count": 2,
|
39
39
|
"messages": [
|
40
|
-
|
41
|
-
|
42
|
-
],
|
43
|
-
[
|
44
|
-
"Screen is new: 0017_01_05_open_contact5"
|
45
|
-
]
|
40
|
+
"0004_03_01_bargain_store_details",
|
41
|
+
"0017_01_05_open_contact5"
|
46
42
|
]
|
47
43
|
},
|
48
44
|
"orphans": {
|
49
45
|
"count": 3,
|
50
46
|
"messages": [
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
[
|
55
|
-
"Error: Approved screen is orphaned: 0102_02_01_open_recipe_2446163"
|
56
|
-
],
|
57
|
-
[
|
58
|
-
"Error: Approved screen is orphaned: 0102_02_02_open_tukurepo_2446163"
|
59
|
-
]
|
47
|
+
"0000_01_03_hot_recommend",
|
48
|
+
"0102_02_01_open_recipe_2446163",
|
49
|
+
"0102_02_02_open_tukurepo_2446163"
|
60
50
|
]
|
61
51
|
},
|
62
52
|
"different": {
|
63
53
|
"count": 2,
|
64
54
|
"messages": [
|
65
|
-
|
66
|
-
|
67
|
-
],
|
68
|
-
[
|
69
|
-
"Error: Screens are different for 0000_01_05_my_folder"
|
70
|
-
]
|
55
|
+
"0000_01_04_recent",
|
56
|
+
"0000_01_05_my_folder"
|
71
57
|
]
|
72
58
|
}
|
73
59
|
}
|
@@ -75,4 +61,4 @@ EOS
|
|
75
61
|
result = @run.results("./test/data/kobold_test_data.txt")
|
76
62
|
assert_equal(result, expected)
|
77
63
|
end
|
78
|
-
end
|
64
|
+
end
|