ripl-commands 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gemspec CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.description = "This ripl plugin provides a core group of commands for any ripl shell. It aims to match and surpass functionality in irb's commands."
13
13
  s.required_rubygems_version = ">= 1.3.6"
14
14
  s.rubyforge_project = 'tagaholic'
15
- s.add_dependency 'ripl', '>= 0.2.7'
15
+ s.add_dependency 'ripl', '>= 0.2.9'
16
16
  s.files = Dir.glob(%w[{lib,test}/**/*.rb bin/* [A-Z]*.{txt,rdoc} ext/**/*.{rb,c} **/deps.rip]) + %w{Rakefile .gemspec}
17
17
  s.extra_rdoc_files = ["README.rdoc", "LICENSE.txt"]
18
18
  s.license = 'MIT'
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.2.1
2
+ * Add autocompletion for config command
3
+
1
4
  == 0.2.0
2
5
  * Add history and editor commands
3
6
 
data/README.rdoc CHANGED
@@ -23,6 +23,10 @@ Try it out:
23
23
  ripl(main):2> config :result_prompt, '<> '
24
24
  <> "<> "
25
25
 
26
+ # Autocomplete available config keys
27
+ >> config :[TAB]
28
+ :binding :color_error :multi_line_prompt :name :prompt :result_prompt
29
+
26
30
  # Jump around in different objects as irb does with subsessions and workspaces
27
31
  >> jump 'dude'
28
32
  => 'dude'
@@ -95,5 +99,4 @@ The above jump session then looks like:
95
99
 
96
100
  == Todo
97
101
  * Add exit for a jump
98
- * Add command completion
99
102
  * Fix stacktrace interference caused by jumps
data/deps.rip CHANGED
@@ -1 +1 @@
1
- ripl >=0.2.7
1
+ ripl >=0.2.9
data/lib/ripl/commands.rb CHANGED
@@ -3,7 +3,7 @@ require 'ripl/commands/history'
3
3
 
4
4
  module Ripl
5
5
  module Commands
6
- VERSION = '0.2.0'
6
+ VERSION = '0.2.1'
7
7
 
8
8
  module Core
9
9
  def self.jumps
@@ -36,4 +36,4 @@ module Ripl
36
36
  end
37
37
  end
38
38
 
39
- Ripl::Commands.send :include, Ripl::Commands::Core
39
+ Ripl::Commands.include Ripl::Commands::Core
@@ -41,4 +41,4 @@ module Ripl::Commands::History
41
41
  end
42
42
  end
43
43
 
44
- Ripl::Commands.send :include, Ripl::Commands::History
44
+ Ripl::Commands.include Ripl::Commands::History
@@ -0,0 +1,4 @@
1
+ complete(:method=>'config') {
2
+ (Ripl::Shell::OPTIONS.keys + Ripl.config.keys).uniq -
3
+ [:irbrc, :riplrc, :history, :completion, :readline]
4
+ }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ripl-commands
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Gabriel Horner
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-05 00:00:00 -05:00
18
+ date: 2010-12-24 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -26,12 +26,12 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- hash: 25
29
+ hash: 5
30
30
  segments:
31
31
  - 0
32
32
  - 2
33
- - 7
34
- version: 0.2.7
33
+ - 9
34
+ version: 0.2.9
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
37
  description: This ripl plugin provides a core group of commands for any ripl shell. It aims to match and surpass functionality in irb's commands.
@@ -46,6 +46,7 @@ extra_rdoc_files:
46
46
  files:
47
47
  - lib/ripl/commands/history.rb
48
48
  - lib/ripl/commands.rb
49
+ - lib/ripl/completions/commands.rb
49
50
  - LICENSE.txt
50
51
  - CHANGELOG.rdoc
51
52
  - README.rdoc