Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
Replace Dir.exist? w/ File.directory? which is available under 1.8.
Browse files Browse the repository at this point in the history
Bump version.
  • Loading branch information
macournoyer committed Nov 14, 2011
1 parent 6998c31 commit 652f5d7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
@@ -1,3 +1,6 @@
== 1.3.1 Triple Espresso
* Fix service not working pre 1.9.

== 1.3.0 Double Espresso
* BREAKING CHANGE: Thin no longer ships with fat Windows binaries.
From now on, to install on Windows, install https://github.com/oneclick/rubyinstaller/wiki/Development-Kit.
Expand Down
2 changes: 1 addition & 1 deletion lib/thin/controllers/service.rb
Expand Up @@ -5,7 +5,7 @@ module Controllers
# System service controller to launch all servers which
# config files are in a directory.
class Service < Controller
INITD_PATH = Dir.exist?('/etc/rc.d') ? '/etc/rc.d/thin' : '/etc/init.d/thin'
INITD_PATH = File.directory?('/etc/rc.d') ? '/etc/rc.d/thin' : '/etc/init.d/thin'
DEFAULT_CONFIG_PATH = '/etc/thin'
TEMPLATE = File.dirname(__FILE__) + '/service.sh.erb'

Expand Down
4 changes: 2 additions & 2 deletions lib/thin/version.rb
Expand Up @@ -6,11 +6,11 @@ class PlatformNotSupported < RuntimeError; end
module VERSION #:nodoc:
MAJOR = 1
MINOR = 3
TINY = 0
TINY = 1

STRING = [MAJOR, MINOR, TINY].join('.')

CODENAME = "Double Espresso".freeze
CODENAME = "Triple Espresso".freeze

RACK = [1, 0].freeze # Rack protocol version
end
Expand Down

0 comments on commit 652f5d7

Please sign in to comment.