brice 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
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
data/lib/rc/040_rails.rb CHANGED
@@ -8,7 +8,7 @@ brice 'rails' => nil do |config|
8
8
 
9
9
  svn = brice_require('nuggets/file/which') { File.which('svn') }
10
10
 
11
- if svn and svn_info = YAML.load(brice_run_cmd("#{svn} info", 'LANG' => 'C'))
11
+ if svn and svn_info = YAML.load(brice_run_cmd("#{svn} info 2> /dev/null", 'LANG' => 'C'))
12
12
  repo = svn_info['Repository Root']
13
13
  path = svn_info['URL'].sub(%r{#{Regexp.escape(repo)}/?}, '')
14
14
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: 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 +01:00
12
+ date: 2009-12-15 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -53,17 +53,19 @@ files:
53
53
  - README
54
54
  has_rdoc: true
55
55
  homepage: http://prometheus.rubyforge.org/brice
56
+ licenses: []
57
+
56
58
  post_install_message:
57
59
  rdoc_options:
60
+ - --charset
61
+ - UTF-8
62
+ - --main
63
+ - README
58
64
  - --line-numbers
59
- - --inline-source
60
65
  - --title
61
66
  - brice Application documentation
62
- - --main
63
- - README
64
- - --charset
65
- - UTF-8
66
67
  - --all
68
+ - --inline-source
67
69
  require_paths:
68
70
  - lib
69
71
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -81,9 +83,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
83
  requirements: []
82
84
 
83
85
  rubyforge_project: prometheus
84
- rubygems_version: 1.3.1
86
+ rubygems_version: 1.3.5
85
87
  signing_key:
86
- specification_version: 2
88
+ specification_version: 3
87
89
  summary: Extra cool IRb goodness for the masses
88
90
  test_files: []
89
91