lookout-rack 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lookout-rack-1.0/version.rb +17 -5
- metadata +57 -45
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a18eede300a55337079632ece62babecc6974b0
|
4
|
+
data.tar.gz: f12a31c6c3afd9688f015101372ed01639a65743
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 528413ba9d86cba0d1fb70b62c28e1ce1386c3ef23660a8ca0e066bcdd58d35381fec37c98b61ef2f0a5746025336123cb265fab4e5149ba3849852ef26732e8
|
7
|
+
data.tar.gz: 4d80c8e8c639b312769bb47f3f819e4e1c48950ee967daff6d78bf9a46558c6afa8f918f7dacaba295883e939a644ed1525800734e991ae9253b1ede3cd1f695
|
@@ -3,15 +3,27 @@
|
|
3
3
|
require 'inventory-1.0'
|
4
4
|
|
5
5
|
module Lookout::Rack
|
6
|
-
Version = Inventory.new(1, 0,
|
6
|
+
Version = Inventory.new(1, 0, 1){
|
7
|
+
authors{
|
8
|
+
author 'Nikolai Weibull', 'now@disu.se'
|
9
|
+
}
|
10
|
+
|
11
|
+
homepage 'http://disu.se/software/lookout-rack/'
|
12
|
+
|
13
|
+
licenses{
|
14
|
+
license 'LGPLv3+',
|
15
|
+
'GNU Lesser General Public License, version 3 or later',
|
16
|
+
'http://www.gnu.org/licenses/'
|
17
|
+
}
|
18
|
+
|
7
19
|
def dependencies
|
8
20
|
super + Inventory::Dependencies.new{
|
9
|
-
development 'inventory-rake', 1,
|
10
|
-
development 'inventory-rake-tasks-yard', 1,
|
11
|
-
development 'lookout-rake', 3,
|
21
|
+
development 'inventory-rake', 1, 6, 0
|
22
|
+
development 'inventory-rake-tasks-yard', 1, 4, 0
|
23
|
+
development 'lookout-rake', 3, 1, 0
|
12
24
|
development 'sinatra', 1, 0, 0
|
13
25
|
development 'yard', 0, 8, 0
|
14
|
-
development 'yard-heuristics', 1,
|
26
|
+
development 'yard-heuristics', 1, 2, 0
|
15
27
|
runtime 'lookout', 3, 0, 0
|
16
28
|
runtime 'rack', 1, 0, 0, :feature => 'rack'
|
17
29
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lookout-rack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nikolai Weibull
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: inventory
|
@@ -16,56 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.5'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.5'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: inventory-rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
33
|
+
version: '1.6'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '1.
|
40
|
+
version: '1.6'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: inventory-rake-tasks-yard
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1.
|
47
|
+
version: '1.4'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1.
|
54
|
+
version: '1.4'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: lookout-rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '3.
|
61
|
+
version: '3.1'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '3.
|
68
|
+
version: '3.1'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: sinatra
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - ~>
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '1.
|
103
|
+
version: '1.2'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - ~>
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '1.
|
110
|
+
version: '1.2'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: lookout
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -139,24 +139,24 @@ dependencies:
|
|
139
139
|
description: |2
|
140
140
|
Lookout-Rack
|
141
141
|
|
142
|
-
Lookout-Rack provides easy interaction with Rack
|
142
|
+
Lookout-Rack provides easy interaction with Rack┬╣ from Lookout┬▓. It provides
|
143
143
|
you with a session connected to your Rack application through which you can
|
144
144
|
make requests, check responses, follow redirects and set, inspect, and clear
|
145
145
|
cookies.
|
146
146
|
|
147
|
-
|
148
|
-
|
147
|
+
┬╣ See http://rack.rubyforge.org/
|
148
|
+
┬▓ See http://disu.se/software/lookout/
|
149
149
|
|
150
|
-
|
150
|
+
§ Installation
|
151
151
|
|
152
152
|
Install Lookout-Rack with
|
153
153
|
|
154
154
|
% gem install lookout-rack
|
155
155
|
|
156
|
-
|
156
|
+
§ Usage
|
157
157
|
|
158
|
-
Include the following code in your
|
159
|
-
Lookout-Rake
|
158
|
+
Include the following code in your ‹Rakefile› (provided that you’re using
|
159
|
+
Lookout-Rake┬╣):
|
160
160
|
|
161
161
|
require 'lookout-rack-3.0'
|
162
162
|
|
@@ -164,9 +164,9 @@ description: |2
|
|
164
164
|
t.requires << 'lookout-rack-3.0'
|
165
165
|
end
|
166
166
|
|
167
|
-
|
167
|
+
┬╣ See http://disu.se/software/lookout-rake/
|
168
168
|
|
169
|
-
Then set up a
|
169
|
+
Then set up a ‹fixtures/config.ru› file that Lookout-Rack
|
170
170
|
will use for loading your Rack app.
|
171
171
|
|
172
172
|
load 'path/to/app.rb'
|
@@ -174,7 +174,7 @@ description: |2
|
|
174
174
|
run Path::To::App
|
175
175
|
|
176
176
|
This file, if it exists, will be loaded during the first call to #session.
|
177
|
-
If it doesn
|
177
|
+
If it doesn’t exist, ‹config.ru› will be used instead.
|
178
178
|
|
179
179
|
You can now test your app:
|
180
180
|
|
@@ -185,23 +185,23 @@ description: |2
|
|
185
185
|
end
|
186
186
|
|
187
187
|
The #session method returns an object that lets you #get, #post, #put, and
|
188
|
-
#delete resources from the Rack app. You call these method with a URI
|
188
|
+
#delete resources from the Rack app. You call these method with a URI┬╣
|
189
189
|
that you want to access/modify together with any parameters that you want
|
190
|
-
to pass and any Rack environment that you want to use (which isn
|
191
|
-
common). For example, let
|
190
|
+
to pass and any Rack environment that you want to use (which isnΓÇÖt very
|
191
|
+
common). For example, let’s get ‹/pizzas/› with olives on them:
|
192
192
|
|
193
193
|
expect 200 do
|
194
194
|
session.get('/pizzas/', 'olives' => '1').response.status
|
195
195
|
end
|
196
196
|
|
197
|
-
|
197
|
+
┬╣ Abbreviation for Uniform Resource Identifier
|
198
198
|
|
199
199
|
The #response method on #session returns a mock Rack response object that
|
200
|
-
can be queried for results. Similarly, there
|
200
|
+
can be queried for results. Similarly, thereΓÇÖs a #request method that lets
|
201
201
|
you inspect the request that was made.
|
202
202
|
|
203
|
-
Lookout-Rack also deals with cookies. Assuming that
|
204
|
-
set any cookies that we pass it and that
|
203
|
+
Lookout-Rack also deals with cookies. Assuming that ‹/cookies/set/› will
|
204
|
+
set any cookies that we pass it and that ‹/cookies/show/› will simply do
|
205
205
|
nothing relevant, the following expectation will pass:
|
206
206
|
|
207
207
|
expect 'value' => '1' do
|
@@ -211,7 +211,7 @@ description: |2
|
|
211
211
|
end
|
212
212
|
|
213
213
|
Sometimes you may want to set cookies yourself before making a request.
|
214
|
-
You then use the #cookie method, which takes a String of
|
214
|
+
You then use the #cookie method, which takes a String of ‹KEY=VALUE› pairs
|
215
215
|
separated by newlines, commas, and/or semicolons and sets those cookies in
|
216
216
|
the session:
|
217
217
|
|
@@ -231,7 +231,7 @@ description: |2
|
|
231
231
|
end
|
232
232
|
|
233
233
|
Finally, to test redirects, call the #redirect! method on the session
|
234
|
-
object, assuming that
|
234
|
+
object, assuming that ‹/redirected/› redirects to another location:
|
235
235
|
|
236
236
|
expect result.redirect? do
|
237
237
|
session.get('/redirected/').response
|
@@ -241,12 +241,12 @@ description: |2
|
|
241
241
|
session.get('/redirected/').redirect!.response
|
242
242
|
end
|
243
243
|
|
244
|
-
That
|
244
|
+
ThatΓÇÖs basically all thereΓÇÖs to it. You can check the {API documentation}┬╣
|
245
245
|
for more information.
|
246
246
|
|
247
|
-
|
247
|
+
┬╣ See http://disu.se/software/lookout-rack/api/Lookout/Rack/
|
248
248
|
|
249
|
-
|
249
|
+
§ Financing
|
250
250
|
|
251
251
|
Currently, most of my time is spent at my day job and in my rather busy
|
252
252
|
private life. Please motivate me to spend time on this piece of software
|
@@ -256,22 +256,33 @@ description: |2
|
|
256
256
|
to have other people give me the things that I need to continue living
|
257
257
|
under the rules of said society. So, if you feel that this piece of
|
258
258
|
software has helped you out enough to warrant a reward, please PayPal a
|
259
|
-
donation to now@disu.se
|
259
|
+
donation to now@disu.se┬╣. Thanks! Your support wonΓÇÖt go unnoticed!
|
260
260
|
|
261
|
-
|
261
|
+
┬╣ Send a donation:
|
262
262
|
https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=now@disu.se&item_name=Lookout-Rack
|
263
263
|
|
264
|
-
|
264
|
+
§ Reporting Bugs
|
265
265
|
|
266
|
-
Please report any bugs that you encounter to the {issue tracker}
|
266
|
+
Please report any bugs that you encounter to the {issue tracker}┬╣.
|
267
267
|
|
268
|
-
|
268
|
+
┬╣ See https://github.com/now/lookout-rack/issues
|
269
269
|
|
270
|
-
|
270
|
+
§ Authors
|
271
271
|
|
272
272
|
Nikolai Weibull wrote the code, the tests, the documentation, and this
|
273
273
|
README.
|
274
|
-
|
274
|
+
|
275
|
+
§ Licensing
|
276
|
+
|
277
|
+
Lookout-Rack is free software: you may redistribute it and/or modify it
|
278
|
+
under the terms of the {GNU Lesser General Public License, version 3}┬╣ or
|
279
|
+
later┬▓, as published by the {Free Software Foundation}┬│.
|
280
|
+
|
281
|
+
┬╣ See http://disu.se/licenses/lgpl-3.0/
|
282
|
+
┬▓ See http://gnu.org/licenses/
|
283
|
+
┬│ See http://fsf.org/
|
284
|
+
email:
|
285
|
+
- now@disu.se
|
275
286
|
executables: []
|
276
287
|
extensions: []
|
277
288
|
extra_rdoc_files: []
|
@@ -290,8 +301,9 @@ files:
|
|
290
301
|
- test/unit/lookout-rack-1.0/version.rb
|
291
302
|
- fixtures/app.rb
|
292
303
|
- fixtures/config.ru
|
293
|
-
homepage:
|
294
|
-
licenses:
|
304
|
+
homepage: http://disu.se/software/lookout-rack/
|
305
|
+
licenses:
|
306
|
+
- LGPLv3+
|
295
307
|
metadata: {}
|
296
308
|
post_install_message:
|
297
309
|
rdoc_options: []
|
@@ -309,8 +321,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
309
321
|
version: '0'
|
310
322
|
requirements: []
|
311
323
|
rubyforge_project:
|
312
|
-
rubygems_version: 2.0.
|
324
|
+
rubygems_version: 2.0.2
|
313
325
|
signing_key:
|
314
326
|
specification_version: 4
|
315
|
-
summary: Lookout-Rack provides easy interaction with Rack
|
327
|
+
summary: Lookout-Rack provides easy interaction with Rack┬╣ from Lookout┬▓.
|
316
328
|
test_files: []
|