binding.repl 1.0.1 → 1.0.2

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
- ---
2
- SHA1:
3
- metadata.gz: cffcaf44dd2b6fa21dc2193251407a26f8bbd8be
4
- data.tar.gz: 992180899557219bc351a42762061616c19e7242
5
- SHA512:
6
- metadata.gz: 4d27fb0d57feb67ba74c351043d3512b6a9edc942d607a95a1f0fdf0069d6d4b75e8017b3b15a017491c77d8b6d15ebbe6a68077fd465f25a9d88594fabbc750
7
- data.tar.gz: 405ccf998fc7816a63033e694170058eddb2dd3a0d7a83bd9a5172a2d62a5bcf82584e073d1f94896b7c7d46510db7d43cc29984bade4406e624036fa2730a03
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 60f57ee60854553b13d10234456ebc2309d7fa3b
4
+ data.tar.gz: 5cd6917fff41a27c52669c73b72ef9f95dc671d2
5
+ SHA512:
6
+ metadata.gz: 4b68e585cba992a8543539e35acaed01347d0c8af11b5402dce81bfce8aca440ffa0e0851c80210ffd00194d7bf01066709acf8c50bb2e0284725a0701b0c132
7
+ data.tar.gz: 490e39034b486dffcb40759f34a13e66402d068679e0093da8b76bcfef2ae0c2667efdb8e16dd068633979c409cb427cd5b5edd94fa2df16b6a58fb39bfe3ef4
@@ -1,3 +1,8 @@
1
+ == v1.0.2
2
+ - rename UNLICENSE.txt as LEGAL.txt
3
+ - update README.md
4
+ - rename lib/binding.repl/consoles as lib/binding.repl/repls.
5
+
1
6
  == v1.0.1 (2014-02-10)
2
7
  - BindingRepl::ENV.auto_order is lazy loaded and not on 'require'.
3
8
  - remove sample file ".binding.repl.rc" from repository and rubygem. (forgot in v1.0.0)
@@ -7,11 +7,7 @@ means.
7
7
 
8
8
  In jurisdictions that recognize copyright laws, the author or authors
9
9
  of this software dedicate any and all copyright interest in the
10
- software to the public domain. We make this dedication for the benefit
11
- of the public at large and to the detriment of our heirs and
12
- successors. We intend this dedication to be an overt act of
13
- relinquishment in perpetuity of all present and future rights to this
14
- software under copyright law.
10
+ software to the public domain.
15
11
 
16
12
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
13
  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
data/README.md CHANGED
@@ -5,25 +5,26 @@
5
5
 
6
6
  __DESCRIPTION__
7
7
 
8
- __binding.repl__ can start a number of different ruby consoles at runtime.
9
- IRB, ripl, rib, and pry(of course!) can be started at runtime in any context
10
- that an instance of `Binding` closes over. credit is owed to John Mair([banisterfiend](https://github.com/banister)),
11
- the original author of pry, for seeing the potential in a console that can be started at
8
+ binding.repl can start a number of different ruby repls at runtime.
9
+ IRB, ripl, rib, and pry can be started at runtime in any scope that an
10
+ instance of `Binding` closes over. the interface to start pry at runtime(`binding.pry`)
11
+ has become known in a lot of circles and I thought it'd be cool to offer
12
+ the same feature to other REPLs.
13
+
14
+ credit is due to John Mair([banisterfiend](https://github.com/banister)),
15
+ the original author of pry, for seeing the potential in a repl that can be started at
12
16
  runtime and bound to a `Binding` with ease.
13
17
 
14
- the interface to start pry at runtime(`binding.pry`) has become known in a lot of circles and
15
- I thought it'd be cool to offer the same feature to other REPLs.
16
-
17
18
  __FEATURES__
18
19
 
19
- - `binding.pry` for all ruby consoles
20
- - start the consoles IRB, Pry, Ripl, or Rib at runtime
21
- - option to auto discover and start the first available console
20
+ - `binding.pry` for all ruby repls
21
+ - start the repls IRB, Pry, Ripl, or Rib at runtime
22
+ - option to auto discover and start the first available repl
22
23
  - default auto order is configurable via shell environment variable and at runtime.
23
24
  - it can be enabled or disabled at runtime(like pry)
24
- - easily extended to support new consoles.
25
- - lazy require of consoles (e.g: `binding.repl.irb` requires "irb"). <br>
26
- `Kernel#require` is never called more than once for a given console.
25
+ - easily extended to support new repls.
26
+ - lazy require of repls (e.g: `binding.repl.irb` requires "irb"). <br>
27
+ `Kernel#require` is never called more than once for a given repl.
27
28
  - zero (gemspec) runtime dependencies.
28
29
  - ships with a helpful [doc/](https://github.com/robgleeson/binding.repl/tree/master/doc) directory
29
30
 
@@ -42,13 +43,13 @@ end
42
43
 
43
44
  _Auto discovery_
44
45
 
45
- the first available console can be loaded with `binding.repl.auto` or if you're in a
46
+ the first available repl can be loaded with `binding.repl.auto` or if you're in a
46
47
  hurry `binding.repl!`. the default order is defined as `["pry", "ripl", "rib", "irb"]` but
47
48
  it can be changed at runtime and with shell environment variables.
48
49
 
49
50
  ```ruby
50
51
  class Foo
51
- # auto discover and start the first available console.
52
+ # auto discover and start the first available repl.
52
53
  binding.repl.auto
53
54
 
54
55
  # same as 'binding.repl.auto' but in a hurry
@@ -87,11 +88,23 @@ __DEPENDENCIES__
87
88
 
88
89
  binding.repl has 0 (gemspec) runtime dependencies. <br>
89
90
  irb, pry, rib, and ripl can be installed manually and binding.repl will delay their require
90
- until you try to start a console at runtime(e.g: `binding.repl.irb`).
91
+ until you try to start a repl at runtime(e.g: `binding.repl.irb`).
91
92
 
92
93
  binding.repl has no load dependencies on external gems or the standard library. <br>
93
94
  it should be light to load and prevent eager-loading of dependencies you don't use at runtime.
94
95
 
96
+ __MONKEY PATCHES__
97
+
98
+ monkey patches on core classes aren't always cool and if not used carefully monkey patches can be
99
+ bad news. binding.repl implements a few monkey patches on top of the `Binding` class to provide
100
+ a familiar API to the one pry adopted and because to me i can't imagine something that would be better.
101
+
102
+ all of the monkey patches are documented incase you're curious:
103
+
104
+ - `Binding.repl` (class method , returns BindingRepl class)
105
+ - `Binding#repl` (instance method , returns instance of BindingRepl)
106
+ - `Binding#repl!` (instance method , calls `BindingRepl#auto`)
107
+
95
108
  __RUBIES__
96
109
 
97
110
  all of them (jruby, MRI, rubinius). 1.9+ and up only, though.
@@ -113,7 +126,7 @@ _the isolation tests_
113
126
 
114
127
  tests inside `test/isolation/` are meant to be run as standalone tests and are excluded
115
128
  from a regular test run through 'rake test'. the tests inside `test/isolation/` make sure
116
- a require of "binding.repl" does not attempt to require any consoles. the CI service TravisCI
129
+ a require of "binding.repl" does not attempt to require any repls. the CI service TravisCI
117
130
  takes care of running each isolation test in its own process on every push.
118
131
 
119
132
  __INSTALL__
@@ -122,6 +135,10 @@ __INSTALL__
122
135
  gem install binding.repl
123
136
  ```
124
137
 
125
- __LICENSE__
138
+ __LEGAL__
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 use it. authorship assigned to
142
+ "Public Domain" (in the gemspec and other files).
126
143
 
127
- Public Domain. see UNLICENSE.txt.
144
+ see also, LEGAL.txt.
@@ -18,7 +18,6 @@ Gem::Specification.new do |spec|
18
18
 
19
19
  spec.post_install_message = <<-INSTALL_MESSAGE
20
20
  == binding.repl v#{BindingRepl.version}
21
- ChangeLog.txt:
22
- https://github.com/robgleeson/binding.repl/blob/v#{BindingRepl.version}/ChangeLog.txt
21
+ ChangeLog.txt: https://github.com/robgleeson/binding.repl/blob/v#{BindingRepl.version}/ChangeLog.txt
23
22
  INSTALL_MESSAGE
24
23
  end
@@ -127,7 +127,7 @@ require_relative "binding.repl/core_ext/binding"
127
127
  require_relative "binding.repl/env"
128
128
  require_relative "binding.repl/exit_value"
129
129
  require_relative "binding.repl/version"
130
- require_relative "binding.repl/console/pry"
131
- require_relative "binding.repl/console/irb"
132
- require_relative "binding.repl/console/ripl"
133
- require_relative "binding.repl/console/rib"
130
+ require_relative "binding.repl/repls/pry"
131
+ require_relative "binding.repl/repls/irb"
132
+ require_relative "binding.repl/repls/ripl"
133
+ require_relative "binding.repl/repls/rib"
@@ -1,5 +1,5 @@
1
1
  class BindingRepl
2
- VERSION = "1.0.1".freeze
2
+ VERSION = "1.0.2"
3
3
  def self.version
4
4
  VERSION
5
5
  end
metadata CHANGED
@@ -1,48 +1,43 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: binding.repl
3
- version: !ruby/object:Gem::Version
4
- version: 1.0.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.2
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Public Domain
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
-
12
- date: 2014-02-10 00:00:00 Z
11
+ date: 2014-03-05 00:00:00.000000000 Z
13
12
  dependencies: []
14
-
15
13
  description: binding.repl can start a number of different ruby consoles at runtime
16
- email:
14
+ email:
17
15
  - robert@flowof.info
18
16
  executables: []
19
-
20
17
  extensions: []
21
-
22
18
  extra_rdoc_files: []
23
-
24
- files:
25
- - .gitignore
26
- - .pryrc
27
- - .travis.yml
19
+ files:
20
+ - ".gitignore"
21
+ - ".pryrc"
22
+ - ".travis.yml"
28
23
  - ChangeLog.txt
29
24
  - Gemfile
25
+ - LEGAL.txt
30
26
  - README.md
31
27
  - Rakefile
32
- - UNLICENSE.txt
33
28
  - binding.repl.gemspec
34
29
  - doc/disableatruntime.md
35
30
  - doc/exit_values.md
36
31
  - doc/runtimeoptions.md
37
32
  - doc/shellvariables.md
38
33
  - lib/binding.repl.rb
39
- - lib/binding.repl/console/irb.rb
40
- - lib/binding.repl/console/pry.rb
41
- - lib/binding.repl/console/rib.rb
42
- - lib/binding.repl/console/ripl.rb
43
34
  - lib/binding.repl/core_ext/binding.rb
44
35
  - lib/binding.repl/env.rb
45
36
  - lib/binding.repl/exit_value.rb
37
+ - lib/binding.repl/repls/irb.rb
38
+ - lib/binding.repl/repls/pry.rb
39
+ - lib/binding.repl/repls/rib.rb
40
+ - lib/binding.repl/repls/ripl.rb
46
41
  - lib/binding.repl/version.rb
47
42
  - test/binding_repl_auto_test.rb
48
43
  - test/binding_repl_env_test.rb
@@ -59,33 +54,32 @@ files:
59
54
  - test/setup.rb
60
55
  - test/support/binding.repl/rspec_mocks.rb
61
56
  homepage: https://github.com/robgleeson/binding.repl
62
- licenses:
57
+ licenses:
63
58
  - Public Domain
64
59
  metadata: {}
65
-
66
- post_install_message: " == binding.repl v1.0.1\n ChangeLog.txt:\n https://github.com/robgleeson/binding.repl/blob/v1.0.1/ChangeLog.txt\n"
60
+ post_install_message: |2
61
+ == binding.repl v1.0.2
62
+ ChangeLog.txt: https://github.com/robgleeson/binding.repl/blob/v1.0.2/ChangeLog.txt
67
63
  rdoc_options: []
68
-
69
- require_paths:
64
+ require_paths:
70
65
  - lib
71
- required_ruby_version: !ruby/object:Gem::Requirement
72
- requirements:
66
+ required_ruby_version: !ruby/object:Gem::Requirement
67
+ requirements:
73
68
  - - ">="
74
- - !ruby/object:Gem::Version
69
+ - !ruby/object:Gem::Version
75
70
  version: 1.9.2
76
- required_rubygems_version: !ruby/object:Gem::Requirement
77
- requirements:
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
72
+ requirements:
78
73
  - - ">="
79
- - !ruby/object:Gem::Version
80
- version: "0"
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
81
76
  requirements: []
82
-
83
77
  rubyforge_project:
84
78
  rubygems_version: 2.2.2
85
79
  signing_key:
86
80
  specification_version: 4
87
81
  summary: binding.repl can start a number of different ruby consoles at runtime
88
- test_files:
82
+ test_files:
89
83
  - test/binding_repl_auto_test.rb
90
84
  - test/binding_repl_env_test.rb
91
85
  - test/binding_repl_irb_test.rb
@@ -100,4 +94,3 @@ test_files:
100
94
  - test/isolation/lazy_ripl_require_test.rb
101
95
  - test/setup.rb
102
96
  - test/support/binding.repl/rspec_mocks.rb
103
- has_rdoc: