rack-console 1.0.1 → 1.1.0

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
  SHA1:
3
- metadata.gz: d1edc70b9f9804fb2c67a2fae8e3b9fc45d83211
4
- data.tar.gz: 04fc7f1113452f07c1dea0be84c454cef7f6ce52
3
+ metadata.gz: dfc652a285ac93d608e77f046327fb435dbc8ae1
4
+ data.tar.gz: e0021666f669b564875f3f6b309b37759cefb2b4
5
5
  SHA512:
6
- metadata.gz: 49b187d93569669309f466d7f1660bcaa1b13192fcebd29a2e9b832ed9b2935333bca6770ea461d609e51a65e165ff7297112b39b97e1ae289cf7e8d0c7951d0
7
- data.tar.gz: 46e4a51a20d55fe761e6dd74c0c321130e3173f97d2f8c1baefae77e40fb6be0431524f048a1037ed69d99bb92186c860172acf50144c29ac716d8d058178800
6
+ metadata.gz: 040533fd6335b44f57b60fb8de8d553ab2dc4bf93f52153cc37b2bd5e5daf445684f55facf15ac08aede88b6ac8b230f9bc8dcd74f0b330319ec6c3f8b38f6df
7
+ data.tar.gz: cfe62dadd9eba3e66b829492c415d24357faf8dbf91a189c5ae12e976a938fdbd2cfbd78db9ed60f42ab88d3399b3adce9cf2d1793f8e27b661c04534a60e723
@@ -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
@@ -2,8 +2,8 @@ module Rack
2
2
  class Console
3
3
  class Version
4
4
  MAJOR = 1
5
- MINOR = 0
6
- PATCH = 1
5
+ MINOR = 1
6
+ PATCH = 0
7
7
 
8
8
  def self.to_s
9
9
  [MAJOR, MINOR, PATCH].join('.')
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.1
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