ehpt 1.0.2 → 1.0.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
  SHA256:
3
- metadata.gz: 278b527d924ee5cef6328be96682e18250fa30d449cec2a8f9aa3abe4ec35603
4
- data.tar.gz: 65736a6878779bda11a0d3a33d979855058a2035666b810cfa262ebbb13f8c4d
3
+ metadata.gz: 71cf3802e5a0eca6fc6ef48a373109b25096744bf3c0caec3122155165254c9c
4
+ data.tar.gz: 2bab4a45d7746d7a76be9e644f12cb6fd12f25dc87544b6022f250f336d0dd04
5
5
  SHA512:
6
- metadata.gz: 2849d58b9de11b409b8b0e4adc251f8d6894c5fb3472f9db448234a5922c77bf9cad5f1ba4e42136c45cc423b8ea308033a55f1367e9e5ba58e7d2fac3ff0c9e
7
- data.tar.gz: fbb28dd01aa013215d0fdd3defa1ae7313395725ab7455dca5f02285dd93856ec9a78b1bdca5abe0c47f381a3f0847c9b33ee4778232f92b0d565c9a9fed2664
6
+ metadata.gz: 439ff764e4462ad0842539e76038c01325ab4e3b96376d2d316ee478336520c734401ed070833e96274fc43d89836d3fc245efc6f4e262a0440eef62231bdbc4
7
+ data.tar.gz: 0a70b5c444573ae27b3a70a435457dace31a13bb404746cbeac85966bbab0a1d2586b8b3c49199acad620141b6ec7a605249d6f710d6f1fc882dc0fb602862af
@@ -42,7 +42,10 @@ class Ehpt
42
42
  if story_creator.success?
43
43
  puts "Created story: #{story_creator.data.name}"
44
44
  else
45
- @errors = @errors.concat(story_creator.errors)
45
+ @errors = @errors << {
46
+ row: row.to_h,
47
+ errors: story_creator.errors
48
+ }
46
49
  end
47
50
  end
48
51
  end
@@ -14,7 +14,7 @@ class Ehpt
14
14
  create_story
15
15
  prefix_story_name_with_id
16
16
  rescue StandardError => e
17
- errors << e.message
17
+ errors << eval(e.message)[:body]
18
18
  end
19
19
 
20
20
  private
data/lib/ehpt.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'pp'
1
2
  require 'csv'
2
3
  require 'ehpt/get_project'
3
4
  require 'ehpt/create_stories'
@@ -15,7 +16,8 @@ class Ehpt
15
16
  stories_creator.call
16
17
  puts "Done"
17
18
  if stories_creator.error?
18
- puts "Errors: #{stories_creator.errors}"
19
+ puts "===== Errors ====="
20
+ pp stories_creator.errors
19
21
  end
20
22
  end
21
23
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ehpt
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - phamhoaivu911