replitdb 0.1.0 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 85b9116f38fc9abf5a7e1dfa3ecc9c5b1ee6798f6787dd82375bbd6c2a1f99e3
4
- data.tar.gz: d5aa61b4d2e16041440877da45a514425e8c4e8518054341466b5f81ae25dc7c
3
+ metadata.gz: 5e9d97ac82f22776b2e88dfcdb9cb6854639bdc5081f4b2ccb89b483d660d17e
4
+ data.tar.gz: 6a6e1b2eed63ca9b257f9fe24b0a43ff01453083f68588fcab5aa16742307058
5
5
  SHA512:
6
- metadata.gz: cf823b4862e78462514b9ce88a6630961578e0db397864e35a04f86334bb72ea9cd0d5bb1ec54af223b5d3013fe8540c21e61dab88245b8b8d472a02e962d133
7
- data.tar.gz: 5c13c7c17d398f857158a1a7afeeb176ec6dcc072c833a0fdcb6be1f9ba9ab1f5327b40e4597de031490a87c38f923c780bf109987206b50ea3520c7d3f1650a
6
+ metadata.gz: e2a5a132095971b80b164e94bb895af69f3412272951bc64c9d0930a69a64bca6b23a8fa4da640238695a7449eaa73c66e7ded570cff4612d9972d718390af48
7
+ data.tar.gz: c79367ef0b5a046229a6d314a29af13711e39f740200264844e48565b3d9060364e3b8c176c4aa9e8998bcd50bdda15057b403b2b80bfbd162e5bc9049692d6b
data/CHANGELOG.md CHANGED
@@ -6,10 +6,27 @@ The format is based on [Keep a Changelog][Keep a Changelog] and this project adh
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ - Nothing at the moment.
10
+
9
11
  ---
10
12
 
11
13
  ## [Released]
12
14
 
15
+ ## [0.1.0] - 2021-05-02
16
+
17
+ ### Added
18
+
19
+ - All the default methods:
20
+ - `get(key)`
21
+ - `set(key, value)`
22
+ - `delete(key)`
23
+ - `list(prefix)`
24
+ - The extra methods from the official Node.js client:
25
+ - `empty()`
26
+ - `get_all()`
27
+ - `set_all(hash)`
28
+ - `delete_multiple(keys)`
29
+
13
30
  ---
14
31
 
15
32
  <!-- Links -->
@@ -17,7 +34,7 @@ The format is based on [Keep a Changelog][Keep a Changelog] and this project adh
17
34
  [Semantic Versioning]: https://semver.org/
18
35
 
19
36
  <!-- Versions -->
20
- [Unreleased]: https://github.com/janlindblom/ruby-replitdb/compare/v1.0.0...HEAD
37
+ [Unreleased]: https://github.com/janlindblom/ruby-replitdb/compare/v0.1.0...HEAD
21
38
  [Released]: https://github.com/janlindblom/ruby-replitdb/releases
22
- [0.0.2]: https://github.com/janlindblom/ruby-replitdb/compare/v0.0.1..v0.0.2
23
- [0.0.1]: https://github.com/janlindblom/ruby-replitdb/releases/v0.0.1
39
+ [0.1.1]: https://github.com/janlindblom/ruby-replitdb/compare/v0.1.0..v0.1.1
40
+ [0.1.0]: https://github.com/janlindblom/ruby-replitdb/releases/tag/v0.1.0
data/lib/replit.rb CHANGED
@@ -6,7 +6,7 @@ require_relative "replit/database"
6
6
  # The Replit module.
7
7
  #
8
8
  # @author Jan Lindblom <janlindblom@fastmail.fm>
9
- # @version 0.1.0
9
+ # @version 0.1.1
10
10
  #
11
11
  module Replit
12
12
  end
@@ -3,6 +3,6 @@
3
3
  module Replit
4
4
  module Database
5
5
  # @return [String] Current version.
6
- VERSION = "0.1.0"
6
+ VERSION = "0.1.1"
7
7
  end
8
8
  end
data/replitdb.gemspec CHANGED
@@ -20,7 +20,10 @@ Gem::Specification.new do |spec|
20
20
  spec.metadata["changelog_uri"] = "https://github.com/janlindblom/ruby-replitdb/blob/main/CHANGELOG.md"
21
21
 
22
22
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
23
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features|.github)/}) }
23
+ `git ls-files -z`.split("\x0").reject { |f|
24
+ f.match(%r{\A(?:test|spec|features|.github|bin)/}) ||
25
+ f.match(%r{\A(?:.replit|Rakefile|.rubocop.yml|.gitignore|.editorconfig)})
26
+ }
24
27
  end
25
28
  spec.bindir = "exe"
26
29
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: replitdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Lindblom
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-02 00:00:00.000000000 Z
11
+ date: 2021-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -115,19 +115,12 @@ executables: []
115
115
  extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
- - ".editorconfig"
119
- - ".gitignore"
120
- - ".replit"
121
- - ".rubocop.yml"
122
118
  - CHANGELOG.md
123
119
  - CODE_OF_CONDUCT.md
124
120
  - Gemfile
125
121
  - Gemfile.lock
126
122
  - LICENSE.txt
127
123
  - README.md
128
- - Rakefile
129
- - bin/console
130
- - bin/setup
131
124
  - lib/replit.rb
132
125
  - lib/replit/database.rb
133
126
  - lib/replit/database/client.rb
data/.editorconfig DELETED
@@ -1,11 +0,0 @@
1
- # EditorConfig is awesome: https://EditorConfig.org
2
-
3
- # top-most EditorConfig file
4
- root = true
5
-
6
- [*]
7
- indent_style = space
8
- indent_size = 2
9
- charset = utf-8
10
- trim_trailing_whitespace = true
11
- insert_final_newline = true
data/.gitignore DELETED
@@ -1,8 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
data/.replit DELETED
@@ -1,2 +0,0 @@
1
- language = "ruby"
2
- run = "bundle exec rake"
data/.rubocop.yml DELETED
@@ -1,29 +0,0 @@
1
- require: rubocop-rake
2
-
3
- AllCops:
4
- TargetRubyVersion: 2.5
5
- NewCops: enable
6
-
7
- Style/StringLiterals:
8
- Enabled: true
9
- EnforcedStyle: double_quotes
10
-
11
- Style/StringLiteralsInInterpolation:
12
- Enabled: true
13
- EnforcedStyle: double_quotes
14
-
15
- Layout/EndOfLine:
16
- Enabled: false
17
-
18
- Naming/AccessorMethodName:
19
- Enabled: false
20
-
21
- Lint/ScriptPermission:
22
- Enabled: false
23
-
24
- Layout/LineLength:
25
- Max: 120
26
-
27
- Lint/SuppressedException:
28
- Exclude:
29
- - Rakefile
data/Rakefile DELETED
@@ -1,21 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
-
5
- begin
6
- require "rubocop/rake_task"
7
- require "yard"
8
- require "rspec/core/rake_task"
9
-
10
- RSpec::Core::RakeTask.new(:spec)
11
-
12
- RuboCop::RakeTask.new
13
-
14
- YARD::Rake::YardocTask.new do |t|
15
- t.files = ["lib/**/*.rb", "spec/**/*.rb"]
16
- t.stats_options = ["--list-undoc"]
17
- end
18
-
19
- task default: :rubocop
20
- rescue LoadError
21
- end
data/bin/console DELETED
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require "bundler/setup"
5
- require "replit/database"
6
-
7
- # You can add fixtures and/or initialization code here to make experimenting
8
- # with your gem easier. You can also use a different console, if you like.
9
-
10
- # (If you use this, don't forget to add pry to your Gemfile!)
11
- # require "pry"
12
- # Pry.start
13
-
14
- require "irb"
15
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here