Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e2dd8760fda0
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4920dee2d296
Choose a head ref
  • 9 commits
  • 10 files changed
  • 2 contributors

Commits on Jan 29, 2016

  1. Copy the full SHA
    0b43a5e View commit details
  2. Copy the full SHA
    e39baba View commit details
  3. Copy the full SHA
    03d1d2c View commit details
  4. Copy the full SHA
    e6f95e6 View commit details
  5. Remove unconditional warning here.

    I believe this was left in from dev time when we were still
    sorting out how to treate evals with blocks. The common case that
    produces the warning is from #3541, when a Symbol#to_proc is used
    for an instance_exec or instance_eval. These are valid uses of
    the proc and work correctly (using the receiver as the "self" for
    the proc's symbol dispatch).
    
    Because all the remaining block bodies that would trigger this
    warning are Java-based blocks without any concept of frame/scope
    binding, and since they still honor the incoming self, I'm going
    to just remove the warning.
    
    Fixes #3541.
    headius committed Jan 29, 2016
    Copy the full SHA
    06fcde1 View commit details
  6. prepare for bundling did_you_mean gem (#3480)

    need to disable Ruby version validation at RubyGems due :
    ```
    Gem::InstallError: did_you_mean requires Ruby version >= 2.3.0
    ```
    kares committed Jan 29, 2016
    Copy the full SHA
    fa5f3d1 View commit details
  7. Copy the full SHA
    ae38a06 View commit details
  8. Copy the full SHA
    5705458 View commit details
  9. Merge branch 'master' into ruby-2.3

    * master:
      update jnr-posix to 3.0.28 SNAPSHOT - impl new method in POSIX iface at truffle's
      Remove unconditional warning here.
    kares committed Jan 29, 2016
    Copy the full SHA
    4920dee View commit details
1 change: 0 additions & 1 deletion core/src/main/java/org/jruby/runtime/BlockBody.java
Original file line number Diff line number Diff line change
@@ -58,7 +58,6 @@ public Signature getSignature() {
}

public void setEvalType(EvalType evalType) {
System.err.println("setEvalType unimplemented in " + this.getClass().getName());
}

public boolean canCallDirect() {
Original file line number Diff line number Diff line change
@@ -160,7 +160,7 @@ public void testGetSupportedRubyVersion() {
instance.setErrorWriter(writer);
String expResult = "jruby " + Constants.VERSION;
String result = instance.getSupportedRubyVersion();
assertTrue(result.startsWith(expResult));
assertTrue("'"+ result +"' does not start with: " + expResult, result.startsWith(expResult));
instance.terminate();
}

@@ -2646,8 +2646,8 @@ public void testLoadPathOfScriptingContainer() {
ScriptingContainer instance = new ScriptingContainer(LocalContextScope.SINGLETHREAD);
// note that instance.getLoadPath is not the load-path of the runtime !!!
String[] results = instance.runScriptlet("$LOAD_PATH").toString().split(", ");
for(String result : results){
assertTrue(result + " containt lib/ruby/", result.contains("lib/ruby/"));
for (String result : results){
assertTrue(result + " does not contain lib/ruby/", result.contains("lib/ruby/"));
}
}

13 changes: 9 additions & 4 deletions lib/pom.rb
Original file line number Diff line number Diff line change
@@ -20,7 +20,8 @@ def initialize( name, version, default_spec = true )
ImportedGem.new( 'psych', '2.0.15' ),
ImportedGem.new( 'json', '${json.version}' ),
ImportedGem.new( 'jar-dependencies', '${jar-dependencies.version}' ),
ImportedGem.new( 'racc', '${racc.version}')
ImportedGem.new( 'racc', '${racc.version}'),
#ImportedGem.new( 'did_you_mean', '1.0.0'),
]

project 'JRuby Lib Setup' do
@@ -44,7 +45,7 @@ def initialize( name, version, default_spec = true )
jar "org.jruby:jruby-core:#{version}", :scope => 'test'

extension 'org.torquebox.mojo:mavengem-wagon:0.2.0'

repository :id => :mavengems, :url => 'mavengem:http://rubygems.org'

plugin( :clean,
@@ -63,8 +64,11 @@ def initialize( name, version, default_spec = true )

default_gemnames = default_gems.collect { |g| g.name }

# TODO no hardcoded group-ids
plugin :dependency, :useRepositoryLayout => true, :outputDirectory => 'ruby/stdlib', :excludeGroupIds => 'rubygems', :includeScope => :provided do
plugin :dependency,
:useRepositoryLayout => true,
:outputDirectory => 'ruby/stdlib',
:excludeGroupIds => 'rubygems', # TODO no hardcoded group-ids
:includeScope => :provided do
execute_goal 'copy-dependencies', :phase => 'generate-resources'
end

@@ -117,6 +121,7 @@ def initialize( name, version, default_spec = true )
:wrappers => true,
:ignore_dependencies => true,
:install_dir => ghome )
def installer.ensure_required_ruby_version_met; end
installer.install
end
end
26 changes: 13 additions & 13 deletions maven/jruby-complete/src/it/integrity/verify.bsh
Original file line number Diff line number Diff line change
@@ -3,27 +3,27 @@ import org.codehaus.plexus.util.FileUtils;


String log = FileUtils.fileRead( new File( basedir, "build.log" ) );
String expected = "rake (10.1.0)";
String expected = "rake (10.4.2)";
if ( !log.contains( expected ) )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
}
expected = "4.1.2";
//expected = "4.2.0";
//if ( !log.contains( expected ) )
//{
// throw new RuntimeException( "log file does not contain '" + expected + "'" );
//}
expected = "json (1.8.1 java)";
if ( !log.contains( expected ) )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
}
expected = "json (1.8.0 java)";
if ( !log.contains( expected ) )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
}
expected = "rake, version 10.1.0";
if ( !log.contains( expected ) )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
}
expected = "rdoc (4.1.2)";
//expected = "rake, version 10.4.2";
//if ( !log.contains( expected ) )
//{
// throw new RuntimeException( "log file does not contain '" + expected + "'" );
//}
expected = "rdoc (4.2.0)";
if ( !log.contains( expected ) )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
26 changes: 13 additions & 13 deletions maven/jruby-dist/src/it/integrity/verify.bsh
Original file line number Diff line number Diff line change
@@ -3,27 +3,27 @@ import org.codehaus.plexus.util.FileUtils;


String log = FileUtils.fileRead( new File( basedir, "build.log" ) );
String expected = "rake (10.1.0)";
String expected = "rake (10.4.2)";
if ( !log.contains( expected ) )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
}
expected = "4.1.2";
//expected = "4.1.2";
//if ( !log.contains( expected ) )
//{
// throw new RuntimeException( "log file does not contain '" + expected + "'" );
//}
expected = "json (1.8.1 java)";
if ( !log.contains( expected ) )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
}
expected = "json (1.8.0 java)";
if ( !log.contains( expected ) )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
}
expected = "rake, version 10.1.0";
if ( !log.contains( expected ) )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
}
expected = "rdoc (4.1.2";
//expected = "rake, version 10.1.0";
//if ( !log.contains( expected ) )
//{
// throw new RuntimeException( "log file does not contain '" + expected + "'" );
//}
expected = "rdoc (4.2.0";
if ( !log.contains( expected ) )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
26 changes: 13 additions & 13 deletions maven/jruby-jars/src/it/integrity/verify.bsh
Original file line number Diff line number Diff line change
@@ -3,27 +3,27 @@ import org.codehaus.plexus.util.FileUtils;


String log = FileUtils.fileRead( new File( basedir, "build.log" ) );
String expected = "rake (10.1.0)";
String expected = "rake (10.4.2)";
if ( !log.contains( expected ) )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
}
expected = "4.1.2";
//expected = "4.1.2";
//if ( !log.contains( expected ) )
//{
// throw new RuntimeException( "log file does not contain '" + expected + "'" );
//}
expected = "json (1.8.1 java)";
if ( !log.contains( expected ) )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
}
expected = "json (1.8.0 java)";
if ( !log.contains( expected ) )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
}
expected = "rake, version 10.1.0";
if ( !log.contains( expected ) )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
}
expected = "rdoc (4.1.2)";
//expected = "rake, version 10.1.0";
//if ( !log.contains( expected ) )
//{
// throw new RuntimeException( "log file does not contain '" + expected + "'" );
//}
expected = "rdoc (4.2.0)";
if ( !log.contains( expected ) )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
26 changes: 13 additions & 13 deletions maven/jruby/src/it/integrity/verify.bsh
Original file line number Diff line number Diff line change
@@ -3,27 +3,27 @@ import org.codehaus.plexus.util.FileUtils;


String log = FileUtils.fileRead( new File( basedir, "build.log" ) );
String expected = "rake (10.1.0)";
String expected = "rake (10.4.2)";
if ( !log.contains( expected ) )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
}
expected = "4.1.2";
//expected = "4.1.2";
//if ( !log.contains( expected ) )
//{
// throw new RuntimeException( "log file does not contain '" + expected + "'" );
//}
expected = "json (1.8.1 java)";
if ( !log.contains( expected ) )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
}
expected = "json (1.8.0 java)";
if ( !log.contains( expected ) )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
}
expected = "rake, version 10.1.0";
if ( !log.contains( expected ) )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
}
expected = "rdoc (4.1.2)";
//expected = "rake, version 10.1.0";
//if ( !log.contains( expected ) )
//{
// throw new RuntimeException( "log file does not contain '" + expected + "'" );
//}
expected = "rdoc (4.2.0)";
if ( !log.contains( expected ) )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
7 changes: 3 additions & 4 deletions pom.rb
Original file line number Diff line number Diff line change
@@ -63,8 +63,7 @@
'polyglot.dump.readonly' => 'true',
'jruby.plugins.version' => '1.0.10',

'json.version' => '1.8.0',
'krypt.version' => '0.0.2.rc1',
'json.version' => '1.8.1',
'rspec.version' => '3.3.0',
'rspec-core.version' => '3.3.2',
'rspec-expectations.version' => '3.3.1',
@@ -76,8 +75,8 @@
'racc.version' => '1.4.13',
# versions for default gems with bin executables
# used in ./lib/pom.rb and ./maven/jruby-stdlib/pom.rb
'rdoc.version' => '4.1.2',
'rake.version' => '10.1.0',
'rdoc.version' => '4.2.0',
'rake.version' => '10.4.2',
'jar-dependencies.version' => '0.2.3',

'jruby-launcher.version' => '1.1.1',
7 changes: 3 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -114,22 +114,21 @@ DO NOT MODIFIY - GENERATED CODE
<ant.version>1.9.2</ant.version>
<diff-lcs.version>1.1.3</diff-lcs.version>
<jffi.version>1.2.10</jffi.version>
<rake.version>10.1.0</rake.version>
<rake.version>10.4.2</rake.version>
<jruby-launcher.version>1.1.1</jruby-launcher.version>
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
<asm.version>5.0.4</asm.version>
<rspec-expectations.version>3.3.1</rspec-expectations.version>
<its.osgi>osgi*/pom.xml</its.osgi>
<base.javac.version>1.7</base.javac.version>
<krypt.version>0.0.2.rc1</krypt.version>
<test-unit.version>3.1.1</test-unit.version>
<rdoc.version>4.1.2</rdoc.version>
<rdoc.version>4.2.0</rdoc.version>
<rspec.version>3.3.0</rspec.version>
<base.java.version>1.7</base.java.version>
<rspec-mocks.version>3.3.2</rspec-mocks.version>
<jruby.plugins.version>1.0.10</jruby.plugins.version>
<invoker.skip>true</invoker.skip>
<json.version>1.8.0</json.version>
<json.version>1.8.1</json.version>
<jar-dependencies.version>0.2.3</jar-dependencies.version>
<power_assert.version>0.2.3</power_assert.version>
<version.jruby>${project.version}</version.jruby>
Original file line number Diff line number Diff line change
@@ -309,6 +309,11 @@ public int mkdir(String path, int mode) {
return delegateTo.mkdir(path, mode);
}

@Override
public int mkfifo(String path, int mode) {
return delegateTo.mkfifo(path, mode);
}

@Override
public String readlink(String path) throws IOException {
return delegateTo.readlink(path);