Skip to content

Commit cbc9c4d

Browse files
committed
Support Ruby 2.3 and above
1 parent fe909c6 commit cbc9c4d

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
language: ruby
22
rvm:
33
- 2.5.1
4+
- 2.4.4
5+
- 2.3.7
46
- jruby-9.2.0.0

Gemfile.lock

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ GEM
5353
patience_diff (1.1.0)
5454
trollop (~> 1.16)
5555
powerpack (0.1.2)
56-
pry (0.10.4)
57-
coderay (~> 1.1.0)
58-
method_source (~> 0.8.1)
59-
slop (~> 3.4)
6056
pry (0.10.4-java)
6157
coderay (~> 1.1.0)
6258
method_source (~> 0.8.1)

spec/support/color_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def initialize
1010
end
1111

1212
def method_missing(name, *args, &block)
13-
match = name.match(/\A(.+)_line\Z/)
13+
match = name.to_s.match(/\A(.+)_line\Z/)
1414

1515
if match
1616
real_name = match.captures[0]
@@ -32,7 +32,7 @@ def method_missing(name, *args, &block)
3232
end
3333

3434
def respond_to_missing?(name, include_private = false)
35-
match = name.match(/\A(.+)_line\Z/)
35+
match = name.to_s.match(/\A(.+)_line\Z/)
3636

3737
if match
3838
Csi::ColorHelper.respond_to?(match.captures[0]) || super

spec/support/integration/matchers/produce_output_when_run_matcher.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def initialize(expected_output)
1313
expected_output.
1414
strip.
1515
split(/(\n+)/).
16-
map { |line| line.match?(/\n+/) ? line : (" " * 7) + line }.
16+
map { |line| line =~ /\n+/ ? line : (" " * 7) + line }.
1717
join
1818
end
1919

super_diff.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
1212
Ruby, and gives you helpful output to show you exactly how the two data
1313
structures differ.
1414
DESC
15-
s.required_ruby_version = "~> 2.5"
15+
s.required_ruby_version = "~> 2.3"
1616

1717
s.files = ["README.md", "super_diff.gemspec"] + Dir["lib/**/*"]
1818
s.test_files = Dir["spec/**/*"]

0 commit comments

Comments
 (0)