rack-console 1.0.1 → 1.1.0
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 +4 -4
- data/bin/rack-console +20 -0
- data/lib/rack/console/version.rb +2 -2
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfc652a285ac93d608e77f046327fb435dbc8ae1
|
4
|
+
data.tar.gz: e0021666f669b564875f3f6b309b37759cefb2b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 040533fd6335b44f57b60fb8de8d553ab2dc4bf93f52153cc37b2bd5e5daf445684f55facf15ac08aede88b6ac8b230f9bc8dcd74f0b330319ec6c3f8b38f6df
|
7
|
+
data.tar.gz: cfe62dadd9eba3e66b829492c415d24357faf8dbf91a189c5ae12e976a938fdbd2cfbd78db9ed60f42ab88d3399b3adce9cf2d1793f8e27b661c04534a60e723
|
data/bin/rack-console
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'rack/console'
|
4
|
+
require 'optparse'
|
5
|
+
|
6
|
+
options = {}
|
7
|
+
OptionParser.new do |opts|
|
8
|
+
opts.banner = 'USAGE: rack-console [options] environment'
|
9
|
+
|
10
|
+
opts.on('-v', '--version', 'Print version and exit') do |v|
|
11
|
+
puts Rack::Console::VERSION
|
12
|
+
exit 0
|
13
|
+
end
|
14
|
+
end.parse!
|
15
|
+
|
16
|
+
if environment = ARGV.shift
|
17
|
+
ENV['RACK_ENV'] = environment
|
18
|
+
end
|
19
|
+
|
20
|
+
Rack::Console.start
|
data/lib/rack/console/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-console
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Celis
|
@@ -42,12 +42,16 @@ description: |
|
|
42
42
|
Find yourself missing a `rails console` analogue in your other Ruby web
|
43
43
|
applications? This lightweight gem provides a Rack::Console that will load
|
44
44
|
your Rack application's code and environment into an IRB or Pry session.
|
45
|
+
Either use `Rack::Console.start` directly, or run the provided `rack-console`
|
46
|
+
executable.
|
45
47
|
email:
|
46
48
|
- me@davidcel.is
|
47
|
-
executables:
|
49
|
+
executables:
|
50
|
+
- rack-console
|
48
51
|
extensions: []
|
49
52
|
extra_rdoc_files: []
|
50
53
|
files:
|
54
|
+
- bin/rack-console
|
51
55
|
- lib/rack-console.rb
|
52
56
|
- lib/rack/console.rb
|
53
57
|
- lib/rack/console/version.rb
|