stockpot 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7a4bf31bbaa54851f7afefe9140678b0290c3dee2fe80bfe577d23d9871f2e3
4
- data.tar.gz: df5053bd8857e38ff7b17fafd70d3a5641b45193289a7e645f00ac7de499bd9a
3
+ metadata.gz: a2ed98e155357c764f537d390bdf41db905bb5231e33bb7644639c1f309fde33
4
+ data.tar.gz: 0cd8008bef691299dc4c2e50343ef9d98002b9857703ca4f9a1cee55f2eed556
5
5
  SHA512:
6
- metadata.gz: 8c2921f3892e44849c6b437d44a9fc071146e490a8577a3e04430efc1d313152814c435e8f41a051dc8cbc87d2346eb6d698a328442fbadaf78191a90a4b4b20
7
- data.tar.gz: 9087bfcde46a56ac1e733ac045b1199afc08023c27bec695d99dcc5b7a29f6a5448221025aa2a00b9b08561c2ce5d2c1adb8809a996d7b6c1ad5e539be8c35ae
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 < ApplicationController
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
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Stockpot
3
- class HealthzController < ApplicationController
3
+ class HealthzController < MainController
4
4
  def index
5
5
  render json: { "message": "success" }, status: :ok
6
6
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Stockpot
3
- class ApplicationController < ActionController::API
3
+ class MainController < ActionController::API
4
4
  include ActiveSupport::Rescuable
5
5
  include Helper::Errors
6
6
 
@@ -2,7 +2,7 @@
2
2
  require "factory_bot_rails"
3
3
 
4
4
  module Stockpot
5
- class RecordsController < ApplicationController
5
+ class RecordsController < MainController
6
6
  include ActiveSupport::Inflector
7
7
  include ActiveRecord::Transactions
8
8
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Stockpot
3
- class RedisController < ApplicationController
3
+ class RedisController < MainController
4
4
  def index
5
5
  if params[:field].present?
6
6
  # Returns the value associated with :field in the hash stored at :key
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stockpot
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
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.0
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-02-10 00:00:00.000000000 Z
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
- rubygems_version: 3.1.2
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