airvideo 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/airvideo.rb +3 -3
  3. metadata +4 -9
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.5
1
+ 0.0.6
@@ -19,11 +19,11 @@ module AirVideo
19
19
  #
20
20
  # At the moment I'm expecting ENV['HTTP_PROXY'] to have the form 'sub.domain.com:8080', I throw an http:// and bung it into URI.parse for convenience.
21
21
  def initialize(server,port = 45631,password=nil)
22
- if ENV['HTTP_PROXY'].nil?
23
- @http = Net::HTTP
24
- else
22
+ begin
25
23
  proxy = URI.parse("http://"+ENV['HTTP_PROXY'])
26
24
  @http = Net::HTTP::Proxy(proxy.host, proxy.port)
25
+ rescue
26
+ @http = Net::HTTP
27
27
  end
28
28
  @endpoint = URI.parse "http://#{server}:#{port}/service"
29
29
  @passworddigest = Digest::SHA1.hexdigest("S@17" + password + "@1r").upcase if !password.nil?
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airvideo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 0
9
- - 5
10
- version: 0.0.5
8
+ - 6
9
+ version: 0.0.6
11
10
  platform: ruby
12
11
  authors:
13
12
  - JP Hastings-Spital
@@ -15,7 +14,7 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-05-24 00:00:00 +01:00
17
+ date: 2010-05-25 00:00:00 +01:00
19
18
  default_executable:
20
19
  dependencies: []
21
20
 
@@ -44,27 +43,23 @@ rdoc_options:
44
43
  require_paths:
45
44
  - lib
46
45
  required_ruby_version: !ruby/object:Gem::Requirement
47
- none: false
48
46
  requirements:
49
47
  - - ">="
50
48
  - !ruby/object:Gem::Version
51
- hash: 3
52
49
  segments:
53
50
  - 0
54
51
  version: "0"
55
52
  required_rubygems_version: !ruby/object:Gem::Requirement
56
- none: false
57
53
  requirements:
58
54
  - - ">="
59
55
  - !ruby/object:Gem::Version
60
- hash: 3
61
56
  segments:
62
57
  - 0
63
58
  version: "0"
64
59
  requirements: []
65
60
 
66
61
  rubyforge_project:
67
- rubygems_version: 1.3.7
62
+ rubygems_version: 1.3.6
68
63
  signing_key:
69
64
  specification_version: 3
70
65
  summary: Allows communication with an AirVideo server