solidus_support 0.6.0 → 0.7.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: 52891f7c46410b049481d932d3936da5530d1eabd601d0af44760398b4560200
4
- data.tar.gz: 47b62f091de89edaf01b1e57ce6b1fdf10c558f801ead911822b88bbd8baffa7
3
+ metadata.gz: '07148224b06a9d4a742b7fdf8d9d5a61a7637122bab0b18df1c32ccf69401e78'
4
+ data.tar.gz: c315077b626b83202aadf873cca2020f87a14983b5acd2b50d19facf608d85ac
5
5
  SHA512:
6
- metadata.gz: 2e55cb09d122d874ae9548420477d71a001fa7835f0027c976fca6cfef89351f0546b9477a5d219b9c80c15858e46edf510763b97301adf633dcaa97512d7237
7
- data.tar.gz: 965ee76ae136fe8fc11987327044994b4fb1162a9f5516b1c50a47103ecc068acbf8cdc5ba5af68cb1b6e11bf41eb3c10bb50b0291f249dcee0c45341e0cfcd4
6
+ metadata.gz: f5d3b639b91329457f5178afccb7ec30af0b523ec57bf3ba94b310bc8992c343b5841144797ac12a0912ae41b3faae7f909eca0ae6cd7484bb754c21af1ab83b
7
+ data.tar.gz: a70259d8ea10233f470896a75973b2f063ff259a2c2331191f1dadc21086e9339d193352d5c08a9895cb4802d4cae4a54951dc12fd252fc77ddec7f9c4921300
@@ -1,5 +1,34 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.6.0](https://github.com/solidusio/solidus_support/tree/v0.6.0) (2020-07-24)
4
+
5
+ [Full Changelog](https://github.com/solidusio/solidus_support/compare/v0.5.1...v0.6.0)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - Autoload Solidus Event subscribers from extensions [\#45](https://github.com/solidusio/solidus_support/pull/45) ([spaghetticode](https://github.com/spaghetticode))
10
+
11
+ **Fixed bugs:**
12
+
13
+ - Load event subscribers only when Spree::Event is available [\#47](https://github.com/solidusio/solidus_support/pull/47) ([spaghetticode](https://github.com/spaghetticode))
14
+
15
+ **Closed issues:**
16
+
17
+ - Namespace Conflicts [\#48](https://github.com/solidusio/solidus_support/issues/48)
18
+
19
+ **Merged pull requests:**
20
+
21
+ - Stop using SolidusSupport.solidus\_gem\_version [\#46](https://github.com/solidusio/solidus_support/pull/46) ([elia](https://github.com/elia))
22
+ - Add frontend/backend/api decorators to autoload path [\#44](https://github.com/solidusio/solidus_support/pull/44) ([kennyadsl](https://github.com/kennyadsl))
23
+
24
+ ## [v0.5.1](https://github.com/solidusio/solidus_support/tree/v0.5.1) (2020-04-15)
25
+
26
+ [Full Changelog](https://github.com/solidusio/solidus_support/compare/v0.5.0...v0.5.1)
27
+
28
+ **Merged pull requests:**
29
+
30
+ - Push decorators to autoload path using config.autoload\_paths [\#43](https://github.com/solidusio/solidus_support/pull/43) ([kennyadsl](https://github.com/kennyadsl))
31
+
3
32
  ## [v0.5.0](https://github.com/solidusio/solidus_support/tree/v0.5.0) (2020-02-18)
4
33
 
5
34
  [Full Changelog](https://github.com/solidusio/solidus_support/compare/v0.4.1...v0.5.0)
@@ -42,7 +71,6 @@
42
71
  - Remove support for testing and extensions [\#28](https://github.com/solidusio/solidus_support/pull/28) ([MinasMazar](https://github.com/MinasMazar))
43
72
  - Add SolidusSupport::EngineExtension::Decorators to load decorators [\#27](https://github.com/solidusio/solidus_support/pull/27) ([kennyadsl](https://github.com/kennyadsl))
44
73
  - Add support for Codecov [\#24](https://github.com/solidusio/solidus_support/pull/24) ([aldesantis](https://github.com/aldesantis))
45
- - Add `capybara-screenshot` dependency [\#23](https://github.com/solidusio/solidus_support/pull/23) ([spaghetticode](https://github.com/spaghetticode))
46
74
 
47
75
  ## [v0.3.2](https://github.com/solidusio/solidus_support/tree/v0.3.2) (2019-08-08)
48
76
 
@@ -50,6 +78,7 @@
50
78
 
51
79
  **Merged pull requests:**
52
80
 
81
+ - Add `capybara-screenshot` dependency [\#23](https://github.com/solidusio/solidus_support/pull/23) ([spaghetticode](https://github.com/spaghetticode))
53
82
  - Do not reset spree preferences starting from v2.9 [\#22](https://github.com/solidusio/solidus_support/pull/22) ([kennyadsl](https://github.com/kennyadsl))
54
83
  - Update Travis config [\#19](https://github.com/solidusio/solidus_support/pull/19) ([aitbw](https://github.com/aitbw))
55
84
  - Override Capybara JS driver via `CAPYBARA\_DRIVER` ENV variable [\#18](https://github.com/solidusio/solidus_support/pull/18) ([spaghetticode](https://github.com/spaghetticode))
@@ -76,6 +105,7 @@
76
105
 
77
106
  - Rename FactoryBot [\#6](https://github.com/solidusio/solidus_support/pull/6) ([tvdeyen](https://github.com/tvdeyen))
78
107
  - Remove unused files [\#5](https://github.com/solidusio/solidus_support/pull/5) ([tvdeyen](https://github.com/tvdeyen))
108
+ - Add a basic spec\_helper for extensions to include [\#2](https://github.com/solidusio/solidus_support/pull/2) ([jhawthorn](https://github.com/jhawthorn))
79
109
 
80
110
  ## [v0.1.5](https://github.com/solidusio/solidus_support/tree/v0.1.5) (2017-07-27)
81
111
 
@@ -89,10 +119,6 @@
89
119
 
90
120
  [Full Changelog](https://github.com/solidusio/solidus_support/compare/v0.1.2...v0.1.3)
91
121
 
92
- **Merged pull requests:**
93
-
94
- - Add a basic spec\_helper for extensions to include [\#2](https://github.com/solidusio/solidus_support/pull/2) ([jhawthorn](https://github.com/jhawthorn))
95
-
96
122
  ## [v0.1.2](https://github.com/solidusio/solidus_support/tree/v0.1.2) (2017-07-24)
97
123
 
98
124
  [Full Changelog](https://github.com/solidusio/solidus_support/compare/v0.1.1...v0.1.2)
@@ -36,7 +36,12 @@ module SolidusSupport
36
36
  path.glob("**/*_subscriber.rb") do |subscriber_path|
37
37
  require_dependency(subscriber_path)
38
38
  end
39
- Spree::Event.subscribers.each(&:subscribe!)
39
+
40
+ if Spree::Event.respond_to?(:activate_all_subscribers)
41
+ Spree::Event.activate_all_subscribers
42
+ else
43
+ Spree::Event.subscribers.each(&:subscribe!)
44
+ end
40
45
  end
41
46
  end
42
47
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusSupport
4
- VERSION = '0.6.0'
4
+ VERSION = '0.7.0'
5
5
  end
@@ -21,13 +21,10 @@ Gem::Specification.new do |s|
21
21
  s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  s.require_paths = ["lib"]
23
23
 
24
- s.add_dependency 'activesupport', ['>= 5.2', '< 7.0.x']
25
-
26
24
  s.add_development_dependency 'bundler'
27
25
  s.add_development_dependency 'rake'
28
26
  s.add_development_dependency 'rspec-rails'
29
27
  s.add_development_dependency 'rubocop'
30
28
  s.add_development_dependency 'rubocop-rspec'
31
- s.add_development_dependency 'solidus_core'
32
29
  s.add_development_dependency 'solidus_dev_support'
33
30
  end
@@ -14,7 +14,7 @@ module DummyApp
14
14
  class Application < ::Rails::Application
15
15
  config.eager_load = false
16
16
  config.paths['config/database'] = File.expand_path('dummy_app/database.yml', __dir__)
17
- config.active_record.sqlite3.represent_boolean_as_integer = true
17
+ config.active_record.sqlite3.represent_boolean_as_integer = true unless Gem::Version.new(Rails.version) < Gem::Version.new('5.2')
18
18
  end
19
19
  end
20
20
 
metadata CHANGED
@@ -1,35 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Hawthorn
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-24 00:00:00.000000000 Z
11
+ date: 2020-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: activesupport
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '5.2'
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: 7.0.x
23
- type: :runtime
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: '5.2'
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: 7.0.x
33
13
  - !ruby/object:Gem::Dependency
34
14
  name: bundler
35
15
  requirement: !ruby/object:Gem::Requirement
@@ -100,20 +80,6 @@ dependencies:
100
80
  - - ">="
101
81
  - !ruby/object:Gem::Version
102
82
  version: '0'
103
- - !ruby/object:Gem::Dependency
104
- name: solidus_core
105
- requirement: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - ">="
108
- - !ruby/object:Gem::Version
109
- version: '0'
110
- type: :development
111
- prerelease: false
112
- version_requirements: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - ">="
115
- - !ruby/object:Gem::Version
116
- version: '0'
117
83
  - !ruby/object:Gem::Dependency
118
84
  name: solidus_dev_support
119
85
  requirement: !ruby/object:Gem::Requirement
@@ -152,6 +118,7 @@ files:
152
118
  - lib/solidus_support/migration.rb
153
119
  - lib/solidus_support/version.rb
154
120
  - solidus_support.gemspec
121
+ - spec/examples.txt
155
122
  - spec/solidus_support_spec.rb
156
123
  - spec/spec_helper.rb
157
124
  - spec/support/dummy_app.rb
@@ -175,12 +142,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
142
  - !ruby/object:Gem::Version
176
143
  version: '0'
177
144
  requirements: []
178
- rubygems_version: 3.0.8
145
+ rubygems_version: 3.0.3
179
146
  signing_key:
180
147
  specification_version: 4
181
148
  summary: Common runtime helpers for Solidus extensions.
182
149
  test_files:
183
150
  - spec/spec_helper.rb
151
+ - spec/examples.txt
184
152
  - spec/solidus_support_spec.rb
185
153
  - spec/support/dummy_app.rb
186
154
  - spec/support/dummy_app/database.yml