irbtools 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ 1.0.5
2
+ * use paint gem for terminal colors
3
+
1
4
  1.0.4
2
5
  * improve error-handling
3
6
  * fix broken loading of boson + interactive_editor
@@ -65,7 +65,8 @@ These packages add/modify the libraries to be loaded. For an example, see {irbto
65
65
  See http://rbjl.net/40-irbtools-release-the-power-of-irb or read the commented source files.
66
66
 
67
67
  === Included gems and libraries
68
- * wirb[https://github.com/janlelis/wirb/] colorize output
68
+ * paint[https://github.com/janlelis/paint/] terminal colors
69
+ * wirb[https://github.com/janlelis/wirb/] colorize ruby objects
69
70
  * hirb[http://tagaholic.me/2009/03/13/hirb-irb-on-the-good-stuff.html] (active record) tables and custom views for specific objects
70
71
  * fancy_irb[https://github.com/janlelis/fancy_irb] put result as comment and more colorization
71
72
  * every_day_irb[https://github.com/janlelis/irbtools/tree/master/lib/every_day_irb.rb] helper methods that might be useful in every-day irb usage, e.g.: ls, cat, rq, rrq, ld, session_history, reset!, clear, dbg
@@ -92,9 +93,9 @@ If you have RVM installed, you can switch your gemset or ruby with <tt>gemset</t
92
93
  You can get an about a second faster start-up time by changing the loading methods for wirb and fancy_irb to <tt>:thread</tt> (drawback: the hash rocket will not be used for the first result):
93
94
 
94
95
  require 'irbtools/configure'
95
- Irbtools.remove_library :wirb
96
+ Irbtools.remove_library :paint
96
97
  Irbtools.remove_library :fancy_irb
97
- Irbtools.add_library :wirb, :thread => -1 do Wirb.start end
98
+ Irbtools.add_library :paint, :late => true do Wirb.load_schema :classic_paint if defined? Wirb end
98
99
  Irbtools.add_library :fancy_irb, :thread => -1 do FancyIrb.start end
99
100
  Irbtools.start
100
101
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.4
1
+ 1.0.5
@@ -14,14 +14,15 @@ Gem::Specification.new do |s|
14
14
  s.homepage = 'https://github.com/janlelis/irbtools'
15
15
  s.required_ruby_version = '>= 1.8.7'
16
16
 
17
- s.add_dependency %q<fancy_irb>, ">= 0.6.5"
17
+ s.add_dependency %q<paint>, ">= 0.8.1"
18
+ s.add_dependency %q<fancy_irb>, ">= 0.7.0"
18
19
  s.add_dependency %q<zucker>, ">= 11"
19
20
  s.add_dependency %q<hirb>, "~> 0.4.5"
20
21
  s.add_dependency %q<awesome_print>, "~> 0.4.0"
21
- s.add_dependency %q<clipboard>, ">= 0.9.8"
22
+ s.add_dependency %q<clipboard>, ">= 0.9.9"
22
23
  s.add_dependency %q<coderay>, "~> 0.9"
23
24
  s.add_dependency %q<boson>, ">= 0.3.3"
24
- s.add_dependency %q<wirb>, ">= 0.3.0"
25
+ s.add_dependency %q<wirb>, ">= 0.4.0"
25
26
  s.add_dependency %q<interactive_editor>, ">= 0.0.8"
26
27
  s.add_dependency %q<ori>, "~> 0.1.0"
27
28
  s.add_dependency %q<sketches>, ">= 0"
@@ -3,14 +3,19 @@
3
3
 
4
4
  require 'rbconfig'
5
5
 
6
+ # # # load on startup
7
+
8
+ Irbtools.add_library :yaml
9
+
10
+
6
11
  # # # load via late
7
12
 
8
13
  unless defined?(Ripl) && Ripl.respond_to?(:started?) && Ripl.started?
9
- Irbtools.add_library :wirb, :late => true do # result colors, install ripl-color_result for ripl colorization
10
- Wirb.start
11
- end
14
+ # terminal colors
15
+ Irbtools.add_library :paint, :late => true
12
16
 
13
- Irbtools.add_library :fancy_irb, :late => true do # put result as comment instead of a new line and colorful errors/streams
17
+ # use hash rocket and colorful errors/streams
18
+ Irbtools.add_library :fancy_irb, :late => true do
14
19
  FancyIrb.start
15
20
  end
16
21
  end
@@ -18,11 +23,19 @@ end
18
23
 
19
24
  # # # load via late_thread
20
25
 
21
- Irbtools.add_library 'wirb/wp', :late_thread => 10 # ap alternative (wp)
26
+ # result colors, install ripl-color_result for ripl colorization
27
+ Irbtools.add_library :wirb, :late_thread => 10 do
28
+ Wirb.load_schema :classic_paint
29
+ Wirb.start
30
+ end
31
+
32
+ Irbtools.add_library 'wirb/wp', :late_thread => 10 # ap alternative (wp)
33
+
34
+ Irbtools.add_library 'paint/pa', :late_thread => 20 # colorize a string (pa)
22
35
 
23
36
 
24
37
  # # # load via thread
25
- # the :stdlib thread ensures proper loading of fileutils, yaml and tempfile
38
+ # the :stdlib thread ensures proper loading of fileutils and tempfile
26
39
 
27
40
  Irbtools.add_library :fileutils, :thread => :stdlib do # cd, pwd, ln_s, mv, rm, mkdir, touch ... ;)
28
41
  include FileUtils::Verbose
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: irbtools
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.4
5
+ version: 1.0.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jan Lelis
@@ -10,173 +10,184 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-28 00:00:00 Z
13
+ date: 2011-07-07 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: fancy_irb
16
+ name: paint
17
17
  prerelease: false
18
18
  requirement: &id001 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 0.6.5
23
+ version: 0.8.1
24
24
  type: :runtime
25
25
  version_requirements: *id001
26
26
  - !ruby/object:Gem::Dependency
27
- name: zucker
27
+ name: fancy_irb
28
28
  prerelease: false
29
29
  requirement: &id002 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: "11"
34
+ version: 0.7.0
35
35
  type: :runtime
36
36
  version_requirements: *id002
37
37
  - !ruby/object:Gem::Dependency
38
- name: hirb
38
+ name: zucker
39
39
  prerelease: false
40
40
  requirement: &id003 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: "11"
46
+ type: :runtime
47
+ version_requirements: *id003
48
+ - !ruby/object:Gem::Dependency
49
+ name: hirb
50
+ prerelease: false
51
+ requirement: &id004 !ruby/object:Gem::Requirement
41
52
  none: false
42
53
  requirements:
43
54
  - - ~>
44
55
  - !ruby/object:Gem::Version
45
56
  version: 0.4.5
46
57
  type: :runtime
47
- version_requirements: *id003
58
+ version_requirements: *id004
48
59
  - !ruby/object:Gem::Dependency
49
60
  name: awesome_print
50
61
  prerelease: false
51
- requirement: &id004 !ruby/object:Gem::Requirement
62
+ requirement: &id005 !ruby/object:Gem::Requirement
52
63
  none: false
53
64
  requirements:
54
65
  - - ~>
55
66
  - !ruby/object:Gem::Version
56
67
  version: 0.4.0
57
68
  type: :runtime
58
- version_requirements: *id004
69
+ version_requirements: *id005
59
70
  - !ruby/object:Gem::Dependency
60
71
  name: clipboard
61
72
  prerelease: false
62
- requirement: &id005 !ruby/object:Gem::Requirement
73
+ requirement: &id006 !ruby/object:Gem::Requirement
63
74
  none: false
64
75
  requirements:
65
76
  - - ">="
66
77
  - !ruby/object:Gem::Version
67
- version: 0.9.8
78
+ version: 0.9.9
68
79
  type: :runtime
69
- version_requirements: *id005
80
+ version_requirements: *id006
70
81
  - !ruby/object:Gem::Dependency
71
82
  name: coderay
72
83
  prerelease: false
73
- requirement: &id006 !ruby/object:Gem::Requirement
84
+ requirement: &id007 !ruby/object:Gem::Requirement
74
85
  none: false
75
86
  requirements:
76
87
  - - ~>
77
88
  - !ruby/object:Gem::Version
78
89
  version: "0.9"
79
90
  type: :runtime
80
- version_requirements: *id006
91
+ version_requirements: *id007
81
92
  - !ruby/object:Gem::Dependency
82
93
  name: boson
83
94
  prerelease: false
84
- requirement: &id007 !ruby/object:Gem::Requirement
95
+ requirement: &id008 !ruby/object:Gem::Requirement
85
96
  none: false
86
97
  requirements:
87
98
  - - ">="
88
99
  - !ruby/object:Gem::Version
89
100
  version: 0.3.3
90
101
  type: :runtime
91
- version_requirements: *id007
102
+ version_requirements: *id008
92
103
  - !ruby/object:Gem::Dependency
93
104
  name: wirb
94
105
  prerelease: false
95
- requirement: &id008 !ruby/object:Gem::Requirement
106
+ requirement: &id009 !ruby/object:Gem::Requirement
96
107
  none: false
97
108
  requirements:
98
109
  - - ">="
99
110
  - !ruby/object:Gem::Version
100
- version: 0.3.0
111
+ version: 0.4.0
101
112
  type: :runtime
102
- version_requirements: *id008
113
+ version_requirements: *id009
103
114
  - !ruby/object:Gem::Dependency
104
115
  name: interactive_editor
105
116
  prerelease: false
106
- requirement: &id009 !ruby/object:Gem::Requirement
117
+ requirement: &id010 !ruby/object:Gem::Requirement
107
118
  none: false
108
119
  requirements:
109
120
  - - ">="
110
121
  - !ruby/object:Gem::Version
111
122
  version: 0.0.8
112
123
  type: :runtime
113
- version_requirements: *id009
124
+ version_requirements: *id010
114
125
  - !ruby/object:Gem::Dependency
115
126
  name: ori
116
127
  prerelease: false
117
- requirement: &id010 !ruby/object:Gem::Requirement
128
+ requirement: &id011 !ruby/object:Gem::Requirement
118
129
  none: false
119
130
  requirements:
120
131
  - - ~>
121
132
  - !ruby/object:Gem::Version
122
133
  version: 0.1.0
123
134
  type: :runtime
124
- version_requirements: *id010
135
+ version_requirements: *id011
125
136
  - !ruby/object:Gem::Dependency
126
137
  name: sketches
127
138
  prerelease: false
128
- requirement: &id011 !ruby/object:Gem::Requirement
139
+ requirement: &id012 !ruby/object:Gem::Requirement
129
140
  none: false
130
141
  requirements:
131
142
  - - ">="
132
143
  - !ruby/object:Gem::Version
133
144
  version: "0"
134
145
  type: :runtime
135
- version_requirements: *id011
146
+ version_requirements: *id012
136
147
  - !ruby/object:Gem::Dependency
137
148
  name: g
138
149
  prerelease: false
139
- requirement: &id012 !ruby/object:Gem::Requirement
150
+ requirement: &id013 !ruby/object:Gem::Requirement
140
151
  none: false
141
152
  requirements:
142
153
  - - ">="
143
154
  - !ruby/object:Gem::Version
144
155
  version: "0"
145
156
  type: :runtime
146
- version_requirements: *id012
157
+ version_requirements: *id013
147
158
  - !ruby/object:Gem::Dependency
148
159
  name: methodfinder
149
160
  prerelease: false
150
- requirement: &id013 !ruby/object:Gem::Requirement
161
+ requirement: &id014 !ruby/object:Gem::Requirement
151
162
  none: false
152
163
  requirements:
153
164
  - - ">="
154
165
  - !ruby/object:Gem::Version
155
166
  version: 1.2.3
156
167
  type: :runtime
157
- version_requirements: *id013
168
+ version_requirements: *id014
158
169
  - !ruby/object:Gem::Dependency
159
170
  name: rvm_loader
160
171
  prerelease: false
161
- requirement: &id014 !ruby/object:Gem::Requirement
172
+ requirement: &id015 !ruby/object:Gem::Requirement
162
173
  none: false
163
174
  requirements:
164
175
  - - ">="
165
176
  - !ruby/object:Gem::Version
166
177
  version: 1.0.0
167
178
  type: :runtime
168
- version_requirements: *id014
179
+ version_requirements: *id015
169
180
  - !ruby/object:Gem::Dependency
170
181
  name: every_day_irb
171
182
  prerelease: false
172
- requirement: &id015 !ruby/object:Gem::Requirement
183
+ requirement: &id016 !ruby/object:Gem::Requirement
173
184
  none: false
174
185
  requirements:
175
186
  - - ">="
176
187
  - !ruby/object:Gem::Version
177
- version: 1.0.4
188
+ version: 1.0.5
178
189
  type: :runtime
179
- version_requirements: *id015
190
+ version_requirements: *id016
180
191
  description: irbtools is a meta gem that installs useful irb gems and configures your irb. Simply put a require "irbtools" in the .irbrc file in your home directory.
181
192
  email: mail@janlelis.de
182
193
  executables: []