kensa 1.2.0rc6 → 1.2.0rc7
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/heroku/kensa/version.rb +1 -1
- data/test/lib/response.rb +4 -1
- metadata +28 -28
data/Gemfile.lock
CHANGED
data/lib/heroku/kensa/version.rb
CHANGED
data/test/lib/response.rb
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
Response = Struct.new(:code, :body, :cookies) do
|
2
2
|
def json_body
|
3
|
+
Yajl::Parser.parse(self.body)
|
4
|
+
rescue Yajl::ParseError
|
3
5
|
if !self.body || self.body.empty?
|
4
6
|
raise Heroku::Kensa::UserError.new("response body empty")
|
7
|
+
else
|
8
|
+
raise Heroku::Kensa::UserError.new("Could not parse json: #{self.body}")
|
5
9
|
end
|
6
|
-
Yajl::Parser.parse(self.body)
|
7
10
|
end
|
8
11
|
end
|
9
12
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kensa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.0rc7
|
5
5
|
prerelease: 5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -17,7 +17,7 @@ date: 2011-10-25 00:00:00.000000000Z
|
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: json
|
20
|
-
requirement: &
|
20
|
+
requirement: &70357298670540 !ruby/object:Gem::Requirement
|
21
21
|
none: false
|
22
22
|
requirements:
|
23
23
|
- - ! '>='
|
@@ -25,10 +25,10 @@ dependencies:
|
|
25
25
|
version: '0'
|
26
26
|
type: :development
|
27
27
|
prerelease: false
|
28
|
-
version_requirements: *
|
28
|
+
version_requirements: *70357298670540
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: sinatra
|
31
|
-
requirement: &
|
31
|
+
requirement: &70357298669740 !ruby/object:Gem::Requirement
|
32
32
|
none: false
|
33
33
|
requirements:
|
34
34
|
- - ~>
|
@@ -36,10 +36,10 @@ dependencies:
|
|
36
36
|
version: 1.2.6
|
37
37
|
type: :development
|
38
38
|
prerelease: false
|
39
|
-
version_requirements: *
|
39
|
+
version_requirements: *70357298669740
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: timecop
|
42
|
-
requirement: &
|
42
|
+
requirement: &70357298668860 !ruby/object:Gem::Requirement
|
43
43
|
none: false
|
44
44
|
requirements:
|
45
45
|
- - ~>
|
@@ -47,10 +47,10 @@ dependencies:
|
|
47
47
|
version: 0.3.5
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
|
-
version_requirements: *
|
50
|
+
version_requirements: *70357298668860
|
51
51
|
- !ruby/object:Gem::Dependency
|
52
52
|
name: rr
|
53
|
-
requirement: &
|
53
|
+
requirement: &70357298668060 !ruby/object:Gem::Requirement
|
54
54
|
none: false
|
55
55
|
requirements:
|
56
56
|
- - ~>
|
@@ -58,10 +58,10 @@ dependencies:
|
|
58
58
|
version: 1.0.4
|
59
59
|
type: :development
|
60
60
|
prerelease: false
|
61
|
-
version_requirements: *
|
61
|
+
version_requirements: *70357298668060
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: artifice
|
64
|
-
requirement: &
|
64
|
+
requirement: &70357298667400 !ruby/object:Gem::Requirement
|
65
65
|
none: false
|
66
66
|
requirements:
|
67
67
|
- - ~>
|
@@ -69,10 +69,10 @@ dependencies:
|
|
69
69
|
version: '0.6'
|
70
70
|
type: :development
|
71
71
|
prerelease: false
|
72
|
-
version_requirements: *
|
72
|
+
version_requirements: *70357298667400
|
73
73
|
- !ruby/object:Gem::Dependency
|
74
74
|
name: haml
|
75
|
-
requirement: &
|
75
|
+
requirement: &70357298665960 !ruby/object:Gem::Requirement
|
76
76
|
none: false
|
77
77
|
requirements:
|
78
78
|
- - ~>
|
@@ -80,10 +80,10 @@ dependencies:
|
|
80
80
|
version: 3.1.3
|
81
81
|
type: :development
|
82
82
|
prerelease: false
|
83
|
-
version_requirements: *
|
83
|
+
version_requirements: *70357298665960
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: test-unit
|
86
|
-
requirement: &
|
86
|
+
requirement: &70357298665280 !ruby/object:Gem::Requirement
|
87
87
|
none: false
|
88
88
|
requirements:
|
89
89
|
- - ~>
|
@@ -91,10 +91,10 @@ dependencies:
|
|
91
91
|
version: 1.2.3
|
92
92
|
type: :runtime
|
93
93
|
prerelease: false
|
94
|
-
version_requirements: *
|
94
|
+
version_requirements: *70357298665280
|
95
95
|
- !ruby/object:Gem::Dependency
|
96
96
|
name: rest-client
|
97
|
-
requirement: &
|
97
|
+
requirement: &70357298664240 !ruby/object:Gem::Requirement
|
98
98
|
none: false
|
99
99
|
requirements:
|
100
100
|
- - ~>
|
@@ -102,10 +102,10 @@ dependencies:
|
|
102
102
|
version: 1.6.7
|
103
103
|
type: :runtime
|
104
104
|
prerelease: false
|
105
|
-
version_requirements: *
|
105
|
+
version_requirements: *70357298664240
|
106
106
|
- !ruby/object:Gem::Dependency
|
107
107
|
name: yajl-ruby
|
108
|
-
requirement: &
|
108
|
+
requirement: &70357298662400 !ruby/object:Gem::Requirement
|
109
109
|
none: false
|
110
110
|
requirements:
|
111
111
|
- - ~>
|
@@ -113,10 +113,10 @@ dependencies:
|
|
113
113
|
version: 0.8.3
|
114
114
|
type: :runtime
|
115
115
|
prerelease: false
|
116
|
-
version_requirements: *
|
116
|
+
version_requirements: *70357298662400
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: term-ansicolor
|
119
|
-
requirement: &
|
119
|
+
requirement: &70357298661220 !ruby/object:Gem::Requirement
|
120
120
|
none: false
|
121
121
|
requirements:
|
122
122
|
- - ~>
|
@@ -124,10 +124,10 @@ dependencies:
|
|
124
124
|
version: 1.0.6
|
125
125
|
type: :runtime
|
126
126
|
prerelease: false
|
127
|
-
version_requirements: *
|
127
|
+
version_requirements: *70357298661220
|
128
128
|
- !ruby/object:Gem::Dependency
|
129
129
|
name: launchy
|
130
|
-
requirement: &
|
130
|
+
requirement: &70357298659880 !ruby/object:Gem::Requirement
|
131
131
|
none: false
|
132
132
|
requirements:
|
133
133
|
- - ~>
|
@@ -135,10 +135,10 @@ dependencies:
|
|
135
135
|
version: 2.0.5
|
136
136
|
type: :runtime
|
137
137
|
prerelease: false
|
138
|
-
version_requirements: *
|
138
|
+
version_requirements: *70357298659880
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: mechanize
|
141
|
-
requirement: &
|
141
|
+
requirement: &70357298658860 !ruby/object:Gem::Requirement
|
142
142
|
none: false
|
143
143
|
requirements:
|
144
144
|
- - ~>
|
@@ -146,10 +146,10 @@ dependencies:
|
|
146
146
|
version: 1.0.0
|
147
147
|
type: :runtime
|
148
148
|
prerelease: false
|
149
|
-
version_requirements: *
|
149
|
+
version_requirements: *70357298658860
|
150
150
|
- !ruby/object:Gem::Dependency
|
151
151
|
name: artifice
|
152
|
-
requirement: &
|
152
|
+
requirement: &70357298657560 !ruby/object:Gem::Requirement
|
153
153
|
none: false
|
154
154
|
requirements:
|
155
155
|
- - ~>
|
@@ -157,7 +157,7 @@ dependencies:
|
|
157
157
|
version: 0.6.0
|
158
158
|
type: :runtime
|
159
159
|
prerelease: false
|
160
|
-
version_requirements: *
|
160
|
+
version_requirements: *70357298657560
|
161
161
|
description: Kensa is a command-line tool to help add-on providers integrating their
|
162
162
|
services with Heroku. It manages manifest files, and provides a TDD-like approach
|
163
163
|
for programmers to test and develop their APIs.
|
@@ -212,7 +212,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
212
212
|
version: '0'
|
213
213
|
segments:
|
214
214
|
- 0
|
215
|
-
hash:
|
215
|
+
hash: 2597895003724042539
|
216
216
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
217
|
none: false
|
218
218
|
requirements:
|