solidus_dev_support 2.8.0 → 2.10.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: 33b0d8ce068309192e7131a9b14ba4f4a4aaa0f26437b6f7f7acb67f108435c2
4
- data.tar.gz: b9050730ef761e1822f3f6a7544093f43fe3c3d53b0d7687b44bd2085f9924b0
3
+ metadata.gz: 788f71717b021055e787d2c6674185edfc3f0c8154f282909193dd8d6b3f1340
4
+ data.tar.gz: a2c3bc4da0c08605d5119b3d2470996f6acc953c687124ac086543036fd96544
5
5
  SHA512:
6
- metadata.gz: 5dc1178e3a826f16d81b31af688b4213ed3c47aa65dcc18c24678be64c5726db7df0272a5688a80188ac953bcc9c8b8b81bfa9bc03fe0f926467f304e301e494
7
- data.tar.gz: 47748cc87caf9a9e768d706148a647d5f64da8a80df73db13ffd851fc2313eee90e3a73bf3c22b8314c0414d541eca657adcd6928c448740a1af6d21a43430af
6
+ metadata.gz: 870e124775746c0c9b0f5b1a26e116c72e646b6eb44d9586278cfc2b26462d7ce38c0b93637ea149576234d6e2d6adf41a3f423752f90707b58a98ed42330e24
7
+ data.tar.gz: 3feabe8e96ff3d15f5f03bc02512e7000c69188717c85b3d3991435a40049954c3cc070784e5cb6c35f250b1238a973cb6741cb4363b606ad55d716e266ab2ef
data/Gemfile CHANGED
@@ -21,7 +21,7 @@ group :test do
21
21
  gem 'mysql2'
22
22
  gem 'pg'
23
23
  gem 'solidus_auth_devise'
24
- gem 'sqlite3'
24
+ gem 'sqlite3', '~> 1.4'
25
25
  end
26
26
 
27
27
  # Use a local Gemfile to include development dependencies that might not be
@@ -7,14 +7,15 @@ module SolidusDevSupport
7
7
  class RakeTasks
8
8
  include Rake::DSL
9
9
 
10
- def self.install(*args)
11
- new(*args).tap(&:install)
10
+ def self.install(**args)
11
+ new(**args).tap(&:install)
12
12
  end
13
13
 
14
- def initialize(root: Dir.pwd)
14
+ def initialize(root: Dir.pwd, user_class: "Spree::LegacyUser")
15
15
  @root = Pathname(root)
16
16
  @test_app_path = @root.join(ENV.fetch('DUMMY_PATH', 'spec/dummy'))
17
17
  @gemspec = Bundler.load_gemspec(@root.glob("{,*}.gemspec").first)
18
+ @user_class = user_class
18
19
  end
19
20
 
20
21
  attr_reader :test_app_path, :root, :gemspec
@@ -39,12 +40,12 @@ module SolidusDevSupport
39
40
  # We need to go back to the gem root since the upstream
40
41
  # extension:test_app changes the working directory to be the dummy app.
41
42
  task :test_app do
42
- Rake::Task['extension:test_app'].invoke
43
+ Rake::Task['extension:test_app'].invoke(@user_class)
43
44
  cd root
44
45
  end
45
46
 
46
47
  directory ENV.fetch('DUMMY_PATH', nil) do
47
- Rake::Task['extension:test_app'].invoke
48
+ Rake::Task['extension:test_app'].invoke(@user_class)
48
49
  end
49
50
  end
50
51
  end
@@ -20,17 +20,13 @@ end
20
20
  # See https://github.com/bundler/bundler/issues/6677
21
21
  gem 'rails', '>0.a'
22
22
 
23
- <% if file_name != 'solidus_auth_devise' %>
24
- # Provides basic authentication functionality for testing parts of your engine
25
- gem 'solidus_auth_devise'
26
- <% end %>
27
23
  case ENV.fetch('DB', nil)
28
24
  when 'mysql'
29
25
  gem 'mysql2'
30
26
  when 'postgresql'
31
27
  gem 'pg'
32
28
  else
33
- gem 'sqlite3'
29
+ gem 'sqlite3', '~> 1.4'
34
30
  end
35
31
 
36
32
  # While we still support Ruby < 3 we need to workaround a limitation in
@@ -30,7 +30,8 @@ echo "~~~> Removing the old sandbox"
30
30
  rm -rf ./sandbox
31
31
 
32
32
  echo "~~~> Creating a pristine Rails app"
33
- rails new sandbox \
33
+ rails_version=`bundle exec ruby -e'require "rails"; puts Rails.version'`
34
+ rails _${rails_version}_ new sandbox \
34
35
  --database="${DB:-sqlite3}" \
35
36
  --skip-git \
36
37
  --skip-keeps \
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusDevSupport
4
- VERSION = "2.8.0"
4
+ VERSION = "2.10.0"
5
5
 
6
6
  def self.gem_version
7
7
  Gem::Version.new(VERSION)
@@ -38,9 +38,9 @@ Gem::Specification.new do |spec|
38
38
  spec.add_dependency 'ffaker', '~> 2.13'
39
39
  spec.add_dependency 'gem-release', '~> 2.1'
40
40
  spec.add_dependency 'github_changelog_generator', '~> 1.15'
41
- spec.add_dependency 'puma', '>= 4.3', '< 6.0'
41
+ spec.add_dependency 'puma', '>= 4.3', '< 7.0'
42
42
  spec.add_dependency 'rspec_junit_formatter'
43
- spec.add_dependency 'rspec-rails', '>= 4.0.0.beta3', '< 6.0'
43
+ spec.add_dependency 'rspec-rails', '>= 5.0', '< 7.0'
44
44
  spec.add_dependency 'rubocop', '~> 1.0'
45
45
  spec.add_dependency 'rubocop-performance', '~> 1.5'
46
46
  spec.add_dependency 'rubocop-rails', '~> 2.3'
@@ -96,11 +96,9 @@ RSpec.describe 'Create extension' do
96
96
 
97
97
  def check_bundle_install
98
98
  cd(install_path) do
99
- open('Gemfile', 'a') { |f| f.puts "gem 'solidus_dev_support', path: '../../..'" }
99
+ open('Gemfile', 'a') { |f| f.puts "gem 'solidus_dev_support', path: '../..'" }
100
100
  end
101
101
 
102
- expect { bundle_install }.to raise_error(command_failed_error, /invalid gemspec/)
103
-
104
102
  # Update gemspec with the required fields
105
103
  gemspec_path = install_path.join(gemspec_name)
106
104
  gemspec = gemspec_path.read.lines
@@ -139,9 +137,7 @@ RSpec.describe 'Create extension' do
139
137
 
140
138
  def check_sandbox
141
139
  cd(install_path) do
142
- # rubocop:disable Lint/InterpolationCheck
143
140
  command = 'bin/rails-sandbox runner "puts %{The version of SolidusTestExtension is #{SolidusTestExtension::VERSION}}"'
144
- # rubocop:enable Lint/InterpolationCheck
145
141
 
146
142
  first_run_output = sh(command)
147
143
  expect(first_run_output).to include("Creating the sandbox app...")
@@ -173,11 +169,11 @@ RSpec.describe 'Create extension' do
173
169
  output.to_s
174
170
  end
175
171
 
176
- def with_unbundled_env(&block)
172
+ def with_unbundled_env(...)
177
173
  if Bundler.respond_to?(:with_unbundled_env)
178
- Bundler.with_unbundled_env(&block)
174
+ Bundler.with_unbundled_env(...)
179
175
  else
180
- Bundler.with_clean_env(&block)
176
+ Bundler.with_clean_env(...)
181
177
  end
182
178
  end
183
179
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_dev_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.0
4
+ version: 2.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Desantis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-29 00:00:00.000000000 Z
11
+ date: 2024-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -151,7 +151,7 @@ dependencies:
151
151
  version: '4.3'
152
152
  - - "<"
153
153
  - !ruby/object:Gem::Version
154
- version: '6.0'
154
+ version: '7.0'
155
155
  type: :runtime
156
156
  prerelease: false
157
157
  version_requirements: !ruby/object:Gem::Requirement
@@ -161,7 +161,7 @@ dependencies:
161
161
  version: '4.3'
162
162
  - - "<"
163
163
  - !ruby/object:Gem::Version
164
- version: '6.0'
164
+ version: '7.0'
165
165
  - !ruby/object:Gem::Dependency
166
166
  name: rspec_junit_formatter
167
167
  requirement: !ruby/object:Gem::Requirement
@@ -182,20 +182,20 @@ dependencies:
182
182
  requirements:
183
183
  - - ">="
184
184
  - !ruby/object:Gem::Version
185
- version: 4.0.0.beta3
185
+ version: '5.0'
186
186
  - - "<"
187
187
  - !ruby/object:Gem::Version
188
- version: '6.0'
188
+ version: '7.0'
189
189
  type: :runtime
190
190
  prerelease: false
191
191
  version_requirements: !ruby/object:Gem::Requirement
192
192
  requirements:
193
193
  - - ">="
194
194
  - !ruby/object:Gem::Version
195
- version: 4.0.0.beta3
195
+ version: '5.0'
196
196
  - - "<"
197
197
  - !ruby/object:Gem::Version
198
- version: '6.0'
198
+ version: '7.0'
199
199
  - !ruby/object:Gem::Dependency
200
200
  name: rubocop
201
201
  requirement: !ruby/object:Gem::Requirement
@@ -390,7 +390,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
390
390
  - !ruby/object:Gem::Version
391
391
  version: '0'
392
392
  requirements: []
393
- rubygems_version: 3.5.3
393
+ rubygems_version: 3.5.22
394
394
  signing_key:
395
395
  specification_version: 4
396
396
  summary: Development tools for Solidus extensions.