pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/ruby-pry misc/ruby-pry: update to 0.12.2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bf18d229f4c9
branches:  trunk
changeset: 326987:bf18d229f4c9
user:      taca <taca%pkgsrc.org@localhost>
date:      Mon Dec 17 15:02:23 2018 +0000

description:
misc/ruby-pry: update to 0.12.2

pkgsr change:
* Remove @PREFIX@ from ALTERNATIVES file.

### [v0.12.2][v0.12.2] (November 12, 2018)

#### Bug fixes

* Restore removed deprecations, which were removed by accident due to a bad
  rebase.

### [v0.12.1][v0.12.1] (November 12, 2018)

#### Bug fixes

* Stopped creating a new hash each time `Pry::Prompt#[]` is invoked
  ([#1855](https://github.com/pry/pry/pull/1855))
* Fixed `less` pager not working when it's available
  ([#1861](https://github.com/pry/pry/pull/1861))

### [v0.12.0][v0.12.0] (November 5, 2018)

#### Major changes

* Dropped support for Rubinius ([#1785](https://github.com/pry/pry/pull/1785))

#### Features

* Added a new command, `clear-screen`, that clears the content of the screen Pry
  is running in regardless of platform (Windows or UNIX-like)
  ([#1723](https://github.com/pry/pry/pull/1723))
* Added a new command, `gem-stat`, that prints gem statistics such as gem
  dependencies and downloads ([#1707](https://github.com/pry/pry/pull/1707))
* Added support for nested exceptions for the `wtf` command
  ([#1791](https://github.com/pry/pry/pull/1791))
* Added support for dynamic prompt names
  ([#1833](https://github.com/pry/pry/pull/1833))

  ```rb
  # pryrc
  Pry.config.prompt_name = Pry.lazy { rand(100) }

  # Session
  [1] 80(main)>
  [2] 87(main)>
  [3] 30(main)>
  ```
* Added support for XDG Base Directory Specification
  ([#1609](https://github.com/pry/pry/pull/1609),
  [#1844](https://github.com/pry/pry/pull/1844),
  ([#1848](https://github.com/pry/pry/pull/1848)))
* Removed the `simple-prompt`. Use `change-prompt simple` instead. The
  `list-prompt` command was removed and embedded as `change-prompt --list`
  ([#1849](https://github.com/pry/pry/pull/1849))

#### API changes

* The following methods started accepting the new optional `config` parameter
  ([#1809](https://github.com/pry/pry/pull/1809)):
  * `Pry::Helpers.tablify(things, line_length, config = Pry.config)`
  * `Pry::Helpers.tablify_or_one_line(heading, things, config = Pry.config)`
  * `Pry::Helpers.tablify_to_screen_width(things, options, config = Pry.config)`
  * `Pry::Helpers::Table.new(items, args, config = Pry.config)`

  You are expected to pass a session-local `_pry_.config` instead of the global
  one.

* Added new method `Pry::Config.assign`, for creating a Config non-recursively
  ([#1725](https://github.com/pry/pry/issues/1725))
* Added `Pry.lazy`, which is a helper method for values that need to be
  calculated dynamically. Currently, only `config.prompt_name` supports it
  ([#1833](https://github.com/pry/pry/pull/1833))
* `Pry::Prompt` responds to `.[]`, `.all` & `.add` now. The `Pry::Prompt.add`
  method must be used for implementing custom prompts. See the API in the
  documentation for the class ([#1846](https://github.com/pry/pry/pull/1846))

#### Breaking changes

* Deleted the `Pry::Helpers::Text.bright_default` alias for
  `Pry::Helpers::Text.bold` ([#1795](https://github.com/pry/pry/pull/1795))
* `Pry::Helpers.tablify_to_screen_width(things, options, config = Pry.config)`
  requires `options` or `nil` in place of them.
* `Pry::Helpers::Table.new(items, args, config = Pry.config)` requires `args`
  or `nil` in place of them.
* Completely revamped `Pry::HistoryArray`
  ([#1818](https://github.com/pry/pry/pull/1818)).
  * It's been renamed to `Pry::Ring`
    ([#1817](https://github.com/pry/pry/pull/1817))
  * The implementation has changed and as result, the following methods were
    removed:
    * `Pry::Ring#length` (use `Pry::Ring#count` instead)
    * `#empty?`, `#each`, `#inspect`, `#pop!`, `#to_h`
  * To access old Enumerable methods convert the ring to Array with `#to_a`
  * Fixed indexing for elements (e.g. `_pry_.input_ring[0]` always return some
    element and not `nil`)
* Renamed `Pry.config.prompt_safe_objects` to `Pry.config.prompt_safe_contexts`
* Removed deprecated `Pry::CommandSet#before_command` &
  `Pry::CommandSet#after_command` ([#1838](https://github.com/pry/pry/pull/1838))

#### Deprecations

* Deprecated `_pry_.input_array` & `_pry_.output_array` in favour of
  `_pry_.input_ring` & `_pry_.output_ring` respectively
  ([#1814](https://github.com/pry/pry/pull/1814))
* Deprecated `Pry::Command#text`. Please use `#black`, `#white`, etc. directly
  instead (as you would with helper functions from `BaseHelpers` and
  `CommandHelpers`) ([#1701](https://github.com/pry/pry/pull/1701))
* Deprecated `_pry_.input_array` & `_pry_.output_array` in favour of
  `_pry_.input_ring` and `_pry_.output_ring` respectively
  ([#1817](https://github.com/pry/pry/pull/1817))
* Deprecated `Pry::Platform`. Use `Pry::Helpers::Platform` instead. Note that
  `Pry::Helpers::BaseHelpers` still includes the `Platform` methods but emits a
  warning. You must switch to `Pry::Helpers::Platform` in your code
  ([#1838](https://github.com/pry/pry/pull/1838),
  ([#1845](https://github.com/pry/pry/pull/1845)))
* Deprecated `Pry::Prompt::MAP`. You should use `Pry::Prompt.all` instead to
  access the same map ([#1846](https://github.com/pry/pry/pull/1846))

#### Bug fixes

* Fixed a bug where `cd Hash.new` reported `self` as an instance of Pry::Config
  in the prompt ([#1725](https://github.com/pry/pry/pull/1725))
* Silenced the `Could not find files for the given pattern(s)` error message
  coming from `where` on Windows, when `less` or another pager is not installed
  ([#1767](https://github.com/pry/pry/pull/1767))
* Fixed possible double loading of Pry plugins' `cli.rb` on Ruby (>= 2.4) due to
  [the `realpath` changes while invoking
  `require`](https://bugs.ruby-lang.org/issues/10222)
  ([#1762](https://github.com/pry/pry/pull/1762),
  [#1774](https://github.com/pry/pry/pull/1762))
* Fixed `NoMethodError` on code objects that have a comment but no source when
  invoking `show-source` ([#1779](https://github.com/pry/pry/pull/1779))
* Fixed `negative argument (ArgumentError)` upon pasting code with tabs, which
  used to confuse automatic indentation
  ([#1771](https://github.com/pry/pry/pull/1771))
* Fixed Pry not being able to load history on Ruby 2.4.4+ when it contains the
  null character ([#1789](https://github.com/pry/pry/pull/1789))
* Fixed Pry raising errors on `cd`'ing into some objects that redefine
  `method_missing` and `respond_to?`
  ([#1811](https://github.com/pry/pry/pull/1811))
* Fixed bug when indentation leaves parts of input after pressing enter when
  Readline is enabled with mode indicators for vi mode
  ([#1813](https://github.com/pry/pry/pull/1813),
  [#1820](https://github.com/pry/pry/pull/1820),
  [#1825](https://github.com/pry/pry/pull/1825))
* Fixed `edit` not writing to history
  ([#1749](https://github.com/pry/pry/issues/1749))

#### Other changes

* Deprecated the `Data` constant to match Ruby 2.5 in the `ls` command
  ([#1731](https://github.com/pry/pry/pull/1731))

diffstat:

 misc/ruby-pry/ALTERNATIVES |   2 +-
 misc/ruby-pry/Makefile     |   6 ++++--
 misc/ruby-pry/PLIST        |  10 +++++-----
 misc/ruby-pry/distinfo     |  10 +++++-----
 4 files changed, 15 insertions(+), 13 deletions(-)

diffs (105 lines):

diff -r fbe5879f9990 -r bf18d229f4c9 misc/ruby-pry/ALTERNATIVES
--- a/misc/ruby-pry/ALTERNATIVES        Mon Dec 17 15:01:02 2018 +0000
+++ b/misc/ruby-pry/ALTERNATIVES        Mon Dec 17 15:02:23 2018 +0000
@@ -1,1 +1,1 @@
-bin/pry @PREFIX@/bin/pry@RUBY_SUFFIX@
+bin/pry bin/pry@RUBY_SUFFIX@
diff -r fbe5879f9990 -r bf18d229f4c9 misc/ruby-pry/Makefile
--- a/misc/ruby-pry/Makefile    Mon Dec 17 15:01:02 2018 +0000
+++ b/misc/ruby-pry/Makefile    Mon Dec 17 15:02:23 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.8 2018/03/14 15:04:44 taca Exp $
+# $NetBSD: Makefile,v 1.9 2018/12/17 15:02:23 taca Exp $
 
-DISTNAME=      pry-0.11.3
+DISTNAME=      pry-0.12.2
 CATEGORIES=    misc
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
@@ -14,5 +14,7 @@
 
 RUBYGEM_OPTIONS+=      --format-executable
 
+USE_LANGUAGES= # none
+
 .include "../../lang/ruby/gem.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r fbe5879f9990 -r bf18d229f4c9 misc/ruby-pry/PLIST
--- a/misc/ruby-pry/PLIST       Mon Dec 17 15:01:02 2018 +0000
+++ b/misc/ruby-pry/PLIST       Mon Dec 17 15:02:23 2018 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2018/03/14 15:04:44 taca Exp $
+@comment $NetBSD: PLIST,v 1.4 2018/12/17 15:02:23 taca Exp $
 bin/pry${RUBY_SUFFIX}
 ${GEM_HOME}/cache/${GEM_NAME}.gem
 ${GEM_LIBDIR}/CHANGELOG.md
@@ -28,6 +28,7 @@
 ${GEM_LIBDIR}/lib/pry/commands/cd.rb
 ${GEM_LIBDIR}/lib/pry/commands/change_inspector.rb
 ${GEM_LIBDIR}/lib/pry/commands/change_prompt.rb
+${GEM_LIBDIR}/lib/pry/commands/clear_screen.rb
 ${GEM_LIBDIR}/lib/pry/commands/code_collector.rb
 ${GEM_LIBDIR}/lib/pry/commands/disable_pry.rb
 ${GEM_LIBDIR}/lib/pry/commands/disabled_commands.rb
@@ -46,6 +47,7 @@
 ${GEM_LIBDIR}/lib/pry/commands/gem_open.rb
 ${GEM_LIBDIR}/lib/pry/commands/gem_readme.rb
 ${GEM_LIBDIR}/lib/pry/commands/gem_search.rb
+${GEM_LIBDIR}/lib/pry/commands/gem_stats.rb
 ${GEM_LIBDIR}/lib/pry/commands/gist.rb
 ${GEM_LIBDIR}/lib/pry/commands/help.rb
 ${GEM_LIBDIR}/lib/pry/commands/hist.rb
@@ -53,7 +55,6 @@
 ${GEM_LIBDIR}/lib/pry/commands/install_command.rb
 ${GEM_LIBDIR}/lib/pry/commands/jump_to.rb
 ${GEM_LIBDIR}/lib/pry/commands/list_inspectors.rb
-${GEM_LIBDIR}/lib/pry/commands/list_prompts.rb
 ${GEM_LIBDIR}/lib/pry/commands/ls.rb
 ${GEM_LIBDIR}/lib/pry/commands/ls/constants.rb
 ${GEM_LIBDIR}/lib/pry/commands/ls/formatter.rb
@@ -83,7 +84,6 @@
 ${GEM_LIBDIR}/lib/pry/commands/show_info.rb
 ${GEM_LIBDIR}/lib/pry/commands/show_input.rb
 ${GEM_LIBDIR}/lib/pry/commands/show_source.rb
-${GEM_LIBDIR}/lib/pry/commands/simple_prompt.rb
 ${GEM_LIBDIR}/lib/pry/commands/stat.rb
 ${GEM_LIBDIR}/lib/pry/commands/switch_to.rb
 ${GEM_LIBDIR}/lib/pry/commands/toggle_color.rb
@@ -105,10 +105,10 @@
 ${GEM_LIBDIR}/lib/pry/helpers/command_helpers.rb
 ${GEM_LIBDIR}/lib/pry/helpers/documentation_helpers.rb
 ${GEM_LIBDIR}/lib/pry/helpers/options_helpers.rb
+${GEM_LIBDIR}/lib/pry/helpers/platform.rb
 ${GEM_LIBDIR}/lib/pry/helpers/table.rb
 ${GEM_LIBDIR}/lib/pry/helpers/text.rb
 ${GEM_LIBDIR}/lib/pry/history.rb
-${GEM_LIBDIR}/lib/pry/history_array.rb
 ${GEM_LIBDIR}/lib/pry/hooks.rb
 ${GEM_LIBDIR}/lib/pry/indent.rb
 ${GEM_LIBDIR}/lib/pry/input_completer.rb
@@ -127,9 +127,9 @@
 ${GEM_LIBDIR}/lib/pry/prompt.rb
 ${GEM_LIBDIR}/lib/pry/pry_class.rb
 ${GEM_LIBDIR}/lib/pry/pry_instance.rb
-${GEM_LIBDIR}/lib/pry/rbx_path.rb
 ${GEM_LIBDIR}/lib/pry/repl.rb
 ${GEM_LIBDIR}/lib/pry/repl_file_loader.rb
+${GEM_LIBDIR}/lib/pry/ring.rb
 ${GEM_LIBDIR}/lib/pry/rubygem.rb
 ${GEM_LIBDIR}/lib/pry/slop.rb
 ${GEM_LIBDIR}/lib/pry/slop/LICENSE
diff -r fbe5879f9990 -r bf18d229f4c9 misc/ruby-pry/distinfo
--- a/misc/ruby-pry/distinfo    Mon Dec 17 15:01:02 2018 +0000
+++ b/misc/ruby-pry/distinfo    Mon Dec 17 15:02:23 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.7 2018/03/14 15:04:44 taca Exp $
+$NetBSD: distinfo,v 1.8 2018/12/17 15:02:23 taca Exp $
 
-SHA1 (pry-0.11.3.gem) = 10166421f0125ec21a583de46789026151039ef1
-RMD160 (pry-0.11.3.gem) = 0bd8df5cc378042624a2c1a21b6404dd86d8adbe
-SHA512 (pry-0.11.3.gem) = cfdcaf51319df3cf310392850f9ad6dd0ac80078536e20885957b4f433b23a8164906e373e1414b67e6b31dbdbd826e7d73a2527bb4fcf7102f4743415ac1533
-Size (pry-0.11.3.gem) = 151552 bytes
+SHA1 (pry-0.12.2.gem) = d29de193a24dd7cc34db52bca6bc99e6c229204b
+RMD160 (pry-0.12.2.gem) = 5322d589ea29bf7f040536a26daae6597dc939f5
+SHA512 (pry-0.12.2.gem) = 3411a2c8eb5ca1f2cec1dd20c5c90c02ce68cf2ca6a38318e28a40e1fcc1d68d9a8c19611714862feb67f6e47ca10ed357de34b66463af26195306545e80bdee
+Size (pry-0.12.2.gem) = 156160 bytes



Home | Main Index | Thread Index | Old Index