stockpot 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/stockpot/database_cleaner_controller.rb +1 -1
- data/app/controllers/stockpot/healthz_controller.rb +1 -1
- data/app/controllers/stockpot/{application_controller.rb → main_controller.rb} +1 -1
- data/app/controllers/stockpot/records_controller.rb +1 -1
- data/app/controllers/stockpot/redis_controller.rb +1 -1
- data/lib/stockpot/engine.rb +6 -0
- data/lib/stockpot/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2ed98e155357c764f537d390bdf41db905bb5231e33bb7644639c1f309fde33
|
4
|
+
data.tar.gz: 0cd8008bef691299dc4c2e50343ef9d98002b9857703ca4f9a1cee55f2eed556
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00e9c0c1eea751c8f01bdb925592f904a578dea35aa0430278bd93ec7923c564cd7d787499fb8ce77feb07b7f1aad78d67a68884974640b532428ac381e4aa4b
|
7
|
+
data.tar.gz: e66ffa80fc4138ca3b01e86ab4012043d7909f9735e877d4cc2391f63e34a2b1de066761eb61cea0e19e134f30165584a2d845f8f65e62653479416783407b78
|
@@ -3,7 +3,7 @@
|
|
3
3
|
require "database_cleaner"
|
4
4
|
|
5
5
|
module Stockpot
|
6
|
-
class DatabaseCleanerController <
|
6
|
+
class DatabaseCleanerController < MainController
|
7
7
|
# Clean database before, between, and after tests by clearing Rails
|
8
8
|
# and REDIS caches and truncating the active record database.
|
9
9
|
def index
|
data/lib/stockpot/engine.rb
CHANGED
@@ -4,5 +4,11 @@ module Stockpot
|
|
4
4
|
class Engine < ::Rails::Engine
|
5
5
|
isolate_namespace Stockpot
|
6
6
|
config.generators.api_only = true
|
7
|
+
|
8
|
+
config.generators do |generators|
|
9
|
+
generators.test_framework :rspec
|
10
|
+
generators.fixture_replacement :factory_bot
|
11
|
+
generators.factory_bot dir: 'spec/factories'
|
12
|
+
end
|
7
13
|
end
|
8
14
|
end
|
data/lib/stockpot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stockpot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jayson Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -207,10 +207,10 @@ extra_rdoc_files: []
|
|
207
207
|
files:
|
208
208
|
- README.md
|
209
209
|
- Rakefile
|
210
|
-
- app/controllers/stockpot/application_controller.rb
|
211
210
|
- app/controllers/stockpot/database_cleaner_controller.rb
|
212
211
|
- app/controllers/stockpot/healthz_controller.rb
|
213
212
|
- app/controllers/stockpot/helper/errors.rb
|
213
|
+
- app/controllers/stockpot/main_controller.rb
|
214
214
|
- app/controllers/stockpot/records_controller.rb
|
215
215
|
- app/controllers/stockpot/redis_controller.rb
|
216
216
|
- config/routes.rb
|
@@ -240,7 +240,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
240
240
|
- !ruby/object:Gem::Version
|
241
241
|
version: '0'
|
242
242
|
requirements: []
|
243
|
-
|
243
|
+
rubyforge_project:
|
244
|
+
rubygems_version: 2.7.8
|
244
245
|
signing_key:
|
245
246
|
specification_version: 4
|
246
247
|
summary: Makes setting up test data in your Rails database from an external resource
|