gyazo 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of gyazo might be problematic. Click here for more details.
- data/Manifest.txt +1 -0
- data/bin/gyazo +17 -0
- data/lib/gyazo.rb +1 -1
- metadata +6 -5
data/Manifest.txt
CHANGED
data/bin/gyazo
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'rubygems'
|
3
|
+
require 'gyazo'
|
4
|
+
|
5
|
+
if ARGV.empty?
|
6
|
+
STDERR.puts "gyazo [file1, file2 ...]"
|
7
|
+
exit 1
|
8
|
+
end
|
9
|
+
|
10
|
+
g = Gyazo.new
|
11
|
+
ARGV.each do |file|
|
12
|
+
next unless File.exists? file
|
13
|
+
url = g.upload file
|
14
|
+
puts url
|
15
|
+
system "open #{url}"
|
16
|
+
sleep 1
|
17
|
+
end
|
data/lib/gyazo.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gyazo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Toshiyuki Masui
|
@@ -66,8 +66,8 @@ dependencies:
|
|
66
66
|
description: "* Upload an image to Gyazo.com"
|
67
67
|
email:
|
68
68
|
- masui@pitecan.com
|
69
|
-
executables:
|
70
|
-
|
69
|
+
executables:
|
70
|
+
- gyazo
|
71
71
|
extensions: []
|
72
72
|
|
73
73
|
extra_rdoc_files:
|
@@ -86,6 +86,7 @@ files:
|
|
86
86
|
- script/generate
|
87
87
|
- test/test_gyazo.rb
|
88
88
|
- test/test_helper.rb
|
89
|
+
- bin/gyazo
|
89
90
|
- .gemtest
|
90
91
|
homepage: http://github.com/masui/gyazo-ruby
|
91
92
|
licenses: []
|