rib 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # CHANGES
2
2
 
3
+ ## Rib 1.0.2 -- 2011-12-24
4
+
5
+ ### Bugs fixes
6
+
7
+ * [more/multiline_history] Make sure values are initialized even if
8
+ before_loop is called later. This helps us enable plugins on the fly.
9
+
3
10
  ## Rib 1.0.1 -- 2011-12-15
4
11
 
5
12
  ### Incompatible changes
data/README.md CHANGED
@@ -203,6 +203,14 @@ more plugins are lying in `rib/more/*.rb`. You can read `rib/app/ramaze.rb`
203
203
  and `bin/rib-ramaze` as a Rib App reference implementation, because it's very
204
204
  simple, simpler than rib-rails.
205
205
 
206
+ ## Other plugins and apps
207
+
208
+ * [rest-more][] `rib rest-core` Run as interactive rest-core client
209
+ * [rib-heroku][] `rib heroku` Run console on Heroku Cedar with your config
210
+
211
+ [rest-more]: https://github.com/cardinalblue/rest-more
212
+ [rib-heroku]: https://github.com/godfat/rib-heroku
213
+
206
214
  ## CONTRIBUTORS:
207
215
 
208
216
  * Andrew Liu (@eggegg)
@@ -216,7 +224,7 @@ simple, simpler than rib-rails.
216
224
 
217
225
  Apache License 2.0
218
226
 
219
- Copyright (c) 2010-2011, Lin Jen-Shin (godfat)
227
+ Copyright (c) 2011, Lin Jen-Shin (godfat)
220
228
 
221
229
  Licensed under the Apache License, Version 2.0 (the "License");
222
230
  you may not use this file except in compliance with the License.
data/bin/rib CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -24,8 +24,8 @@ module Rib::MultilineHistory
24
24
  def handle_interrupt
25
25
  return super if MultilineHistory.disabled?
26
26
  if multiline_buffer.size > 1
27
- @multiline_trash ||= 0
28
- @multiline_trash += 1
27
+ multiline_trash
28
+ @multiline_trash += 1
29
29
  end
30
30
  super
31
31
  end
@@ -37,8 +37,12 @@ module Rib::MultilineHistory
37
37
  if multiline_buffer.size > 1
38
38
  # so multiline editing is considering done here
39
39
  # TODO: there's no history.pop(size)
40
- (multiline_buffer.size + @multiline_trash).times{ history.pop }
40
+ (multiline_buffer.size + multiline_trash).times{ history.pop }
41
41
  history << "\n" + multiline_buffer.join("\n")
42
42
  end
43
43
  end
44
+
45
+ def multiline_trash
46
+ @multiline_trash ||= 0
47
+ end
44
48
  end
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Rib
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.2'
4
4
  end
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "rib"
5
- s.version = "1.0.1"
5
+ s.version = "1.0.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Lin Jen-Shin (godfat)"]
9
- s.date = "2011-12-15"
9
+ s.date = "2011-12-24"
10
10
  s.description = "Ruby-Interactive-ruBy -- Yet another interactive Ruby shell\n\nRib is based on the design of [ripl][] and the work of [ripl-rc][], some of\nthe features are also inspired by [pry][]. The aim of Rib is to be fully\nfeatured and yet very easy to opt-out or opt-in other features. It shall\nbe simple, lightweight and modular so that everyone could customize Rib.\n\n[ripl]: https://github.com/cldwalker/ripl\n[ripl-rc]: https://github.com/godfat/ripl-rc\n[pry]: https://github.com/pry/pry"
11
11
  s.email = ["godfat (XD) godfat.org"]
12
12
  s.executables = [
@@ -80,7 +80,7 @@ Gem::Specification.new do |s|
80
80
  "test/test_shell.rb"]
81
81
  s.homepage = "https://github.com/godfat/rib"
82
82
  s.require_paths = ["lib"]
83
- s.rubygems_version = "1.8.12"
83
+ s.rubygems_version = "1.8.13"
84
84
  s.summary = "Ruby-Interactive-ruBy -- Yet another interactive Ruby shell"
85
85
  s.test_files = [
86
86
  "test/core/test_completion.rb",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-15 00:00:00.000000000 Z
12
+ date: 2011-12-24 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! 'Ruby-Interactive-ruBy -- Yet another interactive Ruby shell
15
15
 
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  requirements: []
123
123
  rubyforge_project:
124
- rubygems_version: 1.8.12
124
+ rubygems_version: 1.8.13
125
125
  signing_key:
126
126
  specification_version: 3
127
127
  summary: Ruby-Interactive-ruBy -- Yet another interactive Ruby shell