1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
--- subtle-0.11.3224-xi.orig/Rakefile
+++ subtle-0.11.3224-xi/Rakefile
@@ -277,7 +277,7 @@ task(:config) do
end
# Get revision
- if File.exists?(".hg") and (hg = find_executable0("hg"))
+ if File.exist?(".hg") and (hg = find_executable0("hg"))
match = `#{hg} tip`.match(/^[^:]+:\s*(\d+).*/)
if !match.nil? and 2 == match.size
--- subtle-0.11.3224-xi.orig/data/sur/server.rb
+++ subtle-0.11.3224-xi/data/sur/server.rb
@@ -148,8 +148,8 @@ module Subtle # {{{
#DataMapper::Model.raise_on_save_failure = true
# Create database and store
- DataMapper.auto_migrate! unless File.exists?(DATABASE)
- Dir.mkdir(REPOSITORY) unless File.exists?(REPOSITORY)
+ DataMapper.auto_migrate! unless File.exist?(DATABASE)
+ Dir.mkdir(REPOSITORY) unless File.exist?(REPOSITORY)
# Configure sinatra application
set :port, port
|