browserstack-local 1.1.0 → 1.2.0

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
  SHA1:
3
- metadata.gz: 88c13f76eadbf4f7a3ce9747ccefe43b843d1557
4
- data.tar.gz: e1628e17b6092cd21d5f38568e3ff2d15f2ffef8
3
+ data.tar.gz: 6b4e316e95657f8c58585db0ab6b7226076280e9
4
+ metadata.gz: b25fa6538f32d3567fdfe1e49405346edd9fb5b8
5
5
  SHA512:
6
- metadata.gz: 4a0027194af0f8c5ce6a1489684f83ac8957a6988b7d683b5d6bd3e7ce70c2ba7ccceab357e3d62b490128840fe8f1ac68350b1e730a57e8d0d1abbdadc0ade0
7
- data.tar.gz: e9092731be97e515592fa794e7f5b7961a4bf17199897cbfc774ac4b7fccf38f75eb755f067943273490dda0466d3d654dad181b8c8cdaf5af65a99c003977a6
6
+ data.tar.gz: bd4560bde812010f358e2bc6f07282aea931441c5387810e7eba3536b74e9165f5ecc02ebd2ed990253aa72e129cbe4c2cdd10c1258c72e7f4c9ab2c6362594a
7
+ metadata.gz: b8ad2ee74ec3b495c32cc47d77eea3080b123bfb6fca12a633d704b1fde5257cea77e84251461856c9343dc5d74b006fd1aef863bd7463cec56f88508a0b7ef1
@@ -92,7 +92,7 @@ class Local
92
92
  data = JSON.parse(line) rescue {"message" => "Unable to parse daemon mode JSON output"}
93
93
  if data['state'].to_s != "connected"
94
94
  @process.close
95
- raise BrowserStack::LocalException.new(data["message"])
95
+ raise BrowserStack::LocalException.new(data["message"]["message"])
96
96
  return
97
97
  else
98
98
  @pid = data["pid"]
@@ -42,7 +42,7 @@ class LocalBinary
42
42
  http.verify_mode = OpenSSL::SSL::VERIFY_NONE
43
43
 
44
44
  res = http.get(uri.path)
45
- file = open(binary_path, 'w')
45
+ file = open(binary_path, 'wb')
46
46
  file.write(res.body)
47
47
  file.close
48
48
  FileUtils.chmod 0755, binary_path
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: browserstack-local
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BrowserStack
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2016-07-11 00:00:00 Z
12
+ date: 2016-09-19 00:00:00 Z
13
13
  dependencies: []
14
14
 
15
15
  description: Ruby bindings for BrowserStack Local
@@ -52,4 +52,3 @@ specification_version: 4
52
52
  summary: BrowserStack Local
53
53
  test_files: []
54
54
 
55
- has_rdoc: