stealth_browser_automation 1.1.21 → 1.1.22

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: 98206842d280f91c4f006f89947334f93f3c0d4a
4
- data.tar.gz: 94b8ad50fb05841ab40028a81cfdc94805ecd6d3
3
+ metadata.gz: 67e04c19c3a815cdf05e0cc467f5bafa6f07171b
4
+ data.tar.gz: 23b30a071938aaed5dca1a829dded4555362593b
5
5
  SHA512:
6
- metadata.gz: c5749c9f76fc2e89a50d0a5dd526f06af5b6aae89c18c264326cb78a509eed502bb594e6931f4294487bfd8937179ff93025c801afcef3933de9dcf6486cf8e2
7
- data.tar.gz: 6789965897ab92d2aa576188a5fc1fd60d42c1086d83ffe13949d992419e396808e3ccd074df40e99d003c255e70cd5d562fd7b8d5681e2d915820cf0a7e0e94
6
+ metadata.gz: 97bf2d2cccc8c0d7f52f468974fbd6f37d47114f77a7b88f081e60af3f8ad131bc85811c478e018c82775bc84cde78bd788f1d6be1b61d9fd1d88ddb1aaaaf9c
7
+ data.tar.gz: 1e5a350d47e3a42aad26d283cbde56ba29e97ebc31a61e3319486608db86ee22735130126b10e5addad1ecc42ea9a2a83427cf909c794f9023909a86da06e157
@@ -55,11 +55,13 @@ module BlackStack
55
55
  req = Net::HTTP::Post.new(uri)
56
56
  req['Content-Type'] = 'application/json'
57
57
  res = Net::HTTP.start(uri.host, uri.port, :use_ssl => false, :verify_mode => OpenSSL::SSL::VERIFY_NONE) {|http|
58
- http.request(req)
58
+ req = Net::HTTP::Post.new(uri)
59
+ req['Content-Type'] = 'application/json'
60
+ req.body = [profile_id].to_json
61
+ res = JSON.parse(http.request(req).body)
62
+ raise "Error creating Multilogin local profile: #{res.to_s}" if res['status'] != 'OK'
63
+ return res['uuid']
59
64
  }
60
- res = JSON.parse(res.body)
61
- raise "Error removing Multilogin local profile: #{res.to_s}" if !res.has_key?('status')
62
- raise "Error removing Multilogin local profile: #{res['status'].to_s}" if res['status'] != 'OK'
63
65
  end # def self.delete_profile
64
66
 
65
67
  # returns the profileId of the new Mimic profile
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stealth_browser_automation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.21
4
+ version: 1.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-01 00:00:00.000000000 Z
11
+ date: 2020-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mini_magick