mind_meld 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mind_meld/device.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c36f7bd086fb8cf7f5a125636870edbca927c7f2
|
4
|
+
data.tar.gz: 63dd877a5c0916987285487006e21aa89d5d1644
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 293b8adbe092a8000b56134cfd5375a469f2b3e0c5816e8651577a385595eac1fd4c3fbed7a17a15f14b0b3c73aee771890b4669525311326c0ca16d9e4d44ef
|
7
|
+
data.tar.gz: 7ff18a9c7664bf67e515d95b833427d2392fa588ce5a629f888343d076e1fd915f4100f5aab4f69ce0a13c3941d8d803c682a30d66dcfc99db0daeaf16ba2111
|
data/lib/mind_meld/device.rb
CHANGED
@@ -44,6 +44,13 @@ class MindMeld::Device < MindMeld
|
|
44
44
|
response
|
45
45
|
end
|
46
46
|
|
47
|
+
def send_screenshot options
|
48
|
+
encoded = nil
|
49
|
+
encoded = Base64.encode64(File.open(options[:screenshot], "rb").read) if File.exists?(options[:screenshot])
|
50
|
+
response = request :put, 'devices/screenshot', { device_action: { screenshot: encoded, device_id: options[:device_id] } }
|
51
|
+
response
|
52
|
+
end
|
53
|
+
|
47
54
|
def device_details(refresh = false)
|
48
55
|
if refresh || ! @device_details.has_key?(:id)
|
49
56
|
if @device_details.has_key? :id
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mind_meld
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Haig
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|