agent_q 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/agent_q +3 -1
- data/lib/agent_q.rb +5 -4
- metadata +2 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6835a597fb292b8f542350de164cd2e454fa17e3
|
|
4
|
+
data.tar.gz: a846634d85a1d6c77439a19512f9520c2b8ff254
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6e00d2da2f4f14c64979cbbab27e959bc0b566ba14ee070340857f5bf1f527ccfd8e5ed407c9f65600d21f90a75f6e1f854f7e4bca2ba3dcf93c4794983daa17
|
|
7
|
+
data.tar.gz: e2c07ed6a94c60a624a798718670e156924bafd9d5573346938934a3f1d81fe906b605f9f0abc9ab7b9dea7ed735090477c0846df51333b203ec211b087b5a59
|
data/bin/agent_q
CHANGED
|
@@ -6,6 +6,8 @@ quepid_case = ARGV[0]
|
|
|
6
6
|
threshold_score = ARGV[1]
|
|
7
7
|
username = ARGV[2]
|
|
8
8
|
password = ARGV[3]
|
|
9
|
+
quepid_url = ARGV[4]
|
|
9
10
|
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
|
|
13
|
+
AgentQ.new(quepid_case, threshold_score, username, password, quepid_url).run
|
data/lib/agent_q.rb
CHANGED
|
@@ -9,15 +9,16 @@ require 'json'
|
|
|
9
9
|
class AgentQ
|
|
10
10
|
include Capybara::DSL
|
|
11
11
|
|
|
12
|
-
QUEPID_URL = 'http://app.quepid.com'
|
|
13
12
|
|
|
14
|
-
def initialize(quepid_case, threshold_score, username, password)
|
|
15
|
-
Capybara.default_driver = :poltergeist
|
|
16
|
-
Capybara.app_host = QUEPID_URL
|
|
13
|
+
def initialize(quepid_case, threshold_score, username, password, quepid_url)
|
|
17
14
|
@quepid_case = quepid_case
|
|
18
15
|
@threshold_score = threshold_score
|
|
19
16
|
@username = username
|
|
20
17
|
@password = password
|
|
18
|
+
@quepid_url = quepid_url
|
|
19
|
+
|
|
20
|
+
Capybara.default_driver = :poltergeist
|
|
21
|
+
Capybara.app_host = @quepid_url
|
|
21
22
|
end
|
|
22
23
|
|
|
23
24
|
def run
|
metadata
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: agent_q
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eric Pugh
|
|
8
|
-
- Matt Overstreet
|
|
9
8
|
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date: 2018-
|
|
11
|
+
date: 2018-09-03 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: capybara
|
|
@@ -57,7 +56,6 @@ description: A ruby agent that wraps PhantomJS that runs a specific Quepid Case
|
|
|
57
56
|
returns if your relevancy score meets or below a threshold.
|
|
58
57
|
email:
|
|
59
58
|
- epugh@opensourceconnections.com
|
|
60
|
-
- moverstreet@opensourceconnections.com
|
|
61
59
|
executables:
|
|
62
60
|
- agent_q
|
|
63
61
|
extensions: []
|