durable_rules 0.34.09 → 0.34.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/src/rulesrb/extconf.rb +37 -0
  3. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 21d34ad174e5b2e700fd6a2066cd6415e8189bcf
4
- data.tar.gz: 4fd76832e9855468224b680034de0af95d5a24a4
3
+ metadata.gz: 17af99e481ae4e0bcb1b2ebe209b6e5edc18fee9
4
+ data.tar.gz: cb8dd76e247553ece6ddc1e07b55c73185472a84
5
5
  SHA512:
6
- metadata.gz: 6c763e2ab82a96e596bf71c452f58d0d0565a7af7f275e06878a567e2b00cb48e361cfc0d6e69369c85bf0db0e97d97ad118ab0d108418049223d2ae14b566b6
7
- data.tar.gz: 43bdbf405624dc232f0a00e6f25827379cbe04c8d67b6d430af583ee70b7e1a6c7ff35de3a2192259d5d2272cd4648967c2c0eddf39c332bd28d866b53d10887
6
+ metadata.gz: 6e850df050e57f8d9c3a6afe9e95290dcda77a15822b653b0a4dd65dfc379ebf2f78fcf3139a84817250671031ef502ff3aa53c6ebb9d637d8c08ba972c7ab5f
7
+ data.tar.gz: 11c23e9dffe070addf470d6a5535dc4c964892c1674a047981c525009614ca5134af25b2553152885483542c3403285692da9fd013f32a17ccde565a1ef4c739
@@ -0,0 +1,37 @@
1
+ require 'mkmf'
2
+
3
+ RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC']
4
+
5
+ rules_include = File.join(File.dirname(__FILE__), %w{.. .. src rules})
6
+ rules_lib = File.join(File.dirname(__FILE__), %w{.. .. src rules})
7
+ hiredis_lib = File.join(File.dirname(__FILE__), %w{.. .. deps hiredis})
8
+
9
+ RbConfig::CONFIG['configure_args'] =~ /with-make-prog\=(\w+)/
10
+ make_program = $1 || ENV['make']
11
+ make_program ||= case RUBY_PLATFORM
12
+ when /mswin/
13
+ 'nmake'
14
+ when /(bsd|solaris)/
15
+ 'gmake'
16
+ else
17
+ 'make'
18
+ end
19
+
20
+ # Make sure hiredis is built...
21
+ Dir.chdir(hiredis_lib) do
22
+ success = system("#{make_program} static")
23
+ raise "Building hiredis failed" if !success
24
+ end
25
+
26
+ # Make sure rules is built...
27
+ Dir.chdir(rules_lib) do
28
+ success = system("#{make_program} static")
29
+ raise "Building rules failed" if !success
30
+ end
31
+
32
+ # Statically link to hiredis (mkmf can't do this for us)
33
+ $CFLAGS << " -I#{rules_lib} "
34
+ $LDFLAGS << " -L#{rules_lib} -L#{hiredis_lib} -lrules -lhiredis"
35
+
36
+ have_func("rb_thread_fd_select")
37
+ create_makefile('src/rulesrb/rules')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: durable_rules
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.09
4
+ version: 0.34.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesus Ruiz
@@ -70,9 +70,11 @@ description: A lightweight library for real-time, consistent and scalable coordi
70
70
  of events.
71
71
  email: jr3791@live.com
72
72
  executables: []
73
- extensions: []
73
+ extensions:
74
+ - src/rulesrb/extconf.rb
74
75
  extra_rdoc_files: []
75
76
  files:
77
+ - src/rulesrb/extconf.rb
76
78
  - src/rulesrb/rules.c
77
79
  - src/rules/events.c
78
80
  - src/rules/json.c