Permalink
Browse files

Use Array#unshift...always forget that guy

  • Loading branch information...
cespare committed May 11, 2011
1 parent 1ab9550 commit 0ba8aae1977bcb63c636eb98cdd9bb17a2048617
Showing with 2 additions and 2 deletions.
  1. +1 −1 discoball.gemspec
  2. +1 −1 lib/discoball.rb
View
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = "discoball"
- s.version = "0.2.0"
+ s.version = "0.2.1"
s.required_rubygems_version = Gem::Requirement.new(">=0") if s.respond_to? :required_rubygems_version=
s.specification_version = 2 if s.respond_to? :specification_version=
View
@@ -79,7 +79,7 @@ def highlight!(line, match, color)
# Get the next color and put it at the back
def pop_rotate
color = @color_stack.pop
- @color_stack.insert(0, color)
+ @color_stack.unshift color
color
end
end

0 comments on commit 0ba8aae

Please sign in to comment.