linkser 0.0.14 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,4 @@
1
1
  rvm:
2
- - 1.8.7
3
- - 1.9.2
4
- - rbx
2
+ - 1.9.3
5
3
  - ree
6
4
 
@@ -7,7 +7,6 @@ module Linkser
7
7
 
8
8
  def initialize url, options={}
9
9
  head = get_head url, options
10
-
11
10
  @object =
12
11
  case head.content_type
13
12
  when "text/html"
@@ -41,6 +40,7 @@ module Linkser
41
40
  return response
42
41
  when Net::HTTPRedirection then
43
42
  location = response['location']
43
+ location = "#{uri.scheme}://#{uri.host}:#{uri.port}#{location}" if location.start_with?("/")
44
44
  warn "Redirecting to #{location}"
45
45
  return get_head location, options, limit - 1
46
46
  else
@@ -1,3 +1,3 @@
1
1
  module Linkser
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linkser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
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: 2013-01-08 00:00:00.000000000 Z
12
+ date: 2013-03-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: !ruby/object:Gem::Requirement
16
+ requirement: &74258190 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,15 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
24
+ version_requirements: *74258190
30
25
  - !ruby/object:Gem::Dependency
31
26
  name: nokogiri
32
- requirement: !ruby/object:Gem::Requirement
27
+ requirement: &74257830 !ruby/object:Gem::Requirement
33
28
  none: false
34
29
  requirements:
35
30
  - - ! '>='
@@ -37,15 +32,10 @@ dependencies:
37
32
  version: 1.4.0
38
33
  type: :runtime
39
34
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: 1.4.0
35
+ version_requirements: *74257830
46
36
  - !ruby/object:Gem::Dependency
47
37
  name: rmagick
48
- requirement: !ruby/object:Gem::Requirement
38
+ requirement: &74257450 !ruby/object:Gem::Requirement
49
39
  none: false
50
40
  requirements:
51
41
  - - ~>
@@ -53,15 +43,10 @@ dependencies:
53
43
  version: 2.13.1
54
44
  type: :runtime
55
45
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: 2.13.1
46
+ version_requirements: *74257450
62
47
  - !ruby/object:Gem::Dependency
63
48
  name: ruby-imagespec
64
- requirement: !ruby/object:Gem::Requirement
49
+ requirement: &74257110 !ruby/object:Gem::Requirement
65
50
  none: false
66
51
  requirements:
67
52
  - - ~>
@@ -69,15 +54,10 @@ dependencies:
69
54
  version: 0.2.0
70
55
  type: :runtime
71
56
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ~>
76
- - !ruby/object:Gem::Version
77
- version: 0.2.0
57
+ version_requirements: *74257110
78
58
  - !ruby/object:Gem::Dependency
79
59
  name: ging-opengraph
80
- requirement: !ruby/object:Gem::Requirement
60
+ requirement: &74256700 !ruby/object:Gem::Requirement
81
61
  none: false
82
62
  requirements:
83
63
  - - ~>
@@ -85,15 +65,10 @@ dependencies:
85
65
  version: 0.0.4
86
66
  type: :runtime
87
67
  prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ~>
92
- - !ruby/object:Gem::Version
93
- version: 0.0.4
68
+ version_requirements: *74256700
94
69
  - !ruby/object:Gem::Dependency
95
70
  name: rspec
96
- requirement: !ruby/object:Gem::Requirement
71
+ requirement: &74256340 !ruby/object:Gem::Requirement
97
72
  none: false
98
73
  requirements:
99
74
  - - ! '>='
@@ -101,12 +76,7 @@ dependencies:
101
76
  version: 2.7.0
102
77
  type: :development
103
78
  prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ! '>='
108
- - !ruby/object:Gem::Version
109
- version: 2.7.0
79
+ version_requirements: *74256340
110
80
  description: Linkser is a link parser for Ruby. It gets an URI, tries to dereference
111
81
  it and returns the relevant information about the resource.
112
82
  email:
@@ -151,9 +121,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
121
  version: '0'
152
122
  requirements: []
153
123
  rubyforge_project:
154
- rubygems_version: 1.8.24
124
+ rubygems_version: 1.8.10
155
125
  signing_key:
156
126
  specification_version: 3
157
127
  summary: A link parser for Ruby
158
128
  test_files: []
159
- has_rdoc: