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.

Files changed (4) hide show
  1. data/Manifest.txt +1 -0
  2. data/bin/gyazo +17 -0
  3. data/lib/gyazo.rb +1 -1
  4. metadata +6 -5
@@ -9,3 +9,4 @@ script/destroy
9
9
  script/generate
10
10
  test/test_gyazo.rb
11
11
  test/test_helper.rb
12
+ bin/gyazo
@@ -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
@@ -5,7 +5,7 @@ $:.unshift(File.dirname(__FILE__)) unless
5
5
  require 'net/http'
6
6
 
7
7
  class Gyazo
8
- VERSION = '0.0.2'
8
+ VERSION = '0.0.3'
9
9
 
10
10
  def initialize(app = '/Applications/Gyazo.app')
11
11
  @user = IO.popen("whoami", "r+").gets.chomp
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
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: []