fancy_irb 1.1.0 → 1.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
- SHA1:
3
- metadata.gz: 2a97871a844939aa181c7e03bbf1054c74d1e97e
4
- data.tar.gz: 04ef4e6f02a68d4b4971c4264ff6521383d827d6
2
+ SHA256:
3
+ metadata.gz: a473cd47ac9b598c144f8a230b52ffa9da72e071b29f19ad6656e6d5b946953c
4
+ data.tar.gz: f3fd9737cf673ce630d7ffb6b3e1bac3d6302ed6d3395a56304205701377bbb2
5
5
  SHA512:
6
- metadata.gz: d769722f7cfba9e17932458884fb41dfb46a498dee86dd79081ace353c59b0c4cbf0726cabe00dc6507da14eb4cee4aa6b35a5aaf1919653aa909cb09b5a9974
7
- data.tar.gz: 0f51d36feac350499e31835c60772f48304d4f60a1b4c6cef7ca345cecf0441df6c1434a44bba565750fe74e993a9a2192e3a15c4f1bcdd6e46065c761e8bd7a
6
+ metadata.gz: c36a661614d2d373f49a239409a9119af04e170f00a73945d00133c24faf441814fbd2b4108dbec22a7a31db2999cd5b7cc0ad3a621b71604468fc601f50afe0
7
+ data.tar.gz: ace4d06c3091e593f6475244d64da9473034cf2ecb557196c8acfd12ecb63bcc70dc52f6b0809814d16bf5c7be7156f30e2daec42f08d1bdf27f4dd37ade0502
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.2.0
4
+ * Read indentation level directly so it won't fail on newer Rubies
5
+
3
6
  ## 1.1.0
4
7
  * Rename `east_asian_width` option to `unicode_display_width` and activate by default
5
8
  * Relax paint dependency
data/Rakefile CHANGED
@@ -15,7 +15,7 @@ end
15
15
 
16
16
  desc "Install the gem locally (without docs)"
17
17
  task :install => :gem do
18
- sh %{gem install pkg/#{gemspec.name}-#{gemspec.version}.gem --no-rdoc --no-ri --local}
18
+ sh %{gem install pkg/#{gemspec.name}-#{gemspec.version}.gem --no-doc --local}
19
19
  end
20
20
 
21
21
  desc "Generate the gemspec"
@@ -8,7 +8,7 @@ module IRB
8
8
  def prompt(*args, &block)
9
9
  FancyIrb.handle_prompt(
10
10
  prompt_non_fancy(*args, &block),
11
- IRB.conf[:AUTO_INDENT] ? @scanner.indent * 2 : 0,
11
+ IRB.conf[:AUTO_INDENT] ? @scanner.instance_variable_get(:@indent) * 2 : 0,
12
12
  IRB.conf[:AUTO_INDENT] && IRB.conf[:PROMPT][IRB.conf[:PROMPT_MODE]][:PROMPT_C] == args[0]
13
13
  )
14
14
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module FancyIrb
2
- VERSION = '1.1.0'.freeze
4
+ VERSION = '1.2.0'
3
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fancy_irb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.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-18 00:00:00.000000000 Z
11
+ date: 2019-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: paint
@@ -115,8 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  version: '0'
116
116
  requirements:
117
117
  - 'Windows: ansicon <https://github.com/adoxa/ansicon>'
118
- rubyforge_project:
119
- rubygems_version: 2.6.8
118
+ rubygems_version: 3.0.3
120
119
  signing_key:
121
120
  specification_version: 4
122
121
  summary: FancyIrb makes IRB friendly.