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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mind_meld/device.rb +7 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a5e9cb6b0333f7744eae18b357aedc5a7f210639
4
- data.tar.gz: 5a92afa0428c48cdc212600653e8d513bcc7368f
3
+ metadata.gz: c36f7bd086fb8cf7f5a125636870edbca927c7f2
4
+ data.tar.gz: 63dd877a5c0916987285487006e21aa89d5d1644
5
5
  SHA512:
6
- metadata.gz: f31caa2e9f52f55235867b1202d14be9c3cba76ff11f8637f985cc4930281e0885bcbc8a9f572b02c111544aba8228830aacad6f543d55ece8faf3f1942c2f01
7
- data.tar.gz: 7f20393534f3521c56c08212844ca7e758b4aae522960eb7a49bdb1a4d4b23c159e6cfc5df9765b6e42fda87bf1b112dcb0fa99e3be1164c25c82afeb572c484
6
+ metadata.gz: 293b8adbe092a8000b56134cfd5375a469f2b3e0c5816e8651577a385595eac1fd4c3fbed7a17a15f14b0b3c73aee771890b4669525311326c0ca16d9e4d44ef
7
+ data.tar.gz: 7ff18a9c7664bf67e515d95b833427d2392fa588ce5a629f888343d076e1fd915f4100f5aab4f69ce0a13c3941d8d803c682a30d66dcfc99db0daeaf16ba2111
@@ -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.5
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-21 00:00:00.000000000 Z
11
+ date: 2016-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport