ilios 0.4.11 → 1.0.1
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/CHANGELOG.md +15 -0
- data/Gemfile +4 -1
- data/README.md +3 -1
- data/Rakefile +2 -0
- data/ext/ilios/extconf.rb +18 -20
- data/ext/ilios/statement.c +1 -1
- data/ilios.gemspec +2 -2
- data/lib/ilios/version.rb +2 -2
- data/sig/ilios.rbs +1 -1
- metadata +6 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c60e9a86ba9bc35e5ca61fc98a4a62f830979c7cb7df3d37436319fa69cbefc2
|
4
|
+
data.tar.gz: 31b3986d19ee5bff1782cf0ddff082b0be7d9f247beb4c0c59734c3598ab6492
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 211aff315a763982d5db9cdabee33ac94973e8b3a5b3309b048ced0aa3bdd80b50eb30d6d3a2315becec171e10290cf4f3dde372d7bb95ce9c388fc40c47e5e0
|
7
|
+
data.tar.gz: fbecb528d144653a494ff613a046d9306f434e806e827914360fae42f7e801a04decb1f91f5a6f1d9a6b854bf2db3106dd29c9f5157ceca338b318cb2622d888
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
## 1.0.1
|
4
|
+
|
5
|
+
- Update libuv version to 1.50.0 (#18)
|
6
|
+
- Add Ruby 3.4 support (#17)
|
7
|
+
|
8
|
+
## 1.0.0
|
9
|
+
|
10
|
+
- Support for
|
11
|
+
- Ruby 3.1 or later
|
12
|
+
- Cassandra 3.0 or later
|
13
|
+
- Used libraries
|
14
|
+
- DataStax C/C++ Driver 2.17.1
|
15
|
+
- libuv 1.48.0
|
data/Gemfile
CHANGED
@@ -10,5 +10,8 @@ gem 'rake', '~> 13.0'
|
|
10
10
|
gem 'rake-compiler', '~> 1.2'
|
11
11
|
gem 'rbs', '~> 3.4'
|
12
12
|
gem 'rubocop', '~> 1.57'
|
13
|
-
gem 'rubocop-minitest', '~> 0.33
|
13
|
+
gem 'rubocop-minitest', '~> 0.33'
|
14
14
|
gem 'rubocop-performance', '~> 1.19'
|
15
|
+
gem 'rubocop-rake', '~> 0.6'
|
16
|
+
|
17
|
+
gem 'rubocop-on-rbs', '~> 0.2'
|
data/README.md
CHANGED
@@ -37,10 +37,12 @@ $ gem install ilios -- --with-libuv-dir=/path/to/libuv-installed-dir --with-cass
|
|
37
37
|
## Requirements
|
38
38
|
|
39
39
|
- cmake (in order to build the DataStax C/C++ Driver and libuv)
|
40
|
+
- C/C++ compiler
|
41
|
+
- install_name_tool (macOS only)
|
40
42
|
|
41
43
|
## Supported
|
42
44
|
|
43
|
-
- Ruby 3.
|
45
|
+
- Ruby 3.1 or later
|
44
46
|
- Cassandra 3.0 or later
|
45
47
|
- Linux and macOS platform
|
46
48
|
|
data/Rakefile
CHANGED
data/ext/ilios/extconf.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require File.expand_path('../../lib/ilios/version', __dir__)
|
4
|
+
require 'etc'
|
4
5
|
require 'fileutils'
|
5
6
|
require 'mini_portile2'
|
6
7
|
require 'mkmf'
|
@@ -8,23 +9,19 @@ require 'mkmf'
|
|
8
9
|
have_func('malloc_usable_size')
|
9
10
|
have_func('malloc_size')
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
return 1 if cores <= 0
|
26
|
-
|
27
|
-
cores >= 7 ? MAX_CORES : cores
|
12
|
+
def create_compile_flags_txt
|
13
|
+
cppflags = $CPPFLAGS.split
|
14
|
+
include_flags = cppflags.select { |flag| flag.start_with?('-I') }
|
15
|
+
define_flags = cppflags.select { |flag| flag.start_with?('-D') } + $defs
|
16
|
+
|
17
|
+
File.open('compile_flags.txt', 'w') do |f|
|
18
|
+
include_flags.each { |flag| f.puts(flag) }
|
19
|
+
f.puts("-I#{Dir.pwd}")
|
20
|
+
f.puts("-I#{RbConfig::CONFIG['rubyhdrdir']}")
|
21
|
+
f.puts("-I#{RbConfig::CONFIG['rubyhdrdir']}/ruby/backward")
|
22
|
+
f.puts("-I#{RbConfig::CONFIG['rubyarchhdrdir']}")
|
23
|
+
define_flags.each { |flag| f.puts(flag) }
|
24
|
+
end
|
28
25
|
end
|
29
26
|
|
30
27
|
module LibuvInstaller
|
@@ -45,7 +42,7 @@ module LibuvInstaller
|
|
45
42
|
|
46
43
|
def self.install_from_source
|
47
44
|
unless File.exist?(LIBUV_INSTALL_PATH)
|
48
|
-
libuv_recipe = LibuvRecipe.new('libuv', Ilios::LIBUV_VERSION, make_command: "make -j #{
|
45
|
+
libuv_recipe = LibuvRecipe.new('libuv', Ilios::LIBUV_VERSION, make_command: "make -j #{Etc.nprocessors}")
|
49
46
|
libuv_recipe.files << {
|
50
47
|
url: "https://github.com/libuv/libuv/archive/v#{Ilios::LIBUV_VERSION}.tar.gz"
|
51
48
|
}
|
@@ -78,7 +75,7 @@ module CassandraDriverInstaller
|
|
78
75
|
def initialize(name, version, **kwargs)
|
79
76
|
ENV['LIBUV_ROOT_DIR'] ||= LibuvInstaller.special_install_path
|
80
77
|
|
81
|
-
super
|
78
|
+
super
|
82
79
|
end
|
83
80
|
|
84
81
|
def configure_prefix
|
@@ -92,7 +89,7 @@ module CassandraDriverInstaller
|
|
92
89
|
|
93
90
|
def self.install_from_source
|
94
91
|
unless File.exist?(CASSANDRA_CPP_DRIVER_INSTALL_PATH)
|
95
|
-
cassandra_recipe = CassandraRecipe.new('cpp-driver', Ilios::CASSANDRA_CPP_DRIVER_VERSION, make_command: "make -j #{
|
92
|
+
cassandra_recipe = CassandraRecipe.new('cpp-driver', Ilios::CASSANDRA_CPP_DRIVER_VERSION, make_command: "make -j #{Etc.nprocessors}")
|
96
93
|
cassandra_recipe.files << {
|
97
94
|
url: "https://github.com/datastax/cpp-driver/archive/#{Ilios::CASSANDRA_CPP_DRIVER_VERSION}.tar.gz"
|
98
95
|
}
|
@@ -146,3 +143,4 @@ $CPPFLAGS += " #{ENV['CPPFLAGS']}"
|
|
146
143
|
$LDFLAGS += " #{ENV['LDFLAGS']}"
|
147
144
|
|
148
145
|
create_makefile('ilios')
|
146
|
+
create_compile_flags_txt
|
data/ext/ilios/statement.c
CHANGED
@@ -170,7 +170,7 @@ static VALUE statement_bind(VALUE self, VALUE hash)
|
|
170
170
|
}
|
171
171
|
|
172
172
|
/**
|
173
|
-
* Sets the statement's page size.
|
173
|
+
* Sets the statement's page size. The default is +10000+.
|
174
174
|
*
|
175
175
|
* @param page_size [Integer] A page size.
|
176
176
|
* @return [Cassandra::Statement] self.
|
data/ilios.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.description = 'Cassandra driver written by C language'
|
13
13
|
spec.homepage = 'https://github.com/Watson1978/ilios'
|
14
14
|
spec.license = 'MIT'
|
15
|
-
spec.required_ruby_version = '>= 3.
|
15
|
+
spec.required_ruby_version = '>= 3.1.0'
|
16
16
|
|
17
17
|
spec.requirements << 'cmake'
|
18
18
|
|
@@ -34,5 +34,5 @@ Gem::Specification.new do |spec|
|
|
34
34
|
spec.require_paths = ['lib']
|
35
35
|
spec.extensions << 'ext/ilios/extconf.rb'
|
36
36
|
|
37
|
-
spec.
|
37
|
+
spec.add_dependency('mini_portile2', '~> 2.8')
|
38
38
|
end
|
data/lib/ilios/version.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module Ilios
|
4
|
-
VERSION = '0.
|
4
|
+
VERSION = '1.0.1'
|
5
5
|
public_constant :VERSION
|
6
6
|
|
7
7
|
CASSANDRA_CPP_DRIVER_VERSION = '2.17.1'
|
8
8
|
public_constant :CASSANDRA_CPP_DRIVER_VERSION
|
9
9
|
|
10
|
-
LIBUV_VERSION = '1.
|
10
|
+
LIBUV_VERSION = '1.50.0'
|
11
11
|
public_constant :LIBUV_VERSION
|
12
12
|
end
|
data/sig/ilios.rbs
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ilios
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Watson
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: mini_portile2
|
@@ -33,6 +32,7 @@ extensions:
|
|
33
32
|
extra_rdoc_files: []
|
34
33
|
files:
|
35
34
|
- ".yardopts"
|
35
|
+
- CHANGELOG.md
|
36
36
|
- Gemfile
|
37
37
|
- LICENSE
|
38
38
|
- README.md
|
@@ -58,9 +58,8 @@ metadata:
|
|
58
58
|
homepage_uri: https://github.com/Watson1978/ilios
|
59
59
|
source_code_uri: https://github.com/Watson1978/ilios
|
60
60
|
bug_tracker_uri: https://github.com/Watson1978/ilios/issues
|
61
|
-
documentation_uri: https://www.rubydoc.info/gems/ilios/0.
|
61
|
+
documentation_uri: https://www.rubydoc.info/gems/ilios/1.0.1
|
62
62
|
rubygems_mfa_required: 'true'
|
63
|
-
post_install_message:
|
64
63
|
rdoc_options: []
|
65
64
|
require_paths:
|
66
65
|
- lib
|
@@ -68,7 +67,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
68
67
|
requirements:
|
69
68
|
- - ">="
|
70
69
|
- !ruby/object:Gem::Version
|
71
|
-
version: 3.
|
70
|
+
version: 3.1.0
|
72
71
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
72
|
requirements:
|
74
73
|
- - ">="
|
@@ -76,8 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
75
|
version: '0'
|
77
76
|
requirements:
|
78
77
|
- cmake
|
79
|
-
rubygems_version: 3.
|
80
|
-
signing_key:
|
78
|
+
rubygems_version: 3.6.7
|
81
79
|
specification_version: 4
|
82
80
|
summary: Cassandra driver written by C language
|
83
81
|
test_files: []
|