contact-data 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/contact-data/fetcher.rb +0 -2
- data/lib/contact-data/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6dba41d93c7414e0694e5bc44f6509bae51accf
|
4
|
+
data.tar.gz: 18968d34c28984e2023b43240d79f25c5cabb79b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 165a27fe9494deacbb1c7239f62990ed9fef336c9ec20d0e26079411920c489928a431a1bf06d261aae11af4c4a191ff62e8fa3a61813ad35a0c1bcf28f3af0d
|
7
|
+
data.tar.gz: 5acd8808791687aea804133fb8710aaf1b973e326ecc50991356dd56222426f096c34727f9338a92e446e53f0d6e389b93532ceea8802ba76dd3ea5c971055cb
|
data/lib/contact-data/fetcher.rb
CHANGED
@@ -7,7 +7,6 @@ class ContactData
|
|
7
7
|
class << self
|
8
8
|
[:get, :post].each do |http_method|
|
9
9
|
define_method(http_method) do |api_method, options = {}|
|
10
|
-
puts options # debug
|
11
10
|
url = get_url_from(api_method, options)
|
12
11
|
fetch_and_parse url, http_method, options
|
13
12
|
end
|
@@ -41,7 +40,6 @@ puts options # debug
|
|
41
40
|
args = { url: url, method: method }
|
42
41
|
args[:headers] = { params: options[:params] } if options.key? :params
|
43
42
|
args[:payload] = options[:payload] if options.key? :payload
|
44
|
-
puts args # setup
|
45
43
|
RestClient::Request.new(args).execute
|
46
44
|
end
|
47
45
|
|
data/lib/contact-data/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contact-data
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Xenapto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|