rib 1.2.7 → 1.2.8
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 +1 -1
- data/CHANGES.md +4 -0
- data/README.md +1 -1
- data/TODO.md +2 -0
- data/lib/rib/extra/paging.rb +3 -0
- data/lib/rib/version.rb +1 -1
- data/rib.gemspec +4 -4
- data/task/gemgem.rb +11 -2
- data/test/extra/test_autoindent.rb +2 -2
- data/test/test_shell.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b931462f4ba697746cb67c0626ac136e22d36f7a
|
4
|
+
data.tar.gz: 3a46f1e25cda24ba8663940e2f8359b83dda283f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54e3361e90497dbf6abd179842c9333e15c953c9dbf4d7c2f0d78e18124136287bd73b4d528d5b12d4c2d4fa6206f019ab249b1d04ae166fb2372ab9cd9c7b0d
|
7
|
+
data.tar.gz: 8155ce33eb5a40fbaf4e7882a2465868eae907a63be1d7fd68e5e49a12a9515a3d06a7271550f1ff5930a4111fd656f4852bebae8991dc66dfcdcdd1c52a47e8
|
data/.travis.yml
CHANGED
data/CHANGES.md
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Rib [](http://travis-ci.org/godfat/rib) [](https://coveralls.io/r/godfat/rib)
|
1
|
+
# Rib [](http://travis-ci.org/godfat/rib) [](https://coveralls.io/r/godfat/rib) [](https://gitter.im/godfat/rib)
|
2
2
|
|
3
3
|
by Lin Jen-Shin ([godfat](http://godfat.org))
|
4
4
|
|
data/TODO.md
CHANGED
data/lib/rib/extra/paging.rb
CHANGED
@@ -47,4 +47,7 @@ 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 ENV['TERM'] == 'dumb'
|
51
|
+
Rib.warn("Your terminal is dumb, disabling Rib::Paging")
|
52
|
+
Rib::Paging.disable
|
50
53
|
end
|
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.8 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.8"
|
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 = "2015-
|
11
|
+
s.date = "2015-09-23"
|
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 = [
|
@@ -88,7 +88,7 @@ Gem::Specification.new do |s|
|
|
88
88
|
"test/test_shell.rb"]
|
89
89
|
s.homepage = "https://github.com/godfat/rib"
|
90
90
|
s.licenses = ["Apache License 2.0"]
|
91
|
-
s.rubygems_version = "2.4.
|
91
|
+
s.rubygems_version = "2.4.8"
|
92
92
|
s.summary = "Ruby-Interactive-ruBy -- Yet another interactive Ruby shell"
|
93
93
|
s.test_files = [
|
94
94
|
"test/core/test_completion.rb",
|
data/task/gemgem.rb
CHANGED
@@ -79,6 +79,11 @@ module Gemgem
|
|
79
79
|
end
|
80
80
|
|
81
81
|
def gem_check
|
82
|
+
unless git('status', '--porcelain').empty?
|
83
|
+
puts("\e[35mWorking copy is not clean.\e[0m")
|
84
|
+
exit(3)
|
85
|
+
end
|
86
|
+
|
82
87
|
ver = spec.version.to_s
|
83
88
|
|
84
89
|
if ENV['VERSION'].nil?
|
@@ -100,8 +105,12 @@ module Gemgem
|
|
100
105
|
if ENV['COV'] || ENV['CI']
|
101
106
|
require 'simplecov'
|
102
107
|
if ENV['CI']
|
103
|
-
|
104
|
-
|
108
|
+
begin
|
109
|
+
require 'coveralls'
|
110
|
+
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
|
111
|
+
rescue LoadError => e
|
112
|
+
puts "Cannot load coveralls, skip: #{e}"
|
113
|
+
end
|
105
114
|
end
|
106
115
|
SimpleCov.start do
|
107
116
|
add_filter('test/')
|
@@ -19,7 +19,7 @@ describe Rib::Autoindent do
|
|
19
19
|
Rib::Multiline.enable
|
20
20
|
Rib::Autoindent.enable
|
21
21
|
@indent = autoindent.new
|
22
|
-
mock(@indent).puts(
|
22
|
+
mock(@indent).puts(matching(/^\e/)).times(0)
|
23
23
|
end
|
24
24
|
|
25
25
|
def ri input, size
|
@@ -28,7 +28,7 @@ describe Rib::Autoindent do
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def le input, size
|
31
|
-
mock(@indent).puts(
|
31
|
+
mock(@indent).puts(matching(/^\e/)){}
|
32
32
|
@indent.eval_input(input)
|
33
33
|
@indent.stack_size.should.eq size
|
34
34
|
end
|
data/test/test_shell.rb
CHANGED
@@ -49,17 +49,17 @@ describe Rib::Shell do
|
|
49
49
|
end
|
50
50
|
|
51
51
|
would 'error in print_result' do
|
52
|
-
mock(Rib).warn(
|
52
|
+
mock(Rib).warn(matching(/Error while printing result.*BOOM/m)){}
|
53
53
|
input('obj = Object.new; def obj.inspect; raise "BOOM"; end; obj')
|
54
54
|
end
|
55
55
|
|
56
56
|
would 'not crash if user input is a blackhole' do
|
57
|
-
mock(Rib).warn(
|
57
|
+
mock(Rib).warn(matching(/Error while printing result/)){}
|
58
58
|
input('Rib::Blackhole')
|
59
59
|
end
|
60
60
|
|
61
61
|
would 'print error from eval' do
|
62
|
-
mock(shell).puts(
|
62
|
+
mock(shell).puts(matching(/RuntimeError/)){}
|
63
63
|
input('raise "blah"')
|
64
64
|
end
|
65
65
|
end
|
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.8
|
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: 2015-
|
11
|
+
date: 2015-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |-
|
14
14
|
Ruby-Interactive-ruBy -- Yet another interactive Ruby shell
|
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
122
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.4.
|
123
|
+
rubygems_version: 2.4.8
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
126
|
summary: Ruby-Interactive-ruBy -- Yet another interactive Ruby shell
|