racksh 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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 9bf7d4f204e32ba821bf78a6dcd1966821eb170b1ac0b38f609173a25f3a8f12
4
+ data.tar.gz: bf61922dbd66c501b1030296561ed04f3a04f9f82602075b0434a71a7aa3e074
5
+ SHA512:
6
+ metadata.gz: dd4554c2178cb32c585b34b5460ab4ef31a56e1b5e89e424828c3d984ce61b6895d7dd584b2043438e6fad1bd85a79ed98b075fd339ec40b728c357fe7dd06d7
7
+ data.tar.gz: 3dc6784a31b6582d6b4556a68e3785eb6f86f030be7c19a9220b623e75623116e0fc3a2f03a8a3ef286c06a8ac56b274d3af026e1fd6b097f2bd68908f66f05b
@@ -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.9 started in development environment.
32
+ Rack::Shell v1.0.1 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.9 started in production environment.
47
+ Rack::Shell v1.0.1 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.9 started in development environment.
53
+ Rack::Shell v1.0.1 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
 
@@ -146,5 +146,5 @@ Please report bugs and/or feature requests on the github issue tracker for the p
146
146
 
147
147
  ## Authors
148
148
 
149
- * Marcin Kulik - [sickill.net](http://sickill.net/)
149
+ * Marcin Kulik - [ku1ik.com](https://ku1ik.com/)
150
150
 
data/lib/racksh/init.rb CHANGED
@@ -20,16 +20,16 @@ module Rack
20
20
  config_ru = ENV['CONFIG_RU']
21
21
 
22
22
  # build Rack app
23
- rack_app = Rack::Builder.parse_file(config_ru).first
23
+ rack_app = Array(Rack::Builder.parse_file(config_ru)).first
24
24
  $rack = Rack::Shell::Session.new(rack_app)
25
25
 
26
26
  # run ~/.rackshrc
27
27
  rcfile = File.expand_path("~/.rackshrc")
28
- eval(File.read(rcfile)) if File.exists?(rcfile)
28
+ eval(File.read(rcfile)) if File.exist?(rcfile)
29
29
 
30
30
  # run local .rackshrc (from app dir)
31
31
  rcfile = File.expand_path(File.join(File.dirname(config_ru), ".rackshrc"))
32
- eval(File.read(rcfile)) if File.exists?(rcfile)
32
+ eval(File.read(rcfile)) if File.exist?(rcfile)
33
33
 
34
34
  # print startup info
35
35
  unless ENV['RACKSH_SKIP_INTRO']
data/lib/racksh/irb.rb CHANGED
@@ -1,2 +1,2 @@
1
1
  require 'racksh/init'
2
- Rack::Shell.init(false)
2
+ Rack::Shell.init
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Shell
3
- VERSION = '1.0.0'.freeze
3
+ VERSION = '1.0.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,84 +1,78 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: racksh
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
5
- prerelease:
4
+ version: 1.0.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Marcin Kulik
9
- autorequire:
8
+ autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-10-11 00:00:00.000000000 Z
11
+ date: 2023-07-05 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rack
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '1.0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '1.0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rack-test
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0.5'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0.5'
46
- description:
41
+ description:
47
42
  email: marcin.kulik@gmail.com
48
43
  executables:
49
44
  - racksh
50
45
  extensions: []
51
46
  extra_rdoc_files: []
52
47
  files:
48
+ - CHANGELOG.txt
49
+ - README.md
53
50
  - bin/racksh
54
51
  - lib/racksh/init.rb
55
- - lib/racksh/version.rb
56
52
  - lib/racksh/irb.rb
57
53
  - lib/racksh/session.rb
58
- - README.markdown
59
- - CHANGELOG.txt
54
+ - lib/racksh/version.rb
60
55
  homepage: http://github.com/sickill/racksh
61
- licenses: []
62
- post_install_message:
56
+ licenses:
57
+ - MIT
58
+ metadata: {}
59
+ post_install_message:
63
60
  rdoc_options: []
64
61
  require_paths:
65
62
  - lib
66
63
  required_ruby_version: !ruby/object:Gem::Requirement
67
- none: false
68
64
  requirements:
69
- - - ! '>='
65
+ - - ">="
70
66
  - !ruby/object:Gem::Version
71
67
  version: '0'
72
68
  required_rubygems_version: !ruby/object:Gem::Requirement
73
- none: false
74
69
  requirements:
75
- - - ! '>='
70
+ - - ">="
76
71
  - !ruby/object:Gem::Version
77
72
  version: '0'
78
73
  requirements: []
79
- rubyforge_project:
80
- rubygems_version: 1.8.23
81
- signing_key:
82
- specification_version: 3
74
+ rubygems_version: 3.3.25
75
+ signing_key:
76
+ specification_version: 4
83
77
  summary: Console for any Rack based ruby web app
84
78
  test_files: []