proboscis_cli 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: acb31aaf3b03cb84ad89586625715ed8411b4ea360507d7f18f25061035fee17
4
- data.tar.gz: 4f8dfc32ba55307289e5ed78c8e6c2f67d0d543dcb5590905e4ad788b91a64da
3
+ metadata.gz: 3cbc736f1e936f45c8e4e167a55784f18063f2fb2e13ed0c2e9856164d28c669
4
+ data.tar.gz: 56ef338a7d07d409cbc896e4a2aea335bf4ca819e97b9d2c015b7c0905efec57
5
5
  SHA512:
6
- metadata.gz: c85d27624a9ff37a6b722915cfaf145101e1883d9efd521b07a6cf5e900882bada72fcb1ae9a6a5bfa11584e2b186a92a99b899abfe0310e5bbaadba443fbfd5
7
- data.tar.gz: a9b24c998096cf19447c697945a0df39f6ba7fe8dd7c2b463ab34051691f4bfc697215e93cc28e90871d05c98f16fc6cebfb67cf8a252d3137848f59c70a2b0a
6
+ metadata.gz: b526a18fa1804f32effab07f444a09f38d38ed2f64351f4b8927b1491908168931e1d364ec566ee37d30599ddaa8d0e72fcba9722b998a54b85ab0f8fe2017bc
7
+ data.tar.gz: ad6dc3458017ec850867e0bb0bad01066d6b5fa0950f20a3033204e20c386599d2f2ac2b963526c44c2eb0a93f96275ccb927b282d305d7b4aa7c722027fae24
data/README.md CHANGED
@@ -32,6 +32,8 @@ Or install it yourself as:
32
32
  $ export proboscis_prod_target_user=<target_ssh_user>
33
33
  $ export araneae_qa_token=<araneae_token>
34
34
  $ export araneae_prod_token=<araneae_token>
35
+ $ export proboscis_qa_cli_key=<cli_key_to_bypass_captcha>
36
+ $ export proboscis_prod_cli_key=<cli_key_to_bypass_captcha>
35
37
  ```
36
38
 
37
39
  ```bash
@@ -1,3 +1,3 @@
1
1
  module ProboscisCli
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
data/lib/proboscis_cli.rb CHANGED
@@ -135,7 +135,7 @@ class Proboscis
135
135
  end
136
136
 
137
137
  def self.login(environment)
138
- response = HTTParty.post("#{@host}/api/login", body: {phoneNumber: self.param(environment, 'user'), password: self.param(environment, 'pass')}.to_json, headers: { 'Content-Type' => 'application/json' })
138
+ response = HTTParty.post("#{@host}/api/login", body: {phoneNumber: self.param(environment, 'user'), password: self.param(environment, 'pass')}.to_json, headers: { 'Content-Type' => 'application/json', 'X-Captcha-Cli-Secret': self.param(environment, 'cli_key')})
139
139
  if response.code != 200
140
140
  puts "Unable to login to proboscis.."
141
141
  exit -1
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'proboscis_cli'
3
- s.version = '0.1.1'
3
+ s.version = '0.1.2'
4
4
  s.date = '2018-04-10'
5
5
  s.summary = "A cli client for proboscis"
6
6
  s.description = "A cli client for proboscis"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proboscis_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delium engineering