rusty_lru 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -0
- data/CHANGELOG.md +10 -3
- data/Cargo.toml +1 -1
- data/README.md +2 -1
- data/lib/rusty_lru/version.rb +1 -1
- data/rusty_lru.gemspec +6 -2
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9399a03cbd7053c84f2ae56bb4946a48f1ea440ee47c718bfa7ce83801cfe4a7
|
4
|
+
data.tar.gz: a3e939c3f19dba442aab8a6f18f6db0f19ab73171939d08acc8f9cf9869649f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 187ddb3e30329533df0a14ab7de078aac83cba4cbd34c2990004c04c7f0949088b079b878aaaa91bfa1f002331263c5d6fc987bf14954e1fa75d9f502943e52a
|
7
|
+
data.tar.gz: e2b06a2dd7ce7ab705065e473ca839964e764b99cb5e5a28d0ed803595fc7e14d7e9bd7896398e7ae782ed6f210c1579391fb4b9a999f5a4990ff5fec886b7e6
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -4,11 +4,18 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
-
## [
|
7
|
+
## [v0.1.1] - 2019-08-30
|
8
|
+
### Changed
|
9
|
+
- Just an update to the README and the gemspec.
|
10
|
+
|
11
|
+
## [v0.1.0] - 2019-08-29
|
8
12
|
### Added
|
9
13
|
- Implement basic Hash-like functionality by using
|
10
14
|
[rutie](https://rubygems.org/gems/rutie) to wrap the
|
11
15
|
[lru](https://crates.io/crates/lru) crate.
|
12
|
-
- RSpec tests.
|
16
|
+
- [RSpec](http://rspec.info/) tests.
|
17
|
+
- [YARD](https://yardoc.org/) docs.
|
18
|
+
- [Rubocop](https://www.rubocop.org/).
|
13
19
|
|
14
|
-
[
|
20
|
+
[v0.1.1]: https://github.com/asppsa/rusty_lru/compare/v0.1.0...v0.1.1
|
21
|
+
[v0.1.0]: https://github.com/asppsa/rusty_lru/releases/tag/v0.1.0
|
data/Cargo.toml
CHANGED
data/README.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
This gem provides an [LRU
|
6
6
|
cache](https://en.wikipedia.org/wiki/Cache_replacement_policies#Least_recently_used_(LRU))
|
7
7
|
for Ruby. It uses [Rutie](https://rubygems.org/gems/rutie) to wrap the
|
8
|
-
[Rust](https://rust-lang.org/)
|
8
|
+
[Rust](https://rust-lang.org/) [lru](https://crates.io/crates/lru) crate.
|
9
9
|
|
10
10
|
From a Ruby perspective, the API is close to that of the `Hash` class. It
|
11
11
|
differs in that it will never grow beyond a capped number of key-value pairs,
|
@@ -40,6 +40,7 @@ cache moves it to the top of the list.
|
|
40
40
|
|
41
41
|
Comprehensive documentation is available online:
|
42
42
|
|
43
|
+
- [Latest release](https://rubydoc.info/gems/rusty_lru)
|
43
44
|
- [Bleeding edge](https://rubydoc.info/github/asppsa/rusty_lru/master)
|
44
45
|
|
45
46
|
For the impatient, here is an example of basic usage:
|
data/lib/rusty_lru/version.rb
CHANGED
data/rusty_lru.gemspec
CHANGED
@@ -9,13 +9,17 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.email = ['me@asph.dev']
|
10
10
|
|
11
11
|
spec.summary = 'An LRU cache implemented in Rust'
|
12
|
-
spec.description =
|
12
|
+
spec.description = <<-DESC
|
13
|
+
This gem provides an LRU cache with an interface close to Hash. It uses Rutie
|
14
|
+
to wrap the Rust 'lru' crate.
|
15
|
+
DESC
|
13
16
|
spec.homepage = 'https://github.com/asppsa/rusty_lru'
|
14
17
|
spec.license = 'Apache-2.0'
|
15
18
|
|
19
|
+
spec.metadata['changelog_uri'] = 'https://github.com/asppsa/rusty_lru/blob/master/CHANGELOG.md'
|
20
|
+
spec.metadata['documentation_uri'] = 'https://rubydoc.info/gems/rusty_lru'
|
16
21
|
spec.metadata['homepage_uri'] = spec.homepage
|
17
22
|
spec.metadata['source_code_uri'] = 'https://github.com/asppsa/rusty_lru.git'
|
18
|
-
spec.metadata['changelog_uri'] = 'https://github.com/asppsa/rusty_lru/blob/master/CHANGELOG.md'
|
19
23
|
|
20
24
|
# Specify which files should be added to the gem when it is released.
|
21
25
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rusty_lru
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alastair Pharo
|
@@ -94,7 +94,9 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 0.74.0
|
97
|
-
description:
|
97
|
+
description: |2
|
98
|
+
This gem provides an LRU cache with an interface close to Hash. It uses Rutie
|
99
|
+
to wrap the Rust 'lru' crate.
|
98
100
|
email:
|
99
101
|
- me@asph.dev
|
100
102
|
executables: []
|
@@ -124,9 +126,10 @@ homepage: https://github.com/asppsa/rusty_lru
|
|
124
126
|
licenses:
|
125
127
|
- Apache-2.0
|
126
128
|
metadata:
|
129
|
+
changelog_uri: https://github.com/asppsa/rusty_lru/blob/master/CHANGELOG.md
|
130
|
+
documentation_uri: https://rubydoc.info/gems/rusty_lru
|
127
131
|
homepage_uri: https://github.com/asppsa/rusty_lru
|
128
132
|
source_code_uri: https://github.com/asppsa/rusty_lru.git
|
129
|
-
changelog_uri: https://github.com/asppsa/rusty_lru/blob/master/CHANGELOG.md
|
130
133
|
post_install_message:
|
131
134
|
rdoc_options: []
|
132
135
|
require_paths:
|