agent_q 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/agent_q +3 -1
  3. data/lib/agent_q.rb +5 -4
  4. metadata +2 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb1a613ab0f3867420433990813b2ae0c2c91498
4
- data.tar.gz: e5993cc674a6c2273df3999ada4eae05adfd08ab
3
+ metadata.gz: 6835a597fb292b8f542350de164cd2e454fa17e3
4
+ data.tar.gz: a846634d85a1d6c77439a19512f9520c2b8ff254
5
5
  SHA512:
6
- metadata.gz: 285befc1d8570ebb6f6d1f9faddbfbeae7d72f8c3505256e00127c78698aba39f28e8320bd2d3f46d666c89c4681188babd071017e0603ae4ba925551b84df8b
7
- data.tar.gz: 7c2ff886a023d2e918ee6ef1ceb7eb6cdd43b832c548d76fa0faeffea7a26d3229c8d9af7b48e8007701ffc37db8fd32eb7edbc53abad59f1fec6946c840820e
6
+ metadata.gz: 6e00d2da2f4f14c64979cbbab27e959bc0b566ba14ee070340857f5bf1f527ccfd8e5ed407c9f65600d21f90a75f6e1f854f7e4bca2ba3dcf93c4794983daa17
7
+ data.tar.gz: e2c07ed6a94c60a624a798718670e156924bafd9d5573346938934a3f1d81fe906b605f9f0abc9ab7b9dea7ed735090477c0846df51333b203ec211b087b5a59
@@ -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
- AgentQ.new(quepid_case, threshold_score, username, password).run
12
+
13
+ AgentQ.new(quepid_case, threshold_score, username, password, quepid_url).run
@@ -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.6
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-06-14 00:00:00.000000000 Z
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: []