Skip to content

Commit

Permalink
Add Platform.windows?
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 26, 2016
1 parent 2c211a0 commit 3d252b8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions lib/grntest/platform.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright (C) 2016 Kouhei Sutou <kou@clear-code.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

module Grntest
module Platform
class << self
def windows?
/mswin|mingw|cygwin/ === RUBY_PLATFORM
end
end
end
end
1 change: 1 addition & 0 deletions lib/grntest/test-runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

require "json"

require "grntest/platform"
require "grntest/error"
require "grntest/log-parser"
require "grntest/executors"
Expand Down

0 comments on commit 3d252b8

Please sign in to comment.