gyazo 0.0.3 → 0.0.5

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 (2) hide show
  1. data/lib/gyazo.rb +2 -2
  2. metadata +3 -3
@@ -5,7 +5,7 @@ $:.unshift(File.dirname(__FILE__)) unless
5
5
  require 'net/http'
6
6
 
7
7
  class Gyazo
8
- VERSION = '0.0.3'
8
+ VERSION = '0.0.5'
9
9
 
10
10
  def initialize(app = '/Applications/Gyazo.app')
11
11
  @user = IO.popen("whoami", "r+").gets.chomp
@@ -23,7 +23,7 @@ class Gyazo
23
23
  def upload(imagefile)
24
24
  tmpfile = "/tmp/image_upload#{$$}.png"
25
25
  if imagefile && File.exist?(imagefile) then
26
- system "sips -s format png \"#{imagefile}\" --out \"#{tmpfile}\""
26
+ system "sips -s format png \"#{imagefile}\" --out \"#{tmpfile}\" > /dev/null"
27
27
  end
28
28
  imagedata = File.read(tmpfile)
29
29
  File.delete(tmpfile)
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: 25
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Toshiyuki Masui