ffi-radix_tree 0.1.1 → 0.1.2

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: d36fd469f2823e6b56e5d8a4dab8ff7f9cd133f3
4
- data.tar.gz: 5cfcb3ed80dc6b731c95e16270fe48a1f7558e1c
3
+ metadata.gz: 72420ea414f83cefb55eb61ac28185576d766c93
4
+ data.tar.gz: 3e5efc9029f849f5810a7de4271d6e6079fcd1c3
5
5
  SHA512:
6
- metadata.gz: e08601eee9895a0a27bbaad76f44f51dc8f1dfd7f0768b23611734e34950a7edae76d45892a5e8316d4369614b4e32f5aca5ab591da0c326cecaaa828f2c0978
7
- data.tar.gz: 80435e020cd98216c0699db2559b4b75d63925d70f2d1f1e8c603b4a7539349d446e3ff3305c53d917cfcdd83f60f77f5ce4392f3967a11ed041bb9b75da5e48
6
+ metadata.gz: 5f26702f873b0414ae563c1e6e33e1e279390870941973826f556ecb491b88505a0d5f3ff958d66908892b9e63b30f8fd7f081cb7606d8983c22f4ef6248e96f
7
+ data.tar.gz: eddbd1b6f0f25b47d95afb6367b18ac364eedc00fa15a0f888d23c0f70488081f46441907b5d9782d10a5cd9185bc82cbe1c3b2200b5ddd12cbf71d22ae129d8
data/.gitignore CHANGED
@@ -1,5 +1,6 @@
1
1
  *.ruby-*
2
2
  *.so
3
+ *.o
3
4
  CMakeCache.txt
4
5
  /vendor/radixtree/CMakeFiles
5
6
  /vendor/radixtree/CMakeFiles/**/*
@@ -17,10 +17,9 @@ def find_executable(bin, path = nil)
17
17
  return bin if executable_file.call(bin)
18
18
  return nil
19
19
  end
20
- if path ||= ENV['PATH']
21
- path = path.split(File::PATH_SEPARATOR)
22
- else
23
- path = %w[/usr/local/bin /usr/ucb /usr/bin /bin]
20
+ path = %w[/usr/local/bin /usr/ucb /usr/bin /bin]
21
+ if additional_path ||= ENV['PATH']
22
+ path += additional_path.split(File::PATH_SEPARATOR)
24
23
  end
25
24
  file = nil
26
25
  path.each do |dir|
@@ -42,7 +41,7 @@ task :compile_radixtree do
42
41
  # Do not attempt to install if we want to use the system radixtree lib
43
42
  next if ENV.key?("RADIX_TREE_USE_SYSTEM_LIB")
44
43
 
45
- if !find_executable("cmake")
44
+ if !find_executable("gcc")
46
45
  abort "ERROR: CMake is required to build ffi-radix_tree"
47
46
  end
48
47
 
@@ -50,8 +49,8 @@ task :compile_radixtree do
50
49
  RADIXTREE_DIR = ::File.join(CWD, "..", "..", "..", "vendor", "radixtree")
51
50
 
52
51
  ::Dir.chdir(RADIXTREE_DIR) do
53
- sys("cmake CMakeLists.txt")
54
- sys("make")
52
+ sys("g++ -c -Wall -Wextra -O3 -fPIC ./ffi_radix_tree.cpp")
53
+ sys("g++ -shared -o libradixtree.#{::FFI::Platform::LIBSUFFIX} ffi_radix_tree.o")
55
54
  end
56
55
 
57
56
  unless ::File.exist?(::File.join(RADIXTREE_DIR, "libradixtree.#{::FFI::Platform::LIBSUFFIX}"))
@@ -1,5 +1,5 @@
1
1
  module FFI
2
2
  module RadixTree
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi-radix_tree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Dewitt
@@ -100,7 +100,6 @@ files:
100
100
  - ffi-radix_tree.gemspec
101
101
  - lib/ffi/radix_tree.rb
102
102
  - lib/ffi/radix_tree/version.rb
103
- - vendor/radixtree/CMakeLists.txt
104
103
  - vendor/radixtree/COPYING
105
104
  - vendor/radixtree/ffi_radix_tree.cpp
106
105
  - vendor/radixtree/radix_tree.hpp
@@ -1,10 +0,0 @@
1
- cmake_minimum_required(VERSION 2.8)
2
-
3
- project (radixtree)
4
- set(CMAKE_CXX_FLAGS "-Wall -Wextra")
5
- set(CMAKE_CXX_FLAGS_DEBUG "-g")
6
- set(CMAKE_CXX_FLAGS_RELEASE "-O3")
7
- set(CMAKE_BUILD_TYPE Release)
8
-
9
- include_directories(${CMAKE_CURRENT_SOURCE_DIR})
10
- add_library(radixtree SHARED ffi_radix_tree.cpp)