pastey 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/pastey +1 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97797ddd713c163c386886301594113db00b76e9
|
4
|
+
data.tar.gz: dffc6bdb8bee3fc7fd16fe73bf980b420afd91a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c59c0f3d5e3364ea64ddc980067ce04ad7e2026aba58f3b0f743acd3e67a5b3b5bb7f00ba4ce43b541d56446a8ebdd84a1ed744311f4be60f513040774105148
|
7
|
+
data.tar.gz: 4ffb44211ce210fb57b512b328813a8cb67abbd1f59d2f8866fa6a716bcaf1fe554a85bc836b1bd0133ce0e5c80c8b1df4a8d3df3409db9de04414944ae4a16a
|
data/bin/pastey
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
unless ARGV.any?
|
3
|
+
unless ( file_path = ARGV.first )
|
6
4
|
puts "Please provide file path!"
|
7
5
|
Kernel.exit
|
8
6
|
end
|
@@ -17,8 +15,6 @@ require 'pathname'
|
|
17
15
|
|
18
16
|
pastebin = PasteBin.new(API_KEY)
|
19
17
|
|
20
|
-
file_path = ARGV.first
|
21
|
-
|
22
18
|
unless (file = Pathname.new(file_path)).absolute?
|
23
19
|
file = Pathname.new( File.expand_path(file, Dir.pwd) )
|
24
20
|
end
|