Hoodow-pickhost-cli 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/History.txt +4 -0
  2. data/bin/pickhost +2 -1
  3. metadata +3 -2
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.1.2 / 2009-08-10
2
+
3
+ * return errors
4
+
1
5
  === 0.1.1 / 2009-07-25
2
6
 
3
7
  * fixed a bug with absolute paths
data/bin/pickhost CHANGED
@@ -24,8 +24,9 @@ module Pickhost
24
24
  end
25
25
 
26
26
  def upload(file)
27
- url = URI.parse('http://pickhost.eu/api/upload')
27
+ url = URI.parse('http://localhost:3000/api/upload')
28
28
  response = JSON.parse( HTTPClient.post(url, { :file => File.new(file) }.merge(auth)).body.content )
29
+ return response["errors"] if response["errors"]
29
30
  copy response["image"]["public_view_url"]
30
31
  end
31
32
 
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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ole Riesenberg
@@ -53,6 +53,7 @@ files:
53
53
  - test/test_pickhost_cli.rb
54
54
  has_rdoc: true
55
55
  homepage: http://github.com/Hoodow/pickhost-cli
56
+ licenses:
56
57
  post_install_message:
57
58
  rdoc_options:
58
59
  - --main
@@ -74,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
75
  requirements: []
75
76
 
76
77
  rubyforge_project: pickhost-cli
77
- rubygems_version: 1.2.0
78
+ rubygems_version: 1.3.5
78
79
  signing_key:
79
80
  specification_version: 2
80
81
  summary: Command line uploader for pickhost.eu