binding.repl 1.0.3 → 1.0.4

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: 673a702e3005ca917acb26913d1632f12f1f22cd
4
- data.tar.gz: 3fa371868447c4cb5d10f4e58ae1a34a4bd88966
3
+ metadata.gz: 4fb033ee02d12e546e82c51b3029bd1f37eaf2fc
4
+ data.tar.gz: 8bbd9a54cd1d251b1d062d6982b321e0585293c2
5
5
  SHA512:
6
- metadata.gz: 4fdda84dbc9fa3eae11979dec2047a139172cbcebd1a5945558924a3b572bbe81dc6e166346053bfc55feab431c090cfbae843975e2d96417ecfa693d1cebbfc
7
- data.tar.gz: adbe3b933ef7f998685b81c299c1103ac58b9f7e0eaff860f494ec8b342b6cc4f949e7658dc95484c0d7fc935ba76005e2283d059586aa91493fc00e408091af
6
+ metadata.gz: 81622209e87f56ac30c01ea7531cb7b8e5906eecccde2ac8650fbe3581e98c57df7a6ec3567c06803e849fc33db5c1a3f17e2e5285dc8bce5444223cd4d867a6
7
+ data.tar.gz: afd60f83db8db0b99b30b8538583839913c70015aa9b768bd4270fc5216293b48c91d56a454cda9ae5ef7ac13a845a7a261df6359900fa816c4a64345ce61e60
@@ -1,3 +1,6 @@
1
+ == v1.0.4
2
+ - reduce size of built .gem file from 16K to 12K by ignoring development and test files.
3
+
1
4
  == v1.0.3
2
5
  - update binding.repl.gemspec
3
6
  - update README.md
data/README.md CHANGED
@@ -137,8 +137,4 @@ gem install binding.repl
137
137
 
138
138
  __LEGAL__
139
139
 
140
- binding.repl is software released into the Public Domain in the hope that no restrictions are
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
@@ -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
@@ -1,5 +1,5 @@
1
1
  class BindingRepl
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  def self.version
4
4
  VERSION
5
5
  end
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.3
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-08 00:00:00.000000000 Z
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
@@ -1,16 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- lib/bundler/man
11
- pkg
12
- rdoc
13
- spec/reports
14
- test/tmp
15
- test/version_tmp
16
- tmp
data/.pryrc DELETED
@@ -1,2 +0,0 @@
1
- require "bundler"
2
- Bundler.require :default
@@ -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,9 +0,0 @@
1
- require_relative "setup"
2
- require "irb"
3
- class BindingReplIrbTest < MiniTest::Test
4
- include BindingRepl::RSpecMocks
5
- def test_irb
6
- expect_any_instance_of(::IRB::Irb).to receive(:eval_input)
7
- binding.repl.irb
8
- end
9
- 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
@@ -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
@@ -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
@@ -1,9 +0,0 @@
1
- require "bundler/setup"
2
- require "minitest/autorun"
3
- class LazyIRBTest < MiniTest::Test
4
- def test_lazy_irb
5
- require "binding.repl"
6
- assert_equal true, binding.repl.respond_to?(:irb)
7
- assert_equal nil, defined?(IRB)
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- require "bundler/setup"
2
- require "minitest/autorun"
3
- class LazyPryTest < MiniTest::Test
4
- def test_lazy_pry
5
- require "binding.repl"
6
- assert_equal true, binding.repl.respond_to?(:pry)
7
- assert_equal nil, defined?(Pry)
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- require "bundler/setup"
2
- require "minitest/autorun"
3
- class LazyRibTest < MiniTest::Test
4
- def test_lazy_rib
5
- require "binding.repl"
6
- assert_equal true, binding.repl.respond_to?(:rib)
7
- assert_equal nil, defined?(Rib)
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- require "bundler/setup"
2
- require "minitest/autorun"
3
- class LazyRiplTest < MiniTest::Test
4
- def test_lazy_pry
5
- require "binding.repl"
6
- assert_equal true, binding.repl.respond_to?(:ripl)
7
- assert_equal nil, defined?(Ripl)
8
- end
9
- end
@@ -1,3 +0,0 @@
1
- require "bundler"
2
- Bundler.require :default, :test
3
- require_relative "support/binding.repl/rspec_mocks"
@@ -1,14 +0,0 @@
1
- module BindingRepl::RSpecMocks
2
- include RSpec::Mocks::ExampleMethods
3
-
4
- def setup
5
- RSpec::Mocks.setup(Object)
6
- RSpec::Mocks.setup(self)
7
- end
8
-
9
- def teardown
10
- RSpec::Mocks.verify
11
- ensure
12
- RSpec::Mocks.teardown
13
- end
14
- end