binding.repl 1.0.3 → 1.0.4
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/ChangeLog.txt +3 -0
- data/README.md +1 -5
- data/binding.repl.gemspec +3 -4
- data/lib/binding.repl/version.rb +1 -1
- metadata +3 -34
- data/.gitignore +0 -16
- data/.pryrc +0 -2
- data/.travis.yml +0 -20
- data/test/binding_repl_auto_test.rb +0 -45
- data/test/binding_repl_env_test.rb +0 -16
- data/test/binding_repl_irb_test.rb +0 -9
- data/test/binding_repl_pry_test.rb +0 -13
- data/test/binding_repl_rib_test.rb +0 -13
- data/test/binding_repl_ripl_test.rb +0 -13
- data/test/binding_repl_test.rb +0 -24
- data/test/binding_test.rb +0 -12
- data/test/isolation/lazy_irb_require_test.rb +0 -9
- data/test/isolation/lazy_pry_require_test.rb +0 -9
- data/test/isolation/lazy_rib_require_test.rb +0 -9
- data/test/isolation/lazy_ripl_require_test.rb +0 -9
- data/test/setup.rb +0 -3
- data/test/support/binding.repl/rspec_mocks.rb +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fb033ee02d12e546e82c51b3029bd1f37eaf2fc
|
4
|
+
data.tar.gz: 8bbd9a54cd1d251b1d062d6982b321e0585293c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81622209e87f56ac30c01ea7531cb7b8e5906eecccde2ac8650fbe3581e98c57df7a6ec3567c06803e849fc33db5c1a3f17e2e5285dc8bce5444223cd4d867a6
|
7
|
+
data.tar.gz: afd60f83db8db0b99b30b8538583839913c70015aa9b768bd4270fc5216293b48c91d56a454cda9ae5ef7ac13a845a7a261df6359900fa816c4a64345ce61e60
|
data/ChangeLog.txt
CHANGED
data/README.md
CHANGED
@@ -137,8 +137,4 @@ gem install binding.repl
|
|
137
137
|
|
138
138
|
__LEGAL__
|
139
139
|
|
140
|
-
|
141
|
-
placed on anyone(person, company, etc) who decides to copy, modify, publish, use, compile, sell,
|
142
|
-
or distribute the software. authorship assigned to "Public Domain" (in the gemspec and other files).
|
143
|
-
|
144
|
-
see also: LEGAL.txt.
|
140
|
+
see LEGAL.txt
|
data/binding.repl.gemspec
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# coding: utf-8
|
2
1
|
require "./lib/binding.repl/version"
|
3
2
|
Gem::Specification.new do |spec|
|
4
3
|
spec.name = "binding.repl"
|
@@ -9,10 +8,10 @@ Gem::Specification.new do |spec|
|
|
9
8
|
spec.summary = spec.description
|
10
9
|
spec.homepage = "https://github.com/robgleeson/binding.repl"
|
11
10
|
spec.license = "Public Domain"
|
12
|
-
|
13
|
-
spec.files = `git ls-files`.split($/)
|
14
11
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
15
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
16
12
|
spec.require_paths = ["lib"]
|
17
13
|
spec.required_ruby_version = ">= 1.9.2"
|
14
|
+
spec.files = `git ls-files`.split($/).reject { |file|
|
15
|
+
[".pryrc", ".travis.yml", ".gitignore"].include?(file) or file.start_with?("test/", "/test")
|
16
|
+
}
|
18
17
|
end
|
data/lib/binding.repl/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: binding.repl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Public Domain
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: binding.repl is `binding.pry` but for every ruby repl.
|
14
14
|
email:
|
@@ -17,9 +17,6 @@ executables: []
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
-
- ".gitignore"
|
21
|
-
- ".pryrc"
|
22
|
-
- ".travis.yml"
|
23
20
|
- ChangeLog.txt
|
24
21
|
- Gemfile
|
25
22
|
- LEGAL.txt
|
@@ -39,20 +36,6 @@ files:
|
|
39
36
|
- lib/binding.repl/repls/rib.rb
|
40
37
|
- lib/binding.repl/repls/ripl.rb
|
41
38
|
- lib/binding.repl/version.rb
|
42
|
-
- test/binding_repl_auto_test.rb
|
43
|
-
- test/binding_repl_env_test.rb
|
44
|
-
- test/binding_repl_irb_test.rb
|
45
|
-
- test/binding_repl_pry_test.rb
|
46
|
-
- test/binding_repl_rib_test.rb
|
47
|
-
- test/binding_repl_ripl_test.rb
|
48
|
-
- test/binding_repl_test.rb
|
49
|
-
- test/binding_test.rb
|
50
|
-
- test/isolation/lazy_irb_require_test.rb
|
51
|
-
- test/isolation/lazy_pry_require_test.rb
|
52
|
-
- test/isolation/lazy_rib_require_test.rb
|
53
|
-
- test/isolation/lazy_ripl_require_test.rb
|
54
|
-
- test/setup.rb
|
55
|
-
- test/support/binding.repl/rspec_mocks.rb
|
56
39
|
homepage: https://github.com/robgleeson/binding.repl
|
57
40
|
licenses:
|
58
41
|
- Public Domain
|
@@ -77,18 +60,4 @@ rubygems_version: 2.2.2
|
|
77
60
|
signing_key:
|
78
61
|
specification_version: 4
|
79
62
|
summary: binding.repl is `binding.pry` but for every ruby repl.
|
80
|
-
test_files:
|
81
|
-
- test/binding_repl_auto_test.rb
|
82
|
-
- test/binding_repl_env_test.rb
|
83
|
-
- test/binding_repl_irb_test.rb
|
84
|
-
- test/binding_repl_pry_test.rb
|
85
|
-
- test/binding_repl_rib_test.rb
|
86
|
-
- test/binding_repl_ripl_test.rb
|
87
|
-
- test/binding_repl_test.rb
|
88
|
-
- test/binding_test.rb
|
89
|
-
- test/isolation/lazy_irb_require_test.rb
|
90
|
-
- test/isolation/lazy_pry_require_test.rb
|
91
|
-
- test/isolation/lazy_rib_require_test.rb
|
92
|
-
- test/isolation/lazy_ripl_require_test.rb
|
93
|
-
- test/setup.rb
|
94
|
-
- test/support/binding.repl/rspec_mocks.rb
|
63
|
+
test_files: []
|
data/.gitignore
DELETED
data/.pryrc
DELETED
data/.travis.yml
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
|
3
|
-
rvm:
|
4
|
-
- 1.9.2
|
5
|
-
- 1.9.3
|
6
|
-
- 2.0.0
|
7
|
-
- 2.1.0
|
8
|
-
- ruby-head
|
9
|
-
- rbx
|
10
|
-
- jruby
|
11
|
-
|
12
|
-
script:
|
13
|
-
- rake
|
14
|
-
- ruby test/isolation/lazy_irb_require_test.rb
|
15
|
-
- ruby test/isolation/lazy_pry_require_test.rb
|
16
|
-
- ruby test/isolation/lazy_rib_require_test.rb
|
17
|
-
- ruby test/isolation/lazy_ripl_require_test.rb
|
18
|
-
|
19
|
-
notifications:
|
20
|
-
email: true
|
@@ -1,45 +0,0 @@
|
|
1
|
-
require_relative "setup"
|
2
|
-
class BindingReplAutoTest < MiniTest::Test
|
3
|
-
include BindingRepl::RSpecMocks
|
4
|
-
def setup
|
5
|
-
@before = BindingRepl.auto_order.dup
|
6
|
-
super
|
7
|
-
end
|
8
|
-
|
9
|
-
def teardown
|
10
|
-
BindingRepl.auto_order = @before
|
11
|
-
super
|
12
|
-
end
|
13
|
-
|
14
|
-
def test_pry_as_first_match_on_auto
|
15
|
-
BindingRepl.auto_order = ["pry", "irb"]
|
16
|
-
expect(Pry).to receive(:start).with(instance_of(Binding), {})
|
17
|
-
binding.repl.auto
|
18
|
-
end
|
19
|
-
|
20
|
-
def test_ripl_as_second_match_on_auto
|
21
|
-
BindingRepl.auto_order = ["blah", "ripl"]
|
22
|
-
expect(Ripl).to receive(:start).with(binding: instance_of(Binding))
|
23
|
-
binding.repl.auto
|
24
|
-
end
|
25
|
-
|
26
|
-
def test_no_matches_on_auto
|
27
|
-
BindingRepl.auto_order = []
|
28
|
-
e = assert_raises(LoadError) {binding.repl.auto}
|
29
|
-
assert_equal "no consoles available to load. BindingRepl.auto_order is empty", e.message
|
30
|
-
end
|
31
|
-
|
32
|
-
def test_no_requireable_console_on_auto
|
33
|
-
BindingRepl.auto_order = ["ry", "burp", "orc"]
|
34
|
-
e = assert_raises(LoadError) {binding.repl.auto}
|
35
|
-
assert_equal "attempts to require any of the following consoles failed: ry, burp, orc", e.message
|
36
|
-
end
|
37
|
-
|
38
|
-
def test_auto_on_disable
|
39
|
-
BindingRepl.disable!
|
40
|
-
value = binding.repl.auto
|
41
|
-
assert_equal value.disabled?, true
|
42
|
-
ensure
|
43
|
-
BindingRepl.enable!
|
44
|
-
end
|
45
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
require_relative "setup"
|
2
|
-
class BindingReplEnvTest < MiniTest::Test
|
3
|
-
def teardown
|
4
|
-
ENV.delete "auto_order"
|
5
|
-
end
|
6
|
-
|
7
|
-
def test_unset_auto_order_shell_var
|
8
|
-
ENV["auto_order"] = nil
|
9
|
-
assert_equal nil, BindingRepl::ENV.auto_order
|
10
|
-
end
|
11
|
-
|
12
|
-
def test_auto_order_defined_by_shell
|
13
|
-
ENV["auto_order"] = 'irb,ripl'
|
14
|
-
assert_equal ["irb", "ripl"], BindingRepl::ENV.auto_order
|
15
|
-
end
|
16
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
require_relative "setup"
|
2
|
-
class BindingReplPryTest < MiniTest::Test
|
3
|
-
include BindingRepl::RSpecMocks
|
4
|
-
def test_pry
|
5
|
-
expect(Pry).to receive(:start).with(instance_of(Binding), {})
|
6
|
-
binding.repl.pry
|
7
|
-
end
|
8
|
-
|
9
|
-
def test_pry_with_options
|
10
|
-
expect(Pry).to receive(:start).with(instance_of(Binding), {quiet: true})
|
11
|
-
binding.repl.pry quiet: true
|
12
|
-
end
|
13
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
require_relative "setup"
|
2
|
-
class BindingReplRibTest < MiniTest::Test
|
3
|
-
include BindingRepl::RSpecMocks
|
4
|
-
def test_rib
|
5
|
-
expect(Rib).to receive(:anchor).with(instance_of(Binding), {})
|
6
|
-
binding.repl.rib
|
7
|
-
end
|
8
|
-
|
9
|
-
def test_rib_with_options
|
10
|
-
expect(Rib).to receive(:anchor).with(instance_of(Binding), {prompt: ">>"})
|
11
|
-
binding.repl.rib prompt: ">>"
|
12
|
-
end
|
13
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
require_relative "setup"
|
2
|
-
class BindingReplRiplTest < MiniTest::Test
|
3
|
-
include BindingRepl::RSpecMocks
|
4
|
-
def test_ripl
|
5
|
-
expect(Ripl).to receive(:start).with({binding: instance_of(Binding)})
|
6
|
-
binding.repl.ripl
|
7
|
-
end
|
8
|
-
|
9
|
-
def test_ripl_with_options
|
10
|
-
expect(Ripl).to receive(:start).with({binding: instance_of(Binding), riplrc: false})
|
11
|
-
binding.repl.ripl riplrc: false
|
12
|
-
end
|
13
|
-
end
|
data/test/binding_repl_test.rb
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
require_relative "setup"
|
2
|
-
class BindingReplTest < MiniTest::Test
|
3
|
-
def setup
|
4
|
-
@before = BindingRepl.auto_order.dup
|
5
|
-
end
|
6
|
-
|
7
|
-
def teardown
|
8
|
-
BindingRepl.auto_order = @before
|
9
|
-
end
|
10
|
-
|
11
|
-
def test_default_return_value_of_auto_order
|
12
|
-
assert_equal BindingRepl::DEFAULT_AUTO_ORDER, BindingRepl.auto_order
|
13
|
-
end
|
14
|
-
|
15
|
-
def test_set_of_new_auto_order
|
16
|
-
BindingRepl.auto_order = ["a", "b"]
|
17
|
-
assert_equal ["a", "b"], BindingRepl.auto_order
|
18
|
-
end
|
19
|
-
|
20
|
-
def test_set_of_nil_on_auto_order
|
21
|
-
BindingRepl.auto_order = nil
|
22
|
-
assert_equal BindingRepl::DEFAULT_AUTO_ORDER, BindingRepl.auto_order
|
23
|
-
end
|
24
|
-
end
|
data/test/binding_test.rb
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
require_relative "setup"
|
2
|
-
class BindingTest < MiniTest::Test
|
3
|
-
include BindingRepl::RSpecMocks
|
4
|
-
def test_return_value_of_repl
|
5
|
-
assert_instance_of BindingRepl, binding.repl
|
6
|
-
end
|
7
|
-
|
8
|
-
def test_delegate_to_auto
|
9
|
-
expect_any_instance_of(BindingRepl).to receive(:auto)
|
10
|
-
binding.repl!
|
11
|
-
end
|
12
|
-
end
|
data/test/setup.rb
DELETED