ruby-ampache 0.1.1 → 0.1.2

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/lib-ampache.rb +3 -2
  3. metadata +53 -61
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -24,13 +24,14 @@ class AmpacheRuby
24
24
  uri = URI.parse(host)
25
25
  @host = uri.host
26
26
  @path = uri.path
27
+ @port = uri.port
27
28
  @user = user
28
29
  @psw = psw
29
30
  @token = nil
30
31
  @token = getAuthToken(user, psw)
31
32
  end
32
33
 
33
- attr_accessor :host, :path, :user, :psw, :token, :playlist
34
+ attr_accessor :host, :path, :user, :psw, :token, :playlist, :port
34
35
 
35
36
  # tryies to obtain an auth token
36
37
  def getAuthToken(user, psw)
@@ -57,7 +58,7 @@ class AmpacheRuby
57
58
  begin
58
59
  args['auth'] ||= token if token
59
60
  url = path + "/server/xml.server.php?action=#{method}&#{args.keys.collect { |k| "#{k}=#{args[k]}" }.join('&')}"
60
- response = Net::HTTP.get_response(host, url)
61
+ response = Net::HTTP.get_response(host, url, port)
61
62
  return Nokogiri::XML(response.body)
62
63
  rescue Errno::ECONNREFUSED => e
63
64
  warn "Ampache closed with the following error"
metadata CHANGED
@@ -1,72 +1,69 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ruby-ampache
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
4
5
  prerelease:
5
- version: 0.1.1
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - ghedmat
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-09-26 00:00:00 +02:00
14
- default_executable: ruby-ampache
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
12
+ date: 2012-09-05 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
17
15
  name: nokogiri
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &77464180 !ruby/object:Gem::Requirement
20
17
  none: false
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
24
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
25
22
  type: :runtime
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: highline
29
23
  prerelease: false
30
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *77464180
25
+ - !ruby/object:Gem::Dependency
26
+ name: highline
27
+ requirement: &77463640 !ruby/object:Gem::Requirement
31
28
  none: false
32
- requirements:
33
- - - ">="
34
- - !ruby/object:Gem::Version
35
- version: "0"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
36
33
  type: :runtime
37
- version_requirements: *id002
38
- - !ruby/object:Gem::Dependency
39
- name: parseconfig
40
34
  prerelease: false
41
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *77463640
36
+ - !ruby/object:Gem::Dependency
37
+ name: parseconfig
38
+ requirement: &77463270 !ruby/object:Gem::Requirement
42
39
  none: false
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: "0"
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
47
44
  type: :runtime
48
- version_requirements: *id003
49
- - !ruby/object:Gem::Dependency
50
- name: open4
51
45
  prerelease: false
52
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *77463270
47
+ - !ruby/object:Gem::Dependency
48
+ name: open4
49
+ requirement: &77462720 !ruby/object:Gem::Requirement
53
50
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- version: "0"
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
58
55
  type: :runtime
59
- version_requirements: *id004
56
+ prerelease: false
57
+ version_requirements: *77462720
60
58
  description: ruby ampache command line client
61
59
  email: thamayor@gmail.com
62
- executables:
60
+ executables:
63
61
  - ruby-ampache
64
62
  extensions: []
65
-
66
- extra_rdoc_files:
63
+ extra_rdoc_files:
67
64
  - LICENSE
68
65
  - README.rdoc
69
- files:
66
+ files:
70
67
  - LICENSE
71
68
  - README.rdoc
72
69
  - Rakefile
@@ -76,33 +73,28 @@ files:
76
73
  - lib/lib-classes.rb
77
74
  - test/helper.rb
78
75
  - test/test_ruby-ampache.rb
79
- has_rdoc: true
80
76
  homepage: http://github.com/ghedamat/ruby-ampache
81
77
  licenses: []
82
-
83
78
  post_install_message:
84
79
  rdoc_options: []
85
-
86
- require_paths:
80
+ require_paths:
87
81
  - lib
88
- required_ruby_version: !ruby/object:Gem::Requirement
82
+ required_ruby_version: !ruby/object:Gem::Requirement
89
83
  none: false
90
- requirements:
91
- - - ">="
92
- - !ruby/object:Gem::Version
93
- version: "0"
94
- required_rubygems_version: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ required_rubygems_version: !ruby/object:Gem::Requirement
95
89
  none: false
96
- requirements:
97
- - - ">="
98
- - !ruby/object:Gem::Version
99
- version: "0"
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
100
94
  requirements: []
101
-
102
95
  rubyforge_project:
103
- rubygems_version: 1.5.0
96
+ rubygems_version: 1.8.10
104
97
  signing_key:
105
98
  specification_version: 3
106
99
  summary: Ruby ampache command line client
107
100
  test_files: []
108
-