irbtools 2.1.0 → 2.2.0

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: c5bc380cf09c6c920ac7cfe7edfc52db42f8120f
4
- data.tar.gz: 062cf759f72ad49e33cca40f30edf39f83e91ba2
3
+ metadata.gz: ae4053bb7e24c5bf843b2951b55916207fdf5f5b
4
+ data.tar.gz: e42978b180a65ed4b1a3f8523bb5494df5c54ec3
5
5
  SHA512:
6
- metadata.gz: fb7d41d0a440940ce1a27b8c216583410ebf393eb869bdf07a8dbacb476b9018fa9426d2060e0304ecb1755a1861cd51614df748935f3db923b7c9ff9c02efd7
7
- data.tar.gz: ad07d5e41426019cfa4cb4600ed96245e4e0c55dd9d4a1bbf8b7ed472d588a4a467e986b8d391c094916dead557a48d9ef55e6abdb98e2030e8b815b6aac83e4
6
+ metadata.gz: 6d75b0d6f1d18cc4635660ba2a1d2600fb309518f836956bd414d8e20ba620071dde3e329eaeb85675ca2b06e156b01e433ac628232609641b00a3362f8295db
7
+ data.tar.gz: b6ef7cf3c601f031b66fa9590c1b09c0f3a807e16b3a720c7b0f594826f83d897a7fc969cfce4edafe2c97d38fc562296b25a63bab9152907ba992827dccf540
@@ -1,3 +1,6 @@
1
+ 2.2.0
2
+ * Remove info, version, engine, and os methods. Use RubyInfo, RubyVersion, RubyEngine, and OS instead (fixes #40)
3
+
1
4
  2.1.0
2
5
  * Improve Rails compatibility
3
6
  * Do not load instance gem in the context of Rails
data/README.md CHANGED
@@ -102,7 +102,7 @@ Method | Arguments | Description
102
102
  `cat` | path | Read file contents.
103
103
  `cd` | path = nil | Changes the directory. Can also be used in these forms: `~cd` (change to home directory), `-cd` (change to previous directory).
104
104
  `clear` | | Clear the terminal.
105
- `code` | object = self, method_name | Display the method source with syntax highlighting. Will also look up C methods if the **core_docs** gem is available.
105
+ `code` | object = self, method_name | Display the method source with syntax highlighting. Will also look up C methods if the **core_docs** gem (which is included in **irbtools-more**) is available.
106
106
  `colorize` | string | Syntax highlight a Ruby string.
107
107
  `copy` | string | Copy something to the clipboard.
108
108
  `copy_input` | | Copy session history to the clipboard.
@@ -81,25 +81,13 @@ Irbtools.add_library 'method_locator', thread: 60 do
81
81
  end
82
82
  end
83
83
 
84
+ Irbtools.add_library 'ruby_info', thread: :ri
85
+ Irbtools.add_library 'os', thread: :os
86
+ Irbtools.add_library 'ruby_engine', thread: :re
87
+ Irbtools.add_library 'ruby_version', thread: :rv
84
88
 
85
89
  # # # load via autoload
86
90
 
87
- Irbtools.add_library 'ruby_info', :autoload => :RubyInfo do
88
- def info() RubyInfo end unless defined? info
89
- end
90
-
91
- Irbtools.add_library 'os', :autoload => :OS do
92
- def os() OS end unless defined? os
93
- end
94
-
95
- Irbtools.add_library 'ruby_engine', :autoload => :RubyEngine do
96
- def engine() RubyEngine end unless defined? engine
97
- end
98
-
99
- Irbtools.add_library 'ruby_version', :autoload => :RubyVersion do
100
- def version() RubyVersion end unless defined? version
101
- end
102
-
103
91
  Irbtools.add_library 'code', :autoload => :Code do
104
92
  def code(object = self, method_name)
105
93
  Code.for(object, method_name)
@@ -1,3 +1,3 @@
1
1
  module Irbtools
2
- VERSION = "2.1.0".freeze
2
+ VERSION = "2.2.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: irbtools
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Lelis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-19 00:00:00.000000000 Z
11
+ date: 2017-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -373,7 +373,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
373
373
  version: '0'
374
374
  requirements: []
375
375
  rubyforge_project:
376
- rubygems_version: 2.6.8
376
+ rubygems_version: 2.6.13
377
377
  signing_key:
378
378
  specification_version: 4
379
379
  summary: Irbtools happy IRB.