spinels-racksh 1.0.1 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 382c9eacb661a073442c6298f7b9a2acf58174f0377330a55345006e40e63d35
4
- data.tar.gz: e4cf571974ec4aa668ae0e919275dc029e4bcd69699f20b3ab2f49551675ad3c
3
+ metadata.gz: 74ebb3123dc3ef58616dc81a7d3dbc3a5b7ebd64dad2bd917cc673d6778e870c
4
+ data.tar.gz: b69f2bb9aff666d1b214e3297c0abf2e43aefccd0ef99af668afe7432778775b
5
5
  SHA512:
6
- metadata.gz: b587b339905dcd3b8a70f909f1a837671f88c3c00d7384f6828a50c7960f3a0aba42c7c485c6242b8ccba928f15cc4378203640705d2b4d51d4346c70d775a79
7
- data.tar.gz: 89727d12ddb5f2c82ca8d6b2495f961560e77ee94100e5485503cc1c3618fc194d17709941447e472b06b4058918b08489ddafe2ad13f240cdc582890d266530
6
+ metadata.gz: 026e27e6c1f6c6f5623f9c235adbca00ec016a8b0c22dd0f8831f09079c0dc2fd374fc593c053cc1d003c43d77ef5b934864b72a6212f96367fd99809c2937f4
7
+ data.tar.gz: 3b241cd15d429062b4f5826ed09fbbc3b2b9bb19f3605bfb660848cc88f52d427caaf125a99f63ab77fd8a188ecb48a4a9836ea629d9a6559e496dd5e1e8cffa
@@ -1,19 +1,23 @@
1
- === 1.0.1 / 2023-03-11
1
+ ## 1.0.3 / 2024-02-11
2
+
3
+ * added `bin/spinels-racksh` (for `bundle exec spinels-racksh`)
4
+
5
+ ## 1.0.1 / 2023-03-11
2
6
 
3
7
  * use File.exist? because Ruby 3.2 does not have File.exists?
4
8
 
5
- === 0.9.8 / 2010-09-03
9
+ ## 0.9.8 / 2010-09-03
6
10
 
7
11
  * added option to load racksh into existing irb session
8
12
 
9
- === 0.9.7 / ?
10
- === 0.9.6 / ?
13
+ ## 0.9.7 / ?
14
+ ## 0.9.6 / ?
11
15
 
12
- === 0.9.5 / 2010-01-31
16
+ ## 0.9.5 / 2010-01-31
13
17
 
14
18
  * added application reloading with "reload!"
15
19
 
16
- === 0.9.4 / 2009-11-19
20
+ ## 0.9.4 / 2009-11-19
17
21
 
18
22
  * added loading irb/completion
19
23
  * added support for session setup, loaded from .rackshrc in user's home directory and app's directory
@@ -21,18 +25,18 @@
21
25
  * added showing simple prompt (>>) like Rails console
22
26
  * added printing startup info in colors
23
27
 
24
- === 0.9.3 / 2009-11-17
28
+ ## 0.9.3 / 2009-11-17
25
29
 
26
30
  * exposed Rack::Test::Methods via $rack variable
27
31
 
28
- === 0.9.2 / 2009-11-15
32
+ ## 0.9.2 / 2009-11-15
29
33
 
30
34
  * irb require uses absolute path (for users without rubygems required in their .irbrc)
31
35
 
32
- === 0.9.1 / 2009-11-15
36
+ ## 0.9.1 / 2009-11-15
33
37
 
34
38
  * added showing name of loaded rack env
35
39
 
36
- === 0.9 / 2009-11-15
40
+ ## 0.9 / 2009-11-15
37
41
 
38
42
  * initial release
@@ -0,0 +1,25 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require File.expand_path(File.join(File.dirname(__FILE__), "..", "lib", "racksh", "init.rb"))
4
+
5
+ # prevent STDOUT & STDERR to be reopened (apps do this to be able to log under Passenger)
6
+ def STDOUT.reopen(*args); end
7
+ def STDERR.reopen(*args); end
8
+
9
+ if ARGV.empty?
10
+ begin
11
+ require "pry"
12
+ Interpreter = Pry
13
+ rescue LoadError
14
+ require "irb"
15
+ require "irb/completion"
16
+ Interpreter = IRB
17
+ end
18
+
19
+ Rack::Shell.init
20
+ ARGV.concat(['--prompt', 'simple']) unless ARGV.include?('--prompt')
21
+ Interpreter.start
22
+ else
23
+ Rack::Shell.init
24
+ p eval(ARGV.join(" "))
25
+ end
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Shell
3
- VERSION = '1.0.1'.freeze
3
+ VERSION = '1.0.3'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spinels-racksh
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Kulik
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-11 00:00:00.000000000 Z
11
+ date: 2024-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -38,16 +38,17 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.5'
41
- description:
41
+ description:
42
42
  email: marcin.kulik@gmail.com
43
43
  executables:
44
44
  - racksh
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - CHANGELOG.txt
49
- - README.markdown
48
+ - CHANGELOG.md
49
+ - README.md
50
50
  - bin/racksh
51
+ - bin/spinels-racksh
51
52
  - lib/racksh/init.rb
52
53
  - lib/racksh/irb.rb
53
54
  - lib/racksh/session.rb
@@ -56,7 +57,7 @@ homepage: http://github.com/spinels/racksh
56
57
  licenses:
57
58
  - MIT
58
59
  metadata: {}
59
- post_install_message:
60
+ post_install_message:
60
61
  rdoc_options: []
61
62
  require_paths:
62
63
  - lib
@@ -71,8 +72,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
72
  - !ruby/object:Gem::Version
72
73
  version: '0'
73
74
  requirements: []
74
- rubygems_version: 3.4.7
75
- signing_key:
75
+ rubygems_version: 3.5.3
76
+ signing_key:
76
77
  specification_version: 4
77
78
  summary: Console for any Rack based ruby web app
78
79
  test_files: []
File without changes