rib 1.2.7 → 1.2.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b1e243240afca72f22b64e717397285a0b6f6a1
4
- data.tar.gz: 233ea57325b8e3ae24d950e552920685081bc961
3
+ metadata.gz: b931462f4ba697746cb67c0626ac136e22d36f7a
4
+ data.tar.gz: 3a46f1e25cda24ba8663940e2f8359b83dda283f
5
5
  SHA512:
6
- metadata.gz: 03e4a3bd4e9d4ba2b4cfacc66c2eb8ad1d8a3cf7e5beb9551648ce5a419ab8eaf54d5b7e4b2c94f0aceeecab2213097495811485c2cea60ded54c96aee671085
7
- data.tar.gz: 9bbde220dc6b6d69e07c3cc5b8e9faf52369ae2f582eb3880a3d659f71b7b1fa73da3a63ae7022fcf72d3cd5c84d232873fbf9c5c68ff2b803ee3fff91476791
6
+ metadata.gz: 54e3361e90497dbf6abd179842c9333e15c953c9dbf4d7c2f0d78e18124136287bd73b4d528d5b12d4c2d4fa6206f019ab249b1d04ae166fb2372ab9cd9c7b0d
7
+ data.tar.gz: 8155ce33eb5a40fbaf4e7882a2465868eae907a63be1d7fd68e5e49a12a9515a3d06a7271550f1ff5930a4111fd656f4852bebae8991dc66dfcdcdd1c52a47e8
@@ -5,7 +5,7 @@ rvm:
5
5
  - 2.1
6
6
  - 2.2
7
7
  - rbx-2
8
- - jruby
8
+ - jruby-9.0.0.0
9
9
 
10
10
  install: 'bundle install --retry=3'
11
11
  script: 'ruby -r bundler/setup -S rake test'
data/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGES
2
2
 
3
+ ## Rib 1.2.8 -- 2015-09-23
4
+
5
+ * [extra/paging] Disable paging if your terminal is dumb. (e.g. on Heroku)
6
+
3
7
  ## Rib 1.2.7 -- 2015-01-28
4
8
 
5
9
  * [more/bottomup_backtrace] A new plugin which prints the backtrace bottom-up.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Rib [![Build Status](https://secure.travis-ci.org/godfat/rib.png?branch=master)](http://travis-ci.org/godfat/rib) [![Coverage Status](https://coveralls.io/repos/godfat/rib/badge.png)](https://coveralls.io/r/godfat/rib)
1
+ # Rib [![Build Status](https://secure.travis-ci.org/godfat/rib.png?branch=master)](http://travis-ci.org/godfat/rib) [![Coverage Status](https://coveralls.io/repos/godfat/rib/badge.png)](https://coveralls.io/r/godfat/rib) [![Join the chat at https://gitter.im/godfat/rib](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/godfat/rib)
2
2
 
3
3
  by Lin Jen-Shin ([godfat](http://godfat.org))
4
4
 
data/TODO.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # TODO
2
2
 
3
+ * make that `rib auto` or `rib rack` accept an argument to locate the app
4
+
3
5
  * Fix whenever Color.enabled? but StripBacktrace.disabled?
4
6
 
5
7
  * Runner tests
@@ -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
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Rib
3
- VERSION = '1.2.7'
3
+ VERSION = '1.2.8'
4
4
  end
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: rib 1.2.7 ruby lib
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.7"
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-01-28"
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.5"
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",
@@ -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
- require 'coveralls'
104
- SimpleCov.formatter = Coveralls::SimpleCov::Formatter
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(match(/^\e/)).times(0)
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(match(/^\e/)){}
31
+ mock(@indent).puts(matching(/^\e/)){}
32
32
  @indent.eval_input(input)
33
33
  @indent.stack_size.should.eq size
34
34
  end
@@ -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(match(/Error while printing result.*BOOM/m)){}
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(match(/Error while printing result/)){}
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(match(/RuntimeError/)){}
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.7
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-01-28 00:00:00.000000000 Z
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.5
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