rib 1.2.9 → 1.2.91
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.
- checksums.yaml +4 -4
- data/.travis.yml +8 -4
- data/CHANGES.md +7 -0
- data/README.md +10 -2
- data/lib/rib/core/multiline.rb +3 -1
- data/lib/rib/extra/paging.rb +3 -0
- data/lib/rib/extra/spring.rb +12 -0
- data/lib/rib/version.rb +1 -1
- data/rib.gemspec +5 -4
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 88c5f2ae8689754dbb4170da0bb88795aec2d883
|
|
4
|
+
data.tar.gz: 28c9823c064fe74870020570f6fd5c97ad304eab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8fc90a4a128b0b2ad85c235afe10ff64694fb43e6f4c44e296f8359f304f9ea66b0c960b9d82a5f481d464f56714695361671ac791923570dfb2553c60b54f29
|
|
7
|
+
data.tar.gz: 7af336679010d281f72953ae0517a56414faeed302d5fb91de18ee68053984407948fbe2ad12d16ebfbb05385db8317b13cedd1d701f29dcfe7bb8155f35efa6
|
data/.travis.yml
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
sudo: false
|
|
2
2
|
language: ruby
|
|
3
3
|
rvm:
|
|
4
|
-
- 2.0
|
|
5
4
|
- 2.1
|
|
6
5
|
- 2.2
|
|
7
|
-
-
|
|
8
|
-
-
|
|
6
|
+
- 2.3.0
|
|
7
|
+
- rbx
|
|
8
|
+
- jruby-9
|
|
9
9
|
|
|
10
|
+
before_install:
|
|
11
|
+
- rvm get head
|
|
12
|
+
- rvm reload
|
|
13
|
+
- rvm use --install $TRAVIS_RUBY_VERSION --binary --latest
|
|
10
14
|
install: 'bundle install --retry=3'
|
|
11
15
|
script: 'ruby -r bundler/setup -S rake test'
|
data/CHANGES.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# CHANGES
|
|
2
2
|
|
|
3
|
+
## Rib 1.2.91 -- 2016-01-06
|
|
4
|
+
|
|
5
|
+
* [core/multiline] Fixed a case for JRuby 9.0.4.0.
|
|
6
|
+
* [extra/paging] Disable paging if `tput` is not found.
|
|
7
|
+
* [extra/spring] Require `rib/extra/spring` in your `~/.spring` to enable
|
|
8
|
+
Rails Spring support. #11 (thanks @swrobel)
|
|
9
|
+
|
|
3
10
|
## Rib 1.2.9 -- 2015-09-23
|
|
4
11
|
|
|
5
12
|
* [extra/paging] Disable paging if your terminal is nil. (e.g. on Heroku)
|
data/README.md
CHANGED
|
@@ -55,6 +55,11 @@ You could also run in production and pass arguments normally as you'd do in
|
|
|
55
55
|
Note: You might need to add ruby-debug or ruby-debug19 to your Gemfile if
|
|
56
56
|
you're passing --debugger and using bundler together.
|
|
57
57
|
|
|
58
|
+
For [Rails Spring](https://github.com/rails/spring) support, put this line
|
|
59
|
+
in your `~/.spring.rb`:
|
|
60
|
+
|
|
61
|
+
require 'rib/extra/spring'
|
|
62
|
+
|
|
58
63
|
As Ramaze console
|
|
59
64
|
|
|
60
65
|
rib ramaze
|
|
@@ -89,7 +94,7 @@ which would be loaded into memory before launching Rib shell session, You can
|
|
|
89
94
|
put any customization or monkey patch there. Personally, I use all plugins
|
|
90
95
|
provided by Rib.
|
|
91
96
|
|
|
92
|
-
|
|
97
|
+
My Personal [~/.config/rib/config](https://github.com/godfat/dev-tool/blob/master/.config/rib/config.rb)
|
|
93
98
|
|
|
94
99
|
As you can see, putting `require 'rib/all'` into config file is exactly the
|
|
95
100
|
same as running `rib all` without a config file. What `rib all` would do is
|
|
@@ -242,11 +247,14 @@ or having conflicted semantics.
|
|
|
242
247
|
tested and might not work well. Please let me know if you have
|
|
243
248
|
any issue using it, thanks!
|
|
244
249
|
|
|
245
|
-
* `require 'rib/extra/paging'` This plugin is depending on `less`.
|
|
250
|
+
* `require 'rib/extra/paging'` This plugin is depending on `less` and `tput`.
|
|
246
251
|
|
|
247
252
|
Which would pass the result to `less` (or `$PAGER` if set) if
|
|
248
253
|
the result string is longer than the screen.
|
|
249
254
|
|
|
255
|
+
* `require 'rib/extra/spring'` in your `~/.spring.rb`
|
|
256
|
+
for [Rails Spring](https://github.com/rails/spring) support.
|
|
257
|
+
|
|
250
258
|
[readline_buffer]: https://github.com/godfat/readline_buffer
|
|
251
259
|
[hirb]: https://github.com/cldwalker/hirb
|
|
252
260
|
[debugger]: https://github.com/cldwalker/debugger
|
data/lib/rib/core/multiline.rb
CHANGED
|
@@ -61,7 +61,9 @@ module Rib::Multiline
|
|
|
61
61
|
# jruby
|
|
62
62
|
"syntax error, unexpected" \
|
|
63
63
|
" t(UPLUS|UMINUS|STAR|REGEXP_BEG|AMPER)",
|
|
64
|
-
"syntax error, unexpected end-of-file"
|
|
64
|
+
"syntax error, unexpected end-of-file",
|
|
65
|
+
# jruby 9.0.4.0
|
|
66
|
+
"formal argument must be local variable" ].join('|'))
|
|
65
67
|
end
|
|
66
68
|
|
|
67
69
|
# --------------- Rib API ---------------
|
data/lib/rib/extra/paging.rb
CHANGED
|
@@ -47,6 +47,9 @@ pager = ENV['PAGER'] || 'less'
|
|
|
47
47
|
if `which #{pager}`.empty?
|
|
48
48
|
Rib.warn("#{pager} is not available, disabling Rib::Paging")
|
|
49
49
|
Rib::Paging.disable
|
|
50
|
+
elsif `which tput`.empty?
|
|
51
|
+
Rib.warn("tput is not available, disabling Rib::Paging")
|
|
52
|
+
Rib::Paging.disable
|
|
50
53
|
elsif ENV['TERM'] == 'dumb' || ENV['TERM'].nil?
|
|
51
54
|
Rib.warn("Your terminal is dumb, disabling Rib::Paging")
|
|
52
55
|
Rib::Paging.disable
|
data/lib/rib/version.rb
CHANGED
data/rib.gemspec
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
|
-
# stub: rib 1.2.
|
|
2
|
+
# stub: rib 1.2.91 ruby lib
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = "rib"
|
|
6
|
-
s.version = "1.2.
|
|
6
|
+
s.version = "1.2.91"
|
|
7
7
|
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
9
9
|
s.require_paths = ["lib"]
|
|
10
10
|
s.authors = ["Lin Jen-Shin (godfat)"]
|
|
11
|
-
s.date = "
|
|
11
|
+
s.date = "2016-01-06"
|
|
12
12
|
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"
|
|
13
13
|
s.email = ["godfat (XD) godfat.org"]
|
|
14
14
|
s.executables = [
|
|
@@ -56,6 +56,7 @@ Gem::Specification.new do |s|
|
|
|
56
56
|
"lib/rib/extra/autoindent.rb",
|
|
57
57
|
"lib/rib/extra/hirb.rb",
|
|
58
58
|
"lib/rib/extra/paging.rb",
|
|
59
|
+
"lib/rib/extra/spring.rb",
|
|
59
60
|
"lib/rib/more.rb",
|
|
60
61
|
"lib/rib/more/anchor.rb",
|
|
61
62
|
"lib/rib/more/bottomup_backtrace.rb",
|
|
@@ -88,7 +89,7 @@ Gem::Specification.new do |s|
|
|
|
88
89
|
"test/test_shell.rb"]
|
|
89
90
|
s.homepage = "https://github.com/godfat/rib"
|
|
90
91
|
s.licenses = ["Apache License 2.0"]
|
|
91
|
-
s.rubygems_version = "2.
|
|
92
|
+
s.rubygems_version = "2.5.1"
|
|
92
93
|
s.summary = "Ruby-Interactive-ruBy -- Yet another interactive Ruby shell"
|
|
93
94
|
s.test_files = [
|
|
94
95
|
"test/core/test_completion.rb",
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rib
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.91
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lin Jen-Shin (godfat)
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-01-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: |-
|
|
14
14
|
Ruby-Interactive-ruBy -- Yet another interactive Ruby shell
|
|
@@ -70,6 +70,7 @@ files:
|
|
|
70
70
|
- lib/rib/extra/autoindent.rb
|
|
71
71
|
- lib/rib/extra/hirb.rb
|
|
72
72
|
- lib/rib/extra/paging.rb
|
|
73
|
+
- lib/rib/extra/spring.rb
|
|
73
74
|
- lib/rib/more.rb
|
|
74
75
|
- lib/rib/more/anchor.rb
|
|
75
76
|
- lib/rib/more/bottomup_backtrace.rb
|
|
@@ -120,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
120
121
|
version: '0'
|
|
121
122
|
requirements: []
|
|
122
123
|
rubyforge_project:
|
|
123
|
-
rubygems_version: 2.
|
|
124
|
+
rubygems_version: 2.5.1
|
|
124
125
|
signing_key:
|
|
125
126
|
specification_version: 4
|
|
126
127
|
summary: Ruby-Interactive-ruBy -- Yet another interactive Ruby shell
|