epi 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f4c9fe139dc5bf2d4588ee4ee5e2348a634af58
4
- data.tar.gz: 6209ed9c345315d1a980d697db4b38dc4595bc98
3
+ metadata.gz: 3407cf0d6cd14e76d66934e948493fa65c4999d5
4
+ data.tar.gz: bfc5f0c3ec9a6ae778799e3ab160627cd3459fa9
5
5
  SHA512:
6
- metadata.gz: a988b557f92226f25c0b22d0c212e1d1a3bfa14d4872e367a52a94a480f2bcc420ea70fe170a8d7ab78de9dde7644954b25556b3cb122dc517c22f8420f55ad6
7
- data.tar.gz: 2c122327a30c948c96cab15e4b00631d7eb78d66d7cb1e7003665217cf00e1b947d508e61696fff04ee5d696fb9bae57e27abeb151ab0c681c1374d6c3fcfb55
6
+ metadata.gz: 1db54013d3e5e312aaca6cebbaf9d02fe2b0ec5823190807e2c288b6458f51147c50faf6761d959e92e2cd27c8d3d756b5f0c5804ad8750bddb8526982aab077
7
+ data.tar.gz: 7609356cc3624f8b81bc25b8e156cbdb3690f4747d49796f40298fbfd8d41df23d39d7c8e5b6a235e28639cdb089c49466750e15f68481556603b41b62763f14
data/bin/epi CHANGED
@@ -3,7 +3,7 @@ lib = File.expand_path('../../lib', __FILE__)
3
3
  $: << lib unless $:.include? lib
4
4
  require 'epi'
5
5
  require 'eventmachine'
6
- if $0 == __FILE__
6
+ if File.basename($0) == File.basename(__FILE__)
7
7
  EventMachine.run do
8
8
  %w[INT TERM].each do |s|
9
9
  Signal.trap(s) do
@@ -10,7 +10,7 @@ module Epi
10
10
  klass = Commands.const_get const_name
11
11
  return klass.new(args).run if Class === klass && klass < self
12
12
  end
13
- raise Exceptions::Fatal, 'Unknown command'
13
+ raise Exceptions::Fatal, "Unknown command. Run `epi help` for help."
14
14
  end
15
15
 
16
16
  attr_reader :args
@@ -19,7 +19,7 @@ http://www.apache.org/licenses/LICENSE-2.0
19
19
  See https://github.com/hx/epi for complete documentation
20
20
 
21
21
  Usage:
22
- #{$0} command [etc...]
22
+ epi [command] [etc ...]
23
23
 
24
24
  Commands:
25
25
  #{commands}
data/lib/epi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Epi
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neil E. Pearson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-23 00:00:00.000000000 Z
11
+ date: 2014-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eventmachine