diff --git a/Gemfile b/Gemfile index e8c0ccb..8c89c2e 100644 --- a/Gemfile +++ b/Gemfile @@ -67,8 +67,3 @@ gem 'devise' gem "sprockets-rails" gem "sassc-rails" gem "font-awesome-sass", '~> 5.15.1' - - - - -gem "shop_now", path: "vendor/plugins/shop_now" \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index 8f61946..883215e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,9 +1,3 @@ -PATH - remote: vendor/plugins/shop_now - specs: - shop_now (0.1.0) - rails (>= 8.0.3) - GEM remote: https://rubygems.org/ specs: @@ -399,7 +393,6 @@ DEPENDENCIES rubocop-rails-omakase sassc-rails selenium-webdriver - shop_now! solid_cable solid_cache solid_queue diff --git a/app/assets/config/manifest.js b/app/assets/config/manifest.js index 5918193..3f31662 100644 --- a/app/assets/config/manifest.js +++ b/app/assets/config/manifest.js @@ -1,2 +1,4 @@ //= link_tree ../images //= link_directory ../stylesheets .css +//= link_tree ../video .mp4 +//= link just.mp4 diff --git a/app/assets/video/just.mp4 b/app/assets/video/just.mp4 new file mode 100644 index 0000000..1cd6b26 Binary files /dev/null and b/app/assets/video/just.mp4 differ diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 937f6bd..cdf4e9a 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -5,6 +5,6 @@ class ApplicationController < ActionController::Base allow_browser versions: :modern before_action :set_assets_url def set_assets_url - Rails.application.routes.default_url_options[:host] = "10.159.208.233:3000" + Rails.application.routes.default_url_options[:host] = "192.168.1.77:3000" end end diff --git a/app/controllers/incomes_controller.rb b/app/controllers/incomes_controller.rb index b635c18..f7bf636 100644 --- a/app/controllers/incomes_controller.rb +++ b/app/controllers/incomes_controller.rb @@ -26,17 +26,28 @@ class IncomesController < ApplicationController # @chart_data = grouped.values.map { |items| items.sum(&:amount) } @incomes = Income.all - # Daily / Weekly / Monthly totals using scopes - @daily_income = Income.today.total_amount - @weekly_income = Income.this_week.total_amount - @monthly_income = Income.this_month.total_amount + # Daily incomes + @daily_income_items = Income.where(date: Date.today) + @daily_income = @daily_income_items.sum(:amount) - # For charts + # Weekly incomes + @weekly_income_items = Income.where(date: Date.today.beginning_of_week..Date.today.end_of_week) + @weekly_income = @weekly_income_items.sum(:amount) + + # Monthly incomes + @monthly_income_items = Income.where(date: Date.today.beginning_of_month..Date.today.end_of_month) + @monthly_income = @monthly_income_items.sum(:amount) + + # For charts - last 7 days @chart_labels = (0..6).map { |i| (Date.today - i).strftime("%d %b") }.reverse - @chart_data = @chart_labels.map { |d| Income.where(created_at: d.to_date.all_day).sum(:amount) } + @chart_data = @chart_labels.map { |date_str| + date = Date.parse(date_str) + Income.where(date: date).sum(:amount) + } end - def show; end + def show + end def new @income = Income.new diff --git a/app/controllers/products_controller.rb b/app/controllers/products_controller.rb new file mode 100644 index 0000000..5e5d0bd --- /dev/null +++ b/app/controllers/products_controller.rb @@ -0,0 +1,70 @@ +class ProductsController < ApplicationController + before_action :set_product, only: %i[ show edit update destroy ] + + # GET /products or /products.json + def index + @products = Product.all + end + + # GET /products/1 or /products/1.json + def show + end + + # GET /products/new + def new + @product = Product.new + end + + # GET /products/1/edit + def edit + end + + # POST /products or /products.json + def create + @product = Product.new(product_params) + + respond_to do |format| + if @product.save + format.html { redirect_to @product, notice: "Product was successfully created." } + format.json { render :show, status: :created, location: @product } + else + format.html { render :new, status: :unprocessable_entity } + format.json { render json: @product.errors, status: :unprocessable_entity } + end + end + end + + # PATCH/PUT /products/1 or /products/1.json + def update + respond_to do |format| + if @product.update(product_params) + format.html { redirect_to @product, notice: "Product was successfully updated.", status: :see_other } + format.json { render :show, status: :ok, location: @product } + else + format.html { render :edit, status: :unprocessable_entity } + format.json { render json: @product.errors, status: :unprocessable_entity } + end + end + end + + # DELETE /products/1 or /products/1.json + def destroy + @product.destroy! + + respond_to do |format| + format.html { redirect_to products_path, notice: "Product was successfully destroyed.", status: :see_other } + format.json { head :no_content } + end + end + + private + # Use callbacks to share common setup or constraints between actions. + def set_product + @product = Product.find(params.expect(:id)) + end + + # Only allow a list of trusted parameters through. + def product_params + params.expect(product: [ :name, :description, :price, images: [] ]) + end +end diff --git a/app/controllers/students_controller.rb b/app/controllers/students_controller.rb index ac1e47c..ec9e1ab 100644 --- a/app/controllers/students_controller.rb +++ b/app/controllers/students_controller.rb @@ -39,17 +39,17 @@ class StudentsController < ApplicationController # end # end def create - @student = @institution.students.new(student_params) + @student = @institution.students.new(student_params) - if @student.save respond_to do |format| - format.js # creates -> create.js.erb + if @student.save + format.html { redirect_to institution_students_path(@institution), notice: 'Student was successfully created.' } + format.js # renders create.js.erb + else + format.html { render :new, status: :unprocessable_entity } + format.js { render :error } + end end - else - respond_to do |format| - format.js { render :error } - end - end end diff --git a/app/models/admin.rb b/app/models/admin.rb index 7a7be2f..ad1a02a 100644 --- a/app/models/admin.rb +++ b/app/models/admin.rb @@ -1,6 +1,3 @@ -class Admin < ApplicationRecord - # Include default devise modules. Others available are: - # :confirmable, :lockable, :timeoutable, :trackable and :omniauthable - devise :database_authenticatable, :registerable, - :recoverable, :rememberable, :validatable -end +class Admin < User + +end \ No newline at end of file diff --git a/app/models/admin_user.rb b/app/models/admin_user.rb deleted file mode 100644 index 9b798db..0000000 --- a/app/models/admin_user.rb +++ /dev/null @@ -1,18 +0,0 @@ -class AdminUser < ApplicationRecord - # Include default devise modules. Others available are: - # :confirmable, :lockable, :timeoutable, :trackable and :omniauthable - devise :database_authenticatable, - :recoverable, :rememberable, :validatable - # Include default devise modules. Others available are: - # :confirmable, :lockable, :timeoutable, :trackable and :omniauthable - devise :database_authenticatable, - :recoverable, :rememberable, :validatable - # Include default devise modules. Others available are: - # :confirmable, :lockable, :timeoutable, :trackable and :omniauthable - devise :database_authenticatable, - :recoverable, :rememberable, :validatable - # Include default devise modules. Others available are: - # :confirmable, :lockable, :timeoutable, :trackable and :omniauthable - devise :database_authenticatable, - :recoverable, :rememberable, :validatable -end diff --git a/app/models/product.rb b/app/models/product.rb new file mode 100644 index 0000000..4ce2d44 --- /dev/null +++ b/app/models/product.rb @@ -0,0 +1,4 @@ +class Product < ApplicationRecord + has_rich_text :description + has_many_attached :images +end diff --git a/app/views/expenses/_expense.html.erb b/app/views/expenses/_expense.html.erb index 8479fd5..6836b7e 100644 --- a/app/views/expenses/_expense.html.erb +++ b/app/views/expenses/_expense.html.erb @@ -1,4 +1,10 @@
+ +

+ Title: + <%= expense.title %> +

+

Amount: <%= expense.amount %> @@ -9,4 +15,14 @@ <%= expense.date %>

+

+ Category: + <%= expense.category %> +

+ +

+ Description: + <%= expense.description %> +

+
diff --git a/app/views/expenses/_form.html.erb b/app/views/expenses/_form.html.erb index 36dc677..6032b8d 100644 --- a/app/views/expenses/_form.html.erb +++ b/app/views/expenses/_form.html.erb @@ -10,7 +10,10 @@ <% end %> - +
+ <%= form.label :title, style: "display: block" %> + <%= form.text_field :title %> +
<%= form.label :amount, style: "display: block" %> <%= form.text_field :amount %> @@ -21,6 +24,16 @@ <%= form.date_field :date %>
+
+ <%= form.label :category, style: "display: block" %> + <%= form.text_field :category %> +
+ +
+ <%= form.label :description, style: "display: block" %> + <%= form.textarea :description %> +
+
<%= form.submit %>
diff --git a/app/views/expenses/report.html.erb b/app/views/expenses/report.html.erb index 5a555f2..95ff3e6 100644 --- a/app/views/expenses/report.html.erb +++ b/app/views/expenses/report.html.erb @@ -1,15 +1,14 @@ <% content_for :title, "Expense Report" %> -
- + + + +
+ + +
+ +
+

From Him To Him

+

A Shelter for the destitute

+

EDUCATIONAL INSTITUTIONS

+

AND CHARITY TRUST

+

MANAGEMENT SYSTEM

+

GENERATION OF THOUGHTS

+ +
+
+ <% if @institutions.present? %> +
+ + +
+ <% else %> +

No institutions added yet.

+ <% end %> +
+
+
+
+ + + +
@@ -414,3 +511,25 @@ html, body {
+ + \ No newline at end of file diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index ea888cf..8ee1db8 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -23,6 +23,20 @@ + + + @@ -133,9 +178,6 @@ background-color: #181a1b !important; - @@ -145,9 +187,15 @@ background-color: #181a1b !important; + + diff --git a/app/views/products/_form.html.erb b/app/views/products/_form.html.erb new file mode 100644 index 0000000..063a598 --- /dev/null +++ b/app/views/products/_form.html.erb @@ -0,0 +1,37 @@ +<%= form_with(model: product) do |form| %> + <% if product.errors.any? %> +
+

<%= pluralize(product.errors.count, "error") %> prohibited this product from being saved:

+ +
    + <% product.errors.each do |error| %> +
  • <%= error.full_message %>
  • + <% end %> +
+
+ <% end %> + +
+ <%= form.label :name, style: "display: block" %> + <%= form.text_field :name %> +
+ +
+ <%= form.label :description, style: "display: block" %> + <%= form.rich_textarea :description %> +
+ +
+ <%= form.label :images, style: "display: block" %> + <%= form.file_field :images, multiple: true %> +
+ +
+ <%= form.label :price, style: "display: block" %> + <%= form.text_field :price %> +
+ +
+ <%= form.submit %> +
+<% end %> diff --git a/app/views/products/_product.html.erb b/app/views/products/_product.html.erb new file mode 100644 index 0000000..419a626 --- /dev/null +++ b/app/views/products/_product.html.erb @@ -0,0 +1,24 @@ +
+

+ Name: + <%= product.name %> +

+ +

+ Description: + <%= product.description %> +

+ +

+ Images: + <% product.images.each do |image| %> +

<%= link_to image.filename, image %>
+ <% end %> +

+ +

+ Price: + <%= product.price %> +

+ +
diff --git a/vendor/plugins/shop_now/app/views/shop_now/products/edit.html.erb b/app/views/products/edit.html.erb similarity index 100% rename from vendor/plugins/shop_now/app/views/shop_now/products/edit.html.erb rename to app/views/products/edit.html.erb diff --git a/app/views/products/index.html.erb b/app/views/products/index.html.erb new file mode 100644 index 0000000..09b94ea --- /dev/null +++ b/app/views/products/index.html.erb @@ -0,0 +1,16 @@ +

<%= notice %>

+ +<% content_for :title, "Products" %> + +

Products

+ +
+ <% @products.each do |product| %> + <%= render product %> +

+ <%= link_to "Show this product", product %> +

+ <% end %> +
+ +<%= link_to "New product", new_product_path %> diff --git a/vendor/plugins/shop_now/app/views/shop_now/products/new.html.erb b/app/views/products/new.html.erb similarity index 100% rename from vendor/plugins/shop_now/app/views/shop_now/products/new.html.erb rename to app/views/products/new.html.erb diff --git a/app/views/products/show.html.erb b/app/views/products/show.html.erb new file mode 100644 index 0000000..7911527 --- /dev/null +++ b/app/views/products/show.html.erb @@ -0,0 +1,10 @@ +

<%= notice %>

+ +<%= render @product %> + +
+ <%= link_to "Edit this product", edit_product_path(@product) %> | + <%= link_to "Back to products", products_path %> + + <%= button_to "Destroy this product", @product, method: :delete %> +
diff --git a/app/views/students/create.js.erb b/app/views/students/create.js.erb new file mode 100644 index 0000000..2078e65 --- /dev/null +++ b/app/views/students/create.js.erb @@ -0,0 +1,22 @@ +// Close any existing modal +var modal = document.querySelector('.modal'); +if (modal) { + var modalInstance = bootstrap.Modal.getInstance(modal); + modalInstance.hide(); +} + +// Show success message +var flashMessage = document.createElement('div'); +flashMessage.className = 'alert alert-success alert-dismissible fade show'; +flashMessage.setAttribute('role', 'alert'); +flashMessage.innerHTML = ` + Student was successfully created. + +`; + +// Add the flash message to the page +var flashContainer = document.querySelector('.flash-messages') || document.querySelector('main'); +flashContainer.insertBefore(flashMessage, flashContainer.firstChild); + +// Redirect to the students list +window.location.href = '<%= institution_students_path(@institution) %>'; \ No newline at end of file diff --git a/app/views/students/error.js.erb b/app/views/students/error.js.erb new file mode 100644 index 0000000..0bf3b80 --- /dev/null +++ b/app/views/students/error.js.erb @@ -0,0 +1,2 @@ +// Replace the form with the updated one containing errors +document.querySelector('#new_student, .edit_student').innerHTML = '<%= j render "form", student: @student %>'; \ No newline at end of file diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb index 4873244..416d709 100644 --- a/config/initializers/assets.rb +++ b/config/initializers/assets.rb @@ -5,3 +5,5 @@ Rails.application.config.assets.version = "1.0" # Add additional assets to the asset load path. # Rails.application.config.assets.paths << Emoji.images_path +Rails.application.config.assets.paths << Rails.root.join("app", "assets", "video") +Rails.application.config.assets.precompile += %w( *.mp4 video/*.mp4 ) diff --git a/config/routes.rb b/config/routes.rb index c46f9bb..d6d26bc 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,5 @@ Rails.application.routes.draw do + resources :products devise_for :users resources :students @@ -28,6 +29,4 @@ Rails.application.routes.draw do root "institutions#index" - mount ShopNow::Engine, at: "/shop_now" - end diff --git a/db/migrate/20251102065934_devise_create_users.rb b/db/migrate/20251102065934_devise_create_users.rb index 74745e4..efc471c 100644 --- a/db/migrate/20251102065934_devise_create_users.rb +++ b/db/migrate/20251102065934_devise_create_users.rb @@ -6,6 +6,7 @@ class DeviseCreateUsers < ActiveRecord::Migration[8.0] ## Database authenticatable t.string :email, null: false, default: "" t.string :encrypted_password, null: false, default: "" + ## Recoverable t.string :reset_password_token diff --git a/db/migrate/20251103065815_create_action_mailbox_tables.action_mailbox.rb b/db/migrate/20251103065815_create_action_mailbox_tables.action_mailbox.rb new file mode 100644 index 0000000..7b2b807 --- /dev/null +++ b/db/migrate/20251103065815_create_action_mailbox_tables.action_mailbox.rb @@ -0,0 +1,20 @@ +# This migration comes from action_mailbox (originally 20180917164000) +class CreateActionMailboxTables < ActiveRecord::Migration[6.0] + def change + create_table :action_mailbox_inbound_emails, id: primary_key_type do |t| + t.integer :status, default: 0, null: false + t.string :message_id, null: false + t.string :message_checksum, null: false + + t.timestamps + + t.index [ :message_id, :message_checksum ], name: "index_action_mailbox_inbound_emails_uniqueness", unique: true + end + end + + private + def primary_key_type + config = Rails.configuration.generators + config.options[config.orm][:primary_key_type] || :primary_key + end +end diff --git a/db/migrate/20251103065816_create_shop_now_cart_items.shop_now.rb b/db/migrate/20251103065816_create_shop_now_cart_items.shop_now.rb new file mode 100644 index 0000000..8cb75e8 --- /dev/null +++ b/db/migrate/20251103065816_create_shop_now_cart_items.shop_now.rb @@ -0,0 +1,11 @@ +# This migration comes from shop_now (originally 20251103064039) +class CreateShopNowCartItems < ActiveRecord::Migration[8.0] + def change + create_table :shop_now_cart_items do |t| + t.references :product, null: false, foreign_key: true + t.integer :quantity + + t.timestamps + end + end +end diff --git a/db/migrate/20251105155358_add_user.rb b/db/migrate/20251105155358_add_user.rb new file mode 100644 index 0000000..d331525 --- /dev/null +++ b/db/migrate/20251105155358_add_user.rb @@ -0,0 +1,5 @@ +class AddUser < ActiveRecord::Migration[8.0] + def change + add_column :users, :type, :string + end +end diff --git a/db/migrate/20251105172814_drop_cart_items_table.rb b/db/migrate/20251105172814_drop_cart_items_table.rb new file mode 100644 index 0000000..7130ff7 --- /dev/null +++ b/db/migrate/20251105172814_drop_cart_items_table.rb @@ -0,0 +1,7 @@ +class DropCartItemsTable < ActiveRecord::Migration[8.0] + def change + drop_table :cart_items + drop_table :carts + drop_table :shop_now_cart_items + end +end diff --git a/db/migrate/20251105173609_drop_shop_now_product_table.rb b/db/migrate/20251105173609_drop_shop_now_product_table.rb new file mode 100644 index 0000000..2d6ba8c --- /dev/null +++ b/db/migrate/20251105173609_drop_shop_now_product_table.rb @@ -0,0 +1,8 @@ +class DropShopNowProductTable < ActiveRecord::Migration[8.0] + def change + drop_table :shop_now_products + drop_table :admins + drop_table :admin_users + drop_table :active_admin_comments + end +end diff --git a/db/migrate/20251105175924_add_to_expense.rb b/db/migrate/20251105175924_add_to_expense.rb new file mode 100644 index 0000000..7406d0a --- /dev/null +++ b/db/migrate/20251105175924_add_to_expense.rb @@ -0,0 +1,5 @@ +class AddToExpense < ActiveRecord::Migration[8.0] + def change + + end +end diff --git a/db/migrate/20251105180543_add_title_category_description_to_expenses.rb b/db/migrate/20251105180543_add_title_category_description_to_expenses.rb new file mode 100644 index 0000000..13ed652 --- /dev/null +++ b/db/migrate/20251105180543_add_title_category_description_to_expenses.rb @@ -0,0 +1,4 @@ +class AddTitleCategoryDescriptionToExpenses < ActiveRecord::Migration[8.0] + def change + end +end diff --git a/db/migrate/20251105180728_add_title_category_description_to_expense.rb b/db/migrate/20251105180728_add_title_category_description_to_expense.rb new file mode 100644 index 0000000..a1d7c14 --- /dev/null +++ b/db/migrate/20251105180728_add_title_category_description_to_expense.rb @@ -0,0 +1,7 @@ +class AddTitleCategoryDescriptionToExpense < ActiveRecord::Migration[8.0] + def change + add_column :expenses, :title, :string + add_column :expenses, :category, :string + add_column :expenses, :description, :text + end +end diff --git a/db/schema.rb b/db/schema.rb index b576b71..537d380 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,16 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[8.0].define(version: 2025_11_02_124707) do +ActiveRecord::Schema[8.0].define(version: 2025_11_05_180728) do + create_table "action_mailbox_inbound_emails", force: :cascade do |t| + t.integer "status", default: 0, null: false + t.string "message_id", null: false + t.string "message_checksum", null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["message_id", "message_checksum"], name: "index_action_mailbox_inbound_emails_uniqueness", unique: true + end + create_table "action_text_rich_texts", force: :cascade do |t| t.string "name", null: false t.text "body" @@ -21,20 +30,6 @@ ActiveRecord::Schema[8.0].define(version: 2025_11_02_124707) do t.index ["record_type", "record_id", "name"], name: "index_action_text_rich_texts_uniqueness", unique: true end - create_table "active_admin_comments", force: :cascade do |t| - t.string "namespace" - t.text "body" - t.string "resource_type" - t.integer "resource_id" - t.string "author_type" - t.integer "author_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.index ["author_type", "author_id"], name: "index_active_admin_comments_on_author" - t.index ["namespace"], name: "index_active_admin_comments_on_namespace" - t.index ["resource_type", "resource_id"], name: "index_active_admin_comments_on_resource" - end - create_table "active_storage_attachments", force: :cascade do |t| t.string "name", null: false t.string "record_type", null: false @@ -63,45 +58,6 @@ ActiveRecord::Schema[8.0].define(version: 2025_11_02_124707) do t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true end - create_table "admin_users", force: :cascade do |t| - t.string "email", default: "", null: false - t.string "encrypted_password", default: "", null: false - t.string "reset_password_token" - t.datetime "reset_password_sent_at" - t.datetime "remember_created_at" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.index ["email"], name: "index_admin_users_on_email", unique: true - t.index ["reset_password_token"], name: "index_admin_users_on_reset_password_token", unique: true - end - - create_table "admins", force: :cascade do |t| - t.string "email", default: "", null: false - t.string "encrypted_password", default: "", null: false - t.string "reset_password_token" - t.datetime "reset_password_sent_at" - t.datetime "remember_created_at" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.index ["email"], name: "index_admins_on_email", unique: true - t.index ["reset_password_token"], name: "index_admins_on_reset_password_token", unique: true - end - - create_table "cart_items", force: :cascade do |t| - t.integer "cart_id", null: false - t.integer "product_id", null: false - t.integer "quantity" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.index ["cart_id"], name: "index_cart_items_on_cart_id" - t.index ["product_id"], name: "index_cart_items_on_product_id" - end - - create_table "carts", force: :cascade do |t| - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - create_table "exclusive_traditional_records", force: :cascade do |t| t.string "name" t.string "author" @@ -115,6 +71,9 @@ ActiveRecord::Schema[8.0].define(version: 2025_11_02_124707) do t.date "date" t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.string "title" + t.string "category" + t.text "description" end create_table "incomes", force: :cascade do |t| @@ -160,14 +119,6 @@ ActiveRecord::Schema[8.0].define(version: 2025_11_02_124707) do t.datetime "updated_at", null: false end - create_table "shop_now_products", force: :cascade do |t| - t.string "name" - t.decimal "price" - t.text "description" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - create_table "students", force: :cascade do |t| t.string "first_name" t.string "last_name" @@ -189,6 +140,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_11_02_124707) do t.datetime "remember_created_at" t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.string "type" t.index ["email"], name: "index_users_on_email", unique: true t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true end @@ -201,7 +153,5 @@ ActiveRecord::Schema[8.0].define(version: 2025_11_02_124707) do add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id" add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id" - add_foreign_key "cart_items", "carts" - add_foreign_key "cart_items", "products" add_foreign_key "students", "institutions" end diff --git a/vendor/plugins/shop_now/.rubocop.yml b/vendor/plugins/shop_now/.rubocop.yml deleted file mode 100644 index f9d86d4..0000000 --- a/vendor/plugins/shop_now/.rubocop.yml +++ /dev/null @@ -1,8 +0,0 @@ -# Omakase Ruby styling for Rails -inherit_gem: { rubocop-rails-omakase: rubocop.yml } - -# Overwrite or add rules to create your own house style -# -# # Use `[a, [b, c]]` not `[ a, [ b, c ] ]` -# Layout/SpaceInsideArrayLiteralBrackets: -# Enabled: false diff --git a/vendor/plugins/shop_now/Gemfile b/vendor/plugins/shop_now/Gemfile deleted file mode 100644 index dd5b26a..0000000 --- a/vendor/plugins/shop_now/Gemfile +++ /dev/null @@ -1,16 +0,0 @@ -source "https://rubygems.org" - -# Specify your gem's dependencies in shop_now.gemspec. -gemspec - -gem "puma" - -gem "sqlite3" - -gem "propshaft" - -# Omakase Ruby styling [https://github.com/rails/rubocop-rails-omakase/] -gem "rubocop-rails-omakase", require: false - -# Start debugger with binding.b [https://github.com/ruby/debug] -# gem "debug", ">= 1.0.0" diff --git a/vendor/plugins/shop_now/Gemfile.lock b/vendor/plugins/shop_now/Gemfile.lock deleted file mode 100644 index 67e26ae..0000000 --- a/vendor/plugins/shop_now/Gemfile.lock +++ /dev/null @@ -1,254 +0,0 @@ -PATH - remote: . - specs: - shop_now (0.1.0) - rails (>= 8.0.3) - -GEM - remote: https://rubygems.org/ - specs: - actioncable (8.0.3) - actionpack (= 8.0.3) - activesupport (= 8.0.3) - nio4r (~> 2.0) - websocket-driver (>= 0.6.1) - zeitwerk (~> 2.6) - actionmailbox (8.0.3) - actionpack (= 8.0.3) - activejob (= 8.0.3) - activerecord (= 8.0.3) - activestorage (= 8.0.3) - activesupport (= 8.0.3) - mail (>= 2.8.0) - actionmailer (8.0.3) - actionpack (= 8.0.3) - actionview (= 8.0.3) - activejob (= 8.0.3) - activesupport (= 8.0.3) - mail (>= 2.8.0) - rails-dom-testing (~> 2.2) - actionpack (8.0.3) - actionview (= 8.0.3) - activesupport (= 8.0.3) - nokogiri (>= 1.8.5) - rack (>= 2.2.4) - rack-session (>= 1.0.1) - rack-test (>= 0.6.3) - rails-dom-testing (~> 2.2) - rails-html-sanitizer (~> 1.6) - useragent (~> 0.16) - actiontext (8.0.3) - actionpack (= 8.0.3) - activerecord (= 8.0.3) - activestorage (= 8.0.3) - activesupport (= 8.0.3) - globalid (>= 0.6.0) - nokogiri (>= 1.8.5) - actionview (8.0.3) - activesupport (= 8.0.3) - builder (~> 3.1) - erubi (~> 1.11) - rails-dom-testing (~> 2.2) - rails-html-sanitizer (~> 1.6) - activejob (8.0.3) - activesupport (= 8.0.3) - globalid (>= 0.3.6) - activemodel (8.0.3) - activesupport (= 8.0.3) - activerecord (8.0.3) - activemodel (= 8.0.3) - activesupport (= 8.0.3) - timeout (>= 0.4.0) - activestorage (8.0.3) - actionpack (= 8.0.3) - activejob (= 8.0.3) - activerecord (= 8.0.3) - activesupport (= 8.0.3) - marcel (~> 1.0) - activesupport (8.0.3) - base64 - benchmark (>= 0.3) - bigdecimal - concurrent-ruby (~> 1.0, >= 1.3.1) - connection_pool (>= 2.2.5) - drb - i18n (>= 1.6, < 2) - logger (>= 1.4.2) - minitest (>= 5.1) - securerandom (>= 0.3) - tzinfo (~> 2.0, >= 2.0.5) - uri (>= 0.13.1) - ast (2.4.3) - base64 (0.3.0) - benchmark (0.5.0) - bigdecimal (3.3.1) - builder (3.3.0) - concurrent-ruby (1.3.5) - connection_pool (2.5.4) - crass (1.0.6) - date (3.4.1) - drb (2.2.3) - erb (5.1.1) - erubi (1.13.1) - globalid (1.3.0) - activesupport (>= 6.1) - i18n (1.14.7) - concurrent-ruby (~> 1.0) - io-console (0.8.1) - irb (1.15.2) - pp (>= 0.6.0) - rdoc (>= 4.0.0) - reline (>= 0.4.2) - json (2.15.2) - language_server-protocol (3.17.0.5) - lint_roller (1.1.0) - logger (1.7.0) - loofah (2.24.1) - crass (~> 1.0.2) - nokogiri (>= 1.12.0) - mail (2.9.0) - logger - mini_mime (>= 0.1.1) - net-imap - net-pop - net-smtp - marcel (1.1.0) - mini_mime (1.1.5) - minitest (5.26.0) - net-imap (0.5.12) - date - net-protocol - net-pop (0.1.2) - net-protocol - net-protocol (0.2.2) - timeout - net-smtp (0.5.1) - net-protocol - nio4r (2.7.4) - nokogiri (1.18.10-x86_64-linux-gnu) - racc (~> 1.4) - parallel (1.27.0) - parser (3.3.10.0) - ast (~> 2.4.1) - racc - pp (0.6.3) - prettyprint - prettyprint (0.2.0) - prism (1.6.0) - propshaft (1.3.1) - actionpack (>= 7.0.0) - activesupport (>= 7.0.0) - rack - psych (5.2.6) - date - stringio - puma (7.1.0) - nio4r (~> 2.0) - racc (1.8.1) - rack (3.2.3) - rack-session (2.1.1) - base64 (>= 0.1.0) - rack (>= 3.0.0) - rack-test (2.2.0) - rack (>= 1.3) - rackup (2.2.1) - rack (>= 3) - rails (8.0.3) - actioncable (= 8.0.3) - actionmailbox (= 8.0.3) - actionmailer (= 8.0.3) - actionpack (= 8.0.3) - actiontext (= 8.0.3) - actionview (= 8.0.3) - activejob (= 8.0.3) - activemodel (= 8.0.3) - activerecord (= 8.0.3) - activestorage (= 8.0.3) - activesupport (= 8.0.3) - bundler (>= 1.15.0) - railties (= 8.0.3) - rails-dom-testing (2.3.0) - activesupport (>= 5.0.0) - minitest - nokogiri (>= 1.6) - rails-html-sanitizer (1.6.2) - loofah (~> 2.21) - nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0) - railties (8.0.3) - actionpack (= 8.0.3) - activesupport (= 8.0.3) - irb (~> 1.13) - rackup (>= 1.0.0) - rake (>= 12.2) - thor (~> 1.0, >= 1.2.2) - tsort (>= 0.2) - zeitwerk (~> 2.6) - rainbow (3.1.1) - rake (13.3.0) - rdoc (6.15.0) - erb - psych (>= 4.0.0) - tsort - regexp_parser (2.11.3) - reline (0.6.2) - io-console (~> 0.5) - rubocop (1.81.6) - json (~> 2.3) - language_server-protocol (~> 3.17.0.2) - lint_roller (~> 1.1.0) - parallel (~> 1.10) - parser (>= 3.3.0.2) - rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 2.9.3, < 3.0) - rubocop-ast (>= 1.47.1, < 2.0) - ruby-progressbar (~> 1.7) - unicode-display_width (>= 2.4.0, < 4.0) - rubocop-ast (1.47.1) - parser (>= 3.3.7.2) - prism (~> 1.4) - rubocop-performance (1.26.1) - lint_roller (~> 1.1) - rubocop (>= 1.75.0, < 2.0) - rubocop-ast (>= 1.47.1, < 2.0) - rubocop-rails (2.33.4) - activesupport (>= 4.2.0) - lint_roller (~> 1.1) - rack (>= 1.1) - rubocop (>= 1.75.0, < 2.0) - rubocop-ast (>= 1.44.0, < 2.0) - rubocop-rails-omakase (1.1.0) - rubocop (>= 1.72) - rubocop-performance (>= 1.24) - rubocop-rails (>= 2.30) - ruby-progressbar (1.13.0) - securerandom (0.4.1) - sqlite3 (2.7.4-x86_64-linux-gnu) - stringio (3.1.7) - thor (1.4.0) - timeout (0.4.3) - tsort (0.2.0) - tzinfo (2.0.6) - concurrent-ruby (~> 1.0) - unicode-display_width (3.2.0) - unicode-emoji (~> 4.1) - unicode-emoji (4.1.0) - uri (1.1.0) - useragent (0.16.11) - websocket-driver (0.8.0) - base64 - websocket-extensions (>= 0.1.0) - websocket-extensions (0.1.5) - zeitwerk (2.7.3) - -PLATFORMS - x86_64-linux - -DEPENDENCIES - propshaft - puma - rubocop-rails-omakase - shop_now! - sqlite3 - -BUNDLED WITH - 2.4.20 diff --git a/vendor/plugins/shop_now/README.md b/vendor/plugins/shop_now/README.md deleted file mode 100644 index 1bfc947..0000000 --- a/vendor/plugins/shop_now/README.md +++ /dev/null @@ -1,28 +0,0 @@ -# ShopNow -Short description and motivation. - -## Usage -How to use my plugin. - -## Installation -Add this line to your application's Gemfile: - -```ruby -gem "shop_now" -``` - -And then execute: -```bash -$ bundle -``` - -Or install it yourself as: -```bash -$ gem install shop_now -``` - -## Contributing -Contribution directions go here. - -## License -The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT). diff --git a/vendor/plugins/shop_now/Rakefile b/vendor/plugins/shop_now/Rakefile deleted file mode 100644 index e7793b5..0000000 --- a/vendor/plugins/shop_now/Rakefile +++ /dev/null @@ -1,8 +0,0 @@ -require "bundler/setup" - -APP_RAKEFILE = File.expand_path("test/dummy/Rakefile", __dir__) -load "rails/tasks/engine.rake" - -load "rails/tasks/statistics.rake" - -require "bundler/gem_tasks" diff --git a/vendor/plugins/shop_now/app/assets/images/shop_now/.keep b/vendor/plugins/shop_now/app/assets/images/shop_now/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/vendor/plugins/shop_now/app/assets/stylesheets/shop_now/.keep b/vendor/plugins/shop_now/app/assets/stylesheets/shop_now/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/vendor/plugins/shop_now/app/controllers/.keep b/vendor/plugins/shop_now/app/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/vendor/plugins/shop_now/app/controllers/concerns/.keep b/vendor/plugins/shop_now/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/vendor/plugins/shop_now/app/controllers/shop_now/products_controller.rb b/vendor/plugins/shop_now/app/controllers/shop_now/products_controller.rb deleted file mode 100644 index babe2ad..0000000 --- a/vendor/plugins/shop_now/app/controllers/shop_now/products_controller.rb +++ /dev/null @@ -1,68 +0,0 @@ -module ShopNow - - class ProductsController < ApplicationController - before_action :set_product, only: %i[ show edit update destroy ] - layout "shop_now/application" - - - # GET /products - def index - @products = Product.all - end - - # GET /products/1 - def show - @product = Product.find(params[:id]) - end - - # GET /products/new - def new - @product = Product.new - end - - # GET /products/1/edit - def edit - end - - # GET /products/1/contact - def contact - end - - # POST /products - def create - @product = Product.new(product_params) - - if @product.save - redirect_to shop_now.product_path(@product), notice: "Product was successfully created." - else - render :new, status: :unprocessable_content - end - end - - # PATCH/PUT /products/1 - def update - if @product.update(product_params) - redirect_to shop_now.product_path(@product), notice: "Product was successfully updated.", status: :see_other - else - render :edit, status: :unprocessable_entity - end - end - - # DELETE /products/1 - def destroy - @product.destroy! - redirect_to shop_now.products_path, notice: "Product was successfully destroyed.", status: :see_other - end - - private - # Use callbacks to share common setup or constraints between actions. - def set_product - @product = Product.find(params[:id]) - end - - # Only allow a list of trusted parameters through. - def product_params - params.require(:product).permit(:name, :description, :price, images: []) - end - end -end \ No newline at end of file diff --git a/vendor/plugins/shop_now/app/helpers/.keep b/vendor/plugins/shop_now/app/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/vendor/plugins/shop_now/app/helpers/products_helper.rb b/vendor/plugins/shop_now/app/helpers/products_helper.rb deleted file mode 100644 index ab5c42b..0000000 --- a/vendor/plugins/shop_now/app/helpers/products_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ProductsHelper -end diff --git a/vendor/plugins/shop_now/app/jobs/.keep b/vendor/plugins/shop_now/app/jobs/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/vendor/plugins/shop_now/app/mailers/.keep b/vendor/plugins/shop_now/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/vendor/plugins/shop_now/app/models/.keep b/vendor/plugins/shop_now/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/vendor/plugins/shop_now/app/models/concerns/.keep b/vendor/plugins/shop_now/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/vendor/plugins/shop_now/app/models/shop_now/product.rb b/vendor/plugins/shop_now/app/models/shop_now/product.rb deleted file mode 100644 index f1f3181..0000000 --- a/vendor/plugins/shop_now/app/models/shop_now/product.rb +++ /dev/null @@ -1,14 +0,0 @@ -module ShopNow - class Product < ApplicationRecord - self.table_name = 'shop_now_products' - has_rich_text :description - has_many_attached :images - has_one_attached :image - end -end - - - -# class ShopNow::Product < ApplicationRecord - -# end diff --git a/vendor/plugins/shop_now/app/views/.keep b/vendor/plugins/shop_now/app/views/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/vendor/plugins/shop_now/app/views/layouts/shop_now/application.html.erb b/vendor/plugins/shop_now/app/views/layouts/shop_now/application.html.erb deleted file mode 100644 index 7d6cb32..0000000 --- a/vendor/plugins/shop_now/app/views/layouts/shop_now/application.html.erb +++ /dev/null @@ -1,125 +0,0 @@ - - - - ShopNow - - <%= csrf_meta_tags %> - <%= csp_meta_tag %> - - - <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %> - - - - - - - - - - - - - - - - -
- <%= yield %> -
- - - - - diff --git a/vendor/plugins/shop_now/app/views/shop_now/products/_form.html.erb b/vendor/plugins/shop_now/app/views/shop_now/products/_form.html.erb deleted file mode 100644 index dcb9c4d..0000000 --- a/vendor/plugins/shop_now/app/views/shop_now/products/_form.html.erb +++ /dev/null @@ -1,39 +0,0 @@ -<%# Use explicit engine route helpers to avoid polymorphic helper resolution issues inside isolated engine views %> -<% form_url = product.persisted? ? shop_now.product_path(product) : shop_now.products_path %> -<% form_method = product.persisted? ? :patch : :post %> -<%= form_with(model: product, url: form_url, method: form_method, local: true) do |form| %> - <% if product.errors.any? %> -
-

<%= pluralize(product.errors.count, "error") %> prohibited this product from being saved:

-
    - <% product.errors.each do |error| %> -
  • <%= error.full_message %>
  • - <% end %> -
-
- <% end %> - -
- <%= form.label :name, class: "form-label" %> - <%= form.text_field :name, class: "form-control" %> -
- -
- <%= form.label :price, class: "form-label" %> - <%= form.number_field :price, class: "form-control", step: :any %> -
- -
- <%= form.label :description, class: "form-label" %> - <%= form.text_field :description, class: "form-control" %> -
- -
- <%= form.label :images, class: "form-label" %> - <%= form.file_field :images, multiple: true, class: "form-control" %> -
- -
- <%= form.submit class: "btn btn-primary" %> -
-<% end %> diff --git a/vendor/plugins/shop_now/app/views/shop_now/products/_product.html.erb b/vendor/plugins/shop_now/app/views/shop_now/products/_product.html.erb deleted file mode 100644 index 4567030..0000000 --- a/vendor/plugins/shop_now/app/views/shop_now/products/_product.html.erb +++ /dev/null @@ -1,29 +0,0 @@ -
-

- Name: - <%= product.name %> -

- -

- Description: - <%= product.description %> -

- -

- Images: - <% if product.images.attached? %> -

- <% product.images.each do |image| %> -
- <%= image_tag main_app.rails_blob_path(image, only_path: true), class: "img-thumbnail rounded shadow-sm", style: "max-width: 200px; height: auto;" %> -
- <% end %> -
- <% end %> -

- -

- Price: - <%= product.price %> -

-
diff --git a/vendor/plugins/shop_now/app/views/shop_now/products/contact.html.erb b/vendor/plugins/shop_now/app/views/shop_now/products/contact.html.erb deleted file mode 100644 index ce0e8ce..0000000 --- a/vendor/plugins/shop_now/app/views/shop_now/products/contact.html.erb +++ /dev/null @@ -1,10 +0,0 @@ -

Contact Us

-

If you have any questions or need assistance, please feel free to reach out to us:

- \ No newline at end of file diff --git a/vendor/plugins/shop_now/app/views/shop_now/products/index.html.erb b/vendor/plugins/shop_now/app/views/shop_now/products/index.html.erb deleted file mode 100644 index 2520385..0000000 --- a/vendor/plugins/shop_now/app/views/shop_now/products/index.html.erb +++ /dev/null @@ -1,183 +0,0 @@ -<% content_for :title, "Products" %> - - - - - -
- <% @products.each do |product| %> -
- - -

<%= product.name %>

-

<%= product.price %>

- <%= link_to "View Product", product_path(product), class: "product-link" %> -
- <% end %> -
- - -<%= link_to "Add New Product", new_product_path, class: 'new-product-button' %> - - - - - diff --git a/vendor/plugins/shop_now/app/views/shop_now/products/show.html.erb b/vendor/plugins/shop_now/app/views/shop_now/products/show.html.erb deleted file mode 100644 index c0c58be..0000000 --- a/vendor/plugins/shop_now/app/views/shop_now/products/show.html.erb +++ /dev/null @@ -1,10 +0,0 @@ -

<%= notice %>

- -<%= render @product %> - -
- <%= link_to "Edit this product", shop_now.edit_product_path(@product) %> | - <%= link_to "Back to products", shop_now.products_path %> - - <%= button_to "Destroy this product", shop_now.product_path(@product), method: :delete %> -
diff --git a/vendor/plugins/shop_now/bin/rails b/vendor/plugins/shop_now/bin/rails deleted file mode 100755 index 2e4a1b7..0000000 --- a/vendor/plugins/shop_now/bin/rails +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env ruby -# This command will automatically be run when you run "rails" with Rails gems -# installed from the root of your application. - -ENGINE_ROOT = File.expand_path("..", __dir__) -ENGINE_PATH = File.expand_path("../lib/shop_now/engine", __dir__) -APP_PATH = File.expand_path("../test/dummy/config/application", __dir__) - -# Set up gems listed in the Gemfile. -ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) -require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"]) - -require "rails/all" -require "rails/engine/commands" diff --git a/vendor/plugins/shop_now/bin/rubocop b/vendor/plugins/shop_now/bin/rubocop deleted file mode 100755 index 40330c0..0000000 --- a/vendor/plugins/shop_now/bin/rubocop +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env ruby -require "rubygems" -require "bundler/setup" - -# explicit rubocop config increases performance slightly while avoiding config confusion. -ARGV.unshift("--config", File.expand_path("../.rubocop.yml", __dir__)) - -load Gem.bin_path("rubocop", "rubocop") diff --git a/vendor/plugins/shop_now/config/routes.rb b/vendor/plugins/shop_now/config/routes.rb deleted file mode 100644 index b5560e5..0000000 --- a/vendor/plugins/shop_now/config/routes.rb +++ /dev/null @@ -1,7 +0,0 @@ - -ShopNow::Engine.routes.draw do - resources :products - # Within the engine, controllers are namespaced automatically (ShopNow::ProductsController) - root to: "shop_now/products#index" - get "contact", to: "products#contact" -end diff --git a/vendor/plugins/shop_now/db/migrate/20251102092955_create_products.rb b/vendor/plugins/shop_now/db/migrate/20251102092955_create_products.rb deleted file mode 100644 index 305a029..0000000 --- a/vendor/plugins/shop_now/db/migrate/20251102092955_create_products.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateProducts < ActiveRecord::Migration[8.0] - def change - create_table :products do |t| - t.string :name - t.text :description - t.decimal :price - - t.timestamps - end - end -end diff --git a/vendor/plugins/shop_now/lib/shop_now.rb b/vendor/plugins/shop_now/lib/shop_now.rb deleted file mode 100644 index c28b501..0000000 --- a/vendor/plugins/shop_now/lib/shop_now.rb +++ /dev/null @@ -1,6 +0,0 @@ -require "shop_now/version" -require "shop_now/engine" - -module ShopNow - # Your code goes here... -end diff --git a/vendor/plugins/shop_now/lib/shop_now/engine.rb b/vendor/plugins/shop_now/lib/shop_now/engine.rb deleted file mode 100644 index 6714745..0000000 --- a/vendor/plugins/shop_now/lib/shop_now/engine.rb +++ /dev/null @@ -1,5 +0,0 @@ -module ShopNow - class Engine < ::Rails::Engine - isolate_namespace ShopNow - end -end diff --git a/vendor/plugins/shop_now/lib/shop_now/version.rb b/vendor/plugins/shop_now/lib/shop_now/version.rb deleted file mode 100644 index 9ea7c90..0000000 --- a/vendor/plugins/shop_now/lib/shop_now/version.rb +++ /dev/null @@ -1,3 +0,0 @@ -module ShopNow - VERSION = "0.1.0" -end diff --git a/vendor/plugins/shop_now/lib/tasks/shop_now_tasks.rake b/vendor/plugins/shop_now/lib/tasks/shop_now_tasks.rake deleted file mode 100644 index 0994a4f..0000000 --- a/vendor/plugins/shop_now/lib/tasks/shop_now_tasks.rake +++ /dev/null @@ -1,4 +0,0 @@ -# desc "Explaining what the task does" -# task :shop_now do -# # Task goes here -# end diff --git a/vendor/plugins/shop_now/shop_now.gemspec b/vendor/plugins/shop_now/shop_now.gemspec deleted file mode 100644 index af04c65..0000000 --- a/vendor/plugins/shop_now/shop_now.gemspec +++ /dev/null @@ -1,26 +0,0 @@ -require_relative "lib/shop_now/version" - -Gem::Specification.new do |spec| - spec.name = "shop_now" - spec.version = ShopNow::VERSION - spec.authors = [ "niyas301" ] - spec.email = [ "niyumon301@gmail.com" ] - spec.homepage = "https://example.com/shop_now" - spec.summary = "ShopNow plugin for Badar Madeena (local)" - spec.description = "Local ShopNow plugin used by the application. Replace with your project's description." - - # Prevent pushing this gem to RubyGems.org. To allow pushes either set the "allowed_push_host" - # to allow pushing to a single host or delete this section to allow pushing to any host. - # If you publish this gem, set allowed_push_host appropriately. Left unset for local use. - # spec.metadata["allowed_push_host"] = "http://mygemserver.com" - - spec.metadata["homepage_uri"] = spec.homepage - spec.metadata["source_code_uri"] = "https://example.com/shop_now/source" - spec.metadata["changelog_uri"] = "https://example.com/shop_now/CHANGELOG.md" - - spec.files = Dir.chdir(File.expand_path(__dir__)) do - Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md"] - end - - spec.add_dependency "rails", ">= 8.0.3" -end diff --git a/vendor/plugins/shop_now/test/controllers/.keep b/vendor/plugins/shop_now/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/vendor/plugins/shop_now/test/controllers/products_controller_test.rb b/vendor/plugins/shop_now/test/controllers/products_controller_test.rb deleted file mode 100644 index 97174d1..0000000 --- a/vendor/plugins/shop_now/test/controllers/products_controller_test.rb +++ /dev/null @@ -1,48 +0,0 @@ -require "test_helper" - -class ProductsControllerTest < ActionDispatch::IntegrationTest - setup do - @product = products(:one) - end - - test "should get index" do - get products_url - assert_response :success - end - - test "should get new" do - get new_product_url - assert_response :success - end - - test "should create product" do - assert_difference("Product.count") do - post products_url, params: { product: { name: @product.name, price: @product.price } } - end - - assert_redirected_to product_url(Product.last) - end - - test "should show product" do - get product_url(@product) - assert_response :success - end - - test "should get edit" do - get edit_product_url(@product) - assert_response :success - end - - test "should update product" do - patch product_url(@product), params: { product: { name: @product.name, price: @product.price } } - assert_redirected_to product_url(@product) - end - - test "should destroy product" do - assert_difference("Product.count", -1) do - delete product_url(@product) - end - - assert_redirected_to products_url - end -end diff --git a/vendor/plugins/shop_now/test/dummy/Rakefile b/vendor/plugins/shop_now/test/dummy/Rakefile deleted file mode 100644 index 9a5ea73..0000000 --- a/vendor/plugins/shop_now/test/dummy/Rakefile +++ /dev/null @@ -1,6 +0,0 @@ -# Add your own tasks in files placed in lib/tasks ending in .rake, -# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. - -require_relative "config/application" - -Rails.application.load_tasks diff --git a/vendor/plugins/shop_now/test/dummy/app/assets/images/.keep b/vendor/plugins/shop_now/test/dummy/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/vendor/plugins/shop_now/test/dummy/app/assets/stylesheets/application.css b/vendor/plugins/shop_now/test/dummy/app/assets/stylesheets/application.css deleted file mode 100644 index 0ebd7fe..0000000 --- a/vendor/plugins/shop_now/test/dummy/app/assets/stylesheets/application.css +++ /dev/null @@ -1,15 +0,0 @@ -/* - * This is a manifest file that'll be compiled into application.css, which will include all the files - * listed below. - * - * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, - * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path. - * - * You're free to add application-wide styles to this file and they'll appear at the bottom of the - * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS - * files in this directory. Styles in this file should be added after the last require_* statement. - * It is generally better to create a new file per style scope. - * - *= require_tree . - *= require_self - */ diff --git a/vendor/plugins/shop_now/test/dummy/app/controllers/application_controller.rb b/vendor/plugins/shop_now/test/dummy/app/controllers/application_controller.rb deleted file mode 100644 index 0d95db2..0000000 --- a/vendor/plugins/shop_now/test/dummy/app/controllers/application_controller.rb +++ /dev/null @@ -1,4 +0,0 @@ -class ApplicationController < ActionController::Base - # Only allow modern browsers supporting webp images, web push, badges, import maps, CSS nesting, and CSS :has. - allow_browser versions: :modern -end diff --git a/vendor/plugins/shop_now/test/dummy/app/controllers/concerns/.keep b/vendor/plugins/shop_now/test/dummy/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/vendor/plugins/shop_now/test/dummy/app/helpers/application_helper.rb b/vendor/plugins/shop_now/test/dummy/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/vendor/plugins/shop_now/test/dummy/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/vendor/plugins/shop_now/test/dummy/app/jobs/application_job.rb b/vendor/plugins/shop_now/test/dummy/app/jobs/application_job.rb deleted file mode 100644 index d394c3d..0000000 --- a/vendor/plugins/shop_now/test/dummy/app/jobs/application_job.rb +++ /dev/null @@ -1,7 +0,0 @@ -class ApplicationJob < ActiveJob::Base - # Automatically retry jobs that encountered a deadlock - # retry_on ActiveRecord::Deadlocked - - # Most jobs are safe to ignore if the underlying records are no longer available - # discard_on ActiveJob::DeserializationError -end diff --git a/vendor/plugins/shop_now/test/dummy/app/mailers/application_mailer.rb b/vendor/plugins/shop_now/test/dummy/app/mailers/application_mailer.rb deleted file mode 100644 index 3c34c81..0000000 --- a/vendor/plugins/shop_now/test/dummy/app/mailers/application_mailer.rb +++ /dev/null @@ -1,4 +0,0 @@ -class ApplicationMailer < ActionMailer::Base - default from: "from@example.com" - layout "mailer" -end diff --git a/vendor/plugins/shop_now/test/dummy/app/models/application_record.rb b/vendor/plugins/shop_now/test/dummy/app/models/application_record.rb deleted file mode 100644 index b63caeb..0000000 --- a/vendor/plugins/shop_now/test/dummy/app/models/application_record.rb +++ /dev/null @@ -1,3 +0,0 @@ -class ApplicationRecord < ActiveRecord::Base - primary_abstract_class -end diff --git a/vendor/plugins/shop_now/test/dummy/app/models/concerns/.keep b/vendor/plugins/shop_now/test/dummy/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/vendor/plugins/shop_now/test/dummy/app/views/layouts/application.html.erb b/vendor/plugins/shop_now/test/dummy/app/views/layouts/application.html.erb deleted file mode 100644 index f25ae92..0000000 --- a/vendor/plugins/shop_now/test/dummy/app/views/layouts/application.html.erb +++ /dev/null @@ -1,27 +0,0 @@ - - - - <%= content_for(:title) || "Dummy" %> - - - - <%= csrf_meta_tags %> - <%= csp_meta_tag %> - - <%= yield :head %> - - <%# Enable PWA manifest for installable apps (make sure to enable in config/routes.rb too!) %> - <%#= tag.link rel: "manifest", href: pwa_manifest_path(format: :json) %> - - - - - - <%# Includes all stylesheet files in app/assets/stylesheets %> - <%= stylesheet_link_tag :app %> - - - - <%= yield %> - - diff --git a/vendor/plugins/shop_now/test/dummy/app/views/layouts/mailer.html.erb b/vendor/plugins/shop_now/test/dummy/app/views/layouts/mailer.html.erb deleted file mode 100644 index 3aac900..0000000 --- a/vendor/plugins/shop_now/test/dummy/app/views/layouts/mailer.html.erb +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - <%= yield %> - - diff --git a/vendor/plugins/shop_now/test/dummy/app/views/layouts/mailer.text.erb b/vendor/plugins/shop_now/test/dummy/app/views/layouts/mailer.text.erb deleted file mode 100644 index 37f0bdd..0000000 --- a/vendor/plugins/shop_now/test/dummy/app/views/layouts/mailer.text.erb +++ /dev/null @@ -1 +0,0 @@ -<%= yield %> diff --git a/vendor/plugins/shop_now/test/dummy/app/views/pwa/manifest.json.erb b/vendor/plugins/shop_now/test/dummy/app/views/pwa/manifest.json.erb deleted file mode 100644 index a3c046e..0000000 --- a/vendor/plugins/shop_now/test/dummy/app/views/pwa/manifest.json.erb +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "Dummy", - "icons": [ - { - "src": "/icon.png", - "type": "image/png", - "sizes": "512x512" - }, - { - "src": "/icon.png", - "type": "image/png", - "sizes": "512x512", - "purpose": "maskable" - } - ], - "start_url": "/", - "display": "standalone", - "scope": "/", - "description": "Dummy.", - "theme_color": "red", - "background_color": "red" -} diff --git a/vendor/plugins/shop_now/test/dummy/app/views/pwa/service-worker.js b/vendor/plugins/shop_now/test/dummy/app/views/pwa/service-worker.js deleted file mode 100644 index b3a13fb..0000000 --- a/vendor/plugins/shop_now/test/dummy/app/views/pwa/service-worker.js +++ /dev/null @@ -1,26 +0,0 @@ -// Add a service worker for processing Web Push notifications: -// -// self.addEventListener("push", async (event) => { -// const { title, options } = await event.data.json() -// event.waitUntil(self.registration.showNotification(title, options)) -// }) -// -// self.addEventListener("notificationclick", function(event) { -// event.notification.close() -// event.waitUntil( -// clients.matchAll({ type: "window" }).then((clientList) => { -// for (let i = 0; i < clientList.length; i++) { -// let client = clientList[i] -// let clientPath = (new URL(client.url)).pathname -// -// if (clientPath == event.notification.data.path && "focus" in client) { -// return client.focus() -// } -// } -// -// if (clients.openWindow) { -// return clients.openWindow(event.notification.data.path) -// } -// }) -// ) -// }) diff --git a/vendor/plugins/shop_now/test/dummy/bin/dev b/vendor/plugins/shop_now/test/dummy/bin/dev deleted file mode 100755 index 5f91c20..0000000 --- a/vendor/plugins/shop_now/test/dummy/bin/dev +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env ruby -exec "./bin/rails", "server", *ARGV diff --git a/vendor/plugins/shop_now/test/dummy/bin/rails b/vendor/plugins/shop_now/test/dummy/bin/rails deleted file mode 100755 index efc0377..0000000 --- a/vendor/plugins/shop_now/test/dummy/bin/rails +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env ruby -APP_PATH = File.expand_path("../config/application", __dir__) -require_relative "../config/boot" -require "rails/commands" diff --git a/vendor/plugins/shop_now/test/dummy/bin/rake b/vendor/plugins/shop_now/test/dummy/bin/rake deleted file mode 100755 index 4fbf10b..0000000 --- a/vendor/plugins/shop_now/test/dummy/bin/rake +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env ruby -require_relative "../config/boot" -require "rake" -Rake.application.run diff --git a/vendor/plugins/shop_now/test/dummy/bin/setup b/vendor/plugins/shop_now/test/dummy/bin/setup deleted file mode 100755 index be3db3c..0000000 --- a/vendor/plugins/shop_now/test/dummy/bin/setup +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env ruby -require "fileutils" - -APP_ROOT = File.expand_path("..", __dir__) - -def system!(*args) - system(*args, exception: true) -end - -FileUtils.chdir APP_ROOT do - # This script is a way to set up or update your development environment automatically. - # This script is idempotent, so that you can run it at any time and get an expectable outcome. - # Add necessary setup steps to this file. - - puts "== Installing dependencies ==" - system("bundle check") || system!("bundle install") - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # FileUtils.cp "config/database.yml.sample", "config/database.yml" - # end - - puts "\n== Preparing database ==" - system! "bin/rails db:prepare" - - puts "\n== Removing old logs and tempfiles ==" - system! "bin/rails log:clear tmp:clear" - - unless ARGV.include?("--skip-server") - puts "\n== Starting development server ==" - STDOUT.flush # flush the output before exec(2) so that it displays - exec "bin/dev" - end -end diff --git a/vendor/plugins/shop_now/test/dummy/config.ru b/vendor/plugins/shop_now/test/dummy/config.ru deleted file mode 100644 index 4a3c09a..0000000 --- a/vendor/plugins/shop_now/test/dummy/config.ru +++ /dev/null @@ -1,6 +0,0 @@ -# This file is used by Rack-based servers to start the application. - -require_relative "config/environment" - -run Rails.application -Rails.application.load_server diff --git a/vendor/plugins/shop_now/test/dummy/config/application.rb b/vendor/plugins/shop_now/test/dummy/config/application.rb deleted file mode 100644 index 6e61f6b..0000000 --- a/vendor/plugins/shop_now/test/dummy/config/application.rb +++ /dev/null @@ -1,29 +0,0 @@ -require_relative "boot" - -require "rails/all" - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Dummy - class Application < Rails::Application - config.load_defaults Rails::VERSION::STRING.to_f - - # For compatibility with applications that use this config - config.action_controller.include_all_helpers = false - - # Please, add to the `ignore` list any other `lib` subdirectories that do - # not contain `.rb` files, or that should not be reloaded or eager loaded. - # Common ones are `templates`, `generators`, or `middleware`, for example. - config.autoload_lib(ignore: %w[assets tasks]) - - # Configuration for the application, engines, and railties goes here. - # - # These settings can be overridden in specific environments using the files - # in config/environments, which are processed later. - # - # config.time_zone = "Central Time (US & Canada)" - # config.eager_load_paths << Rails.root.join("extras") - end -end diff --git a/vendor/plugins/shop_now/test/dummy/config/boot.rb b/vendor/plugins/shop_now/test/dummy/config/boot.rb deleted file mode 100644 index 116591a..0000000 --- a/vendor/plugins/shop_now/test/dummy/config/boot.rb +++ /dev/null @@ -1,5 +0,0 @@ -# Set up gems listed in the Gemfile. -ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../../Gemfile", __dir__) - -require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"]) -$LOAD_PATH.unshift File.expand_path("../../../lib", __dir__) diff --git a/vendor/plugins/shop_now/test/dummy/config/cable.yml b/vendor/plugins/shop_now/test/dummy/config/cable.yml deleted file mode 100644 index 98367f8..0000000 --- a/vendor/plugins/shop_now/test/dummy/config/cable.yml +++ /dev/null @@ -1,10 +0,0 @@ -development: - adapter: async - -test: - adapter: test - -production: - adapter: redis - url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %> - channel_prefix: dummy_production diff --git a/vendor/plugins/shop_now/test/dummy/config/database.yml b/vendor/plugins/shop_now/test/dummy/config/database.yml deleted file mode 100644 index 01bebb5..0000000 --- a/vendor/plugins/shop_now/test/dummy/config/database.yml +++ /dev/null @@ -1,32 +0,0 @@ -# SQLite. Versions 3.8.0 and up are supported. -# gem install sqlite3 -# -# Ensure the SQLite 3 gem is defined in your Gemfile -# gem "sqlite3" -# -default: &default - adapter: sqlite3 - pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> - timeout: 5000 - -development: - <<: *default - database: storage/development.sqlite3 - -# Warning: The database defined as "test" will be erased and -# re-generated from your development database when you run "rake". -# Do not set this db to the same as development or production. -test: - <<: *default - database: storage/test.sqlite3 - - -# SQLite3 write its data on the local filesystem, as such it requires -# persistent disks. If you are deploying to a managed service, you should -# make sure it provides disk persistence, as many don't. -# -# Similarly, if you deploy your application as a Docker container, you must -# ensure the database is located in a persisted volume. -production: - <<: *default - # database: path/to/persistent/storage/production.sqlite3 diff --git a/vendor/plugins/shop_now/test/dummy/config/environment.rb b/vendor/plugins/shop_now/test/dummy/config/environment.rb deleted file mode 100644 index cac5315..0000000 --- a/vendor/plugins/shop_now/test/dummy/config/environment.rb +++ /dev/null @@ -1,5 +0,0 @@ -# Load the Rails application. -require_relative "application" - -# Initialize the Rails application. -Rails.application.initialize! diff --git a/vendor/plugins/shop_now/test/dummy/config/environments/development.rb b/vendor/plugins/shop_now/test/dummy/config/environments/development.rb deleted file mode 100644 index 263e0c4..0000000 --- a/vendor/plugins/shop_now/test/dummy/config/environments/development.rb +++ /dev/null @@ -1,69 +0,0 @@ -require "active_support/core_ext/integer/time" - -Rails.application.configure do - # Settings specified here will take precedence over those in config/application.rb. - - # Make code changes take effect immediately without server restart. - config.enable_reloading = true - - # Do not eager load code on boot. - config.eager_load = false - - # Show full error reports. - config.consider_all_requests_local = true - - # Enable server timing. - config.server_timing = true - - # Enable/disable Action Controller caching. By default Action Controller caching is disabled. - # Run rails dev:cache to toggle Action Controller caching. - if Rails.root.join("tmp/caching-dev.txt").exist? - config.action_controller.perform_caching = true - config.action_controller.enable_fragment_cache_logging = true - config.public_file_server.headers = { "cache-control" => "public, max-age=#{2.days.to_i}" } - else - config.action_controller.perform_caching = false - end - - # Change to :null_store to avoid any caching. - config.cache_store = :memory_store - - # Store uploaded files on the local file system (see config/storage.yml for options). - config.active_storage.service = :local - - # Don't care if the mailer can't send. - config.action_mailer.raise_delivery_errors = false - - # Make template changes take effect immediately. - config.action_mailer.perform_caching = false - - # Set localhost to be used by links generated in mailer templates. - config.action_mailer.default_url_options = { host: "localhost", port: 3000 } - - # Print deprecation notices to the Rails logger. - config.active_support.deprecation = :log - - # Raise an error on page load if there are pending migrations. - config.active_record.migration_error = :page_load - - # Highlight code that triggered database queries in logs. - config.active_record.verbose_query_logs = true - - # Append comments with runtime information tags to SQL queries in logs. - config.active_record.query_log_tags_enabled = true - - # Highlight code that enqueued background job in logs. - config.active_job.verbose_enqueue_logs = true - - # Raises error for missing translations. - # config.i18n.raise_on_missing_translations = true - - # Annotate rendered view with file names. - config.action_view.annotate_rendered_view_with_filenames = true - - # Uncomment if you wish to allow Action Cable access from any origin. - # config.action_cable.disable_request_forgery_protection = true - - # Raise error when a before_action's only/except options reference missing actions. - config.action_controller.raise_on_missing_callback_actions = true -end diff --git a/vendor/plugins/shop_now/test/dummy/config/environments/production.rb b/vendor/plugins/shop_now/test/dummy/config/environments/production.rb deleted file mode 100644 index 1749607..0000000 --- a/vendor/plugins/shop_now/test/dummy/config/environments/production.rb +++ /dev/null @@ -1,89 +0,0 @@ -require "active_support/core_ext/integer/time" - -Rails.application.configure do - # Settings specified here will take precedence over those in config/application.rb. - - # Code is not reloaded between requests. - config.enable_reloading = false - - # Eager load code on boot for better performance and memory savings (ignored by Rake tasks). - config.eager_load = true - - # Full error reports are disabled. - config.consider_all_requests_local = false - - # Turn on fragment caching in view templates. - config.action_controller.perform_caching = true - - # Cache assets for far-future expiry since they are all digest stamped. - config.public_file_server.headers = { "cache-control" => "public, max-age=#{1.year.to_i}" } - - # Enable serving of images, stylesheets, and JavaScripts from an asset server. - # config.asset_host = "http://assets.example.com" - - # Store uploaded files on the local file system (see config/storage.yml for options). - config.active_storage.service = :local - - # Assume all access to the app is happening through a SSL-terminating reverse proxy. - config.assume_ssl = true - - # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. - config.force_ssl = true - - # Skip http-to-https redirect for the default health check endpoint. - # config.ssl_options = { redirect: { exclude: ->(request) { request.path == "/up" } } } - - # Log to STDOUT with the current request id as a default log tag. - config.log_tags = [ :request_id ] - config.logger = ActiveSupport::TaggedLogging.logger(STDOUT) - - # Change to "debug" to log everything (including potentially personally-identifiable information!) - config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info") - - # Prevent health checks from clogging up the logs. - config.silence_healthcheck_path = "/up" - - # Don't log any deprecations. - config.active_support.report_deprecations = false - - # Replace the default in-process memory cache store with a durable alternative. - # config.cache_store = :mem_cache_store - - # Replace the default in-process and non-durable queuing backend for Active Job. - # config.active_job.queue_adapter = :resque - - # Ignore bad email addresses and do not raise email delivery errors. - # Set this to true and configure the email server for immediate delivery to raise delivery errors. - # config.action_mailer.raise_delivery_errors = false - - # Set host to be used by links generated in mailer templates. - config.action_mailer.default_url_options = { host: "example.com" } - - # Specify outgoing SMTP server. Remember to add smtp/* credentials via rails credentials:edit. - # config.action_mailer.smtp_settings = { - # user_name: Rails.application.credentials.dig(:smtp, :user_name), - # password: Rails.application.credentials.dig(:smtp, :password), - # address: "smtp.example.com", - # port: 587, - # authentication: :plain - # } - - # Enable locale fallbacks for I18n (makes lookups for any locale fall back to - # the I18n.default_locale when a translation cannot be found). - config.i18n.fallbacks = true - - # Do not dump schema after migrations. - config.active_record.dump_schema_after_migration = false - - # Only use :id for inspections in production. - config.active_record.attributes_for_inspect = [ :id ] - - # Enable DNS rebinding protection and other `Host` header attacks. - # config.hosts = [ - # "example.com", # Allow requests from example.com - # /.*\.example\.com/ # Allow requests from subdomains like `www.example.com` - # ] - # - # Skip DNS rebinding protection for the default health check endpoint. - # config.host_authorization = { exclude: ->(request) { request.path == "/up" } } -end diff --git a/vendor/plugins/shop_now/test/dummy/config/environments/test.rb b/vendor/plugins/shop_now/test/dummy/config/environments/test.rb deleted file mode 100644 index c2095b1..0000000 --- a/vendor/plugins/shop_now/test/dummy/config/environments/test.rb +++ /dev/null @@ -1,53 +0,0 @@ -# The test environment is used exclusively to run your application's -# test suite. You never need to work with it otherwise. Remember that -# your test database is "scratch space" for the test suite and is wiped -# and recreated between test runs. Don't rely on the data there! - -Rails.application.configure do - # Settings specified here will take precedence over those in config/application.rb. - - # While tests run files are not watched, reloading is not necessary. - config.enable_reloading = false - - # Eager loading loads your entire application. When running a single test locally, - # this is usually not necessary, and can slow down your test suite. However, it's - # recommended that you enable it in continuous integration systems to ensure eager - # loading is working properly before deploying your code. - config.eager_load = ENV["CI"].present? - - # Configure public file server for tests with cache-control for performance. - config.public_file_server.headers = { "cache-control" => "public, max-age=3600" } - - # Show full error reports. - config.consider_all_requests_local = true - config.cache_store = :null_store - - # Render exception templates for rescuable exceptions and raise for other exceptions. - config.action_dispatch.show_exceptions = :rescuable - - # Disable request forgery protection in test environment. - config.action_controller.allow_forgery_protection = false - - # Store uploaded files on the local file system in a temporary directory. - config.active_storage.service = :test - - # Tell Action Mailer not to deliver emails to the real world. - # The :test delivery method accumulates sent emails in the - # ActionMailer::Base.deliveries array. - config.action_mailer.delivery_method = :test - - # Set host to be used by links generated in mailer templates. - config.action_mailer.default_url_options = { host: "example.com" } - - # Print deprecation notices to the stderr. - config.active_support.deprecation = :stderr - - # Raises error for missing translations. - # config.i18n.raise_on_missing_translations = true - - # Annotate rendered view with file names. - # config.action_view.annotate_rendered_view_with_filenames = true - - # Raise error when a before_action's only/except options reference missing actions. - config.action_controller.raise_on_missing_callback_actions = true -end diff --git a/vendor/plugins/shop_now/test/dummy/config/initializers/assets.rb b/vendor/plugins/shop_now/test/dummy/config/initializers/assets.rb deleted file mode 100644 index 4873244..0000000 --- a/vendor/plugins/shop_now/test/dummy/config/initializers/assets.rb +++ /dev/null @@ -1,7 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = "1.0" - -# Add additional assets to the asset load path. -# Rails.application.config.assets.paths << Emoji.images_path diff --git a/vendor/plugins/shop_now/test/dummy/config/initializers/content_security_policy.rb b/vendor/plugins/shop_now/test/dummy/config/initializers/content_security_policy.rb deleted file mode 100644 index b3076b3..0000000 --- a/vendor/plugins/shop_now/test/dummy/config/initializers/content_security_policy.rb +++ /dev/null @@ -1,25 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Define an application-wide content security policy. -# See the Securing Rails Applications Guide for more information: -# https://guides.rubyonrails.org/security.html#content-security-policy-header - -# Rails.application.configure do -# config.content_security_policy do |policy| -# policy.default_src :self, :https -# policy.font_src :self, :https, :data -# policy.img_src :self, :https, :data -# policy.object_src :none -# policy.script_src :self, :https -# policy.style_src :self, :https -# # Specify URI for violation reports -# # policy.report_uri "/csp-violation-report-endpoint" -# end -# -# # Generate session nonces for permitted importmap, inline scripts, and inline styles. -# config.content_security_policy_nonce_generator = ->(request) { request.session.id.to_s } -# config.content_security_policy_nonce_directives = %w(script-src style-src) -# -# # Report violations without enforcing the policy. -# # config.content_security_policy_report_only = true -# end diff --git a/vendor/plugins/shop_now/test/dummy/config/initializers/filter_parameter_logging.rb b/vendor/plugins/shop_now/test/dummy/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index c0b717f..0000000 --- a/vendor/plugins/shop_now/test/dummy/config/initializers/filter_parameter_logging.rb +++ /dev/null @@ -1,8 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Configure parameters to be partially matched (e.g. passw matches password) and filtered from the log file. -# Use this to limit dissemination of sensitive information. -# See the ActiveSupport::ParameterFilter documentation for supported notations and behaviors. -Rails.application.config.filter_parameters += [ - :passw, :email, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn, :cvv, :cvc -] diff --git a/vendor/plugins/shop_now/test/dummy/config/initializers/inflections.rb b/vendor/plugins/shop_now/test/dummy/config/initializers/inflections.rb deleted file mode 100644 index 3860f65..0000000 --- a/vendor/plugins/shop_now/test/dummy/config/initializers/inflections.rb +++ /dev/null @@ -1,16 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Add new inflection rules using the following format. Inflections -# are locale specific, and you may define rules for as many different -# locales as you wish. All of these examples are active by default: -# ActiveSupport::Inflector.inflections(:en) do |inflect| -# inflect.plural /^(ox)$/i, "\\1en" -# inflect.singular /^(ox)en/i, "\\1" -# inflect.irregular "person", "people" -# inflect.uncountable %w( fish sheep ) -# end - -# These inflection rules are supported but not enabled by default: -# ActiveSupport::Inflector.inflections(:en) do |inflect| -# inflect.acronym "RESTful" -# end diff --git a/vendor/plugins/shop_now/test/dummy/config/locales/en.yml b/vendor/plugins/shop_now/test/dummy/config/locales/en.yml deleted file mode 100644 index 6c349ae..0000000 --- a/vendor/plugins/shop_now/test/dummy/config/locales/en.yml +++ /dev/null @@ -1,31 +0,0 @@ -# Files in the config/locales directory are used for internationalization and -# are automatically loaded by Rails. If you want to use locales other than -# English, add the necessary files in this directory. -# -# To use the locales, use `I18n.t`: -# -# I18n.t "hello" -# -# In views, this is aliased to just `t`: -# -# <%= t("hello") %> -# -# To use a different locale, set it with `I18n.locale`: -# -# I18n.locale = :es -# -# This would use the information in config/locales/es.yml. -# -# To learn more about the API, please read the Rails Internationalization guide -# at https://guides.rubyonrails.org/i18n.html. -# -# Be aware that YAML interprets the following case-insensitive strings as -# booleans: `true`, `false`, `on`, `off`, `yes`, `no`. Therefore, these strings -# must be quoted to be interpreted as strings. For example: -# -# en: -# "yes": yup -# enabled: "ON" - -en: - hello: "Hello world" diff --git a/vendor/plugins/shop_now/test/dummy/config/puma.rb b/vendor/plugins/shop_now/test/dummy/config/puma.rb deleted file mode 100644 index 787e4ce..0000000 --- a/vendor/plugins/shop_now/test/dummy/config/puma.rb +++ /dev/null @@ -1,38 +0,0 @@ -# This configuration file will be evaluated by Puma. The top-level methods that -# are invoked here are part of Puma's configuration DSL. For more information -# about methods provided by the DSL, see https://puma.io/puma/Puma/DSL.html. -# -# Puma starts a configurable number of processes (workers) and each process -# serves each request in a thread from an internal thread pool. -# -# You can control the number of workers using ENV["WEB_CONCURRENCY"]. You -# should only set this value when you want to run 2 or more workers. The -# default is already 1. -# -# The ideal number of threads per worker depends both on how much time the -# application spends waiting for IO operations and on how much you wish to -# prioritize throughput over latency. -# -# As a rule of thumb, increasing the number of threads will increase how much -# traffic a given process can handle (throughput), but due to CRuby's -# Global VM Lock (GVL) it has diminishing returns and will degrade the -# response time (latency) of the application. -# -# The default is set to 3 threads as it's deemed a decent compromise between -# throughput and latency for the average Rails application. -# -# Any libraries that use a connection pool or another resource pool should -# be configured to provide at least as many connections as the number of -# threads. This includes Active Record's `pool` parameter in `database.yml`. -threads_count = ENV.fetch("RAILS_MAX_THREADS", 3) -threads threads_count, threads_count - -# Specifies the `port` that Puma will listen on to receive requests; default is 3000. -port ENV.fetch("PORT", 3000) - -# Allow puma to be restarted by `bin/rails restart` command. -plugin :tmp_restart - -# Specify the PID file. Defaults to tmp/pids/server.pid in development. -# In other environments, only set the PID file if requested. -pidfile ENV["PIDFILE"] if ENV["PIDFILE"] diff --git a/vendor/plugins/shop_now/test/dummy/config/routes.rb b/vendor/plugins/shop_now/test/dummy/config/routes.rb deleted file mode 100644 index 48254e8..0000000 --- a/vendor/plugins/shop_now/test/dummy/config/routes.rb +++ /dev/null @@ -1,14 +0,0 @@ -Rails.application.routes.draw do - # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html - - # Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500. - # Can be used by load balancers and uptime monitors to verify that the app is live. - get "up" => "rails/health#show", as: :rails_health_check - - # Render dynamic PWA files from app/views/pwa/* (remember to link manifest in application.html.erb) - # get "manifest" => "rails/pwa#manifest", as: :pwa_manifest - # get "service-worker" => "rails/pwa#service_worker", as: :pwa_service_worker - - # Defines the root path route ("/") - # root "posts#index" -end diff --git a/vendor/plugins/shop_now/test/dummy/config/storage.yml b/vendor/plugins/shop_now/test/dummy/config/storage.yml deleted file mode 100644 index 4942ab6..0000000 --- a/vendor/plugins/shop_now/test/dummy/config/storage.yml +++ /dev/null @@ -1,34 +0,0 @@ -test: - service: Disk - root: <%= Rails.root.join("tmp/storage") %> - -local: - service: Disk - root: <%= Rails.root.join("storage") %> - -# Use bin/rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key) -# amazon: -# service: S3 -# access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %> -# secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %> -# region: us-east-1 -# bucket: your_own_bucket-<%= Rails.env %> - -# Remember not to checkin your GCS keyfile to a repository -# google: -# service: GCS -# project: your_project -# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %> -# bucket: your_own_bucket-<%= Rails.env %> - -# Use bin/rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key) -# microsoft: -# service: AzureStorage -# storage_account_name: your_account_name -# storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %> -# container: your_container_name-<%= Rails.env %> - -# mirror: -# service: Mirror -# primary: local -# mirrors: [ amazon, google, microsoft ] diff --git a/vendor/plugins/shop_now/test/dummy/db/schema.rb b/vendor/plugins/shop_now/test/dummy/db/schema.rb deleted file mode 100644 index c5fc249..0000000 --- a/vendor/plugins/shop_now/test/dummy/db/schema.rb +++ /dev/null @@ -1,21 +0,0 @@ -# This file is auto-generated from the current state of the database. Instead -# of editing this file, please use the migrations feature of Active Record to -# incrementally modify your database, and then regenerate this schema definition. -# -# This file is the source Rails uses to define your schema when running `bin/rails -# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to -# be faster and is potentially less error prone than running all of your -# migrations from scratch. Old migrations may fail to apply correctly if those -# migrations use external dependencies or application code. -# -# It's strongly recommended that you check this file into your version control system. - -ActiveRecord::Schema[8.0].define(version: 2025_11_02_092955) do - create_table "products", force: :cascade do |t| - t.string "name" - t.text "description" - t.decimal "price" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end -end diff --git a/vendor/plugins/shop_now/test/dummy/log/.keep b/vendor/plugins/shop_now/test/dummy/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/vendor/plugins/shop_now/test/dummy/log/development.log b/vendor/plugins/shop_now/test/dummy/log/development.log deleted file mode 100644 index a1e4192..0000000 --- a/vendor/plugins/shop_now/test/dummy/log/development.log +++ /dev/null @@ -1,31 +0,0 @@ -Started GET "/shop_now/products" for 127.0.0.1 at 2025-11-02 15:11:37 +0530 -  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) /*application='Dummy'*/ -  (0.5ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) /*application='Dummy'*/ - ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/ - -ActionController::RoutingError (No route matches [GET] "/shop_now/products"): - -Started GET "/shop_now/products" for 127.0.0.1 at 2025-11-02 15:11:42 +0530 - -ActionController::RoutingError (No route matches [GET] "/shop_now/products"): - -Started GET "/shop_now/products" for 127.0.0.1 at 2025-11-02 15:13:06 +0530 - -ActionController::RoutingError (No route matches [GET] "/shop_now/products"): - -Started GET "/shop_now/products" for 127.0.0.1 at 2025-11-02 15:13:08 +0530 - -ActionController::RoutingError (No route matches [GET] "/shop_now/products"): - - ActiveRecord::InternalMetadata Load (0.7ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/ - ActiveRecord::InternalMetadata Create (2.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-11-02 11:06:31.387892', '2025-11-02 11:06:31.387898') RETURNING "key" /*application='Dummy'*/ - ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/ -Migrating to CreateProducts (20251102092955) - TRANSACTION (0.1ms) BEGIN immediate TRANSACTION /*application='Dummy'*/ -  (6.9ms) CREATE TABLE "products" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "price" decimal, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) /*application='Dummy'*/ - ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251102092955') RETURNING "version" /*application='Dummy'*/ - TRANSACTION (0.5ms) COMMIT TRANSACTION /*application='Dummy'*/ - ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/ - ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/ - ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/ - ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/ diff --git a/vendor/plugins/shop_now/test/dummy/public/400.html b/vendor/plugins/shop_now/test/dummy/public/400.html deleted file mode 100644 index 282dbc8..0000000 --- a/vendor/plugins/shop_now/test/dummy/public/400.html +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - The server cannot process the request due to a client error (400 Bad Request) - - - - - - - - - - - - - -
-
- -
-
-

The server cannot process the request due to a client error. Please check the request and try again. If you’re the application owner check the logs for more information.

-
-
- - - - diff --git a/vendor/plugins/shop_now/test/dummy/public/404.html b/vendor/plugins/shop_now/test/dummy/public/404.html deleted file mode 100644 index c0670bc..0000000 --- a/vendor/plugins/shop_now/test/dummy/public/404.html +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - The page you were looking for doesn’t exist (404 Not found) - - - - - - - - - - - - - -
-
- -
-
-

The page you were looking for doesn’t exist. You may have mistyped the address or the page may have moved. If you’re the application owner check the logs for more information.

-
-
- - - - diff --git a/vendor/plugins/shop_now/test/dummy/public/406-unsupported-browser.html b/vendor/plugins/shop_now/test/dummy/public/406-unsupported-browser.html deleted file mode 100644 index 9532a9c..0000000 --- a/vendor/plugins/shop_now/test/dummy/public/406-unsupported-browser.html +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - Your browser is not supported (406 Not Acceptable) - - - - - - - - - - - - - -
-
- -
-
-

Your browser is not supported.
Please upgrade your browser to continue.

-
-
- - - - diff --git a/vendor/plugins/shop_now/test/dummy/public/422.html b/vendor/plugins/shop_now/test/dummy/public/422.html deleted file mode 100644 index 8bcf060..0000000 --- a/vendor/plugins/shop_now/test/dummy/public/422.html +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - The change you wanted was rejected (422 Unprocessable Entity) - - - - - - - - - - - - - -
-
- -
-
-

The change you wanted was rejected. Maybe you tried to change something you didn’t have access to. If you’re the application owner check the logs for more information.

-
-
- - - - diff --git a/vendor/plugins/shop_now/test/dummy/public/500.html b/vendor/plugins/shop_now/test/dummy/public/500.html deleted file mode 100644 index d77718c..0000000 --- a/vendor/plugins/shop_now/test/dummy/public/500.html +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - We’re sorry, but something went wrong (500 Internal Server Error) - - - - - - - - - - - - - -
-
- -
-
-

We’re sorry, but something went wrong.
If you’re the application owner check the logs for more information.

-
-
- - - - diff --git a/vendor/plugins/shop_now/test/dummy/public/icon.png b/vendor/plugins/shop_now/test/dummy/public/icon.png deleted file mode 100644 index c4c9dbf..0000000 Binary files a/vendor/plugins/shop_now/test/dummy/public/icon.png and /dev/null differ diff --git a/vendor/plugins/shop_now/test/dummy/public/icon.svg b/vendor/plugins/shop_now/test/dummy/public/icon.svg deleted file mode 100644 index 04b34bf..0000000 --- a/vendor/plugins/shop_now/test/dummy/public/icon.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/vendor/plugins/shop_now/test/dummy/storage/.keep b/vendor/plugins/shop_now/test/dummy/storage/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/vendor/plugins/shop_now/test/dummy/storage/development.sqlite3 b/vendor/plugins/shop_now/test/dummy/storage/development.sqlite3 deleted file mode 100644 index f6bdd34..0000000 Binary files a/vendor/plugins/shop_now/test/dummy/storage/development.sqlite3 and /dev/null differ diff --git a/vendor/plugins/shop_now/test/dummy/tmp/.keep b/vendor/plugins/shop_now/test/dummy/tmp/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/vendor/plugins/shop_now/test/dummy/tmp/local_secret.txt b/vendor/plugins/shop_now/test/dummy/tmp/local_secret.txt deleted file mode 100644 index becbf8e..0000000 --- a/vendor/plugins/shop_now/test/dummy/tmp/local_secret.txt +++ /dev/null @@ -1 +0,0 @@ -109d3b806956385271f85d1c984a81f275079a1cb3e00b8dac0b1b134c2b963211c999cdf043945b679c54d48ff434daa02b4fad5dd44e7227481f33596c9c3f \ No newline at end of file diff --git a/vendor/plugins/shop_now/test/dummy/tmp/pids/.keep b/vendor/plugins/shop_now/test/dummy/tmp/pids/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/vendor/plugins/shop_now/test/dummy/tmp/restart.txt b/vendor/plugins/shop_now/test/dummy/tmp/restart.txt deleted file mode 100644 index e69de29..0000000 diff --git a/vendor/plugins/shop_now/test/dummy/tmp/storage/.keep b/vendor/plugins/shop_now/test/dummy/tmp/storage/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/vendor/plugins/shop_now/test/fixtures/files/.keep b/vendor/plugins/shop_now/test/fixtures/files/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/vendor/plugins/shop_now/test/fixtures/products.yml b/vendor/plugins/shop_now/test/fixtures/products.yml deleted file mode 100644 index 60c836e..0000000 --- a/vendor/plugins/shop_now/test/fixtures/products.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - price: 9.99 - -two: - name: MyString - price: 9.99 diff --git a/vendor/plugins/shop_now/test/helpers/.keep b/vendor/plugins/shop_now/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/vendor/plugins/shop_now/test/integration/.keep b/vendor/plugins/shop_now/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/vendor/plugins/shop_now/test/integration/navigation_test.rb b/vendor/plugins/shop_now/test/integration/navigation_test.rb deleted file mode 100644 index ebbc098..0000000 --- a/vendor/plugins/shop_now/test/integration/navigation_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require "test_helper" - -class NavigationTest < ActionDispatch::IntegrationTest - # test "the truth" do - # assert true - # end -end diff --git a/vendor/plugins/shop_now/test/mailers/.keep b/vendor/plugins/shop_now/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/vendor/plugins/shop_now/test/models/.keep b/vendor/plugins/shop_now/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/vendor/plugins/shop_now/test/models/product_test.rb b/vendor/plugins/shop_now/test/models/product_test.rb deleted file mode 100644 index 3560151..0000000 --- a/vendor/plugins/shop_now/test/models/product_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require "test_helper" - -class ProductTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/vendor/plugins/shop_now/test/shop_now_test.rb b/vendor/plugins/shop_now/test/shop_now_test.rb deleted file mode 100644 index 83650dd..0000000 --- a/vendor/plugins/shop_now/test/shop_now_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require "test_helper" - -class ShopNowTest < ActiveSupport::TestCase - test "it has a version number" do - assert ShopNow::VERSION - end -end diff --git a/vendor/plugins/shop_now/test/system/products_test.rb b/vendor/plugins/shop_now/test/system/products_test.rb deleted file mode 100644 index a30fb27..0000000 --- a/vendor/plugins/shop_now/test/system/products_test.rb +++ /dev/null @@ -1,43 +0,0 @@ -require "application_system_test_case" - -class ProductsTest < ApplicationSystemTestCase - setup do - @product = products(:one) - end - - test "visiting the index" do - visit products_url - assert_selector "h1", text: "Products" - end - - test "should create product" do - visit products_url - click_on "New product" - - fill_in "Name", with: @product.name - fill_in "Price", with: @product.price - click_on "Create Product" - - assert_text "Product was successfully created" - click_on "Back" - end - - test "should update Product" do - visit product_url(@product) - click_on "Edit this product", match: :first - - fill_in "Name", with: @product.name - fill_in "Price", with: @product.price - click_on "Update Product" - - assert_text "Product was successfully updated" - click_on "Back" - end - - test "should destroy Product" do - visit product_url(@product) - click_on "Destroy this product", match: :first - - assert_text "Product was successfully destroyed" - end -end diff --git a/vendor/plugins/shop_now/test/test_helper.rb b/vendor/plugins/shop_now/test/test_helper.rb deleted file mode 100644 index 25a5782..0000000 --- a/vendor/plugins/shop_now/test/test_helper.rb +++ /dev/null @@ -1,14 +0,0 @@ -# Configure Rails Environment -ENV["RAILS_ENV"] = "test" - -require_relative "../test/dummy/config/environment" -ActiveRecord::Migrator.migrations_paths = [ File.expand_path("../test/dummy/db/migrate", __dir__) ] -require "rails/test_help" - -# Load fixtures from the engine -if ActiveSupport::TestCase.respond_to?(:fixture_paths=) - ActiveSupport::TestCase.fixture_paths = [ File.expand_path("fixtures", __dir__) ] - ActionDispatch::IntegrationTest.fixture_paths = ActiveSupport::TestCase.fixture_paths - ActiveSupport::TestCase.file_fixture_path = File.expand_path("fixtures", __dir__) + "/files" - ActiveSupport::TestCase.fixtures :all -end