diff --git a/.ruby-version b/.ruby-version index 6bf7c6f..2eb2fe9 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -ruby-2.5.1 +ruby-2.7.2 diff --git a/CHANGELOG.md b/CHANGELOG.md index a19bf9d..6f151ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [4.0.0] - 2024-10-14 +### +- Rails 7 support ## [3.1.0] - 2018-09-05 ### - [Rails 6 support](https://github.com/G5/storext/pull/65) diff --git a/lib/storext/version.rb b/lib/storext/version.rb index 8ac6425..7d23484 100644 --- a/lib/storext/version.rb +++ b/lib/storext/version.rb @@ -1,3 +1,3 @@ module Storext - VERSION = "3.3.0" + VERSION = "4.0.0" end diff --git a/spec/dummy/db/migrate/20141126071057_install_hstore.rb b/spec/dummy/db/migrate/20141126071057_install_hstore.rb index 6d7fb3e..65709cb 100644 --- a/spec/dummy/db/migrate/20141126071057_install_hstore.rb +++ b/spec/dummy/db/migrate/20141126071057_install_hstore.rb @@ -1,4 +1,4 @@ -class InstallHstore < ActiveRecord::Migration +class InstallHstore < ActiveRecord::Migration[4.2] def change enable_extension :hstore end diff --git a/spec/dummy/db/migrate/20141126071133_create_books.rb b/spec/dummy/db/migrate/20141126071133_create_books.rb index cf02a24..c1f0968 100644 --- a/spec/dummy/db/migrate/20141126071133_create_books.rb +++ b/spec/dummy/db/migrate/20141126071133_create_books.rb @@ -1,4 +1,4 @@ -class CreateBooks < ActiveRecord::Migration +class CreateBooks < ActiveRecord::Migration[4.2] def change create_table :books do |t| t.hstore :data diff --git a/spec/dummy/db/migrate/20141127001905_create_authors.rb b/spec/dummy/db/migrate/20141127001905_create_authors.rb index 6c2db04..daccf6c 100644 --- a/spec/dummy/db/migrate/20141127001905_create_authors.rb +++ b/spec/dummy/db/migrate/20141127001905_create_authors.rb @@ -1,4 +1,4 @@ -class CreateAuthors < ActiveRecord::Migration +class CreateAuthors < ActiveRecord::Migration[4.2] def change create_table :authors do |t| t.hstore :data diff --git a/spec/dummy/db/migrate/20141128051741_add_another_hstore_to_book.rb b/spec/dummy/db/migrate/20141128051741_add_another_hstore_to_book.rb index 4bc4a07..c720e7b 100644 --- a/spec/dummy/db/migrate/20141128051741_add_another_hstore_to_book.rb +++ b/spec/dummy/db/migrate/20141128051741_add_another_hstore_to_book.rb @@ -1,4 +1,4 @@ -class AddAnotherHstoreToBook < ActiveRecord::Migration +class AddAnotherHstoreToBook < ActiveRecord::Migration[4.2] def change add_column :books, :another_hstore, :hstore end diff --git a/spec/dummy/db/migrate/20150112063603_create_phones.rb b/spec/dummy/db/migrate/20150112063603_create_phones.rb index facd8c6..8bef992 100644 --- a/spec/dummy/db/migrate/20150112063603_create_phones.rb +++ b/spec/dummy/db/migrate/20150112063603_create_phones.rb @@ -1,4 +1,4 @@ -class CreatePhones < ActiveRecord::Migration +class CreatePhones < ActiveRecord::Migration[4.2] def change create_table :phones do |t| t.hstore :data diff --git a/spec/dummy/db/migrate/20150113011502_create_cars.rb b/spec/dummy/db/migrate/20150113011502_create_cars.rb index 75c4fba..42beb7e 100644 --- a/spec/dummy/db/migrate/20150113011502_create_cars.rb +++ b/spec/dummy/db/migrate/20150113011502_create_cars.rb @@ -1,4 +1,4 @@ -class CreateCars < ActiveRecord::Migration +class CreateCars < ActiveRecord::Migration[4.2] def change create_table :cars do |t| t.hstore :data diff --git a/spec/dummy/db/migrate/20150130013803_create_coffees.rb b/spec/dummy/db/migrate/20150130013803_create_coffees.rb index f6bad87..9f38072 100644 --- a/spec/dummy/db/migrate/20150130013803_create_coffees.rb +++ b/spec/dummy/db/migrate/20150130013803_create_coffees.rb @@ -1,4 +1,4 @@ -class CreateCoffees < ActiveRecord::Migration +class CreateCoffees < ActiveRecord::Migration[4.2] def change create_table :coffees do |t| t.hstore :data diff --git a/spec/dummy/db/schema.rb b/spec/dummy/db/schema.rb index 9b485e7..1fe7a7d 100644 --- a/spec/dummy/db/schema.rb +++ b/spec/dummy/db/schema.rb @@ -2,38 +2,38 @@ # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # -# Note that this schema.rb definition is the authoritative source for your -# database schema. If you need to create the application database on another -# system, you should be using db:schema:load, not running all the migrations -# from scratch. The latter is a flawed and unsustainable approach (the more migrations -# you'll amass, the slower it'll run and the greater likelihood for issues). +# This file is the source Rails uses to define your schema when running `bin/rails +# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to +# be faster and is potentially less error prone than running all of your +# migrations from scratch. Old migrations may fail to apply correctly if those +# migrations use external dependencies or application code. # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20150130013803) do +ActiveRecord::Schema.define(version: 2015_01_30_013803) do # These are extensions that must be enabled in order to support this database - enable_extension "plpgsql" enable_extension "hstore" + enable_extension "plpgsql" - create_table "authors", force: :cascade do |t| + create_table "authors", id: :serial, force: :cascade do |t| t.hstore "data" end - create_table "books", force: :cascade do |t| + create_table "books", id: :serial, force: :cascade do |t| t.hstore "data" t.hstore "another_hstore" end - create_table "cars", force: :cascade do |t| + create_table "cars", id: :serial, force: :cascade do |t| t.hstore "data" end - create_table "coffees", force: :cascade do |t| + create_table "coffees", id: :serial, force: :cascade do |t| t.hstore "data" end - create_table "phones", force: :cascade do |t| + create_table "phones", id: :serial, force: :cascade do |t| t.hstore "data" end diff --git a/storext.gemspec b/storext.gemspec index d1f9016..50183ad 100644 --- a/storext.gemspec +++ b/storext.gemspec @@ -18,7 +18,7 @@ Gem::Specification.new do |s| s.test_files = Dir["test/**/*"] s.add_dependency "virtus" - s.add_dependency "activerecord", [">= 4.0", "< 6.2"] + s.add_dependency "activerecord", ">= 4.0" s.add_development_dependency "pg" s.add_development_dependency "rspec"