irt 1.3.1 → 1.3.2
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.
- data/VERSION +1 -1
- data/bin/irt +3 -3
- data/irt.gemspec +1 -1
- data/lib/irt/utils.rb +1 -1
- metadata +18 -9
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.3.
|
|
1
|
+
1.3.2
|
data/bin/irt
CHANGED
|
@@ -37,7 +37,7 @@ EOB
|
|
|
37
37
|
options[:rails_env] = ENV['RAILS_ENV'] || 'development'
|
|
38
38
|
opts.on( '-e', '--rails-env [ENVIRONMENT]', 'Sets the Rails Environment' ) do |env|
|
|
39
39
|
ENV['RAILS_ENV'] = options[:rails_env] = env
|
|
40
|
-
|
|
40
|
+
end
|
|
41
41
|
|
|
42
42
|
options[:no_rails] = false
|
|
43
43
|
opts.on( '-n', '--no-rails', 'Does not autoload the Rails Environment' ) do
|
|
@@ -85,7 +85,7 @@ if files.empty?
|
|
|
85
85
|
end
|
|
86
86
|
|
|
87
87
|
cmd_format = if File.exists?('./config/environment.rb') && !options[:no_rails]
|
|
88
|
-
if File.exists?('./script/rails')
|
|
88
|
+
if File.exists?('./script/rails') || File.exists?('./bin/rails')
|
|
89
89
|
gemfile_path = ENV['BUNDLE_GEMFILE'] || 'Gemfile'
|
|
90
90
|
gemfile = File.read(gemfile_path)
|
|
91
91
|
unless gemfile.match(/\bgem\b.+\birt\b/)
|
|
@@ -96,7 +96,7 @@ cmd_format = if File.exists?('./config/environment.rb') && !options[:no_rails]
|
|
|
96
96
|
end
|
|
97
97
|
end
|
|
98
98
|
end
|
|
99
|
-
minor, patch = gemfile.match(/\bgem\b.+\brails\b.+3\.(\d+)\.(\d+)/).captures
|
|
99
|
+
minor, patch = gemfile.match(/\bgem\b.+\brails\b.+(3|4)\.(\d+)\.(\d+)/).captures
|
|
100
100
|
rails_version = (minor.to_i > 0 || patch.to_i > 9) ? :new : :old
|
|
101
101
|
'rails c %s %s %s'
|
|
102
102
|
elsif File.exists?('./script/console')
|
data/irt.gemspec
CHANGED
|
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
|
|
|
19
19
|
s.post_install_message = <<EOM
|
|
20
20
|
________________________________________________________________________________
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
IRT IMPORTANT NOTES
|
|
23
23
|
________________________________________________________________________________
|
|
24
24
|
|
|
25
25
|
1. If you notice a messed prompt while navigating the history, you must
|
data/lib/irt/utils.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: irt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,11 +9,11 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2013-09-21 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: differ
|
|
16
|
-
requirement:
|
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
|
17
17
|
none: false
|
|
18
18
|
requirements:
|
|
19
19
|
- - ! '>='
|
|
@@ -21,10 +21,15 @@ dependencies:
|
|
|
21
21
|
version: 0.1.1
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
|
-
version_requirements:
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
none: false
|
|
26
|
+
requirements:
|
|
27
|
+
- - ! '>='
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: 0.1.1
|
|
25
30
|
- !ruby/object:Gem::Dependency
|
|
26
31
|
name: prompter
|
|
27
|
-
requirement:
|
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
|
28
33
|
none: false
|
|
29
34
|
requirements:
|
|
30
35
|
- - ! '>='
|
|
@@ -32,7 +37,12 @@ dependencies:
|
|
|
32
37
|
version: 0.1.5
|
|
33
38
|
type: :runtime
|
|
34
39
|
prerelease: false
|
|
35
|
-
version_requirements:
|
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
+
none: false
|
|
42
|
+
requirements:
|
|
43
|
+
- - ! '>='
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: 0.1.5
|
|
36
46
|
description: If you use IRT in place of irb or Rails Console, you will have more tools
|
|
37
47
|
that will make your life a lot easier.
|
|
38
48
|
email: dd.nexus@gmail.com
|
|
@@ -86,7 +96,7 @@ files:
|
|
|
86
96
|
homepage: http://github.com/ddnexus/irt
|
|
87
97
|
licenses: []
|
|
88
98
|
post_install_message: ! "________________________________________________________________________________\n\n
|
|
89
|
-
\
|
|
99
|
+
\ IRT IMPORTANT NOTES\n________________________________________________________________________________\n\n
|
|
90
100
|
\ 1. If you notice a messed prompt while navigating the history, you must\n enable
|
|
91
101
|
the 'fix_readline_prompt' option in the ~/.irtrc file:\n\n IRT.fix_readline_prompt
|
|
92
102
|
= true\n\n (see the README file for details)\n\n________________________________________________________________________________\n\n
|
|
@@ -112,10 +122,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
112
122
|
version: 1.3.6
|
|
113
123
|
requirements: []
|
|
114
124
|
rubyforge_project:
|
|
115
|
-
rubygems_version: 1.8.
|
|
125
|
+
rubygems_version: 1.8.25
|
|
116
126
|
signing_key:
|
|
117
127
|
specification_version: 3
|
|
118
128
|
summary: Interactive Ruby Tools - Very improved irb and Rails Console with a lot of
|
|
119
129
|
cool features.
|
|
120
130
|
test_files: []
|
|
121
|
-
has_rdoc:
|