Skip to content

Commit

Permalink
fixed String#concat extension
Browse files Browse the repository at this point in the history
  • Loading branch information
kristianmandrup committed May 31, 2011
1 parent 1332bed commit 80c64e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Changelog.textile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
h3. May 31, 2011

* Refactored String#concat

h3. May 24, 2011

* Refactored main GeoCalc (geo calculations) module into smaller parts
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.6.0
0.6.0.1
3 changes: 1 addition & 2 deletions lib/geo_calc/core_ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,7 @@ def geo_point
class String
def concat *args
args.inject(self) do |res, arg|
x = arg.is_a?(String) ? arg : arg.to_s
res << x
res << arg.to_s
res
end
end
Expand Down

0 comments on commit 80c64e6

Please sign in to comment.