pikabu 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 13c7e36c85967921051f25363de986656cd5a395
4
- data.tar.gz: 0321b7873d3f0ce070b21ca407971082309bdf41
3
+ metadata.gz: 13fa7da5ed0ee37da2bf92679cf6463a4f4089d6
4
+ data.tar.gz: 08f644ea435c511917681174bc05c4ac71257200
5
5
  SHA512:
6
- metadata.gz: ef72b97ae8107c336110c2f60b58b2854bbba3ce6056b2ac3db99de1d3ae109419bb652444c1b571e7fb0b1d98085a4acb34cf5ab0d9591113eff48c8aeda23a
7
- data.tar.gz: c32899688263f16c51d8e7bd99c16c7df48c73bb3df2c92cea36736d1e4928cb5a4f9e3f6dc7e8a2238929137b2adb66474ffab3ed754653c137a648b22024d3
6
+ metadata.gz: e9cbe3659f6eb6f75a876adfb128b2dac72d2dca124535d00858b5ba4edad7987b56e3b5950eb4f55b473fd5d391015f5b2282107f2f85524efff29858cdef00
7
+ data.tar.gz: 23eb4bd229b102d1c851f91cd0026ea55e5189108de9b74ae2473c76db58e0bab0569adbac36b9dfbf994d62bed3adfe560b5e24051bba2f0f879e5ad56f38ab
@@ -5,7 +5,7 @@ require "open3"
5
5
 
6
6
  class Pikabu
7
7
 
8
- def initialize(file_path, line_num)
8
+ def initialize(file_path="", line_num=nil)
9
9
  @file_path = file_path
10
10
  @line_num = line_num
11
11
  check_file_path
@@ -15,7 +15,7 @@ class Pikabu
15
15
  begin
16
16
  load_paths
17
17
  check_line_num
18
- rescue LoadError, Errno::ENOENT => e
18
+ rescue LoadError, Errno::ENOENT, TypeError => e
19
19
  print_help
20
20
  end
21
21
  end
@@ -50,7 +50,8 @@ class Pikabu
50
50
  end
51
51
 
52
52
  def print_help
53
- puts 'Welcome to Pikabu! Please enter a command.'
53
+ puts 'Welcome to Pikabu!'
54
+ puts 'Please use one of the following commands:'
54
55
  puts 'pikabu [file.rb] : places a binding.pry if there is an error in your file'
55
56
  puts 'pikabu [file.rb] [line #]: places a binding.pry on the line number you specify'
56
57
  end
@@ -101,4 +102,4 @@ class Pikabu
101
102
  system "ruby #{@current_path};rm #{@current_path}"
102
103
  end
103
104
 
104
- end
105
+ end
@@ -1,3 +1,3 @@
1
1
  class Pikabu
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pikabu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dana Najjar, Waruna Perera
@@ -68,7 +68,6 @@ files:
68
68
  - bin/setup
69
69
  - lib/pikabu.rb
70
70
  - lib/pikabu/version.rb
71
- - pikabu-0.1.1.gem
72
71
  - pikabu.gemspec
73
72
  homepage: https://github.com/dnajjar/pikabu
74
73
  licenses:
Binary file