brice 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +1 -1
- data/lib/brice/version.rb +1 -1
- data/lib/rc/004_wirble.rb +17 -12
- data/lib/rc/040_rails.rb +1 -1
- metadata +11 -9
data/README
CHANGED
data/lib/brice/version.rb
CHANGED
data/lib/rc/004_wirble.rb
CHANGED
@@ -2,18 +2,20 @@
|
|
2
2
|
|
3
3
|
brice 'wirble' do |config|
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
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
|
-
|
12
|
-
|
12
|
+
lines = Readline::HISTORY.to_a.reverse.uniq.reverse
|
13
|
+
lines = lines[-max_size..-1] if lines.size > max_size
|
13
14
|
|
14
|
-
|
15
|
-
|
16
|
-
|
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(
|
25
|
-
|
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.
|
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-
|
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.
|
86
|
+
rubygems_version: 1.3.5
|
85
87
|
signing_key:
|
86
|
-
specification_version:
|
88
|
+
specification_version: 3
|
87
89
|
summary: Extra cool IRb goodness for the masses
|
88
90
|
test_files: []
|
89
91
|
|