Skip to content
This repository has been archived by the owner on Feb 27, 2020. It is now read-only.

Commit

Permalink
Мелкие правки.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyralion committed Mar 27, 2014
1 parent 29e4d50 commit ae2628c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions lib/imp/trap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,4 @@ def trap_signals

end # Imp

if defined?(::Rails)

dir = File.join(::Rails.root || ::Dir.pwd, "tmp")
::FileUtils.mkdir_p(dir, :mode => 0755) unless ::FileTest.directory?(dir)
::Imp::Trap::FILE_LOCK = ::File.join(dir, "imp_#{::Imp::Trap.mpid}.lock").freeze

else
::Imp::Trap::FILE_LOCK = "/tmp/imp_#{::Imp::Trap.mpid}.lock".freeze
end
::Imp::Trap::FILE_LOCK = "/tmp/imp_#{::Imp::Trap.mpid}.lock".freeze
2 changes: 1 addition & 1 deletion lib/imp/version.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# encoding: utf-8
module Imp

VERSION = '0.3.4'
VERSION = '0.3.4.1'

end # Imp

0 comments on commit ae2628c

Please sign in to comment.