~ubuntu-branches/ubuntu/wily/cucumber/wily-proposed

« back to all changes in this revision

Viewing changes to lib/cucumber/platform.rb

  • Committer: Package Import Robot
  • Author(s): Cédric Boutillier, Antonio Terceiro, Cédric Boutillier
  • Date: 2015-06-20 16:52:32 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20150620165232-hznc8mxma08er27p
Tags: 2.0.0-1
[ Antonio Terceiro ]
* debian/cucumber.pod: fix typo in manpage (Closes: #767215)

[ Cédric Boutillier ]
* Imported Upstream version 2.0.0
* rename the file in debian/missing-source to remove -min suffix, and make
  lintian happy
* reproducibility: use last changelog date to build the manpage
* update 0004-Update_default_binary_path.patch
* drop 0001-Remove-rubygems-bundler-stuff-from-spec_helper.patch, not needed
  anymore
* build-depend on pry
* depend on ruby-cucumber-core

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
require 'rbconfig'
4
4
 
5
5
module Cucumber
6
 
unless defined?(Cucumber::VERSION)
7
 
  VERSION       = '1.3.17'
8
 
  BINARY        = '/usr/bin/cucumber'
9
 
  LIBDIR        = File.expand_path(File.dirname(__FILE__) + '/..')
10
 
  JRUBY         = defined?(JRUBY_VERSION)
11
 
  IRONRUBY      = defined?(RUBY_ENGINE) && RUBY_ENGINE == "ironruby"
12
 
  WINDOWS       = RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
13
 
  OS_X          = RbConfig::CONFIG['host_os'] =~ /darwin/
14
 
  WINDOWS_MRI   = WINDOWS && !JRUBY && !IRONRUBY
15
 
  RAILS         = defined?(Rails)
16
 
  RUBY_BINARY   = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
17
 
  RUBY_2_1      = RUBY_VERSION =~ /^2\.1/
18
 
  RUBY_2_0      = RUBY_VERSION =~ /^2\.0/
19
 
  RUBY_1_9      = RUBY_VERSION =~ /^1\.9/
20
 
  RUBY_1_8_7    = RUBY_VERSION =~ /^1\.8\.7/
21
 
 
22
 
  class << self
23
 
    attr_accessor :use_full_backtrace
24
 
 
25
 
    def file_mode(m, encoding="UTF-8") #:nodoc:
26
 
      RUBY_1_8_7 ? m : "#{m}:#{encoding}"
 
6
  unless defined?(Cucumber::VERSION)
 
7
    VERSION       = '2.0.0'
 
8
    BINARY        = '/usr/bin/cucumber'
 
9
    LIBDIR        = File.expand_path(File.dirname(__FILE__) + '/..')
 
10
    JRUBY         = defined?(JRUBY_VERSION)
 
11
    WINDOWS       = RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
 
12
    OS_X          = RbConfig::CONFIG['host_os'] =~ /darwin/
 
13
    WINDOWS_MRI   = WINDOWS && !JRUBY
 
14
    RAILS         = defined?(Rails)
 
15
    RUBY_BINARY   = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
 
16
    RUBY_2_2      = RUBY_VERSION =~ /^2\.2/
 
17
    RUBY_2_1      = RUBY_VERSION =~ /^2\.1/
 
18
    RUBY_2_0      = RUBY_VERSION =~ /^2\.0/
 
19
    RUBY_1_9      = RUBY_VERSION =~ /^1\.9/
 
20
 
 
21
    class << self
 
22
      attr_accessor :use_full_backtrace
 
23
 
 
24
      # @private
 
25
      def file_mode(m, encoding="UTF-8")
 
26
        "#{m}:#{encoding}"
 
27
      end
27
28
    end
 
29
    self.use_full_backtrace = false
28
30
  end
29
 
  self.use_full_backtrace = false
30
 
end
31
31
end