rails-sh 1.1.7 → 1.1.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.7
1
+ 1.1.8
@@ -1,8 +1,3 @@
1
- module Kernel
2
- alias_method :_exit, :exit
3
- def exit(*args); end
4
- end
5
-
6
1
  include Rails::Sh
7
2
 
8
3
  Command.define 'help' do
@@ -61,7 +56,7 @@ end
61
56
 
62
57
  Command.define 'restart' do
63
58
  puts 'restarting...'
64
- Process.exec File.expand_path($0)
59
+ _exec File.expand_path($0)
65
60
  end
66
61
 
67
62
  Command.define 'exit' do
@@ -13,4 +13,9 @@ module Kernel
13
13
  def exec(*args)
14
14
  system(*args)
15
15
  end
16
+
17
+ alias_method :_exit, :exit
18
+ def exit(*args)
19
+ irb_exit if caller.first =~ /irb_binding/
20
+ end
16
21
  end
data/lib/rails/sh.rb CHANGED
@@ -30,7 +30,7 @@ module Rails
30
30
  def setup_readline
31
31
  Readline.basic_word_break_characters = ""
32
32
  Readline.completion_proc = lambda do |word|
33
- (Command.command_names + RAILS_SUB_COMMANDS).grep(/^#{Regexp.quote(word)}/)
33
+ (Command.command_names.map { |name| name.to_s } + RAILS_SUB_COMMANDS).grep(/^#{Regexp.quote(word)}/)
34
34
  end
35
35
  end
36
36
 
data/rails-sh.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rails-sh}
8
- s.version = "1.1.7"
8
+ s.version = "1.1.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["jugyo"]
@@ -40,7 +40,7 @@ Gem::Specification.new do |s|
40
40
  s.homepage = %q{http://github.com/jugyo/rails-sh}
41
41
  s.licenses = ["MIT"]
42
42
  s.require_paths = ["lib"]
43
- s.rubygems_version = %q{1.3.7}
43
+ s.rubygems_version = %q{1.5.0}
44
44
  s.summary = %q{The Rails Shell}
45
45
  s.test_files = [
46
46
  "spec/rails/sh/command_spec.rb",
@@ -49,7 +49,6 @@ Gem::Specification.new do |s|
49
49
  ]
50
50
 
51
51
  if s.respond_to? :specification_version then
52
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
53
52
  s.specification_version = 3
54
53
 
55
54
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-sh
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 1
8
- - 7
9
- version: 1.1.7
4
+ prerelease:
5
+ version: 1.1.8
10
6
  platform: ruby
11
7
  authors:
12
8
  - jugyo
@@ -24,10 +20,6 @@ dependencies:
24
20
  requirements:
25
21
  - - ~>
26
22
  - !ruby/object:Gem::Version
27
- segments:
28
- - 2
29
- - 3
30
- - 0
31
23
  version: 2.3.0
32
24
  type: :development
33
25
  prerelease: false
@@ -39,10 +31,6 @@ dependencies:
39
31
  requirements:
40
32
  - - ~>
41
33
  - !ruby/object:Gem::Version
42
- segments:
43
- - 1
44
- - 0
45
- - 0
46
34
  version: 1.0.0
47
35
  type: :development
48
36
  prerelease: false
@@ -54,10 +42,6 @@ dependencies:
54
42
  requirements:
55
43
  - - ~>
56
44
  - !ruby/object:Gem::Version
57
- segments:
58
- - 1
59
- - 5
60
- - 2
61
45
  version: 1.5.2
62
46
  type: :development
63
47
  prerelease: false
@@ -69,8 +53,6 @@ dependencies:
69
53
  requirements:
70
54
  - - ">="
71
55
  - !ruby/object:Gem::Version
72
- segments:
73
- - 0
74
56
  version: "0"
75
57
  type: :development
76
58
  prerelease: false
@@ -116,7 +98,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
116
98
  requirements:
117
99
  - - ">="
118
100
  - !ruby/object:Gem::Version
119
- hash: 4090799863336466720
101
+ hash: -596809855574334007
120
102
  segments:
121
103
  - 0
122
104
  version: "0"
@@ -125,13 +107,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
107
  requirements:
126
108
  - - ">="
127
109
  - !ruby/object:Gem::Version
128
- segments:
129
- - 0
130
110
  version: "0"
131
111
  requirements: []
132
112
 
133
113
  rubyforge_project:
134
- rubygems_version: 1.3.7
114
+ rubygems_version: 1.5.0
135
115
  signing_key:
136
116
  specification_version: 3
137
117
  summary: The Rails Shell