almodovar 0.5.5 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
data/lib/to_xml.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require 'active_support/all'
2
+
1
3
  module Almodovar
2
4
 
3
5
  module ToXml
@@ -32,7 +32,9 @@ module Resourceful
32
32
 
33
33
  # Returns the host for this Resource's current uri
34
34
  def host
35
- Addressable::URI.parse(uri).host
35
+ parsed_uri = URI.parse(uri)
36
+ port_string = (parsed_uri.port == parsed_uri.default_port ? "" : ":#{parsed_uri.port}")
37
+ "#{parsed_uri.host}#{port_string}"
36
38
  end
37
39
 
38
40
  # Updates the effective uri after following a permanent redirect
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: almodovar
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 5
10
- version: 0.5.5
9
+ - 6
10
+ version: 0.5.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - BeBanjo S.L.
@@ -15,13 +15,11 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-06 00:00:00 +01:00
18
+ date: 2010-12-16 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: resourceful
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
22
+ version_requirements: &id001 !ruby/object:Gem::Requirement
25
23
  none: false
26
24
  requirements:
27
25
  - - "="
@@ -32,12 +30,12 @@ dependencies:
32
30
  - 5
33
31
  - 3
34
32
  version: 0.5.3
33
+ requirement: *id001
35
34
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: nokogiri
35
+ name: resourceful
39
36
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
37
+ - !ruby/object:Gem::Dependency
38
+ version_requirements: &id002 !ruby/object:Gem::Requirement
41
39
  none: false
42
40
  requirements:
43
41
  - - ">="
@@ -46,26 +44,28 @@ dependencies:
46
44
  segments:
47
45
  - 0
48
46
  version: "0"
47
+ requirement: *id002
49
48
  type: :runtime
50
- version_requirements: *id002
51
- - !ruby/object:Gem::Dependency
52
- name: activesupport
49
+ name: nokogiri
53
50
  prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
51
+ - !ruby/object:Gem::Dependency
52
+ version_requirements: &id003 !ruby/object:Gem::Requirement
55
53
  none: false
56
54
  requirements:
57
- - - ">="
55
+ - - ~>
58
56
  - !ruby/object:Gem::Version
59
57
  hash: 3
60
58
  segments:
59
+ - 2
60
+ - 3
61
61
  - 0
62
- version: "0"
62
+ version: 2.3.0
63
+ requirement: *id003
63
64
  type: :runtime
64
- version_requirements: *id003
65
- - !ruby/object:Gem::Dependency
66
- name: steak
65
+ name: activesupport
67
66
  prerelease: false
68
- requirement: &id004 !ruby/object:Gem::Requirement
67
+ - !ruby/object:Gem::Dependency
68
+ version_requirements: &id004 !ruby/object:Gem::Requirement
69
69
  none: false
70
70
  requirements:
71
71
  - - ">="
@@ -74,12 +74,28 @@ dependencies:
74
74
  segments:
75
75
  - 0
76
76
  version: "0"
77
+ requirement: *id004
77
78
  type: :development
78
- version_requirements: *id004
79
+ name: rake
80
+ prerelease: false
79
81
  - !ruby/object:Gem::Dependency
80
- name: webmock
82
+ version_requirements: &id005 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ~>
86
+ - !ruby/object:Gem::Version
87
+ hash: 27
88
+ segments:
89
+ - 1
90
+ - 3
91
+ - 0
92
+ version: 1.3.0
93
+ requirement: *id005
94
+ type: :development
95
+ name: rspec
81
96
  prerelease: false
82
- requirement: &id005 !ruby/object:Gem::Requirement
97
+ - !ruby/object:Gem::Dependency
98
+ version_requirements: &id006 !ruby/object:Gem::Requirement
83
99
  none: false
84
100
  requirements:
85
101
  - - ">="
@@ -88,8 +104,26 @@ dependencies:
88
104
  segments:
89
105
  - 0
90
106
  version: "0"
107
+ requirement: *id006
108
+ type: :development
109
+ name: steak
110
+ prerelease: false
111
+ - !ruby/object:Gem::Dependency
112
+ version_requirements: &id007 !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ hash: 27
118
+ segments:
119
+ - 1
120
+ - 3
121
+ - 0
122
+ version: 1.3.0
123
+ requirement: *id007
91
124
  type: :development
92
- version_requirements: *id005
125
+ name: webmock
126
+ prerelease: false
93
127
  description:
94
128
  email: ballsbreaking@bebanjo.com
95
129
  executables: []