irt 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 426daa1908fc2c6ae9a5d4cdf0d11e357a125afd
4
+ data.tar.gz: 7640ade63ad2aad2d6c1426a70fa428287b974e8
5
+ SHA512:
6
+ metadata.gz: b0faa6fad51684b9568b8ec835e5662b09e388603896e7c551d60ee0be637d96c9073fab6b79dbb98727aef0edbb3d00cc07caba6cdc45af57293ce93fff13ef
7
+ data.tar.gz: 0ac4d98af19275bf953302a3371afa863c6e9ab5b6d02370ec860f4748bb4d2fb96162e4122234672f49b1fc8aad197787e6e43010ce53793fd500c7bf755b3b
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.2
1
+ 1.3.3
data/lib/irt.rb CHANGED
@@ -1,5 +1,6 @@
1
- # allows standard rails 3 console to run without loading irt
2
- unless defined?(Rails::Console) && !ENV['IRT_COMMAND']
1
+ # allows to skip irb overriding, so you can use the regular irb/rails console
2
+ # even if irt is required in the Gemfile
3
+ if ENV['IRT_COMMAND']
3
4
 
4
5
  at_exit{ Dye.print_reset_colors }
5
6
 
@@ -36,7 +36,7 @@ module IRB #:nodoc:
36
36
  if !!ENV['IRT_INTERACTIVE_EOF']
37
37
  @CONF[:AT_EXIT] << proc{ IRT::Directives.test_summary }
38
38
  @CONF[:AT_EXIT] << proc{ IRT::History.save_history }
39
- @CONF[:RC_NAME_GENERATOR] = proc {|rc| File.expand_path '~/.irtrc' }
39
+ @CONF[:RC_NAME_GENERATOR] = proc {|rc| ENV["IRTRC_PATH"] || File.expand_path('~/.irtrc') }
40
40
  end
41
41
 
42
42
  def IRB.parse_opts
@@ -91,7 +91,7 @@ module IRT
91
91
  def print_header(tail_str='')
92
92
  puts
93
93
  log_head = "Virtual Log#{' '+ tail_str unless tail_str.empty?}"
94
- puts IRT.dye(" #{log_head} ", '***** #{log_head} *****', :log_color, :bold, :reversed)
94
+ puts IRT.dye(" #{log_head} ", "***** #{log_head} *****", :log_color, :bold, :reversed)
95
95
  end
96
96
 
97
97
  def status_segment(name, mode)
metadata CHANGED
@@ -1,46 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: irt
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
5
- prerelease:
4
+ version: 1.3.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Domizio Demichelis
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-09-21 00:00:00.000000000 Z
11
+ date: 2015-09-24 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: differ
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: 0.1.1
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: 0.1.1
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: prompter
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: 0.1.5
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: 0.1.5
46
41
  description: If you use IRT in place of irb or Rails Console, you will have more tools
@@ -54,7 +49,7 @@ extensions: []
54
49
  extra_rdoc_files:
55
50
  - README.markdown
56
51
  files:
57
- - .gitignore
52
+ - ".gitignore"
58
53
  - LICENSE
59
54
  - README.markdown
60
55
  - VERSION
@@ -95,36 +90,50 @@ files:
95
90
  - lib/irt/utils.rb
96
91
  homepage: http://github.com/ddnexus/irt
97
92
  licenses: []
98
- post_install_message: ! "________________________________________________________________________________\n\n
99
- \ IRT IMPORTANT NOTES\n________________________________________________________________________________\n\n
100
- \ 1. If you notice a messed prompt while navigating the history, you must\n enable
101
- the 'fix_readline_prompt' option in the ~/.irtrc file:\n\n IRT.fix_readline_prompt
102
- = true\n\n (see the README file for details)\n\n________________________________________________________________________________\n\n
103
- \ 2. In order to use the IRT contextual ri command, on ruby < 1.9.3,\n one of
104
- the following gems must be installed:\n\n \"bri\" if you run ruby >= 1.9.2\n
105
- \ \"fastri\" if you run ruby < 1.9.2\n\n (no extra installation needed
106
- if you use ruby >= 1.9.3)\n________________________________________________________________________________\n\n"
93
+ metadata: {}
94
+ post_install_message: |+
95
+ ________________________________________________________________________________
96
+
97
+ IRT IMPORTANT NOTES
98
+ ________________________________________________________________________________
99
+
100
+ 1. If you notice a messed prompt while navigating the history, you must
101
+ enable the 'fix_readline_prompt' option in the ~/.irtrc file:
102
+
103
+ IRT.fix_readline_prompt = true
104
+
105
+ (see the README file for details)
106
+
107
+ ________________________________________________________________________________
108
+
109
+ 2. In order to use the IRT contextual ri command, on ruby < 1.9.3,
110
+ one of the following gems must be installed:
111
+
112
+ "bri" if you run ruby >= 1.9.2
113
+ "fastri" if you run ruby < 1.9.2
114
+
115
+ (no extra installation needed if you use ruby >= 1.9.3)
116
+ ________________________________________________________________________________
117
+
107
118
  rdoc_options:
108
- - --charset=UTF-8
119
+ - "--charset=UTF-8"
109
120
  require_paths:
110
121
  - lib
111
122
  required_ruby_version: !ruby/object:Gem::Requirement
112
- none: false
113
123
  requirements:
114
- - - ! '>='
124
+ - - ">="
115
125
  - !ruby/object:Gem::Version
116
126
  version: '0'
117
127
  required_rubygems_version: !ruby/object:Gem::Requirement
118
- none: false
119
128
  requirements:
120
- - - ! '>='
129
+ - - ">="
121
130
  - !ruby/object:Gem::Version
122
131
  version: 1.3.6
123
132
  requirements: []
124
133
  rubyforge_project:
125
- rubygems_version: 1.8.25
134
+ rubygems_version: 2.4.5.1
126
135
  signing_key:
127
- specification_version: 3
136
+ specification_version: 4
128
137
  summary: Interactive Ruby Tools - Very improved irb and Rails Console with a lot of
129
138
  cool features.
130
139
  test_files: []