ubersmith 1.0.3 → 1.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.
- data/lib/ubersmith/client.rb +3 -2
- metadata +19 -38
data/lib/ubersmith/client.rb
CHANGED
@@ -3,6 +3,7 @@ require 'uri'
|
|
3
3
|
require 'json'
|
4
4
|
require 'fileutils'
|
5
5
|
require 'ubersmith/url_maker'
|
6
|
+
require 'digest/md5'
|
6
7
|
|
7
8
|
"""
|
8
9
|
Example usage:
|
@@ -34,7 +35,7 @@ module Ubersmith
|
|
34
35
|
options = args[0] if args
|
35
36
|
options ||= {}
|
36
37
|
cache = options.delete(:cache)
|
37
|
-
cache =
|
38
|
+
cache = false if cache.nil?
|
38
39
|
ret = call_api(build_url(BASE_URL, {
|
39
40
|
:method => components[0] + '.' + components[1],
|
40
41
|
}.merge(options)), :cache => cache)
|
@@ -92,7 +93,7 @@ module Ubersmith
|
|
92
93
|
end
|
93
94
|
|
94
95
|
def safe_filename(url)
|
95
|
-
url.
|
96
|
+
Digest::MD5.hexdigest(url.to_s)
|
96
97
|
end
|
97
98
|
|
98
99
|
def tmp_dir
|
metadata
CHANGED
@@ -1,65 +1,46 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: ubersmith
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 1
|
7
|
-
- 0
|
8
|
-
- 3
|
9
|
-
version: 1.0.3
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.5
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- David Wegman
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
date: 2011-12-05 00:00:00 -08:00
|
18
|
-
default_executable:
|
12
|
+
date: 2012-10-31 00:00:00.000000000 Z
|
19
13
|
dependencies: []
|
20
|
-
|
21
14
|
description: Provides a ruby interface for interacting with an Ubersmith 2.0 instance
|
22
15
|
email: dwegman@twistage.com
|
23
16
|
executables: []
|
24
|
-
|
25
17
|
extensions: []
|
26
|
-
|
27
18
|
extra_rdoc_files: []
|
28
|
-
|
29
|
-
files:
|
19
|
+
files:
|
30
20
|
- lib/ubersmith/client.rb
|
31
21
|
- lib/ubersmith/url_maker.rb
|
32
|
-
has_rdoc: true
|
33
22
|
homepage: http://rubygems.org/gems/ubersmith
|
34
23
|
licenses: []
|
35
|
-
|
36
24
|
post_install_message:
|
37
25
|
rdoc_options: []
|
38
|
-
|
39
|
-
require_paths:
|
26
|
+
require_paths:
|
40
27
|
- lib
|
41
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
42
29
|
none: false
|
43
|
-
requirements:
|
44
|
-
- -
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
|
47
|
-
|
48
|
-
version: "0"
|
49
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
50
35
|
none: false
|
51
|
-
requirements:
|
52
|
-
- -
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
|
55
|
-
- 0
|
56
|
-
version: "0"
|
36
|
+
requirements:
|
37
|
+
- - ! '>='
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
57
40
|
requirements: []
|
58
|
-
|
59
41
|
rubyforge_project:
|
60
|
-
rubygems_version: 1.
|
42
|
+
rubygems_version: 1.8.24
|
61
43
|
signing_key:
|
62
44
|
specification_version: 3
|
63
45
|
summary: Ubersmith 2.0 API
|
64
46
|
test_files: []
|
65
|
-
|