workarea-content_search 1.0.8 → 1.0.9

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: 12449ee4b459998e0083ff6daedaa711d577c7ac21c062c3b498a5c946ce8ca1
4
- data.tar.gz: d90f4ccf145aad771d2681ecbd0e64563bbde18537e6b22fb4d64b5f8eaff0d4
3
+ metadata.gz: e12fe17ff40450cc7b218bdaf03cf6faedaa6ed82cf59e5cdc68d3f7b25642b9
4
+ data.tar.gz: 331dda0af1ff1de4967dd5e26dd9d9d3388aff0b08e1214a0a85cf58261ef1b2
5
5
  SHA512:
6
- metadata.gz: bebeb905089554408bf71691ef17f9cc5c12195281297014129e11155f93d0de9f43ab7c3ba507f95fefba8b86e143ac0442e43dd7a4186f27422c603c01e969
7
- data.tar.gz: 0a59facf22c4e352d205fe60a7c5523d58952f7c29daea918165d4ce0ffc6eb965cab5e5cffabf887baf2facf4bbe9ea67fda4b92f52cec7ff623dbb1d3c475f
6
+ metadata.gz: 3d0615611de822f8f215de471ee5f95334b2b69269ae035045f66e9dcc2197becb1a805872427b9433c415e76876a56d49a384f7486c793f5f396b20dcfeef48
7
+ data.tar.gz: ce175aba27e1eedde6f9accd3dcfbf10220f2ff1e570ab2abefd79ce0807e7114029986381749865e9aaad94caeb630215c729d1e38c18972c50f342a147f46d
data/.eslintrc.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "extends": "eslint:recommended",
3
+ "rules": {
4
+ "semi": ["error", "always"],
5
+ "eqeqeq": ["error", "always"]
6
+ },
7
+ "globals": {
8
+ "window": true,
9
+ "document": true,
10
+ "WORKAREA": true,
11
+ "$": true,
12
+ "jQuery": true,
13
+ "_": true,
14
+ "feature": true,
15
+ "JST": true,
16
+ "Turbolinks": true,
17
+ "I18n": true,
18
+ "Chart": true,
19
+ "Dropzone": true,
20
+ "strftime": true,
21
+ "Waypoint": true,
22
+ "wysihtml": true,
23
+ "LocalTime": true,
24
+ "describe": true,
25
+ "after": true,
26
+ "afterEach": true,
27
+ "before": true,
28
+ "beforeEach": true,
29
+ "it": true,
30
+ "expect": true,
31
+ "sinon": true,
32
+ "fixture": true,
33
+ "chai": true
34
+ }
35
+ }
@@ -0,0 +1,57 @@
1
+ name: CI
2
+ on: [push]
3
+
4
+ jobs:
5
+ static_analysis:
6
+ runs-on: ubuntu-latest
7
+ steps:
8
+ - uses: actions/checkout@v1
9
+ - uses: workarea-commerce/ci/bundler-audit@v1
10
+ - uses: workarea-commerce/ci/rubocop@v1
11
+ - uses: workarea-commerce/ci/eslint@v1
12
+ with:
13
+ args: '**/*.js'
14
+
15
+ admin_tests:
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - uses: actions/checkout@v1
19
+ - uses: actions/setup-ruby@v1
20
+ with:
21
+ ruby-version: 2.6.x
22
+ - uses: workarea-commerce/ci/test@v1
23
+ with:
24
+ command: bin/rails app:workarea:test:admin
25
+
26
+ core_tests:
27
+ runs-on: ubuntu-latest
28
+ steps:
29
+ - uses: actions/checkout@v1
30
+ - uses: actions/setup-ruby@v1
31
+ with:
32
+ ruby-version: 2.6.x
33
+ - uses: workarea-commerce/ci/test@v1
34
+ with:
35
+ command: bin/rails app:workarea:test:core
36
+
37
+ storefront_tests:
38
+ runs-on: ubuntu-latest
39
+ steps:
40
+ - uses: actions/checkout@v1
41
+ - uses: actions/setup-ruby@v1
42
+ with:
43
+ ruby-version: 2.6.x
44
+ - uses: workarea-commerce/ci/test@v1
45
+ with:
46
+ command: bin/rails app:workarea:test:storefront
47
+
48
+ plugins_tests:
49
+ runs-on: ubuntu-latest
50
+ steps:
51
+ - uses: actions/checkout@v1
52
+ - uses: actions/setup-ruby@v1
53
+ with:
54
+ ruby-version: 2.6.x
55
+ - uses: workarea-commerce/ci/test@v1
56
+ with:
57
+ command: bin/rails app:workarea:test:plugins
data/.gitignore CHANGED
@@ -11,3 +11,4 @@ node_modules
11
11
  test/reports
12
12
  package.json
13
13
  yarn.lock
14
+ .rubocop-http*
data/.rubocop.yml ADDED
@@ -0,0 +1,3 @@
1
+ inherit_from:
2
+ - https://raw.githubusercontent.com/workarea-commerce/workarea/master/.rubocop.yml
3
+
data/.stylelintrc.json ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "stylelint-config-recommended-scss",
3
+ "rules": {
4
+ "block-no-empty": null,
5
+ "no-descending-specificity": null,
6
+ "property-no-unknown": [true, { "ignoreProperties": ["mso-hide"] }]
7
+ }
8
+ }
data/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
1
  source 'https://rubygems.org'
2
- git_source(:github) { |repo| "git@github.com:#{repo}.git" }
2
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3
3
 
4
4
  gemspec
5
5
 
@@ -1,8 +1,12 @@
1
1
  module Workarea
2
- decorate Search::SearchSuggestions, with: :content_search do
3
- def query
4
- super.tap do |query|
5
- query[:bool][:must_not] = { term: { type: 'content' } }
2
+ # Checking for SearchSuggestions this way ensures the constant
3
+ # loads, if possible, before deciding whether to decorate.
4
+ if !!(Search::SearchSuggestions rescue nil)
5
+ decorate Search::SearchSuggestions, with: :content_search do
6
+ def query
7
+ super.tap do |query|
8
+ query[:bool][:must_not] = { term: { type: 'content' } }
9
+ end
6
10
  end
7
11
  end
8
12
  end
@@ -1,5 +1,5 @@
1
1
  module Workarea
2
2
  module ContentSearch
3
- VERSION = '1.0.8'.freeze
3
+ VERSION = '1.0.9'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-content_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Duffy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-21 00:00:00.000000000 Z
11
+ date: 2019-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: workarea
@@ -32,10 +32,14 @@ extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
34
  - ".editorconfig"
35
+ - ".eslintrc.json"
35
36
  - ".github/ISSUE_TEMPLATE/bug_report.md"
36
37
  - ".github/ISSUE_TEMPLATE/documentation-request.md"
37
38
  - ".github/ISSUE_TEMPLATE/feature_request.md"
39
+ - ".github/workflows/ci.yml"
38
40
  - ".gitignore"
41
+ - ".rubocop.yml"
42
+ - ".stylelintrc.json"
39
43
  - CHANGELOG.md
40
44
  - CODE_OF_CONDUCT.md
41
45
  - CONTRIBUTING.md
@@ -146,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
150
  - !ruby/object:Gem::Version
147
151
  version: '0'
148
152
  requirements: []
149
- rubygems_version: 3.0.4
153
+ rubygems_version: 3.0.6
150
154
  signing_key:
151
155
  specification_version: 4
152
156
  summary: Content search plugin for the Workarea Commerce Platform