alchemy-pg_search 2.2.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1029db6a692ffa903d9b8a7324b5cb6a8e473dcbbbf2fee8d5cc57df1ce79149
4
- data.tar.gz: 171e050f9ca7de014c3c0089fc768c436318524d832df8175a14ba41389b2509
3
+ metadata.gz: '041410896e0f98a81e3ead2437c7a5b02cb434e37d72ab5736db7ef3dbbaa5c0'
4
+ data.tar.gz: 8b93ed647898f4b0c5540d4674233565beb2dcb9fa41370f0d228de48a1fb852
5
5
  SHA512:
6
- metadata.gz: 47da2d377ca0a1e28fe679bef4b3322cda015e38e48a362008afeb73ddd11c16c676db8d8f046092ccefb300031b5a2efd518e570234130370ed93d0631214f5
7
- data.tar.gz: 70e8cb496e368053f4702baa20eadc39dc3c3d318df1f458b618f32851db41b047a03833ba62b225caff08a4f99dd4aa1e58357c50214ccb8817d81036b62fe1
6
+ metadata.gz: 2ede6256f9123b9bee9d13656c243a1ee3f370f40e04210674dd7ca2450ac83a66b2c3edda878ea6a0dca3b2aa64d042e6bdc4e0d2b3a676708455db4050db08
7
+ data.tar.gz: cecc52649b848c514ebd07fff4b4822d19233f8fb50def4ffcb99acf14d1ad2ba45a07fc0ec53d3385fa49f566d8250b80862f530ec40acfd9edc841b10f3c8f
@@ -0,0 +1,29 @@
1
+ name: CI
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ RSpec:
7
+ runs-on: ubuntu-latest
8
+ env:
9
+ RAILS_ENV: test
10
+ services:
11
+ postgres:
12
+ image: postgres:11
13
+ env:
14
+ POSTGRES_USER: postgres
15
+ POSTGRES_PASSWORD: password
16
+ POSTGRES_DB: alchemy_pg_search_test
17
+ ports: ["5432:5432"]
18
+ options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
19
+ steps:
20
+ - uses: actions/checkout@v2.3.4
21
+ - name: Set up Ruby
22
+ uses: ruby/setup-ruby@v1
23
+ with:
24
+ ruby-version: 2.7
25
+ bundler-cache: true
26
+ - name: Prepare database
27
+ run: bundle exec rake alchemy:spec:prepare
28
+ - name: Run tests
29
+ run: bundle exec rspec
data/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## 3.0.0 (2022-07-01)
2
+
3
+ - Changed searchable option initialization [#29](https://github.com/AlchemyCMS/alchemy-pg_search/pull/29) by [kulturbande](https://github.com/kulturbande)
4
+ - Remove Alchemy 4 support [#27](https://github.com/AlchemyCMS/alchemy-pg_search/pull/27) by [tvdeyen](https://github.com/tvdeyen)
5
+
6
+ ## 2.4.0 (2022-06-06)
7
+
8
+ - Add support for Alchemy 5.2 [#25](https://github.com/AlchemyCMS/alchemy-pg_search/pull/25) by [kulturbande](https://github.com/kulturbande)
9
+
10
+ ## 2.3.0 (2022-03-04)
11
+
12
+ - Add support for Alchemy 5.1 [#24](https://github.com/AlchemyCMS/alchemy-pg_search/pull/24) by [kulturbande](https://github.com/kulturbande)
13
+
1
14
  ## 2.2.0 (2021-09-25)
2
15
 
3
16
  - Alchemy 4.3 [#21](https://github.com/AlchemyCMS/alchemy-pg_search/pull/21) by [tvdeyen](https://github.com/tvdeyen)
data/Gemfile CHANGED
@@ -2,13 +2,14 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
4
 
5
- gem "rails", "~> 5.1.0"
6
- ENV.fetch("ALCHEMY_BRANCH", "4.3-stable").tap do |branch|
5
+ gem "rails", "~> 6.0.0"
6
+ ENV.fetch("ALCHEMY_BRANCH", "5.3-stable").tap do |branch|
7
7
  gem "alchemy_cms", github: "AlchemyCMS/alchemy_cms", branch: branch
8
8
  end
9
9
  gem "sassc-rails"
10
- gem "sassc", "< 2.2.0"
11
- gem "pg", "< 1.0"
10
+ gem "sassc", "~> 2.4.0"
11
+ gem "webpacker"
12
+ gem "pg", "~> 1.0"
12
13
  gem "puma"
13
14
 
14
15
  group :test do
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Build Status](https://travis-ci.org/AlchemyCMS/alchemy-pg_search.svg?branch=main)](https://travis-ci.org/AlchemyCMS/alchemy-pg_search)
1
+ [![CI](https://github.com/AlchemyCMS/alchemy-pg_search/actions/workflows/ci.yml/badge.svg)](https://github.com/AlchemyCMS/alchemy-pg_search/actions/workflows/ci.yml)
2
2
 
3
3
  # Alchemy CMS Postgresql Fulltext Search
4
4
 
@@ -8,15 +8,15 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Alchemy::PgSearch::VERSION
9
9
  spec.authors = ["Thomas von Deyen"]
10
10
  spec.email = ["thomas@vondeyen.com"]
11
- spec.description = "PostgreSQL search for Alchemy CMS 4.0"
12
- spec.summary = "This gem provides PostgreSQL full text search to Alchemy 4.0"
11
+ spec.description = "PostgreSQL search for Alchemy CMS"
12
+ spec.summary = "This gem provides PostgreSQL full text search to Alchemy"
13
13
  spec.homepage = "https://alchemy-cms.com"
14
14
  spec.license = "BSD-3-Clause"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^spec/}) }
17
17
  spec.require_paths = ["lib"]
18
18
 
19
- spec.add_runtime_dependency "alchemy_cms", [">= 4.3", "< 5.0"]
19
+ spec.add_runtime_dependency "alchemy_cms", [">= 5.0", "< 6"]
20
20
  spec.add_runtime_dependency "pg_search", ["~> 2.1"]
21
21
  spec.add_runtime_dependency "pg"
22
22
 
@@ -1,10 +1,8 @@
1
1
  module Alchemy::PgSearch::ContentExtension
2
2
  module ClassMethods
3
3
  def new(attributes)
4
- element = attributes[:element]
5
- definition = element.content_definition_for(attributes[:name])
6
4
  super.tap do |content|
7
- content.searchable = definition.key?(:searchable) ? definition[:searchable] : true
5
+ content.searchable = content.definition.key?(:searchable) ? content.definition[:searchable] : true
8
6
  end
9
7
  end
10
8
 
@@ -1,5 +1,5 @@
1
1
  module Alchemy
2
2
  module PgSearch
3
- VERSION = "2.2.0"
3
+ VERSION = "3.0.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy-pg_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas von Deyen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-25 00:00:00.000000000 Z
11
+ date: 2022-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: alchemy_cms
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.3'
19
+ version: '5.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '5.0'
22
+ version: '6'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '4.3'
29
+ version: '5.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '5.0'
32
+ version: '6'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: pg_search
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -100,15 +100,15 @@ dependencies:
100
100
  - - ">="
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
- description: PostgreSQL search for Alchemy CMS 4.0
103
+ description: PostgreSQL search for Alchemy CMS
104
104
  email:
105
105
  - thomas@vondeyen.com
106
106
  executables: []
107
107
  extensions: []
108
108
  extra_rdoc_files: []
109
109
  files:
110
+ - ".github/workflows/ci.yml"
110
111
  - ".gitignore"
111
- - ".travis.yml"
112
112
  - CHANGELOG.md
113
113
  - Gemfile
114
114
  - LICENSE
@@ -159,8 +159,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  - !ruby/object:Gem::Version
160
160
  version: '0'
161
161
  requirements: []
162
- rubygems_version: 3.2.28
162
+ rubygems_version: 3.1.6
163
163
  signing_key:
164
164
  specification_version: 4
165
- summary: This gem provides PostgreSQL full text search to Alchemy 4.0
165
+ summary: This gem provides PostgreSQL full text search to Alchemy
166
166
  test_files: []
data/.travis.yml DELETED
@@ -1,13 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.5
5
- services:
6
- - postgresql
7
- cache:
8
- - bundler
9
- branches:
10
- only:
11
- - main
12
- before_script: bundle exec rake alchemy:spec:prepare
13
- script: bundle exec rspec