third-party-services-ericksot 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a61c477f3d60ee03e3d4eeefa71502cc6ec70f21
4
+ data.tar.gz: efd1900636ae3b4e17c94c7af4b1d9984665d9bb
5
+ SHA512:
6
+ metadata.gz: ab7e18f67d11bc12865066d6c6d51a278a5af72f4a1b64f48e7802f9e6b45a368b966660f6c14327d606ba68f73598dc5dbba34fb90786250ae6aa9c642451e6
7
+ data.tar.gz: aadb401e74055c800dcb7dacb504bf3024987041ad12a6d0a351b814f78263165a346eb2efc0eaed3f64b1d55b6df3e5197433e290b483f4516d22b545b58c63
@@ -0,0 +1,21 @@
1
+ require 'json'
2
+ require 'net/https'
3
+
4
+ class Application
5
+ def self.getData
6
+ resp = nil
7
+ http = Net::HTTP.new('exapi-dev.wwt.com', 443)
8
+ http.use_ssl = true
9
+ http.start do |http|
10
+ req = Net::HTTP::Get.new('/apirouter/api/forward/applications')
11
+
12
+ # we make an HTTP basic auth by passing the username and password
13
+ req.basic_auth 'atcservice@wwt.com', 'YV^9AecTDBHjZ=M'
14
+ resp = http.request(req)
15
+ end
16
+ if resp.code != '200' then
17
+ raise 'The reponse from the applications service is:'+resp.code+' and the messages is'+resp.body.to_s
18
+ end
19
+ JSON.parse(resp.body)
20
+ end
21
+ end
metadata ADDED
@@ -0,0 +1,45 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: third-party-services-ericksot
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Todd Erickson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-03-22 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A simple hello world gem
14
+ email: ericksot@wwt.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/third-party-services-ericksot.rb
20
+ homepage: http://rubygems.org/gems/third-party-services-ericksot
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubyforge_project:
40
+ rubygems_version: 2.0.14
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: Testing THis!
44
+ test_files: []
45
+ has_rdoc: