almodovar 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/almodovar/errors.rb +4 -0
- data/lib/almodovar/version.rb +1 -1
- metadata +115 -96
- checksums.yaml +0 -7
data/lib/almodovar/errors.rb
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
module Almodovar
|
2
2
|
class HttpError < Exception
|
3
|
+
attr_reader :response_status, :response_body
|
4
|
+
|
3
5
|
def initialize(response, url)
|
6
|
+
@response_status = response.status
|
7
|
+
@response_body = response.body
|
4
8
|
super("Status code #{response.status} on resource #{url}")
|
5
9
|
end
|
6
10
|
end
|
data/lib/almodovar/version.rb
CHANGED
metadata
CHANGED
@@ -1,141 +1,160 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: almodovar
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 17
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 1
|
9
|
+
- 1
|
10
|
+
version: 1.1.1
|
5
11
|
platform: ruby
|
6
|
-
authors:
|
12
|
+
authors:
|
7
13
|
- BeBanjo S.L.
|
8
14
|
autorequire:
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
17
|
+
|
18
|
+
date: 2014-09-02 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
14
21
|
name: builder
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :runtime
|
21
22
|
prerelease: false
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: nokogiri
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
31
26
|
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 3
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
version: "0"
|
34
32
|
type: :runtime
|
33
|
+
version_requirements: *id001
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: nokogiri
|
35
36
|
prerelease: false
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: activesupport
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
+
none: false
|
39
|
+
requirements:
|
45
40
|
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
hash: 3
|
43
|
+
segments:
|
44
|
+
- 0
|
45
|
+
version: "0"
|
48
46
|
type: :runtime
|
47
|
+
version_requirements: *id002
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: activesupport
|
49
50
|
prerelease: false
|
50
|
-
|
51
|
-
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
52
54
|
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
hash: 3
|
57
|
+
segments:
|
58
|
+
- 0
|
59
|
+
version: "0"
|
62
60
|
type: :runtime
|
61
|
+
version_requirements: *id003
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: i18n
|
63
64
|
prerelease: false
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: httpclient
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
65
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
73
68
|
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
hash: 3
|
71
|
+
segments:
|
72
|
+
- 0
|
73
|
+
version: "0"
|
76
74
|
type: :runtime
|
75
|
+
version_requirements: *id004
|
76
|
+
- !ruby/object:Gem::Dependency
|
77
|
+
name: httpclient
|
77
78
|
prerelease: false
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: json
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
79
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
80
|
+
none: false
|
81
|
+
requirements:
|
87
82
|
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
hash: 3
|
85
|
+
segments:
|
86
|
+
- 0
|
87
|
+
version: "0"
|
90
88
|
type: :runtime
|
89
|
+
version_requirements: *id005
|
90
|
+
- !ruby/object:Gem::Dependency
|
91
|
+
name: json
|
91
92
|
prerelease: false
|
92
|
-
|
93
|
-
|
93
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
95
|
+
requirements:
|
94
96
|
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
hash: 3
|
99
|
+
segments:
|
100
|
+
- 0
|
101
|
+
version: "0"
|
102
|
+
type: :runtime
|
103
|
+
version_requirements: *id006
|
97
104
|
description:
|
98
105
|
email: ballsbreaking@bebanjo.com
|
99
106
|
executables: []
|
107
|
+
|
100
108
|
extensions: []
|
101
|
-
|
109
|
+
|
110
|
+
extra_rdoc_files:
|
102
111
|
- README.rdoc
|
103
|
-
files:
|
112
|
+
files:
|
104
113
|
- README.rdoc
|
105
|
-
- lib/almodovar.rb
|
106
|
-
- lib/almodovar/digest_auth.rb
|
107
|
-
- lib/almodovar/errors.rb
|
108
|
-
- lib/almodovar/http_accessor.rb
|
109
|
-
- lib/almodovar/http_client.rb
|
110
114
|
- lib/almodovar/resource.rb
|
111
|
-
- lib/almodovar/
|
115
|
+
- lib/almodovar/version.rb
|
116
|
+
- lib/almodovar/http_client.rb
|
117
|
+
- lib/almodovar/http_accessor.rb
|
118
|
+
- lib/almodovar/errors.rb
|
112
119
|
- lib/almodovar/single_resource.rb
|
113
120
|
- lib/almodovar/to_xml.rb
|
114
|
-
- lib/almodovar/
|
121
|
+
- lib/almodovar/digest_auth.rb
|
122
|
+
- lib/almodovar/resource_collection.rb
|
123
|
+
- lib/almodovar.rb
|
115
124
|
homepage: http://wiki.github.com/bebanjo/almodovar/
|
116
|
-
licenses:
|
125
|
+
licenses:
|
117
126
|
- MIT
|
118
|
-
metadata: {}
|
119
127
|
post_install_message:
|
120
|
-
rdoc_options:
|
121
|
-
-
|
128
|
+
rdoc_options:
|
129
|
+
- --main
|
122
130
|
- README.rdoc
|
123
|
-
require_paths:
|
131
|
+
require_paths:
|
124
132
|
- lib
|
125
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
126
|
-
|
133
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
134
|
+
none: false
|
135
|
+
requirements:
|
127
136
|
- - ">="
|
128
|
-
- !ruby/object:Gem::Version
|
129
|
-
|
130
|
-
|
131
|
-
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
hash: 3
|
139
|
+
segments:
|
140
|
+
- 0
|
141
|
+
version: "0"
|
142
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
|
+
none: false
|
144
|
+
requirements:
|
132
145
|
- - ">="
|
133
|
-
- !ruby/object:Gem::Version
|
134
|
-
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
hash: 3
|
148
|
+
segments:
|
149
|
+
- 0
|
150
|
+
version: "0"
|
135
151
|
requirements: []
|
152
|
+
|
136
153
|
rubyforge_project:
|
137
|
-
rubygems_version:
|
154
|
+
rubygems_version: 1.8.25
|
138
155
|
signing_key:
|
139
|
-
specification_version:
|
156
|
+
specification_version: 3
|
140
157
|
summary: BeBanjo API client
|
141
158
|
test_files: []
|
159
|
+
|
160
|
+
has_rdoc:
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: df9c187648c5afacb6b6039d120478b793ac9fdf
|
4
|
-
data.tar.gz: a0c86ae402d103b24ddf3c688ee60bfe0b3f3e4e
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 7f2b2d6f8a71f4c202a580c208b83b9725582d8afd5417e83b43f0924b119b98952b4caba5f1202a4f4f6b790f4200e6532604351657e6078a1aed263dcd02e1
|
7
|
-
data.tar.gz: 3dcba5831f5570fabe71d0dfee511965e54b217671938936f0d8402bbc0172cbb7bd93e2275868ef4e244bb547d5590c661ce7dd64d3987cc05550734a196b27
|