spinels-racksh 1.0.1 → 1.0.4

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: 382c9eacb661a073442c6298f7b9a2acf58174f0377330a55345006e40e63d35
4
- data.tar.gz: e4cf571974ec4aa668ae0e919275dc029e4bcd69699f20b3ab2f49551675ad3c
3
+ metadata.gz: cb8d71ad984d2af5b78d054906bcfc3288e9e25582af7163a8d70df2ce7433ab
4
+ data.tar.gz: fb02af459052e2ad1540139bb0c2c40b29362fa3263ec2fc28a02782aea11078
5
5
  SHA512:
6
- metadata.gz: b587b339905dcd3b8a70f909f1a837671f88c3c00d7384f6828a50c7960f3a0aba42c7c485c6242b8ccba928f15cc4378203640705d2b4d51d4346c70d775a79
7
- data.tar.gz: 89727d12ddb5f2c82ca8d6b2495f961560e77ee94100e5485503cc1c3618fc194d17709941447e472b06b4058918b08489ddafe2ad13f240cdc582890d266530
6
+ metadata.gz: 11fb672999296de2df92813c536ddf88f93f2e62144bd3d4f1e2b9b63cb50c0c4a866d872ee27322b586329fd05afb503a38aa22005b8f23579e5f296ddb863e
7
+ data.tar.gz: a94d5fc20b23db6b28677b4e0038b31d4920a6004edea04ceafe8f768c54734a67a703f93ca81b56d59fad13dde8b638e392e5da67e4bcdc4f20d0025eb96456
@@ -1,19 +1,27 @@
1
- === 1.0.1 / 2023-03-11
1
+ ## 1.0.4 / 2024-02-11
2
+
3
+ * added `bin/spinels-racksh` to list of executables in gemspec (for `bundle exec spinels-racksh`)
4
+
5
+ ## 1.0.3 / 2024-02-11
6
+
7
+ * added `bin/spinels-racksh` (for `bundle exec spinels-racksh`)
8
+
9
+ ## 1.0.1 / 2023-03-11
2
10
 
3
11
  * use File.exist? because Ruby 3.2 does not have File.exists?
4
12
 
5
- === 0.9.8 / 2010-09-03
13
+ ## 0.9.8 / 2010-09-03
6
14
 
7
15
  * added option to load racksh into existing irb session
8
16
 
9
- === 0.9.7 / ?
10
- === 0.9.6 / ?
17
+ ## 0.9.7 / ?
18
+ ## 0.9.6 / ?
11
19
 
12
- === 0.9.5 / 2010-01-31
20
+ ## 0.9.5 / 2010-01-31
13
21
 
14
22
  * added application reloading with "reload!"
15
23
 
16
- === 0.9.4 / 2009-11-19
24
+ ## 0.9.4 / 2009-11-19
17
25
 
18
26
  * added loading irb/completion
19
27
  * added support for session setup, loaded from .rackshrc in user's home directory and app's directory
@@ -21,18 +29,18 @@
21
29
  * added showing simple prompt (>>) like Rails console
22
30
  * added printing startup info in colors
23
31
 
24
- === 0.9.3 / 2009-11-17
32
+ ## 0.9.3 / 2009-11-17
25
33
 
26
34
  * exposed Rack::Test::Methods via $rack variable
27
35
 
28
- === 0.9.2 / 2009-11-15
36
+ ## 0.9.2 / 2009-11-15
29
37
 
30
38
  * irb require uses absolute path (for users without rubygems required in their .irbrc)
31
39
 
32
- === 0.9.1 / 2009-11-15
40
+ ## 0.9.1 / 2009-11-15
33
41
 
34
42
  * added showing name of loaded rack env
35
43
 
36
- === 0.9 / 2009-11-15
44
+ ## 0.9 / 2009-11-15
37
45
 
38
46
  * 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.4'.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.4
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,18 @@ 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
+ - spinels-racksh
45
46
  extensions: []
46
47
  extra_rdoc_files: []
47
48
  files:
48
- - CHANGELOG.txt
49
- - README.markdown
49
+ - CHANGELOG.md
50
+ - README.md
50
51
  - bin/racksh
52
+ - bin/spinels-racksh
51
53
  - lib/racksh/init.rb
52
54
  - lib/racksh/irb.rb
53
55
  - lib/racksh/session.rb
@@ -56,7 +58,7 @@ homepage: http://github.com/spinels/racksh
56
58
  licenses:
57
59
  - MIT
58
60
  metadata: {}
59
- post_install_message:
61
+ post_install_message:
60
62
  rdoc_options: []
61
63
  require_paths:
62
64
  - lib
@@ -71,8 +73,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
73
  - !ruby/object:Gem::Version
72
74
  version: '0'
73
75
  requirements: []
74
- rubygems_version: 3.4.7
75
- signing_key:
76
+ rubygems_version: 3.5.3
77
+ signing_key:
76
78
  specification_version: 4
77
79
  summary: Console for any Rack based ruby web app
78
80
  test_files: []
File without changes