stdouttoggler 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,7 +28,7 @@ module StdOutToggler
28
28
  @options = {}
29
29
  begin
30
30
  optparse = OptionParser.new do |opts|
31
- opts.banner = "usage: #{StdOutToggler.executable} [options] [file_paths]"
31
+ opts.banner = "usage: toggle [options] [file_paths]"
32
32
  opts.on("-h", "--help", "Display help screen") do
33
33
  puts opts
34
34
  exit
data/lib/stdouttoggler.rb CHANGED
@@ -14,9 +14,10 @@ require 'pathname'
14
14
  module StdOutToggler
15
15
  #returns the name of the executable file
16
16
  def self.executable
17
- bin = File.join("..", "bin")
17
+ exec_name = ""
18
18
  Pathname.glob("bin/*") do |f|
19
- name = File.basename(f)
19
+ exec_name = File.basename(f)
20
20
  end
21
+ exec_name
21
22
  end
22
23
  end
@@ -1,8 +1,8 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name="stdouttoggler"
3
- s.version="1.0.1"
3
+ s.version="1.0.2"
4
4
  s.platform=Gem::Platform::RUBY
5
- s.date="2012-09-14"
5
+ s.date="2012-11-05"
6
6
  s.summary="Comments and uncomments output lines in code"
7
7
  s.description="As a debugging convenience, sdtouttoggler comments and uncomments output lines, such as alert in javascript"
8
8
  s.author="Mark Buechler"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stdouttoggler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-14 00:00:00.000000000 Z
12
+ date: 2012-11-05 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: As a debugging convenience, sdtouttoggler comments and uncomments output
15
15
  lines, such as alert in javascript