spinels-racksh 1.0.0 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0128a9c2c6ea277f29e4c165aba04dca9cb3d63b8fbadd9247e48c66d41d676
4
- data.tar.gz: a7df62aeb44cb8989d3639ce3a9fe03b71a533cce56fc9675e328f755dc0972a
3
+ metadata.gz: 74ebb3123dc3ef58616dc81a7d3dbc3a5b7ebd64dad2bd917cc673d6778e870c
4
+ data.tar.gz: b69f2bb9aff666d1b214e3297c0abf2e43aefccd0ef99af668afe7432778775b
5
5
  SHA512:
6
- metadata.gz: b1edfcb6ea64b3c6d2b2f0af11d6c44950d554c10763b566697c05d8c9f6de095ea01d1e82bb43d3836d14cb452d24bd0dead20cdb65d6061e18e2f5fb32c9d3
7
- data.tar.gz: '049c7337e34ef1ce193d93b19c96e8183725c396224dac9e1908cf7789a8a3e6f91df39833953a207e5d9c5be6ddfad21184600d2cbd064a80024a7fb295225c'
6
+ metadata.gz: 026e27e6c1f6c6f5623f9c235adbca00ec016a8b0c22dd0f8831f09079c0dc2fd374fc593c053cc1d003c43d77ef5b934864b72a6212f96367fd99809c2937f4
7
+ data.tar.gz: 3b241cd15d429062b4f5826ed09fbbc3b2b9bb19f3605bfb660848cc88f52d427caaf125a99f63ab77fd8a188ecb48a4a9836ea629d9a6559e496dd5e1e8cffa
@@ -1,15 +1,23 @@
1
- === 0.9.8 / 2010-09-03
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
6
+
7
+ * use File.exist? because Ruby 3.2 does not have File.exists?
8
+
9
+ ## 0.9.8 / 2010-09-03
2
10
 
3
11
  * added option to load racksh into existing irb session
4
12
 
5
- === 0.9.7 / ?
6
- === 0.9.6 / ?
13
+ ## 0.9.7 / ?
14
+ ## 0.9.6 / ?
7
15
 
8
- === 0.9.5 / 2010-01-31
16
+ ## 0.9.5 / 2010-01-31
9
17
 
10
18
  * added application reloading with "reload!"
11
19
 
12
- === 0.9.4 / 2009-11-19
20
+ ## 0.9.4 / 2009-11-19
13
21
 
14
22
  * added loading irb/completion
15
23
  * added support for session setup, loaded from .rackshrc in user's home directory and app's directory
@@ -17,18 +25,18 @@
17
25
  * added showing simple prompt (>>) like Rails console
18
26
  * added printing startup info in colors
19
27
 
20
- === 0.9.3 / 2009-11-17
28
+ ## 0.9.3 / 2009-11-17
21
29
 
22
30
  * exposed Rack::Test::Methods via $rack variable
23
31
 
24
- === 0.9.2 / 2009-11-15
32
+ ## 0.9.2 / 2009-11-15
25
33
 
26
34
  * irb require uses absolute path (for users without rubygems required in their .irbrc)
27
35
 
28
- === 0.9.1 / 2009-11-15
36
+ ## 0.9.1 / 2009-11-15
29
37
 
30
38
  * added showing name of loaded rack env
31
39
 
32
- === 0.9 / 2009-11-15
40
+ ## 0.9 / 2009-11-15
33
41
 
34
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.0'.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.0
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