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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9583ca630b54cc83f9bffdb91b5094b7cc01145b
4
- data.tar.gz: 7695f9fe20e298629f5eb5af67d8ea8f5c345616
3
+ metadata.gz: bd7c3fdd71fbf4beb27c289fad8004e622e5df1f
4
+ data.tar.gz: 4f362519341b2196f742ac431c208d0cf1773d97
5
5
  SHA512:
6
- metadata.gz: ec25812e078a96cf28ecd54ed6cf2325ef84ce46e15087d49b55341ca9a9be8542e5848bc493933dd33fd856c2c5a958a9855e0ca7158d4cd579a439d604760d
7
- data.tar.gz: 210f8f1ff0d433b688af770419592f4966dedac076499a0913193cd948ee71f7a545b185e007206ced54c3bb5642f780d5f53ead36c06e8575727cfbd0d1e631
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
- pre_poll_LIS
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
- post_poll_LIS
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 || "192.168.1.14"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_astm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bhargav Raut