dartsclone 0.2.3 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb26ccf4db7270207b1243ba5d9ceb92ab0aafb9233474aa24f5aa22f89115eb
4
- data.tar.gz: 16aa57d9ae6af8056c410516647ef6753516ba06a9a6db36701386eb08409156
3
+ metadata.gz: 1da00e4a34b27cfb6c92d84becee7272ae1750435162fc54569ac56eac480e3a
4
+ data.tar.gz: b4eef44bc5a1bed3e90a2feb672583042c06c663546753867281f470f16a8295
5
5
  SHA512:
6
- metadata.gz: 1c3f7e648d54c76a72d8c1735cc1a1f623aeca0c04efff9386ff7ab1fc2607947e1308843d8480dcfeab283f695ca22f8bf1f07cfdf2f8c46854c235ed454587
7
- data.tar.gz: 963c8b038ba62948ab3b77f1ded8b16ce21ea2663194ba6320008c85a2151d460230e93329ae8c2efa4d886e88dae4450860237afde242ae2ba8ec6124558bf1
6
+ metadata.gz: 1a56790440c9bbd25ade6b59b5998d5201e119e92750afc659bc673c652e127d2edb19700de238ab6f03edc9e7272c300a7a995b49157ca952347c7ed1017e8b
7
+ data.tar.gz: 542dc9c97512fc29b2cfb54366370aca0105c724aa6f1a230071615a07667e1e2956089b966241fc936cfafa1faf6e1d6defe105c788e4fe1e30ead7a77993d4
@@ -8,7 +8,7 @@ jobs:
8
8
  strategy:
9
9
  fail-fast: false
10
10
  matrix:
11
- ruby: [ '2.5', '2.6', '2.7', '3.0' ]
11
+ ruby: [ '2.6', '2.7', '3.0' ]
12
12
  steps:
13
13
  - uses: actions/checkout@v2
14
14
  - name: Set up Ruby ${{ matrix.ruby }}
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.3.0
2
+ - Add type declaration file: sig/dartsclone.rbs
3
+
1
4
  ## 0.2.3
2
5
  - Fix some codes and configulation files.
3
6
 
data/Gemfile CHANGED
@@ -6,3 +6,5 @@ gemspec
6
6
  gem "rake", "~> 13.0"
7
7
  gem "rake-compiler"
8
8
  gem "rspec", "~> 3.0"
9
+ gem "rbs", "~> 1.2"
10
+ gem "steep", "~> 0.44"
data/Steepfile ADDED
@@ -0,0 +1,20 @@
1
+ target :lib do
2
+ signature "sig"
3
+ #
4
+ check "lib" # Directory name
5
+ # check "Gemfile" # File name
6
+ # check "app/models/**/*.rb" # Glob
7
+ # # ignore "lib/templates/*.rb"
8
+ #
9
+ # # library "pathname", "set" # Standard libraries
10
+ # # library "strong_json" # Gems
11
+ end
12
+
13
+ # target :spec do
14
+ # signature "sig", "sig-private"
15
+ #
16
+ # check "spec"
17
+ #
18
+ # # library "pathname", "set" # Standard libraries
19
+ # # library "rspec"
20
+ # end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DartsClone
4
- VERSION = '0.2.3'
4
+ VERSION = '0.3.0'
5
5
  DARTS_CLONE_VERSION = '0.32'
6
6
  end
@@ -0,0 +1,20 @@
1
+ module DartsClone
2
+ VERSION: String
3
+ DARTS_CLONE_VERSION: String
4
+
5
+ class DoubleArray
6
+ def initialize: () -> void
7
+ def build: (Array[String] keys, ?values: Array[Integer]? values) -> bool
8
+ def open: (String filename) -> bool
9
+ def save: (String filename, ?mode: String mode, ?offset: Integer offset) -> bool
10
+ def get_array: () -> String
11
+ def set_array: (String str) -> nil
12
+ def exact_match_search: (String key, ?length: Integer length, ?node_pos: Integer node_pos) -> Integer
13
+ def common_prefix_search: (String key, ?max_num_results: Integer? max_num_results, ?length: Integer length, ?node_pos: Integer node_pos) -> [Array[String], Array[Integer]]
14
+ def traverse: (String key, ?node_pos: Integer? node_pos, ?key_pos: Integer? key_pos, ?length: Integer? length) -> { value: Integer, node_pos: Integer, key_pos: Integer }
15
+ def unit_size: () -> Integer
16
+ def size: () -> Integer
17
+ def total_size: () -> Integer
18
+ def clear: () -> nil
19
+ end
20
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dartsclone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-03 00:00:00.000000000 Z
11
+ date: 2021-05-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Darts-clone.rb is a Ruby binding for the Darts-clone.
14
14
  email:
@@ -27,6 +27,7 @@ files:
27
27
  - LICENSE.txt
28
28
  - README.md
29
29
  - Rakefile
30
+ - Steepfile
30
31
  - dartsclone.gemspec
31
32
  - ext/dartsclone/dartscloneext.cpp
32
33
  - ext/dartsclone/dartscloneext.hpp
@@ -35,6 +36,7 @@ files:
35
36
  - ext/dartsclone/src/darts.h
36
37
  - lib/dartsclone.rb
37
38
  - lib/dartsclone/version.rb
39
+ - sig/dartsclone.rbs
38
40
  homepage: https://github.com/yoshoku/darts-clone.rb
39
41
  licenses:
40
42
  - BSD-2-Clause
@@ -43,7 +45,7 @@ metadata:
43
45
  source_code_uri: https://github.com/yoshoku/darts-clone.rb
44
46
  changelog_uri: https://github.com/yoshoku/darts-clone.rb/blob/master/CHANGELOG.md
45
47
  documentation_uri: https://github.com/yoshoku/darts-clone.rb#usage
46
- post_install_message:
48
+ post_install_message:
47
49
  rdoc_options: []
48
50
  require_paths:
49
51
  - lib
@@ -58,8 +60,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
60
  - !ruby/object:Gem::Version
59
61
  version: '0'
60
62
  requirements: []
61
- rubygems_version: 3.2.7
62
- signing_key:
63
+ rubygems_version: 3.1.6
64
+ signing_key:
63
65
  specification_version: 4
64
66
  summary: Ruby binding for the Darts-clone.
65
67
  test_files: []