rdkafka 0.1.4 → 0.1.5
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 +4 -4
- data/ext/Rakefile +9 -7
- data/lib/rdkafka/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9412eae0bc8344ba7c941f4e27e0b3fccdc443b8
|
|
4
|
+
data.tar.gz: 1c75c474d05fe96f5b3d4987eb1870b55f9bc1dc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9986aae776771e2cc50c99deea48355c47011cc3c5adb5b27d2c2e85a311ef9b9871701fa80cf2a2082971b2bea24d335ecf0acc4306484511d166b2017a2d79
|
|
7
|
+
data.tar.gz: b1dfd684c2db8be9a80085434875157a51c8264bf0bd7bedd282ef69cee5a2a188aee2b5b50d0016f76f8b19f0cc872a38cff2a3ad31d9190e9135c1ea3edce9
|
data/ext/Rakefile
CHANGED
|
@@ -9,13 +9,15 @@ task :default => :clean do
|
|
|
9
9
|
recipe.configure_options = ["--host=#{recipe.host}"]
|
|
10
10
|
recipe.cook
|
|
11
11
|
# Move dynamic library we're interested in
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
if recipe.host.include?('darwin')
|
|
13
|
+
from_extension = '1.dylib'
|
|
14
|
+
to_extension = 'dylib'
|
|
15
|
+
else
|
|
16
|
+
from_extension = 'so.1'
|
|
17
|
+
to_extension = 'so1'
|
|
18
|
+
end
|
|
19
|
+
lib_path = File.join(File.dirname(__FILE__), "ports/#{recipe.host}/librdkafka/#{Rdkafka::LIBRDKAFKA_VERSION}/lib/librdkafka.#{from_extension}")
|
|
20
|
+
FileUtils.mv(lib_path, File.join(File.dirname(__FILE__), "librdkafka.#{to_extension}"))
|
|
19
21
|
# Cleanup files created miniportile we don't need in the gem
|
|
20
22
|
FileUtils.rm_rf File.join(File.dirname(__FILE__), "tmp")
|
|
21
23
|
FileUtils.rm_rf File.join(File.dirname(__FILE__), "ports")
|
data/lib/rdkafka/version.rb
CHANGED