google_anymote 0.0.3 → 0.0.4

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.
data/bin/discover CHANGED
@@ -34,7 +34,7 @@ begin
34
34
  devices['screens'] = {}
35
35
  # Find as many devices as we can in n seconds
36
36
  Timeout::timeout(4) {
37
- puts "Looking for devices..."
37
+ print "Looking for devices..."
38
38
  loop do
39
39
  # Wait for data to hit our socket...
40
40
  data,from = listener.recvfrom(100)
@@ -50,13 +50,14 @@ begin
50
50
  devices['screens'][reply[1]] = {'host' => host, 'port' => port, 'uri' => uri}
51
51
  # puts " found device: #{devices['screens'][reply[1]]}"
52
52
  end
53
+
54
+ # Update the display to let the user know that we are still searching
55
+ print "."
53
56
  end
54
57
  }
55
58
  rescue Timeout::Error => e
56
- puts "---\nSearch complete. I found a total of #{devices['screens'].size} GoogleTV(s).\n"
57
- puts devices.to_yaml.encoding
59
+ puts "\nSearch complete. I found a total of #{devices['screens'].size} GoogleTV(s).\n"
58
60
  puts devices.to_yaml
59
- puts devices.to_yaml.encoding
60
61
  end
61
62
 
62
63
  # Clean up
@@ -1,4 +1,4 @@
1
1
  module GoogleAnymote
2
2
  # Gem version
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_anymote
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: