Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.ruby.runtime/src/com/oracle/truffle/ruby/runtime/core/CoreLibrary.java @ 13645:497fada09efb
Ruby: remove versioning.
author | Chris Seaton <chris.seaton@oracle.com> |
---|---|
date | Wed, 15 Jan 2014 19:27:27 +0000 |
parents | 0fbee3eb71f0 |
children | 91eebfc42e9f |
comparison
equal
deleted
inserted
replaced
13640:bfe7a8c8c3c6 | 13645:497fada09efb |
---|---|
162 | 162 |
163 objectClass.include(kernelModule); | 163 objectClass.include(kernelModule); |
164 | 164 |
165 // Set constants | 165 // Set constants |
166 | 166 |
167 objectClass.setConstant("RUBY_VERSION", new RubyString(stringClass, context.getConfiguration().getRubyVersion().getVersion())); | 167 objectClass.setConstant("RUBY_VERSION", new RubyString(stringClass, "2.1.0")); |
168 objectClass.setConstant("RUBY_PATCHLEVEL", context.getConfiguration().getRubyVersion().getPatch()); | 168 objectClass.setConstant("RUBY_PATCHLEVEL", 0); |
169 objectClass.setConstant("RUBY_ENGINE", new RubyString(stringClass, "rubytruffle")); | 169 objectClass.setConstant("RUBY_ENGINE", new RubyString(stringClass, "rubytruffle")); |
170 objectClass.setConstant("RUBY_PLATFORM", new RubyString(stringClass, "jvm")); | 170 objectClass.setConstant("RUBY_PLATFORM", new RubyString(stringClass, "jvm")); |
171 | 171 |
172 argv = new RubyArray(arrayClass, new ObjectArrayStore()); | 172 argv = new RubyArray(arrayClass, new ObjectArrayStore()); |
173 objectClass.setConstant("ARGV", argv); | 173 objectClass.setConstant("ARGV", argv); |