Hoodow-pickhost-cli 0.1.3 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/History.txt +4 -0
  2. data/VERSION +1 -1
  3. data/bin/pickhost +3 -1
  4. metadata +2 -2
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.2.0 / 2009-09-06
2
+
3
+ * include client_key in POST
4
+
1
5
  === 0.1.3 / 2009-08-20
2
6
 
3
7
  * moved to jeweler
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
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( HTTPClient.post(url, { :file => File.new(file) }.merge(auth)).body.content )
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.1.3
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-08-20 00:00:00 -07:00
12
+ date: 2009-09-06 00:00:00 -07:00
13
13
  default_executable: pickhost
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency