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: e79aed476661
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ac4fea1e1773
Choose a head ref
  • 2 commits
  • 9 files changed
  • 1 contributor

Commits on Mar 3, 2015

  1. Copy the full SHA
    2b7f1da View commit details
  2. Copy the full SHA
    ac4fea1 View commit details
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@
<artifactId>jruby-core</artifactId>
<name>JRuby Core</name>
<properties>
<version.ruby>2.2.0</version.ruby>
<version.ruby>2.2.1</version.ruby>
<prawn.dir>${test.dir}/prawn</prawn.dir>
<spec.tags.dir>${spec.dir}/tags</spec.tags.dir>
<pkg.dir>${build.dir}/pkg</pkg.dir>
10 changes: 1 addition & 9 deletions core/src/main/java/org/jruby/util/cli/OutputStrings.java
Original file line number Diff line number Diff line change
@@ -111,18 +111,10 @@ public static String getPropertyHelp() {
}

public static String getVersionString() {
String ver;
String patchDelimeter = "p";
int patchlevel;
String versionString = "";
ver = Constants.RUBY_VERSION;
patchlevel = Constants.RUBY_PATCHLEVEL;
versionString = String.format("%s%s%d", ver, patchDelimeter, patchlevel);

String fullVersion = String.format(
"jruby %s (%s) %s %s %s %s on %s%s%s [%s-%s]",
Constants.VERSION,
versionString,
Constants.RUBY_VERSION,
Constants.COMPILE_DATE,
Constants.REVISION,
SafePropertyAccessor.getProperty("java.vm.name", "Unknown JVM"),
4 changes: 3 additions & 1 deletion core/src/main/resources/org/jruby/runtime/Constants.java
Original file line number Diff line number Diff line change
@@ -38,7 +38,6 @@ public final class Constants {

public static final String RUBY_MAJOR_VERSION = "@version.ruby.major@";
public static final String RUBY_VERSION = "@version.ruby@";
public static final int RUBY_PATCHLEVEL = Integer.parseInt("@version.ruby.patchlevel@");
public static final int RUBY_REVISION = Integer.parseInt("@version.ruby.revision@");

public static final String COMPILE_DATE = "@build.date@";
@@ -90,4 +89,7 @@ public final class Constants {
}

private Constants() {}

@Deprecated
public static final int RUBY_PATCHLEVEL = 0;
}
5 changes: 2 additions & 3 deletions default.build.properties
Original file line number Diff line number Diff line change
@@ -34,8 +34,7 @@ rake.args=
install4j.executable=/Applications/install4j 4/bin/install4jc

# Ruby versions
version.ruby=2.2.0
version.ruby=2.2.1
version.ruby.major=2.2
version.ruby.minor=0
version.ruby.patchlevel=0
version.ruby.revision=49005
version.ruby.revision=49761
3 changes: 2 additions & 1 deletion lib/ruby/stdlib/net/http.rb
Original file line number Diff line number Diff line change
@@ -1364,7 +1364,8 @@ def request_put(path, data, initheader = nil, &block) #:nodoc:
# puts response.body
#
def send_request(name, path, data = nil, header = nil)
r = HTTPGenericRequest.new(name,(data ? true : false),true,path,header)
has_response_body = name != 'HEAD'
r = HTTPGenericRequest.new(name,(data ? true : false),has_response_body,path,header)
request r, data
end

13 changes: 7 additions & 6 deletions lib/ruby/stdlib/resolv.rb
Original file line number Diff line number Diff line change
@@ -674,8 +674,8 @@ def request(sender, tout)
timelimit = start + tout
begin
sender.send
rescue Errno::EHOSTUNREACH
# multi-homed IPv6 may generate this
rescue Errno::EHOSTUNREACH, # multi-homed IPv6 may generate this
Errno::ENETUNREACH
raise ResolvTimeout
end
while true
@@ -1240,7 +1240,8 @@ def absolute?

def ==(other) # :nodoc:
return false unless Name === other
return @labels.join == other.to_a.join && @absolute == other.absolute?
return false unless @absolute == other.absolute?
return @labels == other.to_a
end

alias eql? == # :nodoc:
@@ -1669,10 +1670,10 @@ def ==(other) # :nodoc:
return false unless self.class == other.class
s_ivars = self.instance_variables
s_ivars.sort!
s_ivars.delete "@ttl"
s_ivars.delete :@ttl
o_ivars = other.instance_variables
o_ivars.sort!
o_ivars.delete "@ttl"
o_ivars.delete :@ttl
return s_ivars == o_ivars &&
s_ivars.collect {|name| self.instance_variable_get name} ==
o_ivars.collect {|name| other.instance_variable_get name}
@@ -1685,7 +1686,7 @@ def eql?(other) # :nodoc:
def hash # :nodoc:
h = 0
vars = self.instance_variables
vars.delete "@ttl"
vars.delete :@ttl
vars.each {|name|
h ^= self.instance_variable_get(name).hash
}
8 changes: 6 additions & 2 deletions lib/ruby/stdlib/ripper/sexp.rb
Original file line number Diff line number Diff line change
@@ -28,7 +28,9 @@ class Ripper
# [:bodystmt, [[:var_ref, [:@kw, "nil", [1, 9]]]], nil, nil, nil]]]]
#
def Ripper.sexp(src, filename = '-', lineno = 1)
SexpBuilderPP.new(src, filename, lineno).parse
builder = SexpBuilderPP.new(src, filename, lineno)
sexp = builder.parse
sexp unless builder.error?
end

# [EXPERIMENTAL]
@@ -52,7 +54,9 @@ def Ripper.sexp(src, filename = '-', lineno = 1)
# nil]]]]
#
def Ripper.sexp_raw(src, filename = '-', lineno = 1)
SexpBuilder.new(src, filename, lineno).parse
builder = SexpBuilder.new(src, filename, lineno)
sexp = builder.parse
sexp unless builder.error?
end

class SexpBuilderPP < ::Ripper #:nodoc:
2 changes: 1 addition & 1 deletion lib/ruby/stdlib/unicode_normalize.rb
Original file line number Diff line number Diff line change
@@ -39,7 +39,7 @@ def unicode_normalize(form = :nfc)
end

# :call-seq:
# str.unicode_normalize(form=:nfc)
# str.unicode_normalize!(form=:nfc)
#
# Destructive version of String#unicode_normalize, doing Unicode
# normalization in place.
File renamed without changes.