simplificator-rwebthumb 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rwebthumb.rb +4 -4
- data/lib/rwebthumb/job.rb +2 -2
- metadata +23 -39
data/lib/rwebthumb.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'time'
|
2
|
-
require 'rwebthumb/base'
|
3
|
-
require 'rwebthumb/job'
|
4
|
-
require 'rwebthumb/webthumb'
|
5
|
-
require 'rwebthumb/easythumb'
|
2
|
+
require File.dirname(__FILE__) + '/rwebthumb/base'
|
3
|
+
require File.dirname(__FILE__) + '/rwebthumb/job'
|
4
|
+
require File.dirname(__FILE__) + '/rwebthumb/webthumb'
|
5
|
+
require File.dirname(__FILE__) + '/rwebthumb/easythumb'
|
data/lib/rwebthumb/job.rb
CHANGED
@@ -24,7 +24,7 @@ module Simplificator
|
|
24
24
|
status_element = REXML::XPath.first(xml, '/webthumb/jobStatus/status')
|
25
25
|
submission_datetime = self.parse_webthumb_datetime(status_element.attributes['submissionTime'])
|
26
26
|
job = Job.new(api_key, api_endpoint, status_element.attributes['id'], nil, submission_datetime, 5, nil,
|
27
|
-
status_element.text.downcase == 'complete' ? STATUS_PICKUP : STATUS_PROCESSING)
|
27
|
+
(status_element.text || '').downcase == 'complete' ? STATUS_PICKUP : STATUS_PROCESSING)
|
28
28
|
end
|
29
29
|
# Constructor.
|
30
30
|
# *api_key: webthumb API key. Required by all the operations which query the server
|
@@ -51,7 +51,7 @@ module Simplificator
|
|
51
51
|
def check_status
|
52
52
|
response = do_request(build_status_xml())
|
53
53
|
status_elem = REXML::XPath.first(response,'/webthumb/jobStatus/status')
|
54
|
-
@status = status_elem.text.downcase == 'complete' ? STATUS_PICKUP : STATUS_PROCESSING
|
54
|
+
@status = (status_elem.text || '').downcase == 'complete' ? STATUS_PICKUP : STATUS_PROCESSING
|
55
55
|
|
56
56
|
if pickup?
|
57
57
|
|
metadata
CHANGED
@@ -1,32 +1,22 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplificator-rwebthumb
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 3
|
8
|
-
- 2
|
9
|
-
version: 0.3.2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.3
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Simplificator GmbH
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
date: 2008-09-03 00:00:00 +02:00
|
18
|
-
default_executable:
|
12
|
+
date: 2012-07-27 00:00:00.000000000 Z
|
19
13
|
dependencies: []
|
20
|
-
|
21
|
-
description: "rwebthumb provides a ruby interface for the webthumb.bluga.net. "
|
14
|
+
description: ! 'rwebthumb provides a ruby interface for the webthumb.bluga.net. '
|
22
15
|
email: info@simplificator.com
|
23
16
|
executables: []
|
24
|
-
|
25
17
|
extensions: []
|
26
|
-
|
27
18
|
extra_rdoc_files: []
|
28
|
-
|
29
|
-
files:
|
19
|
+
files:
|
30
20
|
- lib/rwebthumb.rb
|
31
21
|
- lib/rwebthumb/base.rb
|
32
22
|
- lib/rwebthumb/job.rb
|
@@ -38,35 +28,29 @@ files:
|
|
38
28
|
- lib/rwebthumb/easythumb.rb
|
39
29
|
- README
|
40
30
|
- init.rb
|
41
|
-
has_rdoc: true
|
42
31
|
homepage: http://simplificator.com/
|
43
32
|
licenses: []
|
44
|
-
|
45
33
|
post_install_message:
|
46
34
|
rdoc_options: []
|
47
|
-
|
48
|
-
require_paths:
|
35
|
+
require_paths:
|
49
36
|
- lib
|
50
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
requirements:
|
59
|
-
- -
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
|
62
|
-
- 0
|
63
|
-
version: "0"
|
37
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
38
|
+
none: false
|
39
|
+
requirements:
|
40
|
+
- - ! '>='
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0'
|
43
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
44
|
+
none: false
|
45
|
+
requirements:
|
46
|
+
- - ! '>='
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
64
49
|
requirements: []
|
65
|
-
|
66
50
|
rubyforge_project:
|
67
|
-
rubygems_version: 1.
|
51
|
+
rubygems_version: 1.8.21
|
68
52
|
signing_key:
|
69
53
|
specification_version: 3
|
70
54
|
summary: rwebthumb provides a ruby interface for the webthumb.bluga.net
|
71
55
|
test_files: []
|
72
|
-
|
56
|
+
has_rdoc:
|