ripl-rc 0.2.2 → 0.2.3
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/CHANGES +10 -0
- data/README +5 -0
- data/README.md +5 -0
- data/lib/ripl/rc/debug.rb +3 -0
- data/lib/ripl/rc/u.rb +10 -4
- data/lib/ripl/rc/version.rb +1 -1
- data/ripl-rc.gemspec +4 -3
- data/task/gemgem.rb +3 -4
- data/test/test_disable_shortcut.rb +2 -2
- metadata +10 -9
data/CHANGES
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
= ripl-rc changes history
|
2
2
|
|
3
|
+
== ripl-rc 0.2.3 -- 2011-06-16
|
4
|
+
|
5
|
+
Please read this for detail:
|
6
|
+
http://blogger.godfat.org/2011/06/new-feature-mainly-for-anchor-in-ripl.html
|
7
|
+
|
8
|
+
* [ripl-rc] Ripl.enable/disable_??? now accepts a block to ease switching.
|
9
|
+
* [ debug] This plugin is simply calling Ripl.disable_anchor at the
|
10
|
+
beginning, make it easier to use [anchor] to inspect a certain
|
11
|
+
place under a certain condition. See the blog post for detail.
|
12
|
+
|
3
13
|
== ripl-rc 0.2.2 -- 2011-06-01
|
4
14
|
|
5
15
|
* [multiline_history ] fixed multiline_history
|
data/README
CHANGED
@@ -61,6 +61,11 @@ shown in prompt is the level of anchors, started from 1.
|
|
61
61
|
|
62
62
|

|
63
63
|
|
64
|
+
Please read this blog post for other detail since I haven't
|
65
|
+
had time to update this README... Sorry about that.
|
66
|
+
|
67
|
+
* [a new feature mainly for anchor in ripl-rc ](http://blogger.godfat.org/2011/06/new-feature-mainly-for-anchor-in-ripl.html)
|
68
|
+
|
64
69
|
## FEATURES:
|
65
70
|
|
66
71
|
upon session ends:
|
data/README.md
CHANGED
@@ -61,6 +61,11 @@ shown in prompt is the level of anchors, started from 1.
|
|
61
61
|
|
62
62
|

|
63
63
|
|
64
|
+
Please read this blog post for other detail since I haven't
|
65
|
+
had time to update this README... Sorry about that.
|
66
|
+
|
67
|
+
* [a new feature mainly for anchor in ripl-rc ](http://blogger.godfat.org/2011/06/new-feature-mainly-for-anchor-in-ripl.html)
|
68
|
+
|
64
69
|
## FEATURES:
|
65
70
|
|
66
71
|
upon session ends:
|
data/lib/ripl/rc/u.rb
CHANGED
@@ -10,10 +10,16 @@ module Ripl::Rc::U
|
|
10
10
|
|
11
11
|
def enable
|
12
12
|
self.disabled = false
|
13
|
+
yield if block_given?
|
14
|
+
ensure
|
15
|
+
disable if block_given?
|
13
16
|
end
|
14
17
|
|
15
18
|
def disable
|
16
19
|
self.disabled = true
|
20
|
+
yield if block_given?
|
21
|
+
ensure
|
22
|
+
enable if block_given?
|
17
23
|
end
|
18
24
|
|
19
25
|
def enabled?
|
@@ -29,14 +35,14 @@ module Ripl::Rc::U
|
|
29
35
|
gsub(/([A-Z][a-z]*)/, '\\1_').downcase[0..-2]
|
30
36
|
code = (%w[enable disable].map{ |meth|
|
31
37
|
<<-RUBY
|
32
|
-
def #{meth}_#{snake_name}
|
33
|
-
#{mod.name}.#{meth}
|
38
|
+
def #{meth}_#{snake_name} &block
|
39
|
+
#{mod.name}.#{meth}(&block)
|
34
40
|
end
|
35
41
|
RUBY
|
36
42
|
} + %w[enabled? disabled?].map{ |meth|
|
37
43
|
<<-RUBY
|
38
|
-
def #{snake_name}_#{meth}
|
39
|
-
#{mod.name}.#{meth}
|
44
|
+
def #{snake_name}_#{meth} &block
|
45
|
+
#{mod.name}.#{meth}(&block)
|
40
46
|
end
|
41
47
|
RUBY
|
42
48
|
}).join("\n")
|
data/lib/ripl/rc/version.rb
CHANGED
data/ripl-rc.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{ripl-rc}
|
5
|
-
s.version = "0.2.
|
5
|
+
s.version = "0.2.3"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = [%q{Lin Jen-Shin (godfat)}]
|
9
|
-
s.date = %q{2011-06-
|
9
|
+
s.date = %q{2011-06-16}
|
10
10
|
s.description = %q{ripl plugins collection, take you want, leave you don't.}
|
11
11
|
s.email = [%q{godfat (XD) godfat.org}]
|
12
12
|
s.executables = [%q{ripl-rc}]
|
@@ -33,6 +33,7 @@ Gem::Specification.new do |s|
|
|
33
33
|
%q{lib/ripl/rc/anchor.rb},
|
34
34
|
%q{lib/ripl/rc/color.rb},
|
35
35
|
%q{lib/ripl/rc/ctrld_newline.rb},
|
36
|
+
%q{lib/ripl/rc/debug.rb},
|
36
37
|
%q{lib/ripl/rc/eat_whites.rb},
|
37
38
|
%q{lib/ripl/rc/last_exception.rb},
|
38
39
|
%q{lib/ripl/rc/mkdir_history.rb},
|
@@ -50,7 +51,7 @@ Gem::Specification.new do |s|
|
|
50
51
|
%q{task/gemgem.rb},
|
51
52
|
%q{test/test_disable_shortcut.rb},
|
52
53
|
%q{test/test_squeeze_history.rb}]
|
53
|
-
s.homepage = %q{https://github.com/godfat/}
|
54
|
+
s.homepage = %q{https://github.com/godfat/ripl-rc}
|
54
55
|
s.rdoc_options = [
|
55
56
|
%q{--main},
|
56
57
|
%q{README}]
|
data/task/gemgem.rb
CHANGED
@@ -11,7 +11,6 @@ module Gemgem
|
|
11
11
|
yield(spec = Gem::Specification.new{ |s|
|
12
12
|
s.authors = ['Lin Jen-Shin (godfat)']
|
13
13
|
s.email = ['godfat (XD) godfat.org']
|
14
|
-
s.homepage = "https://github.com/godfat/#{s.name}"
|
15
14
|
|
16
15
|
s.summary = File.read("#{Gemgem.dir}/README").
|
17
16
|
match(/DESCRIPTION:\n\n(.+?)\n\n/m)[1]
|
@@ -25,6 +24,8 @@ module Gemgem
|
|
25
24
|
s.test_files = gem_files.grep(%r{^test/(.+?/)*test_.+?\.rb$})
|
26
25
|
s.require_paths = %w[lib]
|
27
26
|
})
|
27
|
+
spec.homepage = "https://github.com/godfat/#{spec.name}" unless
|
28
|
+
spec.homepage
|
28
29
|
spec
|
29
30
|
end
|
30
31
|
|
@@ -159,8 +160,6 @@ task :clean => ['gem:spec'] do
|
|
159
160
|
Gemgem.ignored_files.each{ |file| sh "mv #{file} #{trash}" }
|
160
161
|
end
|
161
162
|
|
162
|
-
|
163
163
|
task :default do
|
164
|
-
|
165
|
-
Rake.application.display_tasks_and_comments
|
164
|
+
puts `#{Gem.ruby} -S #{$PROGRAM_NAME} -T`
|
166
165
|
end
|
@@ -6,8 +6,8 @@ describe Ripl::Rc::U do
|
|
6
6
|
before do
|
7
7
|
@names = Dir[File.expand_path(
|
8
8
|
"#{File.dirname(__FILE__)}/../lib/ripl/rc/*.rb")].
|
9
|
-
map {
|
10
|
-
reject{
|
9
|
+
map {|path| File.basename(path)[0..-4] }.
|
10
|
+
reject{|name| %w[version u noirbrc test debug].include?(name)}
|
11
11
|
@mods = Ripl::Shell.ancestors[1..-1].select{ |mod| mod < Ripl::Rc }
|
12
12
|
end
|
13
13
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ripl-rc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-06-
|
12
|
+
date: 2011-06-16 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ripl
|
16
|
-
requirement: &
|
16
|
+
requirement: &2156666920 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.4.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2156666920
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: bacon
|
27
|
-
requirement: &
|
27
|
+
requirement: &2156666300 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2156666300
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rr
|
38
|
-
requirement: &
|
38
|
+
requirement: &2156665760 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2156665760
|
47
47
|
description: ripl plugins collection, take you want, leave you don't.
|
48
48
|
email:
|
49
49
|
- godfat (XD) godfat.org
|
@@ -73,6 +73,7 @@ files:
|
|
73
73
|
- lib/ripl/rc/anchor.rb
|
74
74
|
- lib/ripl/rc/color.rb
|
75
75
|
- lib/ripl/rc/ctrld_newline.rb
|
76
|
+
- lib/ripl/rc/debug.rb
|
76
77
|
- lib/ripl/rc/eat_whites.rb
|
77
78
|
- lib/ripl/rc/last_exception.rb
|
78
79
|
- lib/ripl/rc/mkdir_history.rb
|
@@ -90,7 +91,7 @@ files:
|
|
90
91
|
- task/gemgem.rb
|
91
92
|
- test/test_disable_shortcut.rb
|
92
93
|
- test/test_squeeze_history.rb
|
93
|
-
homepage: https://github.com/godfat/
|
94
|
+
homepage: https://github.com/godfat/ripl-rc
|
94
95
|
licenses: []
|
95
96
|
post_install_message:
|
96
97
|
rdoc_options:
|