ripl-auto_indent 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/.gemspec CHANGED
@@ -11,8 +11,8 @@ Gem::Specification.new do |s|
11
11
  s.summary = "A ripl plugin which indents your entered Ruby code."
12
12
  s.description = "This ripl plugin indents your multi-line Ruby input using coderay."
13
13
  s.required_rubygems_version = ">= 1.3.6"
14
- s.add_dependency 'ripl', '>= 0.2.6'
15
- s.add_dependency 'ripl-multi_line', '>= 0.2.0'
14
+ s.add_dependency 'ripl', '>= 0.3.1'
15
+ s.add_dependency 'ripl-multi_line', '>= 0.2.3'
16
16
  s.add_dependency 'coderay', '~> 0.9'
17
17
  s.files = Dir.glob(%w[{lib,test}/**/*.rb bin/* [A-Z]*.{txt,rdoc} ext/**/*.{rb,c} **/deps.rip]) + %w{Rakefile .gemspec}
18
18
  s.extra_rdoc_files = ["README.rdoc", "LICENSE.txt"]
data/CHANGELOG.rdoc CHANGED
@@ -1,5 +1,8 @@
1
+ == 0.1.4
2
+ * Compatible with multi_line 0.2.3 (proc as prompt)
3
+
1
4
  == 0.1.3
2
- * Fixed "ArgumentError: comparison of Fixnum with nil failed"
5
+ * Fix "ArgumentError: comparison of Fixnum with nil failed"
3
6
 
4
7
  == 0.1.2
5
8
  * Fix for modifier statements
data/README.rdoc CHANGED
@@ -1,5 +1,5 @@
1
1
  == Description
2
- A {ripl}[http://github.com/cldwalker/ripl] plugin that indents your entered Ruby code.
2
+ A {ripl}[https://github.com/cldwalker/ripl] plugin that indents your entered Ruby code.
3
3
 
4
4
  == Install
5
5
  Install the gem with
@@ -16,6 +16,7 @@ Add the following line to your <tt>~/.riplrc</tt>
16
16
 
17
17
  The plugin rewrites the last line (if the there are closing elements). If this is too buggy for you or your terminal does not support it, you can deactivate it with <tt>Ripl.config[:auto_indent_rewrite] = false</tt>.
18
18
  You can change the default two spaces used for indention (per level) with <tt>Ripl.config[:auto_indent_space]</tt>.
19
+ The plugin depends on <tt>ripl-multi_line</tt>, so you can set the multi-line prompt with <tt>Ripl.config[:multi_line_prompt]</tt>
19
20
 
20
21
  == Known bugs
21
22
 
data/deps.rip CHANGED
@@ -1,3 +1,3 @@
1
- ripl >=0.2.5
2
- ripl-multi_line >=0.1.4
1
+ ripl >=0.3.1
2
+ ripl-multi_line >=0.2.3
3
3
  coderay >=0.9.5
@@ -5,7 +5,7 @@ require 'set'
5
5
 
6
6
  module Ripl
7
7
  module AutoIndent
8
- VERSION = '0.1.3'
8
+ VERSION = '0.1.4'
9
9
  TPUT = {
10
10
  :sc => `tput sc`, # save current cursor position
11
11
  :cuu1 => `tput cuu1`, # move cursor on line upwards
@@ -47,7 +47,7 @@ module Ripl
47
47
  end
48
48
 
49
49
  def prompt
50
- @buffer ? config[:multi_line_prompt] + config[:auto_indent_space]*@current_indent : super
50
+ @buffer ? super + config[:auto_indent_space]*@current_indent : super
51
51
  end
52
52
 
53
53
  def rewrite_line(append_indents = 0)
@@ -79,7 +79,5 @@ Ripl::Shell.send :include, Ripl::AutoIndent
79
79
  # default config
80
80
  Ripl.config[:auto_indent_rewrite] = true if Ripl.config[:auto_indent_rewrite].nil?
81
81
  Ripl.config[:auto_indent_space] ||= ' '
82
- Ripl.config[:multi_line_prompt] = '| ' if !Ripl.config[:multi_line_prompt] ||
83
- Ripl.config[:multi_line_prompt] == '| '
84
82
 
85
83
  # J-_-L
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ripl-auto_indent
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 3
9
- version: 0.1.3
4
+ prerelease:
5
+ version: 0.1.4
10
6
  platform: ruby
11
7
  authors:
12
8
  - Jan Lelis
@@ -14,7 +10,7 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2010-12-18 00:00:00 +01:00
13
+ date: 2011-02-21 00:00:00 +01:00
18
14
  default_executable:
19
15
  dependencies:
20
16
  - !ruby/object:Gem::Dependency
@@ -25,11 +21,7 @@ dependencies:
25
21
  requirements:
26
22
  - - ">="
27
23
  - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- - 2
31
- - 6
32
- version: 0.2.6
24
+ version: 0.3.1
33
25
  type: :runtime
34
26
  version_requirements: *id001
35
27
  - !ruby/object:Gem::Dependency
@@ -40,11 +32,7 @@ dependencies:
40
32
  requirements:
41
33
  - - ">="
42
34
  - !ruby/object:Gem::Version
43
- segments:
44
- - 0
45
- - 2
46
- - 0
47
- version: 0.2.0
35
+ version: 0.2.3
48
36
  type: :runtime
49
37
  version_requirements: *id002
50
38
  - !ruby/object:Gem::Dependency
@@ -55,9 +43,6 @@ dependencies:
55
43
  requirements:
56
44
  - - ~>
57
45
  - !ruby/object:Gem::Version
58
- segments:
59
- - 0
60
- - 9
61
46
  version: "0.9"
62
47
  type: :runtime
63
48
  version_requirements: *id003
@@ -92,23 +77,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
92
77
  requirements:
93
78
  - - ">="
94
79
  - !ruby/object:Gem::Version
95
- segments:
96
- - 0
97
80
  version: "0"
98
81
  required_rubygems_version: !ruby/object:Gem::Requirement
99
82
  none: false
100
83
  requirements:
101
84
  - - ">="
102
85
  - !ruby/object:Gem::Version
103
- segments:
104
- - 1
105
- - 3
106
- - 6
107
86
  version: 1.3.6
108
87
  requirements: []
109
88
 
110
89
  rubyforge_project:
111
- rubygems_version: 1.3.7
90
+ rubygems_version: 1.5.2
112
91
  signing_key:
113
92
  specification_version: 3
114
93
  summary: A ripl plugin which indents your entered Ruby code.