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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d35146c9cee2c95794e9796b392f28968392eb52
4
- data.tar.gz: 700c8b4aaad018425f3122f4fa8c1c4ef28327d8
3
+ metadata.gz: c850df52a34add5899550b1068f1e022e56b22b3
4
+ data.tar.gz: 3875ae4eb29e5517ea48033c2305a2dffbc77839
5
5
  SHA512:
6
- metadata.gz: 772110774e4b8121cc6ded83866bc453a7f27c04d5f18056a3bcd66e1dc55dcbe7eda1fbed27caa41b13acc3aaabbbafa5e46f7185cb653acfc54be78a2bde9e
7
- data.tar.gz: c2d39ad4587f072e7cb3adc4502ea7ec4ca48fe17f20bc32ea1d2e4b4377cc1edd615e06faf9c42128e4de81924cd90bcd56cda94c2b6439d7c26497a052f929
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
- "Screen is new: 0004_03_01_bargain_store_details"
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
- "Error: Approved screen is orphaned: 0000_01_03_hot_recommend"
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
- "Error: Screens are different for 0000_01_04_recent"
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
  }
@@ -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
@@ -1,3 +1,3 @@
1
1
  class Koboldy
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
@@ -37,37 +37,23 @@ class RunTest < Test::Unit::TestCase
37
37
  "additions": {
38
38
  "count": 2,
39
39
  "messages": [
40
- [
41
- "Screen is new: 0004_03_01_bargain_store_details"
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
- "Error: Approved screen is orphaned: 0000_01_03_hot_recommend"
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
- "Error: Screens are different for 0000_01_04_recent"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: koboldy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuaki MATSUO