sequel-xtdb 0.1.0 → 0.2.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/README.md +3 -1
- data/lib/sequel/adapters/shared/xtdb.rb +3 -0
- data/lib/sequel/adapters/xtdb.rb +5 -1
- data/lib/sequel/xtdb/version.rb +2 -1
- data/rakelib/gem.rake +23 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b33179262aa907817cbbf65cb0980a19bea740bc3bda9ab569a10fd49544e25
|
4
|
+
data.tar.gz: 25b43d46d3e1f2c9ceb846f6d09590d600a2fea2a9bad02cae930cc457494105
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5603a63bd7d20916755c3e4375ed4a5162832925c3615f0ac72459e1f37d46f3bd32a96b686cc1e09075f48c4cc766582750eb6e7b4c8e0961bb8c621c10eaed
|
7
|
+
data.tar.gz: 418b300f8ab58dbeda2b786953911eed8ddece9885132833f0b328e5f551ac79ca81e18751b5ab6668b9ca5e40b483b51ab5237a4630f581f858d5c325c111f6
|
data/README.md
CHANGED
@@ -40,7 +40,9 @@ Currently it's essentially the postgres-adapter with support for a xtdb-scheme u
|
|
40
40
|
|
41
41
|
## Development
|
42
42
|
|
43
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests.
|
43
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests.
|
44
|
+
|
45
|
+
You can also run `bin/console [xtdb-url]` for an interactive prompt that will allow you to experiment. The script will pick up on env-var `XTDB_URL`, though the argument takes precedence.
|
44
46
|
|
45
47
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
46
48
|
|
data/lib/sequel/adapters/xtdb.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require_relative
|
1
|
+
require_relative "shared/xtdb"
|
2
2
|
require "sequel/adapters/postgres"
|
3
3
|
|
4
4
|
module Sequel
|
@@ -15,6 +15,10 @@ module Sequel
|
|
15
15
|
@opts[:force_standard_strings] = false
|
16
16
|
super
|
17
17
|
end
|
18
|
+
|
19
|
+
def dataset_class_default
|
20
|
+
Dataset
|
21
|
+
end
|
18
22
|
end
|
19
23
|
|
20
24
|
class Dataset < Sequel::Postgres::Dataset
|
data/lib/sequel/xtdb/version.rb
CHANGED
data/rakelib/gem.rake
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
namespace :gem do
|
2
|
+
task "write_version", [:version] do |_task, args|
|
3
|
+
if args[:version]
|
4
|
+
version = args[:version].split("=").last
|
5
|
+
version_file = File.expand_path("../../lib/sequel/xtdb/version.rb", __FILE__)
|
6
|
+
|
7
|
+
system(<<~CMD, exception: true)
|
8
|
+
ruby -pi -e 'gsub(/VERSION = ".*"/, %{VERSION = "#{version}"})' #{version_file}
|
9
|
+
CMD
|
10
|
+
Bundler.ui.confirm "Version #{version} written to #{version_file}."
|
11
|
+
else
|
12
|
+
Bundler.ui.warn "No version provided, keeping version.rb as is."
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
desc "Build [version]"
|
17
|
+
task "build", [:version] => ["write_version", "build"] do
|
18
|
+
end
|
19
|
+
|
20
|
+
desc "Build and push [version] to rubygems"
|
21
|
+
task "release", [:version] => ["gem:build", "release:rubygem_push"] do
|
22
|
+
end
|
23
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sequel-xtdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gert Goet
|
@@ -55,6 +55,7 @@ files:
|
|
55
55
|
- lib/sequel/adapters/xtdb.rb
|
56
56
|
- lib/sequel/xtdb.rb
|
57
57
|
- lib/sequel/xtdb/version.rb
|
58
|
+
- rakelib/gem.rake
|
58
59
|
- sig/sequel/xtdb.rbs
|
59
60
|
homepage: https://github.com/eval/sequel-xtdb
|
60
61
|
licenses:
|
@@ -78,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
79
|
- !ruby/object:Gem::Version
|
79
80
|
version: '0'
|
80
81
|
requirements: []
|
81
|
-
rubygems_version: 3.5.
|
82
|
+
rubygems_version: 3.5.22
|
82
83
|
signing_key:
|
83
84
|
specification_version: 4
|
84
85
|
summary: Adapter to connect to XTDB v2 using Sequel.
|