tclog 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/tclog.rb +2 -2
  3. data/tclog.gemspec +1 -1
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -33,7 +33,7 @@ module TCLog
33
33
  #
34
34
  # Add Player with name.
35
35
  def []=(a,b)
36
- @ary << a
36
+ @ary << a unless @ary.include?(a)
37
37
  super a,b
38
38
  end
39
39
 
@@ -42,7 +42,7 @@ module TCLog
42
42
  #
43
43
  # Add Player.
44
44
  def <<(player)
45
- @ary << player.name
45
+ @ary << player.name unless @ary.include?(player.name)
46
46
  self[player.name] = player
47
47
  self
48
48
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{tclog}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Shota Fukumori"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 1
9
- version: 0.2.1
8
+ - 2
9
+ version: 0.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Shota Fukumori