Sha256: 7b419b64c339b4560641e964d49ad2a715f6ec74e52ed1ecc323809dce1095f4

Contents?: true

Size: 1.52 KB

Versions: 55

Compression:

Stored size: 1.52 KB

Contents

Feature: No native or cross compilation on JRuby

  In order to present a good user experience to users of rake-compiler
  As a user of JRuby
  I want to be warned that my platform does not provide any support for C Extensions
  I want to be be informed of this without rake-compiler blowing up in my face

  @java
  Scenario: Attempting to do a cross compilation while on JRuby (without prerequisites)
    Given that all my source files are in place
    And I'm running a POSIX operating system
    When rake task 'cross compile' is invoked on JRuby
    Then rake task 'cross compile' should fail
    And output of rake task 'cross compile' warns
      """
      WARNING: You're attempting to (cross-)compile C extensions from a platform
      (jruby) that does not support native extensions or mkmf.rb.
      """
    And output of rake task 'cross compile' contains /Don't know how to build task 'cross'/

  @java
  Scenario: Attempting to do a cross compilation while on JRuby (even with prerequisites)
    Given that all my source files are in place
    And I'm running a POSIX operating system
    And I've installed cross compile toolchain
    When rake task 'cross compile' is invoked on JRuby
    Then rake task 'cross compile' should fail
    And output of rake task 'cross compile' warns
      """
      WARNING: You're attempting to (cross-)compile C extensions from a platform
      (jruby) that does not support native extensions or mkmf.rb.
      """
    And output of rake task 'cross compile' contains /Don't know how to build task 'cross'/

Version data entries

55 entries across 55 versions & 4 rubygems

Version Path
rake-compiler-1.2.9 features/java-no-native-compile.feature
rake-compiler-1.2.8 features/java-no-native-compile.feature
rake-compiler-1.2.7 features/java-no-native-compile.feature
rake-compiler-1.2.6 features/java-no-native-compile.feature
getargv-0.3.3-universal-darwin vendor/bundle/ruby/3.3.0/gems/rake-compiler-1.2.5/features/java-no-native-compile.feature
rake-compiler-1.2.5 features/java-no-native-compile.feature
rake-compiler-1.2.4 features/java-no-native-compile.feature
rake-compiler-1.2.3 features/java-no-native-compile.feature
rake-compiler-1.2.2 features/java-no-native-compile.feature
rake-compiler-1.2.1 features/java-no-native-compile.feature
rake-compiler-1.2.0 features/java-no-native-compile.feature
rake-compiler-1.1.9 features/java-no-native-compile.feature
rake-compiler-1.1.8 features/java-no-native-compile.feature
rake-compiler-1.1.7 features/java-no-native-compile.feature
rake-compiler-1.1.6 features/java-no-native-compile.feature
rake-compiler-1.1.5 features/java-no-native-compile.feature
rake-compiler-1.1.4 features/java-no-native-compile.feature
rake-compiler-1.1.3 features/java-no-native-compile.feature
rake-compiler-1.1.2 features/java-no-native-compile.feature
rake-compiler-1.1.1 features/java-no-native-compile.feature