Permalink
Browse files

Compatibility fix for ruby 1.8.7. Release 1.10.2

  • Loading branch information...
1 parent 3e36e98 commit fe0a7b3e5391bc6663be339ae64f7ab03abc40e3 @edouard edouard committed Apr 17, 2012
Showing with 7 additions and 3 deletions.
  1. +4 −0 history.md
  2. +2 −2 lib/web_translate_it/command_line.rb
  3. +1 −1 version.yml
View
@@ -1,3 +1,7 @@
+## Version 1.10.2 / 2012-04-17
+
+* Compatibility fix for ruby 1.8.7.
+
## Version 1.10.1 / 2012-04-10
* New: Prevent existing master files from being added again on `wti add`.
@@ -72,8 +72,8 @@ def add
exit
end
WebTranslateIt::Util.http_connection do |http|
- added = configuration.files.find_all{ |file| file.locale == configuration.source_locale}.collect {|file| File.absolute_path(file.file_path) }.to_set
- parameters.reject{ |param| added.include?(File.absolute_path(param))}.each do |param|
+ added = configuration.files.find_all{ |file| file.locale == configuration.source_locale}.collect {|file| File.expand_path(file.file_path) }.to_set
+ parameters.reject{ |param| added.include?(File.expand_path(param))}.each do |param|
file = TranslationFile.new(nil, param, nil, configuration.api_key)
file.create(http, command_options.low_priority)
end
View
@@ -1,4 +1,4 @@
:major: 1
:minor: 10
-:patch: 1
+:patch: 2

0 comments on commit fe0a7b3

Please sign in to comment.