bitcache 0.0.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 35cfd385199f0be6ca5e907e294ce60e6e5e45aa24c364c3587f83f3ca013266
4
+ data.tar.gz: fd2471edc3cd5b613b4797695dce68776f6256c4de752dfec9d0deab3f42ff5b
5
+ SHA512:
6
+ metadata.gz: 4916e3550b56edd25cb066bc6401d1a030c934c6ed4301a2cc9e34358ef1e424648774e43bea14bda4467ba4b1c3fb2b61c6f3e219fe9049f1b21d9d24907c8c
7
+ data.tar.gz: 3c5e1247e3803ddb285b9ea90ec253e49e7badc064655d74aefe9bfa93a45f701378a5152210d9cd23e8a3851aa8c26b66b0057034f433934c8fc7fc50e72e2d
data/AUTHORS ADDED
@@ -0,0 +1 @@
1
+ * Arto Bendiken <arto@bendiken.net>
data/CHANGES.md ADDED
@@ -0,0 +1,8 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## 0.0.0 - 2026-07-11
data/README.md ADDED
@@ -0,0 +1,55 @@
1
+ # Bitcache.rb: Bitcache for Ruby
2
+
3
+ [![License](https://img.shields.io/badge/license-Public%20Domain-blue.svg)](https://unlicense.org)
4
+ [![Compatibility](https://img.shields.io/badge/ruby-4.0%2B-blue)](https://endoflife.date/ruby)
5
+ [![Package on RubyGems](https://img.shields.io/gem/v/bitcache)](https://rubygems.org/gems/bitcache)
6
+ [![Documentation](https://img.shields.io/badge/rubydoc-latest-blue)](https://rubydoc.info/gems/bitcache)
7
+
8
+ **Bitcache is a distributed content-addressable storage (CAS) system.**
9
+
10
+ <sub>
11
+
12
+ [[Features](#-features)] |
13
+ [[Prerequisites](#%EF%B8%8F-prerequisites)] |
14
+ [[Installation](#%EF%B8%8F-installation)] |
15
+ [[Examples](#-examples)] |
16
+ [[Reference](#-reference)] |
17
+ [[Development](#%E2%80%8D-development)]
18
+
19
+ </sub>
20
+
21
+ <br/>
22
+
23
+ ## ✨ Features
24
+
25
+ - Available both as the command-line tool [`bitcache`] and as a polyglot library.
26
+ - Polyglot software also available for Dart, Python, Rust, and TypeScript.
27
+ - Cuts red tape: 100% free and unencumbered public domain software.
28
+
29
+ ## 🛠️ Prerequisites
30
+
31
+ - [Ruby] 4.0+
32
+
33
+ ## ⬇️ Installation
34
+
35
+ ## 👉 Examples
36
+
37
+ ## 📚 Reference
38
+
39
+ ## 👨‍💻 Development
40
+
41
+ ```bash
42
+ git clone https://github.com/artob/bitcache.git
43
+ ```
44
+
45
+ ---
46
+
47
+ [![Share on X](https://img.shields.io/badge/share%20on-x-03A9F4?logo=x)](https://x.com/intent/post?url=https%3A%2F%2Fgithub.com%2Fartob%2Fbitcache&text=Bitcache)
48
+ [![Share on Reddit](https://img.shields.io/badge/share%20on-reddit-red?logo=reddit)](https://reddit.com/submit?url=https%3A%2F%2Fgithub.com%2Fartob%2Fbitcache&title=Bitcache)
49
+ [![Share on Hacker News](https://img.shields.io/badge/share%20on-hn-orange?logo=ycombinator)](https://news.ycombinator.com/submitlink?u=https%3A%2F%2Fgithub.com%2Fartob%2Fbitcache&t=Bitcache)
50
+ [![Share on Facebook](https://img.shields.io/badge/share%20on-fb-1976D2?logo=facebook)](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fgithub.com%2Fartob%2Fbitcache)
51
+ [![Share on LinkedIn](https://img.shields.io/badge/share%20on-linkedin-3949AB?logo=linkedin)](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fgithub.com%2Fartob%2Fbitcache)
52
+
53
+ [`bitcache`]: https://github.com/artob/bitcache#command-line-interface
54
+
55
+ [Ruby]: https://ruby-lang.org
data/UNLICENSE ADDED
@@ -0,0 +1,24 @@
1
+ This is free and unencumbered software released into the public domain.
2
+
3
+ Anyone is free to copy, modify, publish, use, compile, sell, or
4
+ distribute this software, either in source code form or as a compiled
5
+ binary, for any purpose, commercial or non-commercial, and by any
6
+ means.
7
+
8
+ In jurisdictions that recognize copyright laws, the author or authors
9
+ of this software dedicate any and all copyright interest in the
10
+ software to the public domain. We make this dedication for the benefit
11
+ of the public at large and to the detriment of our heirs and
12
+ successors. We intend this dedication to be an overt act of
13
+ relinquishment in perpetuity of all present and future rights to this
14
+ software under copyright law.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
23
+
24
+ For more information, please refer to <https://unlicense.org/>
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.2
@@ -0,0 +1,29 @@
1
+ # See: https://doc.rust-lang.org/cargo/reference/manifest.html
2
+
3
+ [package]
4
+ name = "bitcache"
5
+ version = "0.0.0"
6
+ edition = "2024"
7
+ #rust-version = "1.85"
8
+ publish = false
9
+
10
+ [features]
11
+ default = ["all", "std"]
12
+ all = []
13
+ alloc = ["distrib/alloc"]
14
+ std = ["alloc", "distrib/std"]
15
+ unstable = []
16
+
17
+ [lib]
18
+ crate-type = ["cdylib"]
19
+
20
+ [dependencies]
21
+ distrib = { version = "0.0.1", default-features = false, features = ["export", "ruby"] }
22
+ bitcache_rs = { package = "bitcache", version = "0.0.0" }
23
+ rb-sys = { version = "0.9", features = ["stable-api-compiled-fallback"] }
24
+
25
+ [dev-dependencies]
26
+ rb-sys-test-helpers = "0.3"
27
+
28
+ [build-dependencies]
29
+ distrib-build = { version = "0.0.1", default-features = false, features = ["std", "ruby"] }
@@ -0,0 +1,6 @@
1
+ // This is free and unencumbered software released into the public domain.
2
+
3
+ pub fn main() -> Result<(), Box<dyn std::error::Error>> {
4
+ let _ = distrib_build::ruby();
5
+ Ok(())
6
+ }
@@ -0,0 +1,4 @@
1
+ require 'mkmf'
2
+ require 'rb_sys/mkmf'
3
+
4
+ create_rust_makefile('bitcache/bitcache')
@@ -0,0 +1,15 @@
1
+ // This is free and unencumbered software released into the public domain.
2
+
3
+ use distrib::ruby::magnus;
4
+ use magnus::{Error, Ruby, function};
5
+
6
+ #[distrib::export]
7
+ pub fn square(n: i64) -> i64 {
8
+ n * n
9
+ }
10
+
11
+ #[magnus::init]
12
+ fn init(ruby: &Ruby) -> Result<(), Error> {
13
+ ruby.define_global_function("square", function!(square, 1));
14
+ Ok(())
15
+ }
@@ -0,0 +1,10 @@
1
+ # This is free and unencumbered software released into the public domain.
2
+
3
+ module Bitcache; end
4
+ module Bitcache::VERSION; end
5
+
6
+ module Bitcache::VERSION
7
+ FILE = File.expand_path('../../../VERSION', __FILE__)
8
+ STRING = File.read(FILE).chomp.freeze
9
+ MAJOR, MINOR, PATCH, EXTRA = STRING.split('.').map(&:freeze)
10
+ end # Bitcache::VERSION
data/lib/bitcache.rb ADDED
@@ -0,0 +1,7 @@
1
+ # This is free and unencumbered software released into the public domain.
2
+
3
+ ##
4
+ # Bitcache is a distributed content-addressable storage (CAS) system.
5
+ module Bitcache; end
6
+
7
+ require_relative 'bitcache/version'
metadata ADDED
@@ -0,0 +1,141 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bitcache
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Arto Bendiken
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 2026-08-21 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: rb_sys
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '0'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '0'
26
+ - !ruby/object:Gem::Dependency
27
+ name: distrib
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ - !ruby/object:Gem::Dependency
41
+ name: rake
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '13'
47
+ type: :development
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '13'
54
+ - !ruby/object:Gem::Dependency
55
+ name: rake-compiler
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '1.3'
61
+ type: :development
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '1.3'
68
+ - !ruby/object:Gem::Dependency
69
+ name: rspec
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '3.13'
75
+ type: :development
76
+ prerelease: false
77
+ version_requirements: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '3.13'
82
+ - !ruby/object:Gem::Dependency
83
+ name: yard
84
+ requirement: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '0.9'
89
+ type: :development
90
+ prerelease: false
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '0.9'
96
+ description: Bitcache is a distributed content-addressable storage (CAS) system.
97
+ email:
98
+ - arto@bendiken.net
99
+ executables: []
100
+ extensions:
101
+ - ext/bitcache/extconf.rb
102
+ extra_rdoc_files: []
103
+ files:
104
+ - AUTHORS
105
+ - CHANGES.md
106
+ - README.md
107
+ - UNLICENSE
108
+ - VERSION
109
+ - ext/bitcache/Cargo.toml
110
+ - ext/bitcache/build.rs
111
+ - ext/bitcache/extconf.rb
112
+ - ext/bitcache/src/lib.rs
113
+ - lib/bitcache.rb
114
+ - lib/bitcache/version.rb
115
+ homepage: https://bitcache.dev
116
+ licenses:
117
+ - Unlicense
118
+ metadata:
119
+ source_code_uri: https://github.com/artob/bitcache
120
+ bug_tracker_uri: https://github.com/artob/bitcache/issues
121
+ changelog_uri: https://github.com/artob/bitcache/blob/master/CHANGES.md
122
+ documentation_uri: https://rubydoc.info/gems/bitcache
123
+ homepage_uri: https://bitcache.dev
124
+ rdoc_options: []
125
+ require_paths:
126
+ - lib
127
+ required_ruby_version: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '4.0'
132
+ required_rubygems_version: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: '0'
137
+ requirements: []
138
+ rubygems_version: 4.0.11
139
+ specification_version: 4
140
+ summary: Bitcache for Ruby
141
+ test_files: []