Skip to content

Commit

Permalink
Explicitly add ostruct gem dependency (#77)
Browse files Browse the repository at this point in the history
Force root namespace for OpenStruct

Explicit requires of openstruct
  • Loading branch information
RemoteCTO authored Nov 28, 2024
1 parent 3e986b8 commit 15279bc
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 5 deletions.
4 changes: 3 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
PATH
remote: .
specs:
timescaledb (0.3.0)
timescaledb (0.3.1)
activerecord
activesupport
ostruct
pg (~> 1.2)

GEM
Expand Down Expand Up @@ -32,6 +33,7 @@ GEM
concurrent-ruby (~> 1.0)
method_source (1.0.0)
minitest (5.18.0)
ostruct (0.6.1)
pg (1.5.8)
pry (0.14.2)
coderay (~> 1.1)
Expand Down
8 changes: 5 additions & 3 deletions Gemfile.scenic.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
PATH
remote: .
specs:
timescaledb (0.2.8)
timescaledb (0.3.1)
activerecord
activesupport
ostruct
pg (~> 1.2)

GEM
Expand Down Expand Up @@ -56,7 +57,8 @@ GEM
nokogiri (1.12.5)
mini_portile2 (~> 2.6.1)
racc (~> 1.4)
pg (1.5.6)
ostruct (0.6.1)
pg (1.5.9)
pry (0.14.1)
coderay (~> 1.1)
method_source (~> 1.0)
Expand Down Expand Up @@ -116,4 +118,4 @@ DEPENDENCIES
timescaledb!

BUNDLED WITH
2.2.33
2.3.7
1 change: 1 addition & 0 deletions lib/timescaledb/connection.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'singleton'
require 'ostruct'

module Timescaledb
# Minimal connection setup for Timescaledb directly with the PG.
Expand Down
2 changes: 2 additions & 0 deletions lib/timescaledb/hypertable.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'ostruct'

module Timescaledb
class Hypertable < ::Timescaledb::ApplicationRecord
self.table_name = "timescaledb_information.hypertables"
Expand Down
2 changes: 1 addition & 1 deletion lib/timescaledb/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Timescaledb
VERSION = '0.3.0'
VERSION = '0.3.1'
end
2 changes: 2 additions & 0 deletions spec/timescaledb/connection_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'ostruct'

RSpec.describe Timescaledb do
describe '.establish_connection' do
it 'returns a PG::Connection object' do
Expand Down
1 change: 1 addition & 0 deletions timescaledb.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Gem::Specification.new do |spec|
spec.add_dependency "pg", "~> 1.2"
spec.add_dependency "activerecord"
spec.add_dependency "activesupport"
spec.add_dependency "ostruct"

spec.add_development_dependency "pry"
spec.add_development_dependency "rspec-its"
Expand Down

0 comments on commit 15279bc

Please sign in to comment.