racksh 0.9.8 → 0.9.9
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +3 -3
- data/lib/racksh/init.rb +1 -1
- data/lib/racksh/version.rb +1 -1
- metadata +39 -62
data/README.markdown
CHANGED
@@ -29,7 +29,7 @@ Additionally it exposes _$rack_ variable which allows you to make simulated HTTP
|
|
29
29
|
To start racksh session run following inside rack application directory (containing config.ru file):
|
30
30
|
|
31
31
|
% racksh
|
32
|
-
Rack::Shell v0.9.
|
32
|
+
Rack::Shell v0.9.9 started in development environment.
|
33
33
|
>>
|
34
34
|
|
35
35
|
Specifying location of config.ru:
|
@@ -44,13 +44,13 @@ Executing ruby code inside application environment and printing results:
|
|
44
44
|
Specifying Rack environment (default is development):
|
45
45
|
|
46
46
|
% RACK_ENV=production racksh
|
47
|
-
Rack::Shell v0.9.
|
47
|
+
Rack::Shell v0.9.9 started in production environment.
|
48
48
|
>>
|
49
49
|
|
50
50
|
### Making simulated HTTP requests to your app
|
51
51
|
|
52
52
|
% racksh
|
53
|
-
Rack::Shell v0.9.
|
53
|
+
Rack::Shell v0.9.9 started in development environment.
|
54
54
|
>> $rack.get "/"
|
55
55
|
=> #<Rack::MockResponse:0xb68fa7bc @body="<html>...", @headers={"Content-Type"=>"text/html", "Content-Length"=>"1812"}, @status=200, ...
|
56
56
|
|
data/lib/racksh/init.rb
CHANGED
@@ -19,7 +19,7 @@ module Rack
|
|
19
19
|
config_ru = ENV['CONFIG_RU']
|
20
20
|
|
21
21
|
# build Rack app
|
22
|
-
rack_app =
|
22
|
+
rack_app = Rack::Builder.parse_file(config_ru).first
|
23
23
|
$rack = Rack::Shell::Session.new(rack_app)
|
24
24
|
|
25
25
|
# run ~/.rackshrc
|
data/lib/racksh/version.rb
CHANGED
metadata
CHANGED
@@ -1,97 +1,74 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: racksh
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 9
|
8
|
-
- 8
|
9
|
-
version: 0.9.8
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.9
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Marcin Kulik
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-11-13 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: rack
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &11507340 !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
- 1
|
30
|
-
- 0
|
31
|
-
version: "1.0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.0'
|
32
22
|
type: :runtime
|
33
|
-
version_requirements: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: rack-test
|
36
23
|
prerelease: false
|
37
|
-
|
24
|
+
version_requirements: *11507340
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rack-test
|
27
|
+
requirement: &11506860 !ruby/object:Gem::Requirement
|
38
28
|
none: false
|
39
|
-
requirements:
|
40
|
-
- -
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
|
43
|
-
- 0
|
44
|
-
- 5
|
45
|
-
version: "0.5"
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0.5'
|
46
33
|
type: :runtime
|
47
|
-
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *11506860
|
48
36
|
description:
|
49
37
|
email: marcin.kulik@gmail.com
|
50
|
-
executables:
|
38
|
+
executables:
|
51
39
|
- racksh
|
52
40
|
extensions: []
|
53
|
-
|
54
41
|
extra_rdoc_files: []
|
55
|
-
|
56
|
-
files:
|
42
|
+
files:
|
57
43
|
- bin/racksh
|
58
|
-
- lib/racksh/version.rb
|
59
44
|
- lib/racksh/irb.rb
|
60
|
-
- lib/racksh/session.rb
|
61
45
|
- lib/racksh/init.rb
|
46
|
+
- lib/racksh/session.rb
|
47
|
+
- lib/racksh/version.rb
|
62
48
|
- README.markdown
|
63
49
|
- CHANGELOG.txt
|
64
|
-
has_rdoc: true
|
65
50
|
homepage: http://github.com/sickill/racksh
|
66
51
|
licenses: []
|
67
|
-
|
68
52
|
post_install_message:
|
69
53
|
rdoc_options: []
|
70
|
-
|
71
|
-
require_paths:
|
54
|
+
require_paths:
|
72
55
|
- lib
|
73
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
56
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
74
57
|
none: false
|
75
|
-
requirements:
|
76
|
-
- -
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
|
79
|
-
|
80
|
-
version: "0"
|
81
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
63
|
none: false
|
83
|
-
requirements:
|
84
|
-
- -
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
|
87
|
-
- 0
|
88
|
-
version: "0"
|
64
|
+
requirements:
|
65
|
+
- - ! '>='
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
89
68
|
requirements: []
|
90
|
-
|
91
69
|
rubyforge_project:
|
92
|
-
rubygems_version: 1.
|
70
|
+
rubygems_version: 1.8.10
|
93
71
|
signing_key:
|
94
72
|
specification_version: 3
|
95
73
|
summary: Console for any Rack based ruby web app
|
96
74
|
test_files: []
|
97
|
-
|