airvideo 0.0.1 → 0.0.2

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.
Files changed (4) hide show
  1. data/README.rdoc +1 -1
  2. data/VERSION +1 -1
  3. data/lib/airvideo.rb +5 -5
  4. metadata +3 -3
data/README.rdoc CHANGED
@@ -1,5 +1,5 @@
1
1
  = AirVideo for Ruby
2
- Have you ever thought to yourself: I have AirVideo (http://www.inmethod.com/air-video/index.html) running on my computer and I enjoy it so much
2
+ Have you ever thought to yourself: I have AirVideo (http://www.inmethod.com/air-video/) running on my computer and I enjoy it so much
3
3
  that not only have I bought the iPhone and iPad apps, I'd also love to be able to watch my video on my laptop too?
4
4
 
5
5
  Me too! So I reverse engineered their communication protocol and came up with this. It's a little hacky (and it's certainly not been tested outside of Mac OS X 10.6)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
data/lib/airvideo.rb CHANGED
@@ -12,7 +12,7 @@ module AirVideo
12
12
  #
13
13
  # Setting #max_height and #max_width *should* be working with the Live Conversion, but for some reason it's not quite happening. Defaults are 640x480
14
14
  class Client
15
- attr_accessor :max_hieght, :max_width
15
+ attr_accessor :max_height, :max_width
16
16
 
17
17
  # Specify where your AirVideo Server lives. If your HTTP_PROXY environment variable is set, it will be honoured.
18
18
  #
@@ -45,7 +45,7 @@ module AirVideo
45
45
  def ls(dir = ".")
46
46
  dir = File.expand_path(dir,@current_dir)[1..-1]
47
47
  dir = nil if dir == ""
48
- #begin
48
+ begin
49
49
  request("browseService","getItems",[dir])['result']['items'].collect do |hash|
50
50
  case hash.name
51
51
  when "air.video.DiskRootFolder", "air.video.ITunesRootFolder","air.video.Folder"
@@ -56,9 +56,9 @@ module AirVideo
56
56
  raise NotImplementedError, "Unknown: #{hash.name}"
57
57
  end
58
58
  end
59
- #rescue NoMethodError
60
- # raise RuntimeError, "This folder does not exist"
61
- #end
59
+ rescue NoMethodError
60
+ raise RuntimeError, "This folder does not exist"
61
+ end
62
62
  end
63
63
 
64
64
  # Changes to the given directory. Will accept an AirVideo::FolderObject or a string.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airvideo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - JP Hastings-Spital