kensa 1.4.2 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Gemfile.lock +15 -1
- data/README.md +2 -2
- data/kensa.gemspec +7 -6
- data/lib/heroku/kensa/sso.rb +2 -1
- data/lib/heroku/kensa/version.rb +1 -1
- data/test/helper.rb +6 -3
- data/test/sso_test.rb +1 -0
- metadata +55 -33
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
kensa (1.4.
|
4
|
+
kensa (1.4.3)
|
5
5
|
launchy (>= 0.3.2)
|
6
6
|
mechanize (~> 2.6.0)
|
7
7
|
rest-client (>= 1.4.0, < 1.7.0)
|
@@ -14,8 +14,15 @@ GEM
|
|
14
14
|
archive-tar-minitar (0.5.2)
|
15
15
|
artifice (0.6)
|
16
16
|
rack-test
|
17
|
+
colorize (0.5.8)
|
17
18
|
columnize (0.3.6)
|
18
19
|
contest (0.1.3)
|
20
|
+
coveralls (0.6.7)
|
21
|
+
colorize
|
22
|
+
multi_json (~> 1.3)
|
23
|
+
rest-client
|
24
|
+
simplecov (>= 0.7)
|
25
|
+
thor
|
19
26
|
domain_name (0.5.9)
|
20
27
|
unf (>= 0.0.5, < 1.0.0)
|
21
28
|
fakefs (0.4.2)
|
@@ -36,6 +43,7 @@ GEM
|
|
36
43
|
ntlm-http (~> 0.1, >= 0.1.1)
|
37
44
|
webrobots (>= 0.0.9, < 0.2)
|
38
45
|
mime-types (1.21)
|
46
|
+
multi_json (1.7.3)
|
39
47
|
net-http-digest_auth (1.2.1)
|
40
48
|
net-http-persistent (2.8)
|
41
49
|
nokogiri (1.5.9)
|
@@ -65,11 +73,16 @@ GEM
|
|
65
73
|
ruby-debug-base19 (>= 0.11.19)
|
66
74
|
ruby_core_source (0.1.5)
|
67
75
|
archive-tar-minitar (>= 0.5.2)
|
76
|
+
simplecov (0.7.1)
|
77
|
+
multi_json (~> 1.0)
|
78
|
+
simplecov-html (~> 0.7.1)
|
79
|
+
simplecov-html (0.7.1)
|
68
80
|
sinatra (1.4.2)
|
69
81
|
rack (~> 1.5, >= 1.5.2)
|
70
82
|
rack-protection (~> 1.4)
|
71
83
|
tilt (~> 1.3, >= 1.3.4)
|
72
84
|
term-ansicolor (1.1.3)
|
85
|
+
thor (0.18.1)
|
73
86
|
tilt (1.3.6)
|
74
87
|
timecop (0.6.1)
|
75
88
|
unf (0.1.1)
|
@@ -83,6 +96,7 @@ PLATFORMS
|
|
83
96
|
DEPENDENCIES
|
84
97
|
artifice
|
85
98
|
contest
|
99
|
+
coveralls
|
86
100
|
fakefs
|
87
101
|
haml
|
88
102
|
kensa!
|
data/README.md
CHANGED
@@ -20,11 +20,11 @@ Install it like any Ruby Gem:
|
|
20
20
|
Refer to the Heroku Add-ons Resource Center for more information on usage, and
|
21
21
|
how to build your Heroku add-on:
|
22
22
|
|
23
|
-
<
|
23
|
+
<https://devcenter.heroku.com/articles/building-a-heroku-add-on>
|
24
24
|
|
25
25
|
|
26
26
|
## Meta #######################################################################
|
27
27
|
|
28
28
|
Maintained by Glenn Gillen and @mattonrails.
|
29
29
|
|
30
|
-
Released under the MIT license. <
|
30
|
+
Released under the MIT license. <https://github.com/heroku/kensa>
|
data/kensa.gemspec
CHANGED
@@ -23,17 +23,18 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.rubygems_version = %q{1.6.2}
|
24
24
|
s.summary = %q{Tool to help Heroku add-on providers integrating their services}
|
25
25
|
|
26
|
+
s.add_development_dependency(%q<artifice>, [">= 0"])
|
26
27
|
s.add_development_dependency(%q<contest>, [">= 0"])
|
27
|
-
s.add_development_dependency(%q<timecop>, [">= 0.3.5"])
|
28
|
-
s.add_development_dependency(%q<sinatra>, [">= 0.9"])
|
29
28
|
s.add_development_dependency(%q<contest>, [">= 0"])
|
29
|
+
s.add_development_dependency(%q<coveralls>)
|
30
|
+
s.add_development_dependency(%q<fakefs>, [">= 0"])
|
30
31
|
s.add_development_dependency(%q<haml>, [">= 0"])
|
31
32
|
s.add_development_dependency(%q<rr>, [">= 0"])
|
32
|
-
s.add_development_dependency(%q<
|
33
|
-
s.add_development_dependency(%q<
|
34
|
-
s.add_runtime_dependency(%q<rest-client>, ["< 1.7.0", ">= 1.4.0"])
|
35
|
-
s.add_runtime_dependency(%q<term-ansicolor>, ["~> 1.0"])
|
33
|
+
s.add_development_dependency(%q<sinatra>, [">= 0.9"])
|
34
|
+
s.add_development_dependency(%q<timecop>, [">= 0.3.5"])
|
36
35
|
s.add_runtime_dependency(%q<launchy>, [">= 0.3.2"])
|
37
36
|
s.add_runtime_dependency(%q<mechanize>, ["~> 2.6.0"])
|
37
|
+
s.add_runtime_dependency(%q<rest-client>, ["< 1.7.0", ">= 1.4.0"])
|
38
|
+
s.add_runtime_dependency(%q<term-ansicolor>, ["~> 1.0"])
|
38
39
|
end
|
39
40
|
|
data/lib/heroku/kensa/sso.rb
CHANGED
@@ -72,7 +72,8 @@ module Heroku
|
|
72
72
|
{ 'token' => @token,
|
73
73
|
'timestamp' => @timestamp.to_s,
|
74
74
|
'nav-data' => sample_nav_data,
|
75
|
-
'email' => 'username@example.com'
|
75
|
+
'email' => 'username@example.com',
|
76
|
+
'app' => 'myapp'
|
76
77
|
}.tap do |params|
|
77
78
|
params.merge!('id' => @id) if self.POST?
|
78
79
|
end
|
data/lib/heroku/kensa/version.rb
CHANGED
data/test/helper.rb
CHANGED
@@ -1,12 +1,15 @@
|
|
1
1
|
require 'heroku/kensa'
|
2
2
|
require 'heroku/kensa/client'
|
3
3
|
require 'contest'
|
4
|
+
require 'coveralls'
|
4
5
|
require 'timecop'
|
5
6
|
require 'rr'
|
6
7
|
require 'artifice'
|
7
8
|
require 'test/resources/server'
|
8
9
|
require 'fakefs/safe'
|
9
10
|
|
11
|
+
Coveralls.wear!
|
12
|
+
|
10
13
|
class Test::Unit::TestCase
|
11
14
|
include RR::Adapters::TestUnit
|
12
15
|
|
@@ -47,7 +50,7 @@ class Test::Unit::TestCase
|
|
47
50
|
#this prepends a prefix for the provider server
|
48
51
|
#in test/resources/server.rb
|
49
52
|
def use_provider_endpoint(name, type = 'base')
|
50
|
-
if @data['api']['test'].is_a? Hash
|
53
|
+
if @data['api']['test'].is_a? Hash
|
51
54
|
url = @data['api']['test']["#{type}_url"]
|
52
55
|
path = URI.parse(url).path
|
53
56
|
@data['api']['test']["#{type}_url"] = url.sub(path, "/#{name}#{path}")
|
@@ -55,7 +58,7 @@ class Test::Unit::TestCase
|
|
55
58
|
@data['api']['test'] += "#{name}"
|
56
59
|
end
|
57
60
|
end
|
58
|
-
|
61
|
+
|
59
62
|
def trace!
|
60
63
|
@screen = Heroku::Kensa::IOScreen.new(STDOUT)
|
61
64
|
end
|
@@ -64,7 +67,7 @@ class Test::Unit::TestCase
|
|
64
67
|
@screen ||= Heroku::Kensa::IOScreen.new(StringIO.new("", 'w+'))
|
65
68
|
end
|
66
69
|
|
67
|
-
# call trace! in your test before the
|
70
|
+
# call trace! in your test before the
|
68
71
|
# assert to see the output
|
69
72
|
def assert_valid(data=@data, &blk)
|
70
73
|
check = create_check(data, &blk)
|
data/test/sso_test.rb
CHANGED
@@ -22,6 +22,7 @@ class SsoTest < Test::Unit::TestCase
|
|
22
22
|
assert_equal 'b6010f6fbb850887a396c2bc0ab23974003008f6', data['token'].first
|
23
23
|
assert_equal '1262304000', data['timestamp'].first
|
24
24
|
assert_equal 'username@example.com', data['email'].first
|
25
|
+
assert_equal 'myapp', data['app'].first
|
25
26
|
end
|
26
27
|
|
27
28
|
context 'sso' do
|
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.4.
|
4
|
+
version: 1.4.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,10 +14,10 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2013-
|
17
|
+
date: 2013-08-16 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
|
-
name:
|
20
|
+
name: artifice
|
21
21
|
requirement: !ruby/object:Gem::Requirement
|
22
22
|
none: false
|
23
23
|
requirements:
|
@@ -33,13 +33,13 @@ dependencies:
|
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '0'
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
36
|
+
name: contest
|
37
37
|
requirement: !ruby/object:Gem::Requirement
|
38
38
|
none: false
|
39
39
|
requirements:
|
40
40
|
- - ! '>='
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0
|
42
|
+
version: '0'
|
43
43
|
type: :development
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -47,15 +47,15 @@ dependencies:
|
|
47
47
|
requirements:
|
48
48
|
- - ! '>='
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: 0
|
50
|
+
version: '0'
|
51
51
|
- !ruby/object:Gem::Dependency
|
52
|
-
name:
|
52
|
+
name: contest
|
53
53
|
requirement: !ruby/object:Gem::Requirement
|
54
54
|
none: false
|
55
55
|
requirements:
|
56
56
|
- - ! '>='
|
57
57
|
- !ruby/object:Gem::Version
|
58
|
-
version: '0
|
58
|
+
version: '0'
|
59
59
|
type: :development
|
60
60
|
prerelease: false
|
61
61
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -63,9 +63,9 @@ dependencies:
|
|
63
63
|
requirements:
|
64
64
|
- - ! '>='
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: '0
|
66
|
+
version: '0'
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
|
-
name:
|
68
|
+
name: coveralls
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
70
70
|
none: false
|
71
71
|
requirements:
|
@@ -81,7 +81,7 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: fakefs
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
none: false
|
87
87
|
requirements:
|
@@ -97,7 +97,7 @@ dependencies:
|
|
97
97
|
- !ruby/object:Gem::Version
|
98
98
|
version: '0'
|
99
99
|
- !ruby/object:Gem::Dependency
|
100
|
-
name:
|
100
|
+
name: haml
|
101
101
|
requirement: !ruby/object:Gem::Requirement
|
102
102
|
none: false
|
103
103
|
requirements:
|
@@ -113,7 +113,7 @@ dependencies:
|
|
113
113
|
- !ruby/object:Gem::Version
|
114
114
|
version: '0'
|
115
115
|
- !ruby/object:Gem::Dependency
|
116
|
-
name:
|
116
|
+
name: rr
|
117
117
|
requirement: !ruby/object:Gem::Requirement
|
118
118
|
none: false
|
119
119
|
requirements:
|
@@ -129,13 +129,13 @@ dependencies:
|
|
129
129
|
- !ruby/object:Gem::Version
|
130
130
|
version: '0'
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
|
-
name:
|
132
|
+
name: sinatra
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|
134
134
|
none: false
|
135
135
|
requirements:
|
136
136
|
- - ! '>='
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
138
|
+
version: '0.9'
|
139
139
|
type: :development
|
140
140
|
prerelease: false
|
141
141
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -143,37 +143,47 @@ dependencies:
|
|
143
143
|
requirements:
|
144
144
|
- - ! '>='
|
145
145
|
- !ruby/object:Gem::Version
|
146
|
-
version: '0'
|
146
|
+
version: '0.9'
|
147
147
|
- !ruby/object:Gem::Dependency
|
148
|
-
name:
|
148
|
+
name: timecop
|
149
149
|
requirement: !ruby/object:Gem::Requirement
|
150
150
|
none: false
|
151
151
|
requirements:
|
152
|
-
- -
|
152
|
+
- - ! '>='
|
153
153
|
- !ruby/object:Gem::Version
|
154
|
-
version:
|
154
|
+
version: 0.3.5
|
155
|
+
type: :development
|
156
|
+
prerelease: false
|
157
|
+
version_requirements: !ruby/object:Gem::Requirement
|
158
|
+
none: false
|
159
|
+
requirements:
|
155
160
|
- - ! '>='
|
156
161
|
- !ruby/object:Gem::Version
|
157
|
-
version:
|
162
|
+
version: 0.3.5
|
163
|
+
- !ruby/object:Gem::Dependency
|
164
|
+
name: launchy
|
165
|
+
requirement: !ruby/object:Gem::Requirement
|
166
|
+
none: false
|
167
|
+
requirements:
|
168
|
+
- - ! '>='
|
169
|
+
- !ruby/object:Gem::Version
|
170
|
+
version: 0.3.2
|
158
171
|
type: :runtime
|
159
172
|
prerelease: false
|
160
173
|
version_requirements: !ruby/object:Gem::Requirement
|
161
174
|
none: false
|
162
175
|
requirements:
|
163
|
-
- - <
|
164
|
-
- !ruby/object:Gem::Version
|
165
|
-
version: 1.7.0
|
166
176
|
- - ! '>='
|
167
177
|
- !ruby/object:Gem::Version
|
168
|
-
version:
|
178
|
+
version: 0.3.2
|
169
179
|
- !ruby/object:Gem::Dependency
|
170
|
-
name:
|
180
|
+
name: mechanize
|
171
181
|
requirement: !ruby/object:Gem::Requirement
|
172
182
|
none: false
|
173
183
|
requirements:
|
174
184
|
- - ~>
|
175
185
|
- !ruby/object:Gem::Version
|
176
|
-
version:
|
186
|
+
version: 2.6.0
|
177
187
|
type: :runtime
|
178
188
|
prerelease: false
|
179
189
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -181,31 +191,37 @@ dependencies:
|
|
181
191
|
requirements:
|
182
192
|
- - ~>
|
183
193
|
- !ruby/object:Gem::Version
|
184
|
-
version:
|
194
|
+
version: 2.6.0
|
185
195
|
- !ruby/object:Gem::Dependency
|
186
|
-
name:
|
196
|
+
name: rest-client
|
187
197
|
requirement: !ruby/object:Gem::Requirement
|
188
198
|
none: false
|
189
199
|
requirements:
|
200
|
+
- - <
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
version: 1.7.0
|
190
203
|
- - ! '>='
|
191
204
|
- !ruby/object:Gem::Version
|
192
|
-
version:
|
205
|
+
version: 1.4.0
|
193
206
|
type: :runtime
|
194
207
|
prerelease: false
|
195
208
|
version_requirements: !ruby/object:Gem::Requirement
|
196
209
|
none: false
|
197
210
|
requirements:
|
211
|
+
- - <
|
212
|
+
- !ruby/object:Gem::Version
|
213
|
+
version: 1.7.0
|
198
214
|
- - ! '>='
|
199
215
|
- !ruby/object:Gem::Version
|
200
|
-
version:
|
216
|
+
version: 1.4.0
|
201
217
|
- !ruby/object:Gem::Dependency
|
202
|
-
name:
|
218
|
+
name: term-ansicolor
|
203
219
|
requirement: !ruby/object:Gem::Requirement
|
204
220
|
none: false
|
205
221
|
requirements:
|
206
222
|
- - ~>
|
207
223
|
- !ruby/object:Gem::Version
|
208
|
-
version:
|
224
|
+
version: '1.0'
|
209
225
|
type: :runtime
|
210
226
|
prerelease: false
|
211
227
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -213,7 +229,7 @@ dependencies:
|
|
213
229
|
requirements:
|
214
230
|
- - ~>
|
215
231
|
- !ruby/object:Gem::Version
|
216
|
-
version:
|
232
|
+
version: '1.0'
|
217
233
|
description: Kensa is a command-line tool to help add-on providers integrating their
|
218
234
|
services with Heroku. It manages manifest files, and provides a TDD-like approach
|
219
235
|
for programmers to test and develop their APIs.
|
@@ -271,12 +287,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
271
287
|
- - ! '>='
|
272
288
|
- !ruby/object:Gem::Version
|
273
289
|
version: '0'
|
290
|
+
segments:
|
291
|
+
- 0
|
292
|
+
hash: 1923964960690142720
|
274
293
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
275
294
|
none: false
|
276
295
|
requirements:
|
277
296
|
- - ! '>='
|
278
297
|
- !ruby/object:Gem::Version
|
279
298
|
version: '0'
|
299
|
+
segments:
|
300
|
+
- 0
|
301
|
+
hash: 1923964960690142720
|
280
302
|
requirements: []
|
281
303
|
rubyforge_project: kensa
|
282
304
|
rubygems_version: 1.8.23
|