Hoodow-pickhost-cli 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/VERSION +1 -1
- data/bin/pickhost +3 -1
- metadata +2 -2
data/History.txt
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
data/bin/pickhost
CHANGED
@@ -25,7 +25,9 @@ module Pickhost
|
|
25
25
|
|
26
26
|
def upload(file)
|
27
27
|
url = URI.parse('http://pickhost.eu/api/upload')
|
28
|
-
response = JSON.parse(
|
28
|
+
response = JSON.parse(
|
29
|
+
HTTPClient.post(url, { :client_key => "54c56f1de2678ac4d32aa19fb66fe06c",
|
30
|
+
:file => File.new(file) }.merge(auth)).body.content )
|
29
31
|
return response["errors"] if response["errors"]
|
30
32
|
copy response["image"]["public_view_url"]
|
31
33
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Hoodow-pickhost-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ole Riesenberg
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-09-06 00:00:00 -07:00
|
13
13
|
default_executable: pickhost
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|