summarylogtreecommitdiffstats
path: root/ruby-2.x.patch
diff options
context:
space:
mode:
authorJames An2017-05-12 21:21:51 -0400
committerJames An2017-05-12 21:21:51 -0400
commit19cbe3405ee1327b68f5fe8a56c7547f1dc9f0f1 (patch)
tree2b27548d544dc1d0a63619fec14aae0e8be7cca3 /ruby-2.x.patch
parente9401f63bf584c0e6ae808257579727384f5ce2a (diff)
downloadaur-19cbe3405ee1327b68f5fe8a56c7547f1dc9f0f1.tar.gz
Fixed support for Ruby 2.4.x.
Diffstat (limited to 'ruby-2.x.patch')
-rw-r--r--ruby-2.x.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/ruby-2.x.patch b/ruby-2.x.patch
new file mode 100644
index 000000000000..a9083ec379d8
--- /dev/null
+++ b/ruby-2.x.patch
@@ -0,0 +1,13 @@
+ diff --git a/ext/tuple/extconf.rb b/ext/tuple/extconf.rb
+index ce4e688..3b2b1ac 100644
+--- a/ext/tuple/extconf.rb
++++ b/ext/tuple/extconf.rb
+@@ -8,7 +8,7 @@ when /\A1\.9/
+ when /\A2\.(0|1)/
+ $CFLAGS += ' -DRUBY_2_x_x'
+ $CFLAGS += ' -DRUBY_2_1_x'
+-when /\A2\.2/
++when /\A2\.(2|3|4)/
+ $CFLAGS += ' -DRUBY_2_x_x'
+ $CFLAGS += ' -DRUBY_2_2_x'
+ else