ruby_astm 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/publisher/google_lab_interface.rb +3 -4
- data/lib/ruby_astm/astm_server.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd7c3fdd71fbf4beb27c289fad8004e622e5df1f
|
4
|
+
data.tar.gz: 4f362519341b2196f742ac431c208d0cf1773d97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: defa4d7a6c2de7b555847665f6b1ec254ea2a0cd01de7773af692d671c06db73d3c959a25e7bc7dce30d507b83c8827d4132c20b03a0ef01a0ffc334f59d3e4a
|
7
|
+
data.tar.gz: f9410014889568847b62dc9072f064a1823f2e08dc513cc9aa884e2d8ea786260c081c746aeb397d60bb251d98ee5637ad4a9c0ca53b05af723a3769b952c36c
|
@@ -49,8 +49,8 @@ class Google_Lab_Interface < Poller
|
|
49
49
|
|
50
50
|
## @param[String] mpg : path to mappings file. Defaults to nil.
|
51
51
|
def initialize(mpg=nil)
|
52
|
-
AstmServer.log("Initialized Google Lab Interface")
|
53
52
|
super(mpg)
|
53
|
+
AstmServer.log("Initialized Google Lab Interface")
|
54
54
|
$service = Google::Apis::ScriptV1::ScriptService.new
|
55
55
|
$service.client_options.application_name = APPLICATION_NAME
|
56
56
|
$service.authorization = authorize
|
@@ -59,7 +59,7 @@ class Google_Lab_Interface < Poller
|
|
59
59
|
|
60
60
|
def poll_LIS_for_requisition
|
61
61
|
|
62
|
-
|
62
|
+
|
63
63
|
|
64
64
|
AstmServer.log("polling LIS for new requisitions")
|
65
65
|
|
@@ -87,7 +87,7 @@ class Google_Lab_Interface < Poller
|
|
87
87
|
AstmServer.log("Error backtrace")
|
88
88
|
AstmServer.log(e.backtrace.to_s)
|
89
89
|
ensure
|
90
|
-
|
90
|
+
|
91
91
|
end
|
92
92
|
|
93
93
|
end
|
@@ -127,7 +127,6 @@ class Google_Lab_Interface < Poller
|
|
127
127
|
|
128
128
|
end
|
129
129
|
|
130
|
-
|
131
130
|
def poll
|
132
131
|
super
|
133
132
|
end
|
@@ -20,10 +20,10 @@ class AstmServer
|
|
20
20
|
$record_end = "[13]"
|
21
21
|
$frame_end = "[10]"
|
22
22
|
|
23
|
-
def initialize(server_ip,server_port,mpg,respond_to_queries=false)
|
23
|
+
def initialize(server_ip=nil,server_port=nil,mpg=nil,respond_to_queries=false)
|
24
24
|
$redis = Redis.new
|
25
25
|
AstmServer.log("Initializing AstmServer")
|
26
|
-
self.server_ip = server_ip || "
|
26
|
+
self.server_ip = server_ip || "127.0.0.1"
|
27
27
|
self.server_port = server_port || 3000
|
28
28
|
self.respond_to_queries = respond_to_queries
|
29
29
|
$mappings = JSON.parse(IO.read(mpg || ("mappings.json")))
|
@@ -44,6 +44,6 @@ class AstmServer
|
|
44
44
|
|
45
45
|
## now we need to run the server and poller.
|
46
46
|
## thats what we need.
|
47
|
-
|
47
|
+
|
48
48
|
|
49
49
|
end
|