Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [ '3.1.2' ]
ruby: [ '3.3.3' ]
gemfile: [ 'Gemfile', 'Gemfile.scenic' ]
database:
- 'pg17-ts2.17-all'
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
timescaledb (0.3.1)
timescaledb (0.3.2)
activerecord
activesupport
ostruct
Expand Down Expand Up @@ -34,7 +34,7 @@ GEM
method_source (1.0.0)
minitest (5.18.0)
ostruct (0.6.1)
pg (1.5.8)
pg (1.5.9)
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
Expand Down
189 changes: 119 additions & 70 deletions Gemfile.scenic.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
timescaledb (0.3.1)
timescaledb (0.3.2)
activerecord
activesupport
ostruct
Expand All @@ -10,97 +10,146 @@ PATH
GEM
remote: https://rubygems.org/
specs:
actionpack (6.1.4.1)
actionview (= 6.1.4.1)
activesupport (= 6.1.4.1)
rack (~> 2.0, >= 2.0.9)
actionpack (8.0.2)
actionview (= 8.0.2)
activesupport (= 8.0.2)
nokogiri (>= 1.8.5)
rack (>= 2.2.4)
rack-session (>= 1.0.1)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.2.0)
actionview (6.1.4.1)
activesupport (= 6.1.4.1)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
useragent (~> 0.16)
actionview (8.0.2)
activesupport (= 8.0.2)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.1, >= 1.2.0)
activemodel (6.1.4.1)
activesupport (= 6.1.4.1)
activerecord (6.1.4.1)
activemodel (= 6.1.4.1)
activesupport (= 6.1.4.1)
activesupport (6.1.4.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
activemodel (8.0.2)
activesupport (= 8.0.2)
activerecord (8.0.2)
activemodel (= 8.0.2)
activesupport (= 8.0.2)
timeout (>= 0.4.0)
activesupport (8.0.2)
base64
benchmark (>= 0.3)
bigdecimal
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
builder (3.2.4)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
uri (>= 0.13.1)
base64 (0.2.0)
benchmark (0.4.0)
bigdecimal (3.1.9)
builder (3.3.0)
coderay (1.1.3)
concurrent-ruby (1.1.9)
concurrent-ruby (1.3.5)
connection_pool (2.5.0)
crass (1.0.6)
database_cleaner-active_record (2.0.1)
database_cleaner-active_record (2.2.0)
activerecord (>= 5.a)
database_cleaner-core (~> 2.0.0)
database_cleaner-core (2.0.1)
diff-lcs (1.4.4)
dotenv (2.7.6)
erubi (1.10.0)
gemika (0.6.1)
i18n (1.8.11)
date (3.4.1)
diff-lcs (1.6.1)
dotenv (3.1.7)
drb (2.2.1)
erubi (1.13.1)
gemika (0.8.4)
i18n (1.14.7)
concurrent-ruby (~> 1.0)
loofah (2.12.0)
io-console (0.8.0)
irb (1.15.1)
pp (>= 0.6.0)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
logger (1.7.0)
loofah (2.24.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
method_source (1.0.0)
mini_portile2 (2.6.1)
minitest (5.14.4)
nokogiri (1.12.5)
mini_portile2 (~> 2.6.1)
nokogiri (>= 1.12.0)
method_source (1.1.0)
mini_portile2 (2.8.8)
minitest (5.25.5)
nokogiri (1.18.6)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nokogiri (1.18.6-x86_64-darwin)
racc (~> 1.4)
ostruct (0.6.1)
pg (1.5.9)
pry (0.14.1)
pp (0.6.2)
prettyprint
prettyprint (0.2.0)
pry (0.15.2)
coderay (~> 1.1)
method_source (~> 1.0)
racc (1.6.0)
rack (2.2.3)
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
psych (5.2.3)
date
stringio
racc (1.8.1)
rack (3.1.12)
rack-session (2.1.0)
base64 (>= 0.1.0)
rack (>= 3.0.0)
rack-test (2.2.0)
rack (>= 1.3)
rackup (2.2.1)
rack (>= 3)
rails-dom-testing (2.2.0)
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-html-sanitizer (1.4.2)
loofah (~> 2.3)
railties (6.1.4.1)
actionpack (= 6.1.4.1)
activesupport (= 6.1.4.1)
method_source
rake (>= 0.13)
thor (~> 1.0)
rails-html-sanitizer (1.6.2)
loofah (~> 2.21)
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
railties (8.0.2)
actionpack (= 8.0.2)
activesupport (= 8.0.2)
irb (~> 1.13)
rackup (>= 1.0.0)
rake (>= 12.2)
thor (~> 1.0, >= 1.2.2)
zeitwerk (~> 2.6)
rake (12.3.3)
rspec (3.10.0)
rspec-core (~> 3.10.0)
rspec-expectations (~> 3.10.0)
rspec-mocks (~> 3.10.0)
rspec-core (3.10.1)
rspec-support (~> 3.10.0)
rspec-expectations (3.10.1)
rdoc (6.13.0)
psych (>= 4.0.0)
reline (0.6.0)
io-console (~> 0.5)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.3)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-its (1.3.0)
rspec-core (>= 3.0.0)
rspec-expectations (>= 3.0.0)
rspec-mocks (3.10.2)
rspec-support (~> 3.13.0)
rspec-its (2.0.0)
rspec-core (>= 3.13.0)
rspec-expectations (>= 3.13.0)
rspec-mocks (3.13.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-support (3.10.3)
scenic (1.5.4)
rspec-support (~> 3.13.0)
rspec-support (3.13.2)
scenic (1.8.0)
activerecord (>= 4.0.0)
railties (>= 4.0.0)
thor (1.1.0)
tzinfo (2.0.4)
securerandom (0.4.1)
stringio (3.1.6)
thor (1.3.2)
timeout (0.4.3)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
zeitwerk (2.5.1)
uri (1.0.3)
useragent (0.16.11)
zeitwerk (2.7.2)

PLATFORMS
ruby
Expand All @@ -118,4 +167,4 @@ DEPENDENCIES
timescaledb!

BUNDLED WITH
2.3.7
2.6.5
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,21 @@ config.before(:suite) do
end
```

## Updating the timescaledb extension

The ActiveRecord migrations doesn't support Postgresql extension updates. You can load the timescaledb tasks to make it available on your environment.
First, require it on the Rakefile:

```ruby
require 'timescaledb/tasks`
```

And then you can run the update_extension task:

```bash
bundle exec rake timescaledb:update_extension
```

## More resources

If you want to learn more about TimescaleDB with Ruby code, you can check the [examples](examples) folder and videos below:
Expand Down
2 changes: 1 addition & 1 deletion examples/ranking/.ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.2
3.3.6
10 changes: 5 additions & 5 deletions examples/ranking/Gemfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby "3.2.2"
ruby "3.3.6"

# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
gem "rails", "~> 7.1.3.2"
gem "rails"

gem "timescaledb", path: "../../"
gem "pg", "~> 1.1"
gem "puma", "~> 6.0"
gem "pg"
gem "puma"
gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ]

# Reduces boot times through caching; required in config/boot.rb
Expand All @@ -30,4 +30,4 @@ group :development do
end


gem "scenic", "~> 1.5"
gem "scenic"
Loading
Loading