picgarage 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.org ADDED
@@ -0,0 +1,11 @@
1
+ * Install
2
+ : gem install picgarage
3
+ * Usage
4
+ ** Tool
5
+ : pgupload /path/to/image.jpg
6
+ The short URL will be returned & copied to your clipboard
7
+ ** Gem
8
+ : require 'picgarage'
9
+ : picgarage = PicGarage::PicGarage.new
10
+ : short_url = picgarage.upload_image('/path/to/image.jpg')
11
+ : puts short_url
@@ -1,3 +1,3 @@
1
1
  module PicGarage
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/picgarage.rb CHANGED
@@ -24,7 +24,7 @@ module PicGarage
24
24
  if post.response_code == 201
25
25
 
26
26
  response = JSON.parse(post.body_str)
27
- response["image"]["large_url"]
27
+ response["image"]["original_url"]
28
28
 
29
29
  else
30
30
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: picgarage
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Sean Porter
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-09 00:00:00 +09:00
13
+ date: 2011-06-10 00:00:00 +09:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -47,6 +47,7 @@ extra_rdoc_files: []
47
47
  files:
48
48
  - .gitignore
49
49
  - Gemfile
50
+ - README.org
50
51
  - Rakefile
51
52
  - bin/pgupload
52
53
  - lib/picgarage.rb