proc-wait3 1.7.0 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c48dfef5da3932850a5edfd6fc5dc1ccb710ede6
4
- data.tar.gz: f861c07250bef10b844fb787839066659916cfc9
3
+ metadata.gz: 1852b4eba1bbe08fbc94c85af78d36e4d81c8872
4
+ data.tar.gz: 3c153b9b4e4d764a35879862a1e29d4cbf8ad6c3
5
5
  SHA512:
6
- metadata.gz: 79bb2aec93d32d8cbd1d22030e9fe8f684f38faacf3c0cb2ce79e4d3c30a710c863cbb017cfcfe94922612bbc6548c81c3f817683e50a8d0b44112328644653c
7
- data.tar.gz: 55e6b2168f84b5115ab428264efeefb87cb1d0e1f301c6040af13fe8595f4b1f82fbfa9392f63180df0f5c0aec4cc26bc2f158d0936bbb2daeb497f5644cc58f
6
+ metadata.gz: 2874d8519a42b5d0ed2a6d2909bb484ee4bdb1f97dea4b8bd353c49cb3904f71adf7806c641336d49881d0a3f636e695116899bc3c2fea529580b66b3f655b4d
7
+ data.tar.gz: 8060358bb72b80db9119310a6b80d675840154c69297b1d10ccdf4f3bac580059ec5625b0062d1cd4ac096c8e2896fb39422c6f415f89c6278cb8d513a500eee
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ == 1.7.1 - 24-Apr-2014
2
+ * Explicitly check for and include sys/resource.h because Debian. Thanks
3
+ go to Christos Trochalakis for the spot.
4
+
1
5
  == 1.7.0 - 6-Apr-2014
2
6
  * The wait3 and wait4 methods no longer set $? to a custom struct. The builtin
3
7
  variable is still set, but if you need the custom Struct::ProcStat information
@@ -30,6 +30,8 @@ SRC
30
30
  end
31
31
 
32
32
  have_header('wait.h')
33
+ have_header('sys/resource.h')
34
+ have_header('sys/wait.h')
33
35
 
34
36
  # wait3 is mandatory.
35
37
  unless have_func('wait3')
@@ -2,6 +2,11 @@
2
2
  #include <string.h>
3
3
  #include <unistd.h>
4
4
 
5
+ /* Debian */
6
+ #ifdef HAVE_SYS_RESOURCE_H
7
+ #include <sys/resource.h>
8
+ #endif
9
+
5
10
  #ifdef HAVE_WAIT_H
6
11
  #include <wait.h>
7
12
  #else
@@ -961,8 +966,8 @@ void Init_wait3()
961
966
  rb_define_const(rb_mProcess, "P_PROJID", INT2FIX(P_PROJID));
962
967
  #endif
963
968
 
964
- /* 1.7.0: The version of the proc-wait3 library */
965
- rb_define_const(rb_mProcess, "WAIT3_VERSION", rb_str_new2("1.7.0"));
969
+ /* 1.7.1: The version of the proc-wait3 library */
970
+ rb_define_const(rb_mProcess, "WAIT3_VERSION", rb_str_new2("1.7.1"));
966
971
 
967
972
  /* Define this last in our Init_wait3 function */
968
973
  rb_define_readonly_variable("$last_status", &v_last_status);
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'proc-wait3'
5
- spec.version = '1.7.0'
5
+ spec.version = '1.7.1'
6
6
  spec.author = 'Daniel J. Berger'
7
7
  spec.license = 'Artistic 2.0'
8
8
  spec.email = 'djberg96@gmail.com'
@@ -33,7 +33,7 @@ class TC_Proc_Wait3 < Test::Unit::TestCase
33
33
  end
34
34
 
35
35
  test "version constant is set to expected value" do
36
- assert_equal('1.7.0', Process::WAIT3_VERSION)
36
+ assert_equal('1.7.1', Process::WAIT3_VERSION)
37
37
  end
38
38
 
39
39
  test "wait3 method is defined" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proc-wait3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-06 00:00:00.000000000 Z
11
+ date: 2014-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit