blackwinter-brice 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README +1 -1
  2. data/lib/brice/version.rb +1 -1
  3. data/lib/rc/004_wirble.rb +17 -12
  4. metadata +11 -11
data/README CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  == VERSION
4
4
 
5
- This documentation refers to brice version 0.0.7
5
+ This documentation refers to brice version 0.0.8
6
6
 
7
7
 
8
8
  == DESCRIPTION
data/lib/brice/version.rb CHANGED
@@ -4,7 +4,7 @@ class Brice
4
4
 
5
5
  MAJOR = 0
6
6
  MINOR = 0
7
- TINY = 7
7
+ TINY = 8
8
8
 
9
9
  class << self
10
10
 
data/lib/rc/004_wirble.rb CHANGED
@@ -2,18 +2,20 @@
2
2
 
3
3
  brice 'wirble' do |config|
4
4
 
5
- # Save history newest-first, instead of default oldest-first.
6
- class Wirble::History
7
- def save_history
8
- if Object.const_defined?(:IRB)
9
- path, max_size, perms = %w[path size perms].map { |v| cfg(v) }
5
+ unless Wirble::History::DEFAULTS.has_key?(:history_uniq)
6
+ # Save history newest-first, instead of default oldest-first.
7
+ class Wirble::History
8
+ def save_history
9
+ if Object.const_defined?(:IRB)
10
+ path, max_size, perms = %w[path size perms].map { |v| cfg(v) }
10
11
 
11
- lines = Readline::HISTORY.to_a.reverse.uniq.reverse
12
- lines = lines[-max_size..-1] if lines.size > max_size
12
+ lines = Readline::HISTORY.to_a.reverse.uniq.reverse
13
+ lines = lines[-max_size..-1] if lines.size > max_size
13
14
 
14
- real_path = File.expand_path(path)
15
- File.open(real_path, perms) { |fh| fh.puts lines }
16
- say 'Saved %d lines to history file %s.' % [lines.size, path]
15
+ real_path = File.expand_path(path)
16
+ File.open(real_path, perms) { |fh| fh.puts lines }
17
+ say 'Saved %d lines to history file %s.' % [lines.size, path]
18
+ end
17
19
  end
18
20
  end
19
21
  end
@@ -21,7 +23,10 @@ brice 'wirble' do |config|
21
23
  # Make wirble and ruby-debug use the same histfile
22
24
  silence { FILE_HISTORY = Wirble::History::DEFAULTS[:history_path] }
23
25
 
24
- Wirble.init(:skip_prompt => true)
25
- Wirble.colorize
26
+ Wirble.init(
27
+ :skip_prompt => true,
28
+ :init_colors => true,
29
+ :history_uniq => :reverse
30
+ )
26
31
 
27
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blackwinter-brice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Wille
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-27 00:00:00 -07:00
12
+ date: 2009-09-01 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -33,25 +33,25 @@ extra_rdoc_files:
33
33
  - ChangeLog
34
34
  - README
35
35
  files:
36
- - lib/brice.rb
37
- - lib/rc/010_libs.rb
38
36
  - lib/rc/005_added_methods.rb
37
+ - lib/rc/010_libs.rb
39
38
  - lib/rc/004_wirble.rb
40
39
  - lib/rc/050_devel.rb
41
- - lib/rc/015_utility_belt.rb
42
40
  - lib/rc/030_prompt.rb
43
- - lib/rc/020_init.rb
44
41
  - lib/rc/040_rails.rb
42
+ - lib/rc/015_utility_belt.rb
43
+ - lib/rc/020_init.rb
44
+ - lib/brice/config.rb
45
45
  - lib/brice/dsl.rb
46
46
  - lib/brice/version.rb
47
- - lib/brice/config.rb
48
47
  - lib/brice/init.rb
49
- - Rakefile
48
+ - lib/brice.rb
50
49
  - COPYING
50
+ - Rakefile
51
+ - README
51
52
  - ChangeLog
52
53
  - TODO
53
- - README
54
- has_rdoc: true
54
+ has_rdoc: false
55
55
  homepage: http://prometheus.rubyforge.org/brice
56
56
  post_install_message:
57
57
  rdoc_options:
@@ -83,7 +83,7 @@ requirements: []
83
83
  rubyforge_project: prometheus
84
84
  rubygems_version: 1.2.0
85
85
  signing_key:
86
- specification_version: 2
86
+ specification_version: 3
87
87
  summary: Extra cool IRb goodness for the masses
88
88
  test_files: []
89
89