pretty_match_data 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ class MatchData
5
5
  def to_s
6
6
  match = self[0].dup
7
7
  to_a[1..-1].each do |capture|
8
- match.gsub!(capture) { |s| underline { send(_next_color) { s } } }
8
+ match.gsub!(capture) { |s| underline + send(_next_color) { s } + underline }
9
9
  end
10
10
  pre_match + underline { match } + post_match
11
11
  end
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "pretty_match_data"
6
- s.version = "0.0.2"
6
+ s.version = "0.0.3"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["jugyo"]
9
9
  s.email = ["jugyo.org@gmail.com"]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: pretty_match_data
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - jugyo