haste 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/haste.rb +3 -2
- data/lib/haste/version.rb +1 -1
- metadata +3 -3
data/lib/haste.rb
CHANGED
@@ -11,8 +11,9 @@ module Haste
|
|
11
11
|
# Pull all of the data from STDIN
|
12
12
|
def initialize
|
13
13
|
if STDIN.tty?
|
14
|
-
|
15
|
-
abort
|
14
|
+
file = ARGV.first
|
15
|
+
abort 'No input file given' unless file
|
16
|
+
abort "#{file}: No such path" unless File.exists?(file)
|
16
17
|
@input = open(file).read
|
17
18
|
else
|
18
19
|
@input = STDIN.readlines.join
|
data/lib/haste/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haste
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
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:
|
12
|
+
date: 2013-03-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
73
|
version: '0'
|
74
74
|
requirements: []
|
75
75
|
rubyforge_project:
|
76
|
-
rubygems_version: 1.8.
|
76
|
+
rubygems_version: 1.8.25
|
77
77
|
signing_key:
|
78
78
|
specification_version: 3
|
79
79
|
summary: Haste Client
|