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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d81ac2cd0a6f14c66b39e97f71c273b154d2d8ca
4
- data.tar.gz: e7eaa65937211de27685765bd3196affcf20bc27
3
+ metadata.gz: 9412eae0bc8344ba7c941f4e27e0b3fccdc443b8
4
+ data.tar.gz: 1c75c474d05fe96f5b3d4987eb1870b55f9bc1dc
5
5
  SHA512:
6
- metadata.gz: f4033f1e7717797c0ffc4b868c87b186a8648aecd8b1e0580adde6ce955be66151f9a61a467ab74d0487575825f0b077bb690c759ac643f150f347b5a6f74a70
7
- data.tar.gz: 75218ad280e0d0a277958c16b61baf7f6d0ee3da35d69de78cf0c022ac03ea422f7a6e09a3e1877732c42cb9300f6109f60384ae05da374a4c95106de75cd264
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
- extension = if recipe.host.include?('darwin')
13
- 'dylib'
14
- else
15
- 'so'
16
- end
17
- lib_path = File.join(File.dirname(__FILE__), "ports/#{recipe.host}/librdkafka/#{Rdkafka::LIBRDKAFKA_VERSION}/lib/librdkafka.1.#{extension}")
18
- FileUtils.mv(lib_path, File.join(File.dirname(__FILE__), "librdkafka.#{extension}"))
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")
@@ -1,4 +1,4 @@
1
1
  module Rdkafka
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  LIBRDKAFKA_VERSION = "0.11.0"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdkafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thijs Cadier