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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 588ca986b6f08698e828e9b82ca407efe7ed9cb53bcf88e4bb7d5a3079c543bb
4
- data.tar.gz: 6f40888887ed889acf0bb4fe0b71aae53e566453668dcea3c983fc5fddfdb11c
3
+ metadata.gz: 1b33179262aa907817cbbf65cb0980a19bea740bc3bda9ab569a10fd49544e25
4
+ data.tar.gz: 25b43d46d3e1f2c9ceb846f6d09590d600a2fea2a9bad02cae930cc457494105
5
5
  SHA512:
6
- metadata.gz: de181ba238344b2eb73143653a63ecd67d53a1920f5016f88b505ec4bc0ad9c8f8461e7bc15dc66f19ac53fe01e840db470a8e7128e48fd33d491b93e73210d2
7
- data.tar.gz: a4dab5cb1ca1ee2e760580df3d12efa101e176dcf0bf5c03f0fc7bab6bedef08f557a6175eaffc5080e0c8b7c6b75e01b78d406aef6c9b9bc65c7095f6cb1b65
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. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
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
 
@@ -1,6 +1,9 @@
1
1
  module Sequel
2
2
  module XTDB
3
3
  module DatabaseMethods
4
+ def database_type
5
+ :xtdb
6
+ end
4
7
  end
5
8
 
6
9
  module DatasetMethods
@@ -1,4 +1,4 @@
1
- require_relative 'shared/xtdb'
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
@@ -2,6 +2,7 @@
2
2
 
3
3
  module Sequel
4
4
  module XTDB
5
- VERSION = "0.1.0"
5
+ # NOTE when releasing the git-tag will replace the version below
6
+ VERSION = "0.2.1"
6
7
  end
7
8
  end
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.0
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.23
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.