pretty_match_data 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/examples/test.rb ADDED
@@ -0,0 +1,4 @@
1
+ $: << File.expand_path('../../lib', __FILE__)
2
+ require 'pretty_match_data'
3
+
4
+ puts 'foobarbazfoobarbaz'.match(/foo(bar)(baz)/)
@@ -11,7 +11,7 @@ class MatchData
11
11
  end
12
12
 
13
13
  def _next_color
14
- @_color ||= %w(red green yellow blue magenta cyan).map { |c| c.to_sym }
14
+ @_color ||= %w(red green yellow blue magenta cyan).map { |c| "on_#{c}".to_sym }
15
15
  @_color.push @_color.shift
16
16
  @_color[0]
17
17
  end
@@ -3,13 +3,13 @@ $:.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.1"
6
+ s.version = "0.0.2"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["jugyo"]
9
9
  s.email = ["jugyo.org@gmail.com"]
10
10
  s.homepage = "https://github.com/jugyo/pretty_match_data"
11
- s.summary = %q{pretty MatchData}
12
- s.description = %q{pretty MatchData. It provides pretty #to_s method}
11
+ s.summary = %q{Pretty MatchData}
12
+ s.description = %q{Pretty MatchData. It provides pretty #to_s method}
13
13
 
14
14
  s.rubyforge_project = "pretty_match_data"
15
15
 
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.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - jugyo
@@ -24,7 +24,7 @@ dependencies:
24
24
  version: "0"
25
25
  type: :runtime
26
26
  version_requirements: *id001
27
- description: "pretty MatchData. It provides pretty #to_s method"
27
+ description: "Pretty MatchData. It provides pretty #to_s method"
28
28
  email:
29
29
  - jugyo.org@gmail.com
30
30
  executables: []
@@ -36,6 +36,7 @@ extra_rdoc_files: []
36
36
  files:
37
37
  - Gemfile
38
38
  - Rakefile
39
+ - examples/test.rb
39
40
  - lib/pretty_match_data.rb
40
41
  - pretty_match_data.gemspec
41
42
  has_rdoc: true
@@ -65,6 +66,6 @@ rubyforge_project: pretty_match_data
65
66
  rubygems_version: 1.6.0
66
67
  signing_key:
67
68
  specification_version: 3
68
- summary: pretty MatchData
69
+ summary: Pretty MatchData
69
70
  test_files: []
70
71