simplificator-rwebthumb 0.0.2 → 0.0.5

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 (2) hide show
  1. data/README +17 -1
  2. metadata +1 -1
data/README CHANGED
@@ -6,8 +6,18 @@ A Ruby wrapper for the webthumb API from http://webthumb.bluga.net
6
6
  = dependencies
7
7
  - tzinfo:http://tzinfo.rubyforge.org (install: sudo gem install tzinfo)
8
8
 
9
+ = Installation
10
+ sudo gem sources -a http://gems.github.com
11
+ sudo gem install simplificator-rwebthumb (note that the simplificator-prefix is required since we are on github)
12
+
13
+
9
14
  = Usage
10
- # Creating a Webthumb Object. This is used as your main access point
15
+ # require the libs
16
+ require 'rubygems'
17
+ require 'rwebthumb'
18
+ include Simplificator::Webthumb
19
+
20
+ # Creating a Webthumb Object. This is used as your main access point.
11
21
  wt = Webthumb.new('YOUR API KEY')
12
22
 
13
23
  # Create a new thumbnail job
@@ -27,3 +37,9 @@ job.fetch_when_complete(:large)
27
37
 
28
38
  # there is a helper method to write the images to disk
29
39
  job.write_file(, '/tmp/test.jpg')
40
+
41
+ # if you have a job ID then you can use this to get a Job object and then use the fetch_xyz methods
42
+ wt.job_status(JOB_ID)
43
+
44
+ # check the status of your account
45
+ wt.status
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplificator-rwebthumb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simplificator GmbH