radiospieler 0.3.8 → 0.3.10

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.8
1
+ 0.3.10
@@ -25,6 +25,11 @@ module Http
25
25
  end
26
26
 
27
27
  def get(url, max_age = nil)
28
+ body, headers = get_body_and_headers(url, max_age)
29
+ reencode body, (headers["content-type"] || []).join(";")
30
+ end
31
+
32
+ def get_binary(url, max_age = nil)
28
33
  body, headers = get_body_and_headers(url, max_age)
29
34
  body
30
35
  end
@@ -57,8 +62,7 @@ module Http
57
62
 
58
63
  case response
59
64
  when Net::HTTPSuccess then
60
- body, headers = response.body, response.to_hash
61
- [ reencode(body, response["Content-Type"]), headers ]
65
+ [ response.body, response.to_hash ]
62
66
  when Net::HTTPRedirection then
63
67
  location = response['location']
64
68
  App.logger.debug "redirected to #{location}"
@@ -73,6 +77,7 @@ module Http
73
77
 
74
78
  encodings.unshift($1) if content_type =~ /; charset=(\S+)/
75
79
  encodings.unshift(html_encoding(body)) if content_type =~ /html/
80
+ encodings.unshift(xml_encoding(body)) if content_type =~ /xml/
76
81
 
77
82
  force_valid_encoding body, *encodings
78
83
  end
@@ -98,4 +103,8 @@ module Http
98
103
  return unless node && node["content"] =~ /; charset=(\S+)/
99
104
  $1
100
105
  end
106
+
107
+ def xml_encoding(xml)
108
+ Nokogiri.XML(xml).encoding
109
+ end
101
110
  end
data/radiospieler.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "radiospieler"
8
- s.version = "0.3.8"
8
+ s.version = "0.3.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["radiospiel"]
12
- s.date = "2012-05-03"
12
+ s.date = "2012-05-04"
13
13
  s.description = "Some basics that your application could benefit from."
14
14
  s.email = "eno@open-lab.org"
15
15
  s.extra_rdoc_files = [
@@ -386,4 +386,299 @@ http_interactions:
386
386
  cmlwdD4=
387
387
  http_version: '1.1'
388
388
  recorded_at: Tue, 03 Apr 2012 11:11:07 GMT
389
- recorded_with: VCR 2.0.1
389
+ - request:
390
+ method: get
391
+ uri: http://nowhere.test/9162.xml
392
+ body:
393
+ encoding: US-ASCII
394
+ string: ''
395
+ headers:
396
+ Accept:
397
+ - ! '*/*'
398
+ User-Agent:
399
+ - Ruby
400
+ response:
401
+ status:
402
+ code: 200
403
+ message: !binary |-
404
+ T0s=
405
+ headers:
406
+ !binary "U2VydmVy":
407
+ - !binary |-
408
+ bmdpbngvMC43LjY1
409
+ !binary "RGF0ZQ==":
410
+ - !binary |-
411
+ VGh1LCAwMyBNYXkgMjAxMiAxNDoxNjoyMiBHTVQ=
412
+ Content-Type:
413
+ - !binary |-
414
+ dGV4dC94bWw=
415
+ Content-Length:
416
+ - !binary |-
417
+ MTA4OTU=
418
+ Last-Modified:
419
+ - !binary |-
420
+ VGh1LCAwMyBNYXkgMjAxMiAwODoxMDoyNCBHTVQ=
421
+ !binary "Q29ubmVjdGlvbg==":
422
+ - !binary |-
423
+ a2VlcC1hbGl2ZQ==
424
+ !binary "VmFyeQ==":
425
+ - !binary |-
426
+ QWNjZXB0LUVuY29kaW5n
427
+ !binary "RXhwaXJlcw==":
428
+ - !binary |-
429
+ VGh1LCAzMSBEZWMgMjAzNyAyMzo1NTo1NSBHTVQ=
430
+ Cache-Control:
431
+ - !binary |-
432
+ bWF4LWFnZT0zMTUzNjAwMDA=
433
+ Accept-Ranges:
434
+ - !binary |-
435
+ Ynl0ZXM=
436
+ body:
437
+ encoding: ASCII-8BIT
438
+ string: !binary |-
439
+ PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48Y2luZW1h
440
+ PjxjaW5lbWEtZGV0YWlscz48bmFtZT48IVtDREFUQVtPZGVvbl1dPjwvbmFt
441
+ ZT48c3RyZWV0PjwhW0NEQVRBW0hhdXB0c3RyLiAxMTZdXT48L3N0cmVldD48
442
+ emlwLWNvZ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sIHNleHkgU2NoYXVzcGllbGVyaW4gdW5kIGZsYXR0ZXJ0ZSBzdGV0cyB6
670
+ d2lzY2hlbiBlaW5lbSBuYWl2ZW4gS2luZCB1bmQgZWluZXIgRXJvdGlraWtv
671
+ bmUgaGluLSB1bmQgaGVyLiBNaWNoZWxsZSBXaWxsaWFtcyBzY2hhZmZ0IGRp
672
+ ZXMgbGVpZGVyIG5pY2h0IGltbWVyLCBpY2ggbW9jaHRlIGF1Y2ggbmljaHQg
673
+ d2lya2xpY2ggZGVuIHBhdXNiw6Rja2lnZW4gRWRkaWUgUmVkbWF5bmUgdW5k
674
+ IGRlbiBQbG90IGRlcyBGaWxtcy4gRXMgaW50ZXJlc3NpZXJ0IG1pY2ggZWlu
675
+ ZmFjaCBuaWNodCB3aXJrbGljaCwgd2FzIGRhIHp3aXNjaGVuIGRlbSBCdWJp
676
+ IHVuZCBkZW0gU2VzeW1ib2wgcGFzc2llcnQuIFVtIE1hcmlseW4gTW9ucm9l
677
+ IHp1IHZlcnN0ZWhlbiwgd8O8cmRlIGljaCB3aXJrbGljaCBsaWViZXIgbm9j
678
+ aG1hbCBlaW5lbiBGaWxtIG1pdCBpaHIgYW5zZWhlbiwgYXVjaCB3ZW5uIGlj
679
+ aCBNeSBXZWVrIHdpdGggTWFyaWx5biBhbHMgZ3V0ZW4gRmlsbSBlcmFjaHRl
680
+ LiBdXT48L3RleHQ+PC9jb21tZW50PjwvY29tbWVudHM+PC9tb3ZpZT48L2Np
681
+ bmVtYT4=
682
+ http_version:
683
+ recorded_at: Thu, 03 May 2012 14:16:22 GMT
684
+ recorded_with: VCR 2.1.1
data/test/http_test.rb CHANGED
@@ -18,10 +18,24 @@ class HttpTest < Test::Unit::TestCase
18
18
 
19
19
  def test_get_body_and_headers
20
20
  VCR.use_cassette('http_test') do
21
- body, headers = Http.get_body_and_headers("http://google.de", 0)
21
+ body, headers = Http.get("http://google.de", 0)
22
22
  assert body.starts_with?("<!doctype html>")
23
- assert_equal ["text/html; charset=ISO-8859-1"], headers["content-type"]
24
23
  assert_equal "UTF-8", body.encoding.name
25
24
  end
26
25
  end
26
+
27
+ def test_xml_url
28
+ VCR.use_cassette('http_test', :record => :new_episodes) do
29
+ body, headers = Http.get("http://nowhere.test/9162.xml", 0)
30
+ assert body =~ /Tänzerin/, "Encoding should accept UTF-8 umlauts"
31
+ assert_equal "UTF-8", body.encoding.name
32
+ end
33
+ end
34
+
35
+ def test_get_binaty
36
+ VCR.use_cassette('http_test', :record => :new_episodes) do
37
+ body, headers = Http.get_binary("http://nowhere.test/9162.xml", 0)
38
+ assert_equal "ASCII-8BIT", body.encoding.name
39
+ end
40
+ end
27
41
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiospieler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-03 00:00:00.000000000 Z
12
+ date: 2012-05-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: htmlentities
16
- requirement: &70261390331080 !ruby/object:Gem::Requirement
16
+ requirement: &70261663798980 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70261390331080
24
+ version_requirements: *70261663798980
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: simple_cache_rs
27
- requirement: &70261390330540 !ruby/object:Gem::Requirement
27
+ requirement: &70261663798280 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70261390330540
35
+ version_requirements: *70261663798280
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: nokogiri
38
- requirement: &70261390329900 !ruby/object:Gem::Requirement
38
+ requirement: &70261663797160 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70261390329900
46
+ version_requirements: *70261663797160
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
- requirement: &70261390329360 !ruby/object:Gem::Requirement
49
+ requirement: &70261663796000 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70261390329360
57
+ version_requirements: *70261663796000
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: jeweler
60
- requirement: &70261390328680 !ruby/object:Gem::Requirement
60
+ requirement: &70261663794260 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70261390328680
68
+ version_requirements: *70261663794260
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: vcr
71
- requirement: &70261390327980 !ruby/object:Gem::Requirement
71
+ requirement: &70261663793180 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70261390327980
79
+ version_requirements: *70261663793180
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: webmock
82
- requirement: &70261390326640 !ruby/object:Gem::Requirement
82
+ requirement: &70261663792640 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70261390326640
90
+ version_requirements: *70261663792640
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: psych
93
- requirement: &70261390325880 !ruby/object:Gem::Requirement
93
+ requirement: &70261663791640 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: '0'
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *70261390325880
101
+ version_requirements: *70261663791640
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: simplecov
104
- requirement: &70261390325340 !ruby/object:Gem::Requirement
104
+ requirement: &70261663790980 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: '0'
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *70261390325340
112
+ version_requirements: *70261663790980
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: ruby-debug19
115
- requirement: &70261390324680 !ruby/object:Gem::Requirement
115
+ requirement: &70261663790200 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ! '>='
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: '0'
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *70261390324680
123
+ version_requirements: *70261663790200
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: simple_cov
126
- requirement: &70261390324020 !ruby/object:Gem::Requirement
126
+ requirement: &70261663789380 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ! '>='
@@ -131,7 +131,7 @@ dependencies:
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *70261390324020
134
+ version_requirements: *70261663789380
135
135
  description: Some basics that your application could benefit from.
136
136
  email: eno@open-lab.org
137
137
  executables: []
@@ -198,7 +198,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
198
198
  version: '0'
199
199
  segments:
200
200
  - 0
201
- hash: -453988988338308160
201
+ hash: 3228294531460670923
202
202
  required_rubygems_version: !ruby/object:Gem::Requirement
203
203
  none: false
204
204
  requirements: