Skip to content
Browse files

Replace Dir.exist? w/ File.directory? which is available under 1.8.

Bump version.
  • Loading branch information...
1 parent 6998c31 commit 652f5d75c14a6873974521c291262a61c9b4cca0 @macournoyer macournoyer committed Nov 14, 2011
Showing with 6 additions and 3 deletions.
  1. +3 −0 CHANGELOG
  2. +1 −1 lib/thin/controllers/service.rb
  3. +2 −2 lib/thin/version.rb
View
3 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.
View
2 lib/thin/controllers/service.rb
@@ -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'
View
4 lib/thin/version.rb
@@ -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

0 comments on commit 652f5d7

Please sign in to comment.
Something went wrong with that request. Please try again.