solidus_webhooks 0.4.0 → 0.4.2

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: f94eb7d8c956dd983b90ff8ab0d14fde3fbad148400e29222c8be84d403c1baa
4
- data.tar.gz: fd828061690984b542190754621d8d9b86ba34ae89070f25db9f838a0de22c78
3
+ metadata.gz: acf5b91f017aa25c6095ea5209e8789a9aa62029f7b9b512dcb9e1cf1094691c
4
+ data.tar.gz: 8c5e0afbde2ee8602fd7712164bef6c0d5d3519b02ecffe71adad920365cd844
5
5
  SHA512:
6
- metadata.gz: 37142b4bd06257070f31083a3a99a8594654c626e52e21d41b95f075c4f3a3adc2064cd9831f2c36de5500fa91805d763e5913ea07b9b7c184ac11f6bb6755a8
7
- data.tar.gz: f4cb38e4f31a7e7e1c60603c79ccc96b35365b5309b35cd959ff29175f7368ca1f95cd16be32ebdd00a8eeeb92cde2c8d1f00287f2f3e6bab42d0a65987e482a
6
+ metadata.gz: 0f12763613fbcfc03c6e6fbdcf9d9eb9c73be13e4034d973751f414c1123b85c3e13cb0220441bf3d928d97a58ea16745b04ba6ff505464c058125d707127ef6
7
+ data.tar.gz: 4a78746ac208e00c289993f06e7693bed967e4a24930b3f7a0b78ebb63b4e294f23353439d44f0147f238578c590db9abee4c606ce32d664a43353019baa4a7e
data/.circleci/config.yml CHANGED
@@ -8,27 +8,49 @@ orbs:
8
8
  solidusio_extensions: solidusio/extensions@volatile
9
9
 
10
10
  jobs:
11
- run-specs-with-postgres:
12
- executor: solidusio_extensions/postgres
11
+ run-specs:
12
+ parameters:
13
+ solidus:
14
+ type: string
15
+ default: main
16
+ db:
17
+ type: string
18
+ default: "postgres"
19
+ ruby:
20
+ type: string
21
+ default: "3.2"
22
+ executor:
23
+ name: solidusio_extensions/<< parameters.db >>
24
+ ruby_version: << parameters.ruby >>
13
25
  steps:
14
- - solidusio_extensions/run-tests
15
- run-specs-with-mysql:
16
- executor: solidusio_extensions/mysql
17
- steps:
18
- - solidusio_extensions/run-tests
26
+ - checkout
27
+ - solidusio_extensions/run-tests-solidus-<< parameters.solidus >>
28
+
19
29
  lint-code:
20
- executor: solidusio_extensions/sqlite-memory
30
+ executor:
31
+ name: solidusio_extensions/sqlite
32
+ ruby_version: "3.0"
21
33
  steps:
22
34
  - solidusio_extensions/lint-code
23
35
 
24
36
  workflows:
25
37
  "Run specs on supported Solidus versions":
26
38
  jobs:
27
- - run-specs-with-postgres
28
- - run-specs-with-mysql
39
+ - run-specs:
40
+ name: &name "run-specs-solidus-<< matrix.solidus >>-ruby-<< matrix.ruby >>-db-<< matrix.db >>"
41
+ matrix:
42
+ parameters: { solidus: ["main"], ruby: ["3.2"], db: ["postgres"] }
43
+ - run-specs:
44
+ name: *name
45
+ matrix:
46
+ parameters: { solidus: ["current"], ruby: ["3.1"], db: ["mysql"] }
47
+ - run-specs:
48
+ name: *name
49
+ matrix:
50
+ parameters: { solidus: ["older"], ruby: ["3.0"], db: ["sqlite"] }
29
51
  - lint-code
30
52
 
31
- "Weekly run specs against master":
53
+ "Weekly run specs against main":
32
54
  triggers:
33
55
  - schedule:
34
56
  cron: "0 0 * * 4" # every Thursday
@@ -37,5 +59,11 @@ workflows:
37
59
  only:
38
60
  - master
39
61
  jobs:
40
- - run-specs-with-postgres
41
- - run-specs-with-mysql
62
+ - run-specs:
63
+ name: *name
64
+ matrix:
65
+ parameters: { solidus: ["main"], ruby: ["3.2"], db: ["postgres"] }
66
+ - run-specs:
67
+ name: *name
68
+ matrix:
69
+ parameters: { solidus: ["current"], ruby: ["3.1"], db: ["mysql"] }
data/CHANGELOG.md CHANGED
@@ -1,52 +1,3 @@
1
1
  # Changelog
2
2
 
3
- ## [v0.3.0](https://github.com/solidusio-contrib/solidus_webhooks/tree/v0.3.0) (2021-04-20)
4
-
5
- [Full Changelog](https://github.com/solidusio-contrib/solidus_webhooks/compare/v0.3.0...v0.3.0)
6
-
7
- **Closed issues:**
8
-
9
- - Prepare Solidus Webhooks for Solidus 3.0 [\#8](https://github.com/solidusio-contrib/solidus_webhooks/issues/8)
10
-
11
- **Merged pull requests:**
12
-
13
- - Allow Solidus 3 [\#10](https://github.com/solidusio-contrib/solidus_webhooks/pull/10) ([kennyadsl](https://github.com/kennyadsl))
14
- - Reconcile master and v0.3.0 [\#7](https://github.com/solidusio-contrib/solidus_webhooks/pull/7) ([elia](https://github.com/elia))
15
- - Bump solidus\_support to ~\> 0.6 [\#6](https://github.com/solidusio-contrib/solidus_webhooks/pull/6) ([peterberkenbosch](https://github.com/peterberkenbosch))
16
-
17
- ## [v0.3.0](https://github.com/solidusio-contrib/solidus_webhooks/tree/v0.3.0) (2020-10-20)
18
-
19
- [Full Changelog](https://github.com/solidusio-contrib/solidus_webhooks/compare/v0.2.0...v0.3.0)
20
-
21
- **Fixed bugs:**
22
-
23
- - Fix error classes [\#5](https://github.com/solidusio-contrib/solidus_webhooks/pull/5) ([elia](https://github.com/elia))
24
-
25
- ## [v0.2.0](https://github.com/solidusio-contrib/solidus_webhooks/tree/v0.2.0) (2020-06-10)
26
-
27
- [Full Changelog](https://github.com/solidusio-contrib/solidus_webhooks/compare/v0.1.0...v0.2.0)
28
-
29
- **Implemented enhancements:**
30
-
31
- - Expose current\_api\_user to webhook handlers [\#4](https://github.com/solidusio-contrib/solidus_webhooks/pull/4) ([elia](https://github.com/elia))
32
-
33
- ## [v0.1.0](https://github.com/solidusio-contrib/solidus_webhooks/tree/v0.1.0) (2020-05-14)
34
-
35
- [Full Changelog](https://github.com/solidusio-contrib/solidus_webhooks/compare/v0.1.0.beta.1...v0.1.0)
36
-
37
- ## [v0.1.0.beta.1](https://github.com/solidusio-contrib/solidus_webhooks/tree/v0.1.0.beta.1) (2020-05-13)
38
-
39
- [Full Changelog](https://github.com/solidusio-contrib/solidus_webhooks/compare/v0.0.1.v0.1.0.beta.1.1...v0.1.0.beta.1)
40
-
41
- ## [v0.0.1.v0.1.0.beta.1.1](https://github.com/solidusio-contrib/solidus_webhooks/tree/v0.0.1.v0.1.0.beta.1.1) (2020-05-13)
42
-
43
- [Full Changelog](https://github.com/solidusio-contrib/solidus_webhooks/compare/9573caa400232ffb44cde7f8cf907171a529ced3...v0.0.1.v0.1.0.beta.1.1)
44
-
45
- **Merged pull requests:**
46
-
47
- - Prepare the repo to be moved to @solidusio-contrib [\#2](https://github.com/solidusio-contrib/solidus_webhooks/pull/2) ([elia](https://github.com/elia))
48
- - Add the ability to register and receive webhooks [\#1](https://github.com/solidusio-contrib/solidus_webhooks/pull/1) ([elia](https://github.com/elia))
49
-
50
-
51
-
52
- \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
3
+ See https://github.com/solidusio/solidus_webhooks/releases or [OLD_CHANGELOG.md](OLD_CHANGELOG.md) for older versions.
data/Gemfile CHANGED
@@ -3,9 +3,18 @@
3
3
  source 'https://rubygems.org'
4
4
  git_source(:github) { |repo| "https://github.com/#{repo}.git" }
5
5
 
6
- branch = ENV.fetch('SOLIDUS_BRANCH', 'master')
6
+ branch = ENV.fetch('SOLIDUS_BRANCH', 'main')
7
7
  gem 'solidus', github: 'solidusio/solidus', branch: branch
8
8
 
9
+ # The solidus_frontend gem has been pulled out since v3.2
10
+ if branch >= 'v3.2'
11
+ gem 'solidus_frontend'
12
+ elsif branch == 'main'
13
+ gem 'solidus_frontend', github: 'solidusio/solidus_frontend'
14
+ else
15
+ gem 'solidus_frontend', github: 'solidusio/solidus', branch: branch
16
+ end
17
+
9
18
  # Needed to help Bundler figure out how to resolve dependencies,
10
19
  # otherwise it takes forever to resolve them.
11
20
  # See https://github.com/bundler/bundler/issues/6677
data/OLD_CHANGELOG.md ADDED
@@ -0,0 +1,52 @@
1
+ # Changelog
2
+
3
+ ## [v0.3.0](https://github.com/solidusio/solidus_webhooks/tree/v0.3.0) (2021-04-20)
4
+
5
+ [Full Changelog](https://github.com/solidusio/solidus_webhooks/compare/v0.3.0...v0.3.0)
6
+
7
+ **Closed issues:**
8
+
9
+ - Prepare Solidus Webhooks for Solidus 3.0 [\#8](https://github.com/solidusio/solidus_webhooks/issues/8)
10
+
11
+ **Merged pull requests:**
12
+
13
+ - Allow Solidus 3 [\#10](https://github.com/solidusio/solidus_webhooks/pull/10) ([kennyadsl](https://github.com/kennyadsl))
14
+ - Reconcile master and v0.3.0 [\#7](https://github.com/solidusio/solidus_webhooks/pull/7) ([elia](https://github.com/elia))
15
+ - Bump solidus\_support to ~\> 0.6 [\#6](https://github.com/solidusio/solidus_webhooks/pull/6) ([peterberkenbosch](https://github.com/peterberkenbosch))
16
+
17
+ ## [v0.3.0](https://github.com/solidusio/solidus_webhooks/tree/v0.3.0) (2020-10-20)
18
+
19
+ [Full Changelog](https://github.com/solidusio/solidus_webhooks/compare/v0.2.0...v0.3.0)
20
+
21
+ **Fixed bugs:**
22
+
23
+ - Fix error classes [\#5](https://github.com/solidusio/solidus_webhooks/pull/5) ([elia](https://github.com/elia))
24
+
25
+ ## [v0.2.0](https://github.com/solidusio/solidus_webhooks/tree/v0.2.0) (2020-06-10)
26
+
27
+ [Full Changelog](https://github.com/solidusio/solidus_webhooks/compare/v0.1.0...v0.2.0)
28
+
29
+ **Implemented enhancements:**
30
+
31
+ - Expose current\_api\_user to webhook handlers [\#4](https://github.com/solidusio/solidus_webhooks/pull/4) ([elia](https://github.com/elia))
32
+
33
+ ## [v0.1.0](https://github.com/solidusio/solidus_webhooks/tree/v0.1.0) (2020-05-14)
34
+
35
+ [Full Changelog](https://github.com/solidusio/solidus_webhooks/compare/v0.1.0.beta.1...v0.1.0)
36
+
37
+ ## [v0.1.0.beta.1](https://github.com/solidusio/solidus_webhooks/tree/v0.1.0.beta.1) (2020-05-13)
38
+
39
+ [Full Changelog](https://github.com/solidusio/solidus_webhooks/compare/v0.0.1.v0.1.0.beta.1.1...v0.1.0.beta.1)
40
+
41
+ ## [v0.0.1.v0.1.0.beta.1.1](https://github.com/solidusio/solidus_webhooks/tree/v0.0.1.v0.1.0.beta.1.1) (2020-05-13)
42
+
43
+ [Full Changelog](https://github.com/solidusio/solidus_webhooks/compare/9573caa400232ffb44cde7f8cf907171a529ced3...v0.0.1.v0.1.0.beta.1.1)
44
+
45
+ **Merged pull requests:**
46
+
47
+ - Prepare the repo to be moved to @solidusio [\#2](https://github.com/solidusio/solidus_webhooks/pull/2) ([elia](https://github.com/elia))
48
+ - Add the ability to register and receive webhooks [\#1](https://github.com/solidusio/solidus_webhooks/pull/1) ([elia](https://github.com/elia))
49
+
50
+
51
+
52
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Solidus Webhooks
2
2
 
3
- [![CircleCI](https://circleci.com/gh/solidusio-contrib/solidus_webhooks.svg?style=shield)](https://circleci.com/gh/solidusio-contrib/solidus_webhooks)
4
- [![codecov](https://codecov.io/gh/solidusio-contrib/solidus_webhooks/branch/master/graph/badge.svg)](https://codecov.io/gh/solidusio-contrib/solidus_webhooks)
3
+ [![CircleCI](https://circleci.com/gh/solidusio/solidus_webhooks.svg?style=shield)](https://circleci.com/gh/solidusio/solidus_webhooks)
4
+ [![codecov](https://codecov.io/gh/solidusio/solidus_webhooks/branch/master/graph/badge.svg)](https://codecov.io/gh/solidusio/solidus_webhooks)
5
5
 
6
6
  <!-- Explain what your extension does. -->
7
7
 
data/Rakefile CHANGED
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'bundler/gem_tasks'
3
4
  require 'solidus_dev_support/rake_tasks'
4
5
 
5
6
  SolidusDevSupport::RakeTasks.class_eval do
data/bin/sandbox CHANGED
@@ -22,7 +22,7 @@ if [ ! -z $SOLIDUS_BRANCH ]
22
22
  then
23
23
  BRANCH=$SOLIDUS_BRANCH
24
24
  else
25
- BRANCH="master"
25
+ BRANCH="main"
26
26
  fi
27
27
 
28
28
  extension_name="solidus_webhooks"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusWebhooks
4
- VERSION = '0.4.0'
4
+ VERSION = '0.4.2'
5
5
  end
@@ -9,12 +9,12 @@ Gem::Specification.new do |spec|
9
9
  spec.email = 'contact@solidus.io'
10
10
 
11
11
  spec.summary = 'Webhooks support for Solidus'
12
- spec.homepage = 'https://github.com/solidusio-contrib/solidus_webhooks#readme'
12
+ spec.homepage = 'https://github.com/solidusio/solidus_webhooks#readme'
13
13
  spec.license = 'BSD-3-Clause'
14
14
 
15
15
  spec.metadata['homepage_uri'] = spec.homepage
16
- spec.metadata['source_code_uri'] = 'https://github.com/solidusio-contrib/solidus_webhooks'
17
- spec.metadata['changelog_uri'] = 'https://github.com/solidusio-contrib/solidus_webhooks/releases'
16
+ spec.metadata['source_code_uri'] = 'https://github.com/solidusio/solidus_webhooks'
17
+ spec.metadata['changelog_uri'] = 'https://github.com/solidusio/solidus_webhooks/releases'
18
18
 
19
19
  spec.required_ruby_version = Gem::Requirement.new('>= 2.5')
20
20
 
@@ -28,7 +28,8 @@ Gem::Specification.new do |spec|
28
28
  spec.executables = files.grep(%r{^exe/}) { |f| File.basename(f) }
29
29
  spec.require_paths = ["lib"]
30
30
 
31
- spec.add_dependency 'solidus_core', ['>= 2.0.0', '< 4']
31
+ spec.add_dependency 'solidus_api', ['>= 2.0.0', '< 5']
32
+ spec.add_dependency 'solidus_core', ['>= 2.0.0', '< 5']
32
33
  spec.add_dependency 'solidus_support', '~> 0.6'
33
34
 
34
35
  spec.add_development_dependency 'solidus_dev_support', '~> 2.2'
@@ -1,5 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
+ # rubocop:disable RSpec/MultipleMemoizedHelpers
3
4
  RSpec.feature "Can register a handler and receive Webhooks", type: :request do
4
5
  background do
5
6
  SolidusWebhooks.config.register_webhook_handler :proc, proc_handler
@@ -72,3 +73,4 @@ RSpec.feature "Can register a handler and receive Webhooks", type: :request do
72
73
  expect(response).to have_http_status(:unauthorized)
73
74
  end
74
75
  end
76
+ # rubocop:enable RSpec/MultipleMemoizedHelpers
data/spec/spec_helper.rb CHANGED
@@ -14,13 +14,12 @@ require dummy_env
14
14
  # Requires factories and other useful helpers defined in spree_core.
15
15
  require 'solidus_dev_support/rspec/feature_helper'
16
16
 
17
+ SolidusDevSupport::TestingSupport::Factories.load_for(SolidusWebhooks::Engine, Spree::Auth::Engine)
18
+
17
19
  # Requires supporting ruby files with custom matchers and macros, etc,
18
20
  # in spec/support/ and its subdirectories.
19
21
  Dir["#{__dir__}/support/**/*.rb"].sort.each { |f| require f }
20
22
 
21
- # Requires factories defined in lib/solidus_webhooks/testing_support/factories.rb
22
- require 'solidus_webhooks/testing_support/factories'
23
-
24
23
  RSpec.configure do |config|
25
24
  config.infer_spec_type_from_file_location!
26
25
  config.use_transactional_fixtures = false
metadata CHANGED
@@ -1,15 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_webhooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elia Schito
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-20 00:00:00.000000000 Z
11
+ date: 2023-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: solidus_api
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 2.0.0
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 2.0.0
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '5'
13
33
  - !ruby/object:Gem::Dependency
14
34
  name: solidus_core
15
35
  requirement: !ruby/object:Gem::Requirement
@@ -19,7 +39,7 @@ dependencies:
19
39
  version: 2.0.0
20
40
  - - "<"
21
41
  - !ruby/object:Gem::Version
22
- version: '4'
42
+ version: '5'
23
43
  type: :runtime
24
44
  prerelease: false
25
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +49,7 @@ dependencies:
29
49
  version: 2.0.0
30
50
  - - "<"
31
51
  - !ruby/object:Gem::Version
32
- version: '4'
52
+ version: '5'
33
53
  - !ruby/object:Gem::Dependency
34
54
  name: solidus_support
35
55
  requirement: !ruby/object:Gem::Requirement
@@ -74,6 +94,7 @@ files:
74
94
  - CHANGELOG.md
75
95
  - Gemfile
76
96
  - LICENSE
97
+ - OLD_CHANGELOG.md
77
98
  - README.md
78
99
  - Rakefile
79
100
  - app/assets/javascripts/spree/backend/solidus_webhooks.js
@@ -106,13 +127,13 @@ files:
106
127
  - spec/solidus_webhooks/configuration_spec.rb
107
128
  - spec/spec_helper.rb
108
129
  - spec/support/reset_config.rb
109
- homepage: https://github.com/solidusio-contrib/solidus_webhooks#readme
130
+ homepage: https://github.com/solidusio/solidus_webhooks#readme
110
131
  licenses:
111
132
  - BSD-3-Clause
112
133
  metadata:
113
- homepage_uri: https://github.com/solidusio-contrib/solidus_webhooks#readme
114
- source_code_uri: https://github.com/solidusio-contrib/solidus_webhooks
115
- changelog_uri: https://github.com/solidusio-contrib/solidus_webhooks/releases
134
+ homepage_uri: https://github.com/solidusio/solidus_webhooks#readme
135
+ source_code_uri: https://github.com/solidusio/solidus_webhooks
136
+ changelog_uri: https://github.com/solidusio/solidus_webhooks/releases
116
137
  post_install_message:
117
138
  rdoc_options: []
118
139
  require_paths:
@@ -128,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
149
  - !ruby/object:Gem::Version
129
150
  version: '0'
130
151
  requirements: []
131
- rubygems_version: 3.1.4
152
+ rubygems_version: 3.3.7
132
153
  signing_key:
133
154
  specification_version: 4
134
155
  summary: Webhooks support for Solidus