brice 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README +1 -1
- data/Rakefile +1 -1
- data/TODO +4 -0
- data/lib/brice/dsl.rb +13 -11
- data/lib/brice/version.rb +1 -1
- data/lib/rc/040_rails.rb +1 -1
- metadata +6 -6
data/README
CHANGED
data/Rakefile
CHANGED
@@ -14,7 +14,7 @@ begin
|
|
14
14
|
:summary => %q{Extra cool IRb goodness for the masses},
|
15
15
|
:files => FileList['lib/**/*.rb'].to_a,
|
16
16
|
:extra_files => FileList['[A-Z]*'].to_a,
|
17
|
-
:dependencies =>
|
17
|
+
:dependencies => [['ruby-nuggets', '>= 0.5.2']]
|
18
18
|
}
|
19
19
|
}}
|
20
20
|
rescue LoadError
|
data/TODO
CHANGED
@@ -7,9 +7,13 @@ http://rubyforge.org/projects/irbhelper/
|
|
7
7
|
http://rubyforge.org/projects/irb-history/
|
8
8
|
http://rubyforge.org/projects/irbprovements/
|
9
9
|
http://rubyforge.org/projects/live-console/
|
10
|
+
http://github.com/matthew/method_lister/
|
10
11
|
http://rubyforge.org/projects/pope/
|
11
12
|
http://rubyforge.org/projects/rshell/
|
12
13
|
http://rubyforge.org/projects/rubyade/
|
13
14
|
#http://rubyforge.org/projects/rubysideshow/ [-]
|
14
15
|
http://rubyforge.org/projects/shellable/
|
15
16
|
#http://rubyforge.org/projects/utilitybelt/ [+]
|
17
|
+
|
18
|
+
http://rubysideshow.rubyforge.org/svn/IrbCallbacks/
|
19
|
+
http://github.com/cldwalker/irbfiles/blob/master/.irb/todo/benchmark_via_callbacks.rb
|
data/lib/brice/dsl.rb
CHANGED
@@ -24,6 +24,9 @@
|
|
24
24
|
###############################################################################
|
25
25
|
#++
|
26
26
|
|
27
|
+
require 'nuggets/object/silence_mixin'
|
28
|
+
require 'nuggets/env/set'
|
29
|
+
|
27
30
|
class Brice
|
28
31
|
|
29
32
|
# Certain global helper methods for use inside IRb extensions. Also
|
@@ -31,6 +34,8 @@ class Brice
|
|
31
34
|
|
32
35
|
module DSL
|
33
36
|
|
37
|
+
include Nuggets::Object::SilenceMixin
|
38
|
+
|
34
39
|
# call-seq:
|
35
40
|
# irb_rc { ... }
|
36
41
|
#
|
@@ -58,17 +63,6 @@ class Brice
|
|
58
63
|
|
59
64
|
alias_method :define_irb_method, :irb_def
|
60
65
|
|
61
|
-
# call-seq:
|
62
|
-
# silence { ... }
|
63
|
-
#
|
64
|
-
# Silence warnings for block execution.
|
65
|
-
def silence
|
66
|
-
verbose, $VERBOSE = $VERBOSE, nil
|
67
|
-
yield
|
68
|
-
ensure
|
69
|
-
$VERBOSE = verbose
|
70
|
-
end
|
71
|
-
|
72
66
|
# call-seq:
|
73
67
|
# brice_rescue(what, args = [], error = Exception)
|
74
68
|
#
|
@@ -126,6 +120,14 @@ class Brice
|
|
126
120
|
end
|
127
121
|
end
|
128
122
|
|
123
|
+
# call-seq:
|
124
|
+
# brice_run_cmd(cmd, env = {})
|
125
|
+
#
|
126
|
+
# Runs +cmd+ with ENV modified according to +env+.
|
127
|
+
def brice_run_cmd(cmd, env = {})
|
128
|
+
ENV.with(env) { `#{cmd}` }
|
129
|
+
end
|
130
|
+
|
129
131
|
# call-seq:
|
130
132
|
# brice(package) # package == lib
|
131
133
|
# brice(package => lib)
|
data/lib/brice/version.rb
CHANGED
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(
|
11
|
+
if svn and svn_info = YAML.load(brice_run_cmd("#{svn} info", '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.6
|
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-03-12 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version:
|
23
|
+
version: 0.5.2
|
24
24
|
version:
|
25
25
|
description: Extra cool IRb goodness for the masses
|
26
26
|
email: jens.wille@uni-koeln.de
|
@@ -55,15 +55,15 @@ has_rdoc: true
|
|
55
55
|
homepage: http://prometheus.rubyforge.org/brice
|
56
56
|
post_install_message:
|
57
57
|
rdoc_options:
|
58
|
+
- --main
|
59
|
+
- README
|
58
60
|
- --line-numbers
|
59
61
|
- --inline-source
|
62
|
+
- --all
|
60
63
|
- --title
|
61
64
|
- brice Application documentation
|
62
|
-
- --main
|
63
|
-
- README
|
64
65
|
- --charset
|
65
66
|
- UTF-8
|
66
|
-
- --all
|
67
67
|
require_paths:
|
68
68
|
- lib
|
69
69
|
required_ruby_version: !ruby/object:Gem::Requirement
|