rest 0.2.0 → 0.3.0
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/LICENSE +22 -0
- data/VERSION.yml +2 -2
- data/lib/rest/client.rb +7 -8
- data/rest.gemspec +5 -3
- metadata +19 -7
data/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) 2012, Iron.io, Inc. All rights reserved.
|
|
2
|
+
|
|
3
|
+
Redistribution and use in source and binary forms, with or without
|
|
4
|
+
modification, are permitted provided that the following conditions are met:
|
|
5
|
+
|
|
6
|
+
* Redistributions of source code must retain the above copyright notice,
|
|
7
|
+
this list of conditions and the following disclaimer.
|
|
8
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
9
|
+
this list of conditions and the following disclaimer in the documentation
|
|
10
|
+
and/or other materials provided with the distribution.
|
|
11
|
+
|
|
12
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
13
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
14
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
15
|
+
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
16
|
+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
17
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
18
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
|
19
|
+
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
20
|
+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
21
|
+
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|
22
|
+
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/VERSION.yml
CHANGED
data/lib/rest/client.rb
CHANGED
|
@@ -27,17 +27,16 @@ module Rest
|
|
|
27
27
|
@gem
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
begin
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
rescue LoadError => ex
|
|
35
|
-
|
|
30
|
+
#begin
|
|
31
|
+
# require 'typhoeus'
|
|
32
|
+
# Rest.gem = :typhoeus
|
|
33
|
+
# require_relative 'wrappers/typhoeus_wrapper'
|
|
34
|
+
#rescue LoadError => ex
|
|
35
|
+
# puts "Please install 'typhoeus' gem for best performance."
|
|
36
36
|
require 'rest_client'
|
|
37
37
|
Rest.gem = :rest_client
|
|
38
38
|
require_relative 'wrappers/rest_client_wrapper'
|
|
39
|
-
end
|
|
40
|
-
|
|
39
|
+
#end
|
|
41
40
|
|
|
42
41
|
class Client
|
|
43
42
|
|
data/rest.gemspec
CHANGED
|
@@ -5,17 +5,19 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = "rest"
|
|
8
|
-
s.version = "0.
|
|
8
|
+
s.version = "0.3.0"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Travis Reeder"]
|
|
12
|
-
s.date = "2012-
|
|
12
|
+
s.date = "2012-06-08"
|
|
13
13
|
s.description = "Rest client wrapper that chooses best installed client."
|
|
14
14
|
s.email = "travis@iron.io"
|
|
15
15
|
s.extra_rdoc_files = [
|
|
16
|
+
"LICENSE",
|
|
16
17
|
"README.markdown"
|
|
17
18
|
]
|
|
18
19
|
s.files = [
|
|
20
|
+
"LICENSE",
|
|
19
21
|
"README.markdown",
|
|
20
22
|
"Rakefile",
|
|
21
23
|
"VERSION.yml",
|
|
@@ -30,7 +32,7 @@ Gem::Specification.new do |s|
|
|
|
30
32
|
s.homepage = "http://www.iron.io"
|
|
31
33
|
s.require_paths = ["lib"]
|
|
32
34
|
s.required_ruby_version = Gem::Requirement.new(">= 1.9")
|
|
33
|
-
s.rubygems_version = "1.8.
|
|
35
|
+
s.rubygems_version = "1.8.24"
|
|
34
36
|
s.summary = "Rest client wrapper that chooses best installed client."
|
|
35
37
|
|
|
36
38
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rest
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,11 +9,11 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
12
|
+
date: 2012-06-08 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rest-client
|
|
16
|
-
requirement:
|
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
|
17
17
|
none: false
|
|
18
18
|
requirements:
|
|
19
19
|
- - ! '>='
|
|
@@ -21,10 +21,15 @@ dependencies:
|
|
|
21
21
|
version: '0'
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
|
-
version_requirements:
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
none: false
|
|
26
|
+
requirements:
|
|
27
|
+
- - ! '>='
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: '0'
|
|
25
30
|
- !ruby/object:Gem::Dependency
|
|
26
31
|
name: rest-client
|
|
27
|
-
requirement:
|
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
|
28
33
|
none: false
|
|
29
34
|
requirements:
|
|
30
35
|
- - ! '>='
|
|
@@ -32,14 +37,21 @@ dependencies:
|
|
|
32
37
|
version: '0'
|
|
33
38
|
type: :runtime
|
|
34
39
|
prerelease: false
|
|
35
|
-
version_requirements:
|
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
+
none: false
|
|
42
|
+
requirements:
|
|
43
|
+
- - ! '>='
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: '0'
|
|
36
46
|
description: Rest client wrapper that chooses best installed client.
|
|
37
47
|
email: travis@iron.io
|
|
38
48
|
executables: []
|
|
39
49
|
extensions: []
|
|
40
50
|
extra_rdoc_files:
|
|
51
|
+
- LICENSE
|
|
41
52
|
- README.markdown
|
|
42
53
|
files:
|
|
54
|
+
- LICENSE
|
|
43
55
|
- README.markdown
|
|
44
56
|
- Rakefile
|
|
45
57
|
- VERSION.yml
|
|
@@ -70,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
70
82
|
version: '0'
|
|
71
83
|
requirements: []
|
|
72
84
|
rubyforge_project:
|
|
73
|
-
rubygems_version: 1.8.
|
|
85
|
+
rubygems_version: 1.8.24
|
|
74
86
|
signing_key:
|
|
75
87
|
specification_version: 3
|
|
76
88
|
summary: Rest client wrapper that chooses best installed client.
|