Skip to content

Commit

Permalink
Showing 5 changed files with 30 additions and 8 deletions.
1 change: 0 additions & 1 deletion core/pom.rb
Original file line number Diff line number Diff line change
@@ -262,7 +262,6 @@


plugin :shade do
version( '3.1.0' )
execute_goals( 'shade',
:id => 'create lib/jruby.jar',
:phase => 'package',
1 change: 0 additions & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
@@ -599,7 +599,6 @@ DO NOT MODIFIY - GENERATED CODE
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>create lib/jruby.jar</id>
18 changes: 14 additions & 4 deletions core/src/main/java/org/jruby/RubySignal.java
Original file line number Diff line number Diff line change
@@ -97,11 +97,21 @@ public static Map<String, Integer> list() {
@JRubyMethod(meta = true)
public static IRubyObject list(ThreadContext context, IRubyObject recv) {
Ruby runtime = recv.getRuntime();
RubyHash names = RubyHash.newHash(runtime);
for (Map.Entry<String, Integer> sig : RubySignal.list().entrySet()) {
names.op_aset(context, runtime.freezeAndDedupString(runtime.newString(sig.getKey())), runtime.newFixnum(sig.getValue()));
RubyHash names;

synchronized (recv) {
names = (RubyHash) recv.getInternalVariables().getInternalVariable("signal_list");
if (names == null) {
names = RubyHash.newHash(runtime);
for (Map.Entry<String, Integer> sig : RubySignal.list().entrySet()) {
names.op_aset(context, runtime.freezeAndDedupString(runtime.newString(sig.getKey())), runtime.newFixnum(sig.getValue()));
}
names.op_aset(context, runtime.freezeAndDedupString(runtime.newString("EXIT")), runtime.newFixnum(0));
} else {
names.dup(context);
}
}
names.op_aset(context, runtime.freezeAndDedupString(runtime.newString("EXIT")), runtime.newFixnum(0));

return names;
}

5 changes: 4 additions & 1 deletion pom.rb
Original file line number Diff line number Diff line change
@@ -128,7 +128,7 @@
end

plugin :compiler, '3.3'
plugin :shade, '2.4.3'
plugin :shade, '3.1.0'
plugin :surefire, '2.15'
plugin :plugin, '3.2'
plugin( :invoker, '1.8',
@@ -148,6 +148,9 @@

plugin 'org.eclipse.m2e:lifecycle-mapping:1.0.0'
plugin :'scm-publish', '1.0-beta-2'
plugin 'org.apache.felix:maven-bundle-plugin' do
dependency(groupId: 'biz.aQute.bnd', artifactId: 'biz.aQute.bndlib', version: '3.5.0')
end
end

plugin( :site,
13 changes: 12 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
@@ -282,7 +282,7 @@ DO NOT MODIFIY - GENERATED CODE
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.3</version>
<version>3.1.0</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
@@ -336,6 +336,17 @@ DO NOT MODIFIY - GENERATED CODE
<artifactId>maven-scm-publish-plugin</artifactId>
<version>1.0-beta-2</version>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<dependencies>
<dependency>
<groupId>biz.aQute.bnd</groupId>
<artifactId>biz.aQute.bndlib</artifactId>
<version>3.5.0</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
<plugins>

0 comments on commit 52778a5

Please sign in to comment.