ilios 0.4.1 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/docker-compose.yml +1 -1
- data/ext/ilios/extconf.rb +10 -17
- data/ilios.gemspec +1 -1
- data/lib/ilios/version.rb +1 -1
- metadata +10 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ceba4d7103c0e542adda7973a184cb9d029b46ba623847bbde1c1b11edbb413e
|
4
|
+
data.tar.gz: bb78ed04ba7d91d76e312f3427fc9d9785bec6f29c4e361d10f53ad1f60d6ab2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e28cd2f61d785722dab6f55a9ccabbea253814f9204cce2a3d7b167fef41fe1f6a23fe80b4cc8b9b404136052a82eef38aa72e8bae358fe4fd0786538b147f99
|
7
|
+
data.tar.gz: 49adffa5274303d4246606b55add435d1dc14cbf63917ac5f2291dfe63f6fac5457847d969317eb0e39cf3cff3d51b6b5480bd9f75ee5bc643afe415c7b38042
|
data/README.md
CHANGED
@@ -20,6 +20,7 @@ This gem's installer will install the DataStax C/C++ Driver to the appropriate l
|
|
20
20
|
However, if you prefer to install the DataStax C/C++ Driver manually, you can do so by executing:
|
21
21
|
|
22
22
|
```sh
|
23
|
+
$ bundle config set --local build.ilios --with-libuv-dir=/path/to/libuv-installed-dir
|
23
24
|
$ bundle config set --local build.ilios --with-cassandra-driver-dir=/path/to/cassandra-cpp-driver-installed-dir
|
24
25
|
$ bundle add ilios
|
25
26
|
```
|
@@ -27,7 +28,7 @@ $ bundle add ilios
|
|
27
28
|
or
|
28
29
|
|
29
30
|
```sh
|
30
|
-
$ gem install ilios -- --with-cassandra-driver-dir=/path/to/cassandra-cpp-driver-installed-dir
|
31
|
+
$ gem install ilios -- --with-libuv-dir=/path/to/libuv-installed-dir --with-cassandra-driver-dir=/path/to/cassandra-cpp-driver-installed-dir
|
31
32
|
```
|
32
33
|
|
33
34
|
## Requirements
|
data/docker-compose.yml
CHANGED
data/ext/ilios/extconf.rb
CHANGED
@@ -43,8 +43,9 @@ module LibuvInstaller
|
|
43
43
|
|
44
44
|
def self.install_from_package
|
45
45
|
NativePackageInstaller.install(
|
46
|
-
|
46
|
+
alpine_linux: 'libuv-dev',
|
47
47
|
alt_linux: 'libuv',
|
48
|
+
arch_linux: 'libuv',
|
48
49
|
debian: 'libuv1-dev',
|
49
50
|
freebsd: 'libuv',
|
50
51
|
gentoo_linux: 'libuv',
|
@@ -87,7 +88,7 @@ module CassandraDriverInstaller
|
|
87
88
|
|
88
89
|
class CassandraRecipe < MiniPortileCMake
|
89
90
|
def initialize(name, version, **kwargs)
|
90
|
-
ENV['LIBUV_ROOT_DIR']
|
91
|
+
ENV['LIBUV_ROOT_DIR'] ||= LibuvInstaller.special_install_path
|
91
92
|
|
92
93
|
super(name, version, **kwargs)
|
93
94
|
end
|
@@ -98,23 +99,9 @@ module CassandraDriverInstaller
|
|
98
99
|
end
|
99
100
|
|
100
101
|
def self.install
|
101
|
-
return if install_from_package
|
102
|
-
|
103
102
|
install_from_source
|
104
103
|
end
|
105
104
|
|
106
|
-
def self.install_from_package
|
107
|
-
# Install Cassandra C/C++ driver via MiniPortile2.
|
108
|
-
# It doesn't provide pre-built package in some official repository.
|
109
|
-
return unless NativePackageInstaller.install(homebrew: 'cassandra-cpp-driver')
|
110
|
-
|
111
|
-
path = `brew --prefix cassandra-cpp-driver`.strip
|
112
|
-
$CPPFLAGS += " -I#{path}/include"
|
113
|
-
$LDFLAGS += " -L#{path}/lib -Wl,-rpath,#{path}/lib -lcassandra"
|
114
|
-
|
115
|
-
true
|
116
|
-
end
|
117
|
-
|
118
105
|
def self.install_from_source
|
119
106
|
unless File.exist?(CASSANDRA_CPP_DRIVER_INSTALL_PATH)
|
120
107
|
cassandra_recipe = CassandraRecipe.new('cpp-driver', Ilios::CASSANDRA_CPP_DRIVER_VERSION, make_command: "make -j #{num_cpu_cores}")
|
@@ -157,7 +144,13 @@ else
|
|
157
144
|
raise
|
158
145
|
end
|
159
146
|
|
160
|
-
|
147
|
+
if (dir = with_config('--with-libuv-dir'))
|
148
|
+
$CPPFLAGS += " -I#{dir}/include"
|
149
|
+
$LDFLAGS += " -L#{dir}/lib -Wl,-rpath,#{dir}/lib -luv"
|
150
|
+
ENV['LIBUV_ROOT_DIR'] = dir
|
151
|
+
else
|
152
|
+
LibuvInstaller.install
|
153
|
+
end
|
161
154
|
CassandraDriverInstaller.install
|
162
155
|
end
|
163
156
|
|
data/ilios.gemspec
CHANGED
@@ -35,5 +35,5 @@ Gem::Specification.new do |spec|
|
|
35
35
|
spec.extensions << 'ext/ilios/extconf.rb'
|
36
36
|
|
37
37
|
spec.add_runtime_dependency('mini_portile2', '~> 2.8')
|
38
|
-
spec.add_runtime_dependency('native-package-installer', '~> 1.1')
|
38
|
+
spec.add_runtime_dependency('native-package-installer', '~> 1.1', '>= 1.1.9')
|
39
39
|
end
|
data/lib/ilios/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ilios
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Watson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mini_portile2
|
@@ -31,6 +31,9 @@ dependencies:
|
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.1'
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 1.1.9
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -38,6 +41,9 @@ dependencies:
|
|
38
41
|
- - "~>"
|
39
42
|
- !ruby/object:Gem::Version
|
40
43
|
version: '1.1'
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 1.1.9
|
41
47
|
description: Cassandra driver written by C language
|
42
48
|
email:
|
43
49
|
- watson1978@gmail.com
|
@@ -71,7 +77,7 @@ metadata:
|
|
71
77
|
homepage_uri: https://github.com/Watson1978/ilios
|
72
78
|
source_code_uri: https://github.com/Watson1978/ilios
|
73
79
|
bug_tracker_uri: https://github.com/Watson1978/ilios/issues
|
74
|
-
documentation_uri: https://www.rubydoc.info/gems/ilios/0.4.
|
80
|
+
documentation_uri: https://www.rubydoc.info/gems/ilios/0.4.3
|
75
81
|
rubygems_mfa_required: 'true'
|
76
82
|
post_install_message:
|
77
83
|
rdoc_options: []
|
@@ -89,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
95
|
version: '0'
|
90
96
|
requirements:
|
91
97
|
- cmake
|
92
|
-
rubygems_version: 3.
|
98
|
+
rubygems_version: 3.5.3
|
93
99
|
signing_key:
|
94
100
|
specification_version: 4
|
95
101
|
summary: Cassandra driver written by C language
|