irbtools 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ 1.3.0
2
+ * add modern debundle note
3
+ * remove loading of .railsrc
4
+ * remove dbg method
5
+ * version bumps
6
+
1
7
  1.2.2
2
8
  * fix errors when inspect returns nil (e.g. CarrierWave uploaders)
3
9
  * create legacy branch for 1.8.7 support
data/README.rdoc CHANGED
@@ -18,13 +18,21 @@ To use *irbtools*, put the following in your <tt>~/.irbrc</tt> file (this file i
18
18
  If the file does not exist, just create a new one. See further below on how to customize loaded libraries.
19
19
 
20
20
  === Rails notes
21
- To integrate irbtools into a rails console, you will have to add <tt>irbtools</tt> to your Gemfile <b>in this way:</b> (or there will be some bundler double require issues..)
21
+ To integrate irbtools into a rails console, you can either add <tt>irbtools</tt> to your Gemfile:
22
22
 
23
23
  gem 'irbtools', :require => false
24
24
 
25
- You can put Rails specific configuration in a <tt>~/.railsrc</tt> file that only gets loaded in Rails environments.
25
+ Another way is to add a debundle hack on top of your <tt>~/.irbrc</tt>:
26
26
 
27
- See {this blog post}[http://rbjl.net/49-railsrc-rails-console-snippets] for some Rails goodies.
27
+ # modified from https://github.com/ConradIrwin/pry-debundle/pull/5
28
+ if defined?(Gem.post_reset_hooks)
29
+ Gem.post_reset_hooks.reject!{ |hook| hook.source_location.first =~ %r{/bundler/} }
30
+ Gem::Specification.reset
31
+ load 'rubygems/custom_require.rb'
32
+ alias gem require
33
+ end
34
+
35
+ See {this blog post}[http://rbjl.net/49-railsrc-rails-console-snippets] for some Rails integration features.
28
36
 
29
37
  === Yesterday's Ruby versions
30
38
 
@@ -40,10 +48,6 @@ When installing *irbtools*, some gems won't be installed to keep windows support
40
48
  Irbtools.add_package :more
41
49
  Irbtools.start
42
50
 
43
- In that case, the Gemfile line looks like this:
44
-
45
- gem 'irbtools-more', :require => false
46
-
47
51
  === Included gems and libraries
48
52
 
49
53
  See http://rbjl.net/40-irbtools-release-the-power-of-irb or read the commented source files to get some examples of what you can do with irbtools.
@@ -89,7 +93,6 @@ The following general helper methods are defined by <b>every_day_irb</b> (which
89
93
  [reset!] Restarts irb
90
94
  [clear] Clears your irb terminal (<tt>system "clear"</tt>)
91
95
  [session_history] Returns all issued commands as string
92
- [dbg] Shortcut for <tt>debugger</tt> that also requires 'ruby-debug' if needed
93
96
 
94
97
  Irbtools also defines some more helpers in combination with the loaded gems:
95
98
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.2
1
+ 1.2.3
data/irbtools.gemspec CHANGED
@@ -12,31 +12,36 @@ Gem::Specification.new do |s|
12
12
  s.extra_rdoc_files = %w[LICENSE README.rdoc]
13
13
  s.files = %w[lib/irbtools.rb lib/irbtools/configure.rb lib/irbtools/libraries.rb lib/irbtools/minimal.rb VERSION CHANGELOG Rakefile irbtools.gemspec]
14
14
  s.homepage = 'https://github.com/janlelis/irbtools'
15
- s.required_ruby_version = '>= 1.8.7'
15
+ s.required_ruby_version = '>= 1.9.2'
16
16
 
17
- s.add_dependency %q<paint>, ">= 0.8.4"
18
- s.add_dependency %q<fancy_irb>, ">= 0.7.2"
17
+ # functionality
19
18
  s.add_dependency %q<zucker>, ">= 12.1"
20
- s.add_dependency %q<hirb>, "~> 0.6.1"
21
- s.add_dependency %q<awesome_print>, "~> 1.0.2"
19
+ s.add_dependency %q<boson>, "~> 1.2.4"
22
20
  s.add_dependency %q<clipboard>, "~> 1.0.1"
23
- s.add_dependency %q<coderay>, "~> 1.0.5"
24
- s.add_dependency %q<boson>, "~> 1.1.1"
25
- s.add_dependency %q<wirb>, ">= 0.4.2"
26
21
  s.add_dependency %q<interactive_editor>, ">= 0.0.10"
27
- s.add_dependency %q<ori>, "~> 0.1.0"
28
22
  s.add_dependency %q<sketches>, ">= 0.1.1"
29
- s.add_dependency %q<g>, ">= 1.5.0"
23
+ s.add_dependency %q<every_day_irb>, ">= #{ s.version }"
24
+
25
+ # display
26
+ s.add_dependency %q<paint>, ">= 0.8.5"
27
+ s.add_dependency %q<fancy_irb>, ">= 0.7.2"
28
+ s.add_dependency %q<wirb>, ">= 0.4.2"
29
+ s.add_dependency %q<hirb>, "~> 0.7.0"
30
+ s.add_dependency %q<awesome_print>, "~> 1.0.2"
31
+ s.add_dependency %q<coderay>, "~> 1.0.7"
32
+ s.add_dependency %q<g>, ">= 1.7.1"
33
+
34
+ # introspection / docs
35
+ s.add_dependency %q<ori>, "~> 0.1.0"
30
36
  s.add_dependency %q<methodfinder>, ">= 1.2.5"
31
37
  s.add_dependency %q<method_locator>,">= 0.0.4"
32
- s.add_dependency %q<method_source>, ">= 0.7.0"
33
- s.add_dependency %q<every_day_irb>, ">= #{ s.version }"
38
+ s.add_dependency %q<method_source>, ">= 0.8.0"
34
39
 
35
40
  len = s.homepage.size
36
41
  s.post_install_message = \
37
- (" ┌── " + "info ".ljust(len-2,'%') + "─┐\n" +
42
+ " ┌── " + "info ".ljust(len-2,'') + "─┐\n" +
38
43
  " J-_-L │ " + s.homepage + " │\n" +
39
- " ├── " + "usage ".ljust(len-2,'%') + "─┤\n" +
44
+ " ├── " + "usage ".ljust(len-2,'') + "─┤\n" +
40
45
  " │ " + "require 'irbtools'".ljust(len,' ') + " │\n" +
41
- " └─" + '─'*len + "─┘").gsub('%', '─') # 1.8 workaround
46
+ " └─" + '─'*len + "─┘"
42
47
  end
@@ -13,7 +13,6 @@ module Irbtools
13
13
  @libraries = { :start => [], :sub_session => [], :autoload => [], :thread => {}, :late => [], :late_thread => {} }
14
14
  @lib_hooks = Hash.new{|h,k| h[k] = [] }
15
15
  @packages = []
16
- @railsrc = '~/.railsrc'
17
16
  @shell_name = File.split($0)[-1].upcase
18
17
  @welcome_message = "Welcome to #{ @shell_name }. You are using #{ RUBY_DESCRIPTION }. Have fun ;)"
19
18
  @minimal ||= false
@@ -25,9 +24,6 @@ module Irbtools
25
24
  # shell name (usually irb), retrieved from $0
26
25
  attr_reader :shell_name
27
26
 
28
- # lets you define the path to the railsrc file or deactivate this feature with nil
29
- attr_accessor :railsrc
30
-
31
27
  # set this to true before loading this file to deactivate loading of default libraries
32
28
  attr_accessor :minimal
33
29
 
data/lib/irbtools.rb CHANGED
@@ -72,16 +72,6 @@ if defined?(IRB) || defined?(Ripl)
72
72
  # misc: add current directory to the load path
73
73
  $: << '.' if RUBY_VERSION >= '1.9.2'
74
74
 
75
- # # # # #
76
- # load: rails.rc
77
- begin
78
- if ( ENV['RAILS_ENV'] || defined? Rails ) && Irbtools.railsrc &&
79
- File.exist?( File.expand_path(Irbtools.railsrc) )
80
- load File.expand_path(Irbtools.railsrc)
81
- end
82
- rescue
83
- end
84
-
85
75
  # # # # #
86
76
  # load: sub-session / after_rc
87
77
  if defined?(Ripl) && Ripl.respond_to?(:started?) && Ripl.started?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: irbtools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,16 +9,16 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-18 00:00:00.000000000 Z
12
+ date: 2012-10-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: paint
15
+ name: zucker
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.8.4
21
+ version: '12.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,119 +26,119 @@ dependencies:
26
26
  requirements:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
- version: 0.8.4
29
+ version: '12.1'
30
30
  - !ruby/object:Gem::Dependency
31
- name: fancy_irb
31
+ name: boson
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
- - - ! '>='
35
+ - - ~>
36
36
  - !ruby/object:Gem::Version
37
- version: 0.7.2
37
+ version: 1.2.4
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
- - - ! '>='
43
+ - - ~>
44
44
  - !ruby/object:Gem::Version
45
- version: 0.7.2
45
+ version: 1.2.4
46
46
  - !ruby/object:Gem::Dependency
47
- name: zucker
47
+ name: clipboard
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  none: false
50
50
  requirements:
51
- - - ! '>='
51
+ - - ~>
52
52
  - !ruby/object:Gem::Version
53
- version: '12.1'
53
+ version: 1.0.1
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  none: false
58
58
  requirements:
59
- - - ! '>='
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: '12.1'
61
+ version: 1.0.1
62
62
  - !ruby/object:Gem::Dependency
63
- name: hirb
63
+ name: interactive_editor
64
64
  requirement: !ruby/object:Gem::Requirement
65
65
  none: false
66
66
  requirements:
67
- - - ~>
67
+ - - ! '>='
68
68
  - !ruby/object:Gem::Version
69
- version: 0.6.1
69
+ version: 0.0.10
70
70
  type: :runtime
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
- - - ~>
75
+ - - ! '>='
76
76
  - !ruby/object:Gem::Version
77
- version: 0.6.1
77
+ version: 0.0.10
78
78
  - !ruby/object:Gem::Dependency
79
- name: awesome_print
79
+ name: sketches
80
80
  requirement: !ruby/object:Gem::Requirement
81
81
  none: false
82
82
  requirements:
83
- - - ~>
83
+ - - ! '>='
84
84
  - !ruby/object:Gem::Version
85
- version: 1.0.2
85
+ version: 0.1.1
86
86
  type: :runtime
87
87
  prerelease: false
88
88
  version_requirements: !ruby/object:Gem::Requirement
89
89
  none: false
90
90
  requirements:
91
- - - ~>
91
+ - - ! '>='
92
92
  - !ruby/object:Gem::Version
93
- version: 1.0.2
93
+ version: 0.1.1
94
94
  - !ruby/object:Gem::Dependency
95
- name: clipboard
95
+ name: every_day_irb
96
96
  requirement: !ruby/object:Gem::Requirement
97
97
  none: false
98
98
  requirements:
99
- - - ~>
99
+ - - ! '>='
100
100
  - !ruby/object:Gem::Version
101
- version: 1.0.1
101
+ version: 1.2.3
102
102
  type: :runtime
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
- - - ~>
107
+ - - ! '>='
108
108
  - !ruby/object:Gem::Version
109
- version: 1.0.1
109
+ version: 1.2.3
110
110
  - !ruby/object:Gem::Dependency
111
- name: coderay
111
+ name: paint
112
112
  requirement: !ruby/object:Gem::Requirement
113
113
  none: false
114
114
  requirements:
115
- - - ~>
115
+ - - ! '>='
116
116
  - !ruby/object:Gem::Version
117
- version: 1.0.5
117
+ version: 0.8.5
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  none: false
122
122
  requirements:
123
- - - ~>
123
+ - - ! '>='
124
124
  - !ruby/object:Gem::Version
125
- version: 1.0.5
125
+ version: 0.8.5
126
126
  - !ruby/object:Gem::Dependency
127
- name: boson
127
+ name: fancy_irb
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
131
- - - ~>
131
+ - - ! '>='
132
132
  - !ruby/object:Gem::Version
133
- version: 1.1.1
133
+ version: 0.7.2
134
134
  type: :runtime
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  none: false
138
138
  requirements:
139
- - - ~>
139
+ - - ! '>='
140
140
  - !ruby/object:Gem::Version
141
- version: 1.1.1
141
+ version: 0.7.2
142
142
  - !ruby/object:Gem::Dependency
143
143
  name: wirb
144
144
  requirement: !ruby/object:Gem::Requirement
@@ -156,29 +156,29 @@ dependencies:
156
156
  - !ruby/object:Gem::Version
157
157
  version: 0.4.2
158
158
  - !ruby/object:Gem::Dependency
159
- name: interactive_editor
159
+ name: hirb
160
160
  requirement: !ruby/object:Gem::Requirement
161
161
  none: false
162
162
  requirements:
163
- - - ! '>='
163
+ - - ~>
164
164
  - !ruby/object:Gem::Version
165
- version: 0.0.10
165
+ version: 0.7.0
166
166
  type: :runtime
167
167
  prerelease: false
168
168
  version_requirements: !ruby/object:Gem::Requirement
169
169
  none: false
170
170
  requirements:
171
- - - ! '>='
171
+ - - ~>
172
172
  - !ruby/object:Gem::Version
173
- version: 0.0.10
173
+ version: 0.7.0
174
174
  - !ruby/object:Gem::Dependency
175
- name: ori
175
+ name: awesome_print
176
176
  requirement: !ruby/object:Gem::Requirement
177
177
  none: false
178
178
  requirements:
179
179
  - - ~>
180
180
  - !ruby/object:Gem::Version
181
- version: 0.1.0
181
+ version: 1.0.2
182
182
  type: :runtime
183
183
  prerelease: false
184
184
  version_requirements: !ruby/object:Gem::Requirement
@@ -186,23 +186,23 @@ dependencies:
186
186
  requirements:
187
187
  - - ~>
188
188
  - !ruby/object:Gem::Version
189
- version: 0.1.0
189
+ version: 1.0.2
190
190
  - !ruby/object:Gem::Dependency
191
- name: sketches
191
+ name: coderay
192
192
  requirement: !ruby/object:Gem::Requirement
193
193
  none: false
194
194
  requirements:
195
- - - ! '>='
195
+ - - ~>
196
196
  - !ruby/object:Gem::Version
197
- version: 0.1.1
197
+ version: 1.0.7
198
198
  type: :runtime
199
199
  prerelease: false
200
200
  version_requirements: !ruby/object:Gem::Requirement
201
201
  none: false
202
202
  requirements:
203
- - - ! '>='
203
+ - - ~>
204
204
  - !ruby/object:Gem::Version
205
- version: 0.1.1
205
+ version: 1.0.7
206
206
  - !ruby/object:Gem::Dependency
207
207
  name: g
208
208
  requirement: !ruby/object:Gem::Requirement
@@ -210,7 +210,7 @@ dependencies:
210
210
  requirements:
211
211
  - - ! '>='
212
212
  - !ruby/object:Gem::Version
213
- version: 1.5.0
213
+ version: 1.7.1
214
214
  type: :runtime
215
215
  prerelease: false
216
216
  version_requirements: !ruby/object:Gem::Requirement
@@ -218,31 +218,31 @@ dependencies:
218
218
  requirements:
219
219
  - - ! '>='
220
220
  - !ruby/object:Gem::Version
221
- version: 1.5.0
221
+ version: 1.7.1
222
222
  - !ruby/object:Gem::Dependency
223
- name: methodfinder
223
+ name: ori
224
224
  requirement: !ruby/object:Gem::Requirement
225
225
  none: false
226
226
  requirements:
227
- - - ! '>='
227
+ - - ~>
228
228
  - !ruby/object:Gem::Version
229
- version: 1.2.5
229
+ version: 0.1.0
230
230
  type: :runtime
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  none: false
234
234
  requirements:
235
- - - ! '>='
235
+ - - ~>
236
236
  - !ruby/object:Gem::Version
237
- version: 1.2.5
237
+ version: 0.1.0
238
238
  - !ruby/object:Gem::Dependency
239
- name: method_locator
239
+ name: methodfinder
240
240
  requirement: !ruby/object:Gem::Requirement
241
241
  none: false
242
242
  requirements:
243
243
  - - ! '>='
244
244
  - !ruby/object:Gem::Version
245
- version: 0.0.4
245
+ version: 1.2.5
246
246
  type: :runtime
247
247
  prerelease: false
248
248
  version_requirements: !ruby/object:Gem::Requirement
@@ -250,15 +250,15 @@ dependencies:
250
250
  requirements:
251
251
  - - ! '>='
252
252
  - !ruby/object:Gem::Version
253
- version: 0.0.4
253
+ version: 1.2.5
254
254
  - !ruby/object:Gem::Dependency
255
- name: method_source
255
+ name: method_locator
256
256
  requirement: !ruby/object:Gem::Requirement
257
257
  none: false
258
258
  requirements:
259
259
  - - ! '>='
260
260
  - !ruby/object:Gem::Version
261
- version: 0.7.0
261
+ version: 0.0.4
262
262
  type: :runtime
263
263
  prerelease: false
264
264
  version_requirements: !ruby/object:Gem::Requirement
@@ -266,15 +266,15 @@ dependencies:
266
266
  requirements:
267
267
  - - ! '>='
268
268
  - !ruby/object:Gem::Version
269
- version: 0.7.0
269
+ version: 0.0.4
270
270
  - !ruby/object:Gem::Dependency
271
- name: every_day_irb
271
+ name: method_source
272
272
  requirement: !ruby/object:Gem::Requirement
273
273
  none: false
274
274
  requirements:
275
275
  - - ! '>='
276
276
  - !ruby/object:Gem::Version
277
- version: 1.2.2
277
+ version: 0.8.0
278
278
  type: :runtime
279
279
  prerelease: false
280
280
  version_requirements: !ruby/object:Gem::Requirement
@@ -282,7 +282,7 @@ dependencies:
282
282
  requirements:
283
283
  - - ! '>='
284
284
  - !ruby/object:Gem::Version
285
- version: 1.2.2
285
+ version: 0.8.0
286
286
  description: irbtools is a "meta gem" that installs a bunch of useful irb gems and
287
287
  configures them for you. Simply put a require "irbtools" in the .irbrc file in your
288
288
  home directory.
@@ -316,7 +316,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
316
316
  requirements:
317
317
  - - ! '>='
318
318
  - !ruby/object:Gem::Version
319
- version: 1.8.7
319
+ version: 1.9.2
320
320
  required_rubygems_version: !ruby/object:Gem::Requirement
321
321
  none: false
322
322
  requirements:
@@ -325,9 +325,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
325
325
  version: '0'
326
326
  requirements: []
327
327
  rubyforge_project:
328
- rubygems_version: 1.8.19
328
+ rubygems_version: 1.8.24
329
329
  signing_key:
330
330
  specification_version: 3
331
331
  summary: irbtools is a "meta gem" that installs a bunch of useful irb gems and configures
332
332
  them for you.
333
333
  test_files: []
334
+ has_rdoc: