query_28io 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/query_28io.rb +9 -11
- metadata +4 -4
data/lib/query_28io.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'rest-client'
|
3
3
|
|
4
|
-
|
4
|
+
#
|
5
5
|
# This module allows to run public 28.io queries
|
6
6
|
#
|
7
7
|
module Query28io
|
8
8
|
|
9
|
-
|
9
|
+
#
|
10
10
|
# This method run a public 28.io query at the specified URL
|
11
11
|
# and return its results.
|
12
12
|
#
|
@@ -36,15 +36,14 @@ module Query28io
|
|
36
36
|
# >>response.body
|
37
37
|
# # => {...}
|
38
38
|
#
|
39
|
-
#
|
40
|
-
#
|
41
|
-
#
|
42
|
-
#
|
39
|
+
# @param url [String] the public query URL
|
40
|
+
# @param params [Hash] the query arguments (optional)
|
41
|
+
# @return [Object] server respose
|
43
42
|
def self.runQuery(url, params={})
|
44
43
|
RestClient.get(url, {:params => params}){|response, request, result| response }
|
45
44
|
end
|
46
45
|
|
47
|
-
|
46
|
+
#
|
48
47
|
# This method run a public 28.io query at the specified URL
|
49
48
|
# and return its results.
|
50
49
|
#
|
@@ -74,10 +73,9 @@ module Query28io
|
|
74
73
|
# >>response.body
|
75
74
|
# # => {...}
|
76
75
|
#
|
77
|
-
#
|
78
|
-
#
|
79
|
-
#
|
80
|
-
#
|
76
|
+
# @param url [String] the public query URL
|
77
|
+
# @param params [Hash] the query arguments (optional)
|
78
|
+
# @return [Object] server respose
|
81
79
|
def self.runQueryPost(url, params ={})
|
82
80
|
RestClient.post(url, params){|response, request, result| response }
|
83
81
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: query_28io
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Federico Cavalieri
|
@@ -18,7 +18,7 @@ cert_chain: []
|
|
18
18
|
date: 2013-07-08 00:00:00 Z
|
19
19
|
dependencies: []
|
20
20
|
|
21
|
-
description:
|
21
|
+
description: This gem allows to run public queries on 28.io
|
22
22
|
email: f@28msec.com
|
23
23
|
executables: []
|
24
24
|
|