binding.repl 1.0.2 → 1.0.3

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: 60f57ee60854553b13d10234456ebc2309d7fa3b
4
- data.tar.gz: 5cd6917fff41a27c52669c73b72ef9f95dc671d2
3
+ metadata.gz: 673a702e3005ca917acb26913d1632f12f1f22cd
4
+ data.tar.gz: 3fa371868447c4cb5d10f4e58ae1a34a4bd88966
5
5
  SHA512:
6
- metadata.gz: 4b68e585cba992a8543539e35acaed01347d0c8af11b5402dce81bfce8aca440ffa0e0851c80210ffd00194d7bf01066709acf8c50bb2e0284725a0701b0c132
7
- data.tar.gz: 490e39034b486dffcb40759f34a13e66402d068679e0093da8b76bcfef2ae0c2667efdb8e16dd068633979c409cb427cd5b5edd94fa2df16b6a58fb39bfe3ef4
6
+ metadata.gz: 4fdda84dbc9fa3eae11979dec2047a139172cbcebd1a5945558924a3b572bbe81dc6e166346053bfc55feab431c090cfbae843975e2d96417ecfa693d1cebbfc
7
+ data.tar.gz: adbe3b933ef7f998685b81c299c1103ac58b9f7e0eaff860f494ec8b342b6cc4f949e7658dc95484c0d7fc935ba76005e2283d059586aa91493fc00e408091af
@@ -1,182 +1,94 @@
1
- == v1.0.2
2
- - rename UNLICENSE.txt as LEGAL.txt
1
+ == v1.0.3
2
+ - update binding.repl.gemspec
3
3
  - update README.md
4
- - rename lib/binding.repl/consoles as lib/binding.repl/repls.
5
-
6
- == v1.0.1 (2014-02-10)
7
- - BindingRepl::ENV.auto_order is lazy loaded and not on 'require'.
8
- - remove sample file ".binding.repl.rc" from repository and rubygem. (forgot in v1.0.0)
9
- - remove BindingRepl::ENV.enable_rc_file? (forgot in v1.0.0)
4
+ - update LEGAL.txt
5
+ - update ChangeLog.txt
10
6
 
11
- == v1.0.0 (2014-02-09)
12
- - add binding.repl!
13
- a shortcut to `binding.repl.auto`. (#26)
14
-
15
- - remove toml parser as a runtime dependency.
16
- brings the number of runtime dependencies binding.repl has from 3 to 0. (#27)
7
+ == v1.0.2
8
+ - update README.md
9
+ - rename UNLICENSE.txt as LEGAL.txt
10
+ - rename directory lib/binding.repl/consoles as lib/binding.repl/repls
17
11
 
18
- - remove rc file support
19
- if i find the time i might provide the feature in a `binding.repl-rcfile` gem.
20
- (related #25)
12
+ == v1.0.1
13
+ - lazy call BindingRepl::ENV.auto_order instead of on require of 'binding.repl'
14
+ - remove file ".binding.repl.rc" from repository and rubygem
15
+ - remove BindingRepl::ENV.enable_rc_file?
21
16
 
22
- - add isolation tests
23
- add tests to test/isolation that confirm a require of "binding.repl" does not
24
- attempt to require a console(e.g: "irb").
17
+ == v1.0.0
18
+ - add binding.repl!. a shortcut to `binding.repl.auto` (#26)
19
+ - remove toml parser as a runtime dependency. (#27)
20
+ - reduce runtime dependencies binding.repl has from 3 to 0 (#27)
21
+ - remove rc file support (#25)
22
+ - add isolation tests that test a require of "binding.repl" does not require a repl
25
23
 
26
- == v0.10.0 (2014-02-08)
24
+ == v0.10.0
27
25
  - add DELIMITER_REGEXP to BindingRepl::ENV.
28
- it is a single reference kept to /[,:]/ which is used when parsing
29
- shell environment variable, $auto_order.
30
-
31
26
  - add BindingRepl::ExitValue
32
- binding.repl.{auto,irb,pry,rib,ripl} return an instance of BindingRepl::ExitValue.
33
-
34
- - move from test-unit to minitest (developer-facing change).
35
- test suite has been rewritten on top of 'MiniTest::Test' instead of 'Test::Unit::TestCase'.
36
- test-unit appears to be semi-deprecated and active development or change happens on 'minitest'.
37
- minitest switch was smooth thanks to 'sed' !
38
-
39
- - remove BindingRepl::ENV.disable_rc_file? (developer-facing change)
40
- the inverse, BindingRepl::ENV.enable_rc_file?, is the only method binding.repl needs
41
- to load the RC file. drop BindingRepl::ENV.disable_rc_file?.
42
-
43
- - update the BindingRepl::LOOKUP hash to use string's as keys. (#23) (developer-facing changes)
44
- - rename BindingRepl#invoke_console as BindingRepl#run_console. (developer-facing change)
45
- - rename BindingRepl#fail! as BindingRepl#die(). (developer-facing change)
27
+ - binding.repl.{auto,irb,pry,rib,ripl} return an instance of BindingRepl::ExitValue.
28
+ - move from test-unit to minitest
29
+ - remove BindingRepl::ENV.disable_rc_file?
30
+ - update the BindingRepl::LOOKUP hash to use string's as keys. (#23)
31
+ - rename BindingRepl#invoke_console as BindingRepl#run_console.
32
+ - rename BindingRepl#fail! as BindingRepl#die().
46
33
  - remove BindingRepl.{name,to_s}
47
34
 
48
35
  == v0.9.0
36
+ - release to the public domain
49
37
  - read $HOME/.binding.repl.rc as TOML instead of JSON
50
- TOML is easy to read and write when compared with JSON. I don't think
51
- humans like writing JSON too much :) you can get up to speed with TOML
52
- at https://github.com/mojombo/toml. (#12)
53
-
54
38
  - rename Binding.repl.auto_load_order as Binding.repl.auto_order. (#14)
55
-
56
- - rename shell environment variable BINDING_REPL_ORDER as auto_order
57
- less keys to press, no SHIFT key needed!
58
- a little background on why I decided to try lowercase.
59
- http://pubs.opengroup.org/onlinepubs/7908799/xbd/envvar.html (#15).
60
-
61
39
  - rename shell environment variable BINDING_REPL_RC as disable_rc. (#15).
62
-
63
- - 1.9.2 support
64
- use of `private_constant` broke binding.repl support on 1.9.2
65
- decided to not try and workaround it.
66
- BindingRepl::LOOKUP is no longer a private constant.
67
-
68
- - define the default lookup order for `binding.repl.auto`.
69
- defined by default as ["pry", "ripl", "rib", "irb"].
70
-
71
- - relicense binding.repl under the public domain
72
- interesting idea. see http://unlicense.org
73
-
74
- - rewrite all the documentation in doc/
75
- the documentation that covers shell environment variables, the rc file, runtime options
76
- and how to enable or disable binding.repl at runtime has been rewritten and polished for
77
- what I think is much better docs!
78
-
40
+ - rename shell environment variable BINDING_REPL_ORDER as auto_order. (#15)
41
+ - remove 'private_constant' use on LOOKUP and restore 1.9.2 support
42
+ - define the default lookup order for `binding.repl.auto` as ["pry", "ripl", "rib", "irb"].
43
+ - revamped the docs shipped in docs/
79
44
  - add BindingRepl::ENV
80
- a module on top of shell environment variables binding.repl understands.
81
-
82
45
  - rename BindingRepl::RC as BindingRepl::RCFile.
83
- most of the module was rewritten and cleaned up.
84
-
85
- - raise a LoadError from `binding.repl.auto` when no consoles are available.
86
- when BindingRepl.auto_order has been assigned an empty array and then `binding.repl.auto` is
87
- called a LoadError will be raised. the old behavior was to return nil.
88
-
89
- - raise a LoadError with a backtrace
90
- if a console cannot be loaded a LoadError is raised with a backtrace.
91
- before, there was no backtrace (not helpful).
92
-
93
- - with 100% more tests.
94
- binding.repl has never had a test suite. at every release I would do a manual test
95
- process that is prone to error. I can't repeat my actions as well as a computer. in this release
96
- binding.repl has a testcase for every class or module available.
97
-
98
- the test suite is builton FakeFS(when testing the rcfile) and a mocking library(rspec-mocks) when
99
- testing the execution of ruby consoles.
46
+ - raise a LoadError from `binding.repl.auto` when no repls are available.
47
+ - add test/ (!!)
100
48
 
101
49
  == v0.8.0
102
- - add "rib" as a supported console.
103
- "rib" is inspired by ripl, the ripl-rc project, and by some of
104
- the ideas from the pry project.
105
-
106
- if you're curious:
107
- * https://github.com/godfat/rib
108
-
109
- - add auto management of initializers
110
- when a console is added to binding.repl it also must define an
111
- initializer that is run the very first time a console is invoked.
112
- binding.repl takes care of the initializer not being run again.
113
-
114
- see lib/binding.repl/console/*.rb for examples.
50
+ - add rib as a repl binding.repl supports. see https://github.com/godfat/rib
51
+ - add `binding.repl.rib`
115
52
 
116
53
  == v0.7.0
117
- - catch JSON parse errors when reading .binding.repl.rc (#7)
118
-
119
- - no longer read from project-local .binding.repl.rc file
120
- the $BINDING_REPL_ORDER environment variable can be set if you
121
- want to override the settings defined by $HOME/.binding.repl.rc
122
-
123
- - read shell env var $BINDING_REPL_ORDER
124
- set of $BINDING_REPL_ORDER stops the .binding.repl.rc file from
125
- being loaded and takes precendence. (#9)
54
+ - rescue JSON parse errors when reading .binding.repl.rc (#7)
55
+ - stop supporting current working directory .binding.repl.rc file
56
+ - set auto order through shell env var $BINDING_REPL_ORDER
126
57
 
127
58
  == v0.6.0
128
- - add Binding.repl.{disable!,enable!}.
129
- turn binding.repl.{pry,irb,ripl,auto} into a no-op. (#8)
59
+ - add Binding.repl.enable!
60
+ - add Binding.repl.disable!
130
61
 
131
62
  == v0.5.1
132
- - $CWD/.binding.repl.rc has precendence over $HOME/.binding.repl.rc
133
- stupid mistake. $CWD/.binding.repl.rc should be loaded instead of
134
- $HOME/.binding.repl.rc if it exists.
135
-
136
- - compare ENV["BINDING_REPL_RC"] as a string.
137
- casting with to_i on nil(the default) returns 0.
138
- file was never loaded.
63
+ - $CWD/.binding.repl.rc takes precendence over $HOME/.binding.repl.rc
64
+ - fix bug that broke reading the shell var $BINDING_REPL_RC
139
65
 
140
66
  == v0.5.0.1
141
- - documentation fix
142
- error in documentation
67
+ - fix typo in documentation
143
68
 
144
69
  == v0.5.0
145
- - disable {$HOME,$CWD}/.binding.repl.rc loading
146
- set ENV["BINDING_REPL_RC"] = "0" to disable load.
70
+ - disable {$HOME,$CWD}/.binding.repl.rc load with '$ export BINDING_REPL_RC=0'
147
71
 
148
72
  == v0.4.1
149
73
  - read {$HOME,$CWD}/.binding.repl.rc as JSON
150
- less security concerns than parsing ruby.
151
74
 
152
75
  == v0.4.0
153
76
  - read {$HOME,$CWD}/.binding.ripl.rc on load
154
- see README for documentation.
155
77
 
156
78
  == v0.3.0
157
79
  - add Binding.repl.add
158
- add a ruby console to binding.repl
159
-
160
80
  - add lib/binding.repl/{pry,irb,ripl}.rb
161
- individual files for each console that use Binding.repl.add
162
-
163
- - modularize design, cleanup internals
164
- the anonymous class is gone because constant lookup rules are a
165
- pain with anonymous classes. The class we create is available at
166
- Binding.repl and nowhere else, though.
81
+ - improve internals
167
82
 
168
83
  == v0.2.0
169
84
  - call IRB.setup() once (#4)
170
-
171
- - add binding.repl.auto
172
- auto discover the first available console. (#3)
85
+ - add binding.repl.auto. auto discovers and starts the first available repl.
173
86
 
174
87
  == v0.1.1.1
175
- - doc improvements
88
+ - docs
176
89
 
177
90
  == v0.1.1
178
- - remove top level constant "BindingMixin" by using const_set
179
- on anonymous class.
91
+ - remove top level constant "BindingMixin" by using const_set on anonymous class.
180
92
 
181
93
  == v0.1.0
182
- - first release
94
+ - release 1.
data/README.md CHANGED
@@ -17,12 +17,12 @@ runtime and bound to a `Binding` with ease.
17
17
 
18
18
  __FEATURES__
19
19
 
20
- - `binding.pry` for all ruby repls
21
20
  - start the repls IRB, Pry, Ripl, or Rib at runtime
21
+ - easily extended to support new repls.
22
22
  - option to auto discover and start the first available repl
23
23
  - default auto order is configurable via shell environment variable and at runtime.
24
24
  - it can be enabled or disabled at runtime(like pry)
25
- - easily extended to support new repls.
25
+ - light and small
26
26
  - lazy require of repls (e.g: `binding.repl.irb` requires "irb"). <br>
27
27
  `Kernel#require` is never called more than once for a given repl.
28
28
  - zero (gemspec) runtime dependencies.
@@ -30,7 +30,7 @@ __FEATURES__
30
30
 
31
31
  __EXAMPLES__
32
32
 
33
- _Rails_
33
+ _Any repl_
34
34
 
35
35
  ```ruby
36
36
  class BlogsController < ApplicationController
@@ -138,7 +138,7 @@ gem install binding.repl
138
138
  __LEGAL__
139
139
 
140
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).
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
143
 
144
- see also, LEGAL.txt.
144
+ see also: LEGAL.txt.
@@ -5,7 +5,7 @@ Gem::Specification.new do |spec|
5
5
  spec.version = BindingRepl.version
6
6
  spec.authors = ["Public Domain"]
7
7
  spec.email = ["robert@flowof.info"]
8
- spec.description = "binding.repl can start a number of different ruby consoles at runtime"
8
+ spec.description = "binding.repl is `binding.pry` but for every ruby repl."
9
9
  spec.summary = spec.description
10
10
  spec.homepage = "https://github.com/robgleeson/binding.repl"
11
11
  spec.license = "Public Domain"
@@ -15,9 +15,4 @@ Gem::Specification.new do |spec|
15
15
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
16
16
  spec.require_paths = ["lib"]
17
17
  spec.required_ruby_version = ">= 1.9.2"
18
-
19
- spec.post_install_message = <<-INSTALL_MESSAGE
20
- == binding.repl v#{BindingRepl.version}
21
- ChangeLog.txt: https://github.com/robgleeson/binding.repl/blob/v#{BindingRepl.version}/ChangeLog.txt
22
- INSTALL_MESSAGE
23
18
  end
@@ -1,5 +1,5 @@
1
1
  class BindingRepl
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  def self.version
4
4
  VERSION
5
5
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: binding.repl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
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-05 00:00:00.000000000 Z
11
+ date: 2014-03-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: binding.repl can start a number of different ruby consoles at runtime
13
+ description: binding.repl is `binding.pry` but for every ruby repl.
14
14
  email:
15
15
  - robert@flowof.info
16
16
  executables: []
@@ -57,9 +57,7 @@ homepage: https://github.com/robgleeson/binding.repl
57
57
  licenses:
58
58
  - Public Domain
59
59
  metadata: {}
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
60
+ post_install_message:
63
61
  rdoc_options: []
64
62
  require_paths:
65
63
  - lib
@@ -78,7 +76,7 @@ rubyforge_project:
78
76
  rubygems_version: 2.2.2
79
77
  signing_key:
80
78
  specification_version: 4
81
- summary: binding.repl can start a number of different ruby consoles at runtime
79
+ summary: binding.repl is `binding.pry` but for every ruby repl.
82
80
  test_files:
83
81
  - test/binding_repl_auto_test.rb
84
82
  - test/binding_repl_env_test.rb