repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/app/madmin/resources/solid_queue/failed_execution_resource.rb
app/madmin/resources/solid_queue/failed_execution_resource.rb
class SolidQueue::FailedExecutionResource < Madmin::Resource # Attributes attribute :id, form: false attribute :error attribute :created_at, form: false # Associations attribute :job # Add scopes to easily filter records # scope :published # Add actions to the resource's show page # member_action...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/app/madmin/resources/solid_queue/pause_resource.rb
app/madmin/resources/solid_queue/pause_resource.rb
class SolidQueue::PauseResource < Madmin::Resource # Attributes attribute :id, form: false attribute :queue_name attribute :created_at, form: false # Associations # Add scopes to easily filter records # scope :published # Add actions to the resource's show page # member_action do |record| # lin...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/app/madmin/resources/solid_queue/blocked_execution_resource.rb
app/madmin/resources/solid_queue/blocked_execution_resource.rb
class SolidQueue::BlockedExecutionResource < Madmin::Resource # Attributes attribute :id, form: false attribute :queue_name attribute :priority attribute :concurrency_key attribute :expires_at attribute :created_at, form: false # Associations attribute :job attribute :semaphore # Add scopes to e...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/app/madmin/resources/solid_queue/claimed_execution_resource.rb
app/madmin/resources/solid_queue/claimed_execution_resource.rb
class SolidQueue::ClaimedExecutionResource < Madmin::Resource # Attributes attribute :id, form: false attribute :created_at, form: false # Associations attribute :job attribute :process # Add scopes to easily filter records # scope :published # Add actions to the resource's show page # member_act...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/app/madmin/resources/solid_queue/ready_execution_resource.rb
app/madmin/resources/solid_queue/ready_execution_resource.rb
class SolidQueue::ReadyExecutionResource < Madmin::Resource # Attributes attribute :id, form: false attribute :queue_name attribute :priority attribute :created_at, form: false # Associations attribute :job # Add scopes to easily filter records # scope :published # Add actions to the resource's s...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/app/madmin/resources/active_storage/variant_record_resource.rb
app/madmin/resources/active_storage/variant_record_resource.rb
class ActiveStorage::VariantRecordResource < Madmin::Resource # Attributes attribute :id, form: false attribute :variation, index: false, show: false attribute :variation_confirmation, index: false, show: false attribute :image, index: false # Associations attribute :blob # Add scopes to easily filter...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/app/madmin/resources/active_storage/blob_resource.rb
app/madmin/resources/active_storage/blob_resource.rb
class ActiveStorage::BlobResource < Madmin::Resource # Attributes attribute :id, form: false attribute :key attribute :filename attribute :content_type attribute :service_name attribute :byte_size attribute :checksum attribute :created_at, form: false attribute :analyzed attribute :identified at...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/app/madmin/resources/active_storage/attachment_resource.rb
app/madmin/resources/active_storage/attachment_resource.rb
class ActiveStorage::AttachmentResource < Madmin::Resource # Attributes attribute :id, form: false attribute :name attribute :created_at, form: false # Associations attribute :record attribute :blob # Add scopes to easily filter records # scope :published # Add actions to the resource's show page...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/app/mailers/application_mailer.rb
app/mailers/application_mailer.rb
class ApplicationMailer < ActionMailer::Base default from: Settings.mail.mailer_sender || "oss@pwpush.com" layout "mailer" end
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/app/mailers/test_mailer.rb
app/mailers/test_mailer.rb
class TestMailer < ApplicationMailer def send_test_email(email) puts "" puts "--> Configured FROM: address: '#{Settings.mail.mailer_sender}'" if Settings.mail.smtp_address.nil? puts "--> No SMTP address provided. Mail subsystem should default to localhost." end if Settings.mail.smtp_port.n...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/seeds.rb
db/seeds.rb
# frozen_string_literal: true # This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). # # Examples: # # cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/schema.rb
db/schema.rb
# 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/rai...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20211210110157_create_active_storage_tables.active_storage.rb
db/migrate/20211210110157_create_active_storage_tables.active_storage.rb
# frozen_string_literal: true # This migration comes from active_storage (originally 20170806125915) class CreateActiveStorageTables < ActiveRecord::Migration[5.2] def change create_table :active_storage_blobs do |t| t.string :key, null: false t.string :filename, null: false t.string :content_t...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20111128183630_create_passwords.rb
db/migrate/20111128183630_create_passwords.rb
# frozen_string_literal: true class CreatePasswords < ActiveRecord::Migration[4.2] def change create_table :passwords do |t| t.string :payload t.integer :expire_after_days t.integer :expire_after_views t.boolean :expired, default: false t.string :url_token t.timestamps end...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20210821082834_change_password_payload_to_text.rb
db/migrate/20210821082834_change_password_payload_to_text.rb
# frozen_string_literal: true class ChangePasswordPayloadToText < ActiveRecord::Migration[6.1] def change # https://sqlines.com/postgresql/datatypes/text # CHAR(n) Fixed-length 1 ⇐ n < 1 Gb Default is 1 # VARCHAR(n) Variable-length 1 ⇐ n < 1 Gb Default is 1 Gb # Both TEXT and VARCHAR have the ...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20160214205926_add_deletable_to_password.rb
db/migrate/20160214205926_add_deletable_to_password.rb
# frozen_string_literal: true class AddDeletableToPassword < ActiveRecord::Migration[4.2] def change add_column :passwords, :deletable_by_viewer, :boolean, default: true end end
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20210913083515_add_note_to_password.rb
db/migrate/20210913083515_add_note_to_password.rb
# frozen_string_literal: true class AddNoteToPassword < ActiveRecord::Migration[6.1] def change add_column :passwords, :note, :text end end
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20241008192458_add_solid_queue.rb
db/migrate/20241008192458_add_solid_queue.rb
class AddSolidQueue < ActiveRecord::Migration[7.2] def change create_table "solid_queue_blocked_executions", force: :cascade do |t| t.bigint "job_id", null: false t.string "queue_name", null: false t.integer "priority", default: 0, null: false t.string "concurrency_key", null: false ...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20211105153527_remove_first_view_from_password.rb
db/migrate/20211105153527_remove_first_view_from_password.rb
# frozen_string_literal: true class RemoveFirstViewFromPassword < ActiveRecord::Migration[6.1] def change remove_column :passwords, :first_view end end
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20250606094103_drop_legacy_models.rb
db/migrate/20250606094103_drop_legacy_models.rb
class DropLegacyModels < ActiveRecord::Migration[7.2] def up # Check if data migration is complete if DataMigrationStatus.find_by(name: "push_model_migration")&.completed? || ActiveRecord::Base.connection.select_value(<<-SQL) == 0 SELECT ( (SELECT COUNT(*) FROM passwords) + ...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20221222153323_create_file_pushes.rb
db/migrate/20221222153323_create_file_pushes.rb
# frozen_string_literal: true class CreateFilePushes < ActiveRecord::Migration[7.0] def change create_table :file_pushes do |t| t.integer :expire_after_days t.integer :expire_after_views t.boolean :expired, default: false t.string :url_token t.integer :user_id, default: nil t....
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20210908132446_add_kind_to_view.rb
db/migrate/20210908132446_add_kind_to_view.rb
# frozen_string_literal: true class AddKindToView < ActiveRecord::Migration[6.1] def change add_column :views, :kind, :integer, default: 0 add_column :views, :user_id, :integer, default: nil end end
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20120220172426_add_user_to_password.rb
db/migrate/20120220172426_add_user_to_password.rb
# frozen_string_literal: true class AddUserToPassword < ActiveRecord::Migration[4.2] def self.up add_column :passwords, :user_id, :integer add_index :passwords, :user_id end def self.down remove_index :passwords, :user_id remove_column :passwords, :user_id end end
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20221228161228_add_url_to_views.rb
db/migrate/20221228161228_add_url_to_views.rb
# frozen_string_literal: true class AddUrlToViews < ActiveRecord::Migration[7.0] def change add_column :views, :url_id, :integer, default: nil, index: true end end
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20230406094931_add_passphrase_to_models.rb
db/migrate/20230406094931_add_passphrase_to_models.rb
# frozen_string_literal: true class AddPassphraseToModels < ActiveRecord::Migration[7.0] def change # The column defaults on this migration breaks on MySQL Server. # See: https://github.com/pglombardo/PasswordPusher/issues/1002 add_column :passwords, :passphrase_ciphertext, :text, null: false, default: ...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20210404160008_add_retrieval_step_to_passwords.rb
db/migrate/20210404160008_add_retrieval_step_to_passwords.rb
# frozen_string_literal: true class AddRetrievalStepToPasswords < ActiveRecord::Migration[5.2] def change add_column :passwords, :retrieval_step, :boolean, default: false end end
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20211104102822_add_payload_ciphertext_to_password.rb
db/migrate/20211104102822_add_payload_ciphertext_to_password.rb
# frozen_string_literal: true class AddPayloadCiphertextToPassword < ActiveRecord::Migration[6.1] def change # Column for new lockbox encryption add_column :passwords, :payload_ciphertext, :text # Rename legacy encryption column rename_column :passwords, :payload, :payload_legacy end end
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20220816102729_add_authentication_token_to_users.rb
db/migrate/20220816102729_add_authentication_token_to_users.rb
# frozen_string_literal: true class AddAuthenticationTokenToUsers < ActiveRecord::Migration[6.1] def change add_column :users, :authentication_token, :string, limit: 30 add_index :users, :authentication_token, unique: true end end
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20150323145847_add_first_view_flag.rb
db/migrate/20150323145847_add_first_view_flag.rb
# frozen_string_literal: true class AddFirstViewFlag < ActiveRecord::Migration[4.2] def up add_column :passwords, :first_view, :boolean, default: false end def down remove_column :passwords, :first_view end end
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20250515110051_remove_text_from_urls_and_file_pushes.rb
db/migrate/20250515110051_remove_text_from_urls_and_file_pushes.rb
class RemoveTextFromUrlsAndFilePushes < ActiveRecord::Migration[7.2] def change remove_column :urls, :text, :text remove_column :file_pushes, :text, :text end end
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20111228183300_create_views.rb
db/migrate/20111228183300_create_views.rb
# frozen_string_literal: true class CreateViews < ActiveRecord::Migration[4.2] def self.up create_table :views do |t| t.integer :password_id t.string :ip t.string :user_agent t.string :referrer t.boolean :successful t.timestamps end end def self.down drop_table :v...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20211004164136_add_index_to_passwords_url_token.rb
db/migrate/20211004164136_add_index_to_passwords_url_token.rb
# frozen_string_literal: true class AddIndexToPasswordsUrlToken < ActiveRecord::Migration[6.1] def change add_index :passwords, :url_token, unique: true end end
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20120129211750_add_lockable_to_users.rb
db/migrate/20120129211750_add_lockable_to_users.rb
# frozen_string_literal: true class AddLockableToUsers < ActiveRecord::Migration[4.2] def change change_table :users do |t| t.integer :failed_attempts, default: 0 # Only if lock strategy is :failed_attempts t.string :unlock_token # Only if unlock strategy is :email or :both t.datetime :locked_a...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20221223103402_add_file_push_to_views.rb
db/migrate/20221223103402_add_file_push_to_views.rb
# frozen_string_literal: true class AddFilePushToViews < ActiveRecord::Migration[7.0] def change add_column :views, :file_push_id, :integer, default: nil, index: true end end
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20230113173429_remove_deletable_from_urls.rb
db/migrate/20230113173429_remove_deletable_from_urls.rb
# frozen_string_literal: true class RemoveDeletableFromUrls < ActiveRecord::Migration[7.0] def change remove_column :urls, :deletable_by_viewer, :boolean, default: true end end
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20250515193130_create_audit_log.rb
db/migrate/20250515193130_create_audit_log.rb
class CreateAuditLog < ActiveRecord::Migration[7.2] def change create_table :audit_logs do |t| t.string :ip t.string :user_agent t.string :referrer t.integer :kind, null: false t.index :kind t.references :user, foreign_key: false t.references :push, null: false, foreign...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20210908141643_add_expired_on_to_password.rb
db/migrate/20210908141643_add_expired_on_to_password.rb
# frozen_string_literal: true class AddExpiredOnToPassword < ActiveRecord::Migration[6.1] def change add_column :passwords, :expired_on, :datetime, default: nil end end
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20220524163629_drop_legacy_encryption_fields.rb
db/migrate/20220524163629_drop_legacy_encryption_fields.rb
# frozen_string_literal: true class DropLegacyEncryptionFields < ActiveRecord::Migration[6.1] def change remove_column :passwords, :payload_legacy remove_column :passwords, :note_legacy end end
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20221113194839_remove_not_null_on_active_storage_blobs_checksum.active_storage.rb
db/migrate/20221113194839_remove_not_null_on_active_storage_blobs_checksum.active_storage.rb
# frozen_string_literal: true # This migration comes from active_storage (originally 20211119233751) class RemoveNotNullOnActiveStorageBlobsChecksum < ActiveRecord::Migration[6.0] def change return unless table_exists?(:active_storage_blobs) change_column_null(:active_storage_blobs, :checksum, true) end e...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20121105144421_add_deleted_to_password.rb
db/migrate/20121105144421_add_deleted_to_password.rb
# frozen_string_literal: true class AddDeletedToPassword < ActiveRecord::Migration[4.2] def change add_column :passwords, :deleted, :boolean, default: false end end
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20221113194837_add_service_name_to_active_storage_blobs.active_storage.rb
db/migrate/20221113194837_add_service_name_to_active_storage_blobs.active_storage.rb
# frozen_string_literal: true # This migration comes from active_storage (originally 20190112182829) class AddServiceNameToActiveStorageBlobs < ActiveRecord::Migration[6.0] def up return unless table_exists?(:active_storage_blobs) return if column_exists?(:active_storage_blobs, :service_name) add_colum...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20240407113632_add_indexes_to_view.rb
db/migrate/20240407113632_add_indexes_to_view.rb
class AddIndexesToView < ActiveRecord::Migration[7.1] def change add_index :views, :file_push_id add_index :views, :url_id add_index :views, :password_id add_index :views, :successful add_index :views, :kind end end
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20120102210559_create_rails_admin_histories_table.rb
db/migrate/20120102210559_create_rails_admin_histories_table.rb
# frozen_string_literal: true class CreateRailsAdminHistoriesTable < ActiveRecord::Migration[4.2] def self.up create_table :rails_admin_histories do |t| t.text :message # title, name, or object_id t.string :username t.integer :item t.string :table t.integer :month, limit: 2 t....
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20210910203515_add_confirmable_to_devise.rb
db/migrate/20210910203515_add_confirmable_to_devise.rb
# frozen_string_literal: true class AddConfirmableToDevise < ActiveRecord::Migration[6.1] # From: https://github.com/heartcombo/devise/wiki/How-To:-Add-:confirmable-to-Users # NOTE: You can't use change, as User.update_all will fail in the down migration def up add_column :users, :confirmation_token, :string...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20240719081651_add_preferred_language_to_user.rb
db/migrate/20240719081651_add_preferred_language_to_user.rb
class AddPreferredLanguageToUser < ActiveRecord::Migration[7.1] def change add_column :users, :preferred_language, :string end end
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20120102210558_devise_create_users.rb
db/migrate/20120102210558_devise_create_users.rb
# frozen_string_literal: true class DeviseCreateUsers < ActiveRecord::Migration[4.2] def change create_table(:users) do |t| # t.lockable :lock_strategy => :failed_attempts, :unlock_strategy => :both # t.token_authenticatable ## Database authenticatable t.string :email, null: false, defau...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20221228160730_create_urls.rb
db/migrate/20221228160730_create_urls.rb
# frozen_string_literal: true class CreateUrls < ActiveRecord::Migration[7.0] def change create_table :urls do |t| t.integer :expire_after_days t.integer :expire_after_views t.boolean :expired, default: false t.string :url_token t.integer :user_id, default: nil t.boolean :dele...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20250515121325_create_pushes.rb
db/migrate/20250515121325_create_pushes.rb
class CreatePushes < ActiveRecord::Migration[7.2] def change create_table(:pushes) do |t| t.integer :kind, null: false t.integer :expire_after_days t.integer :expire_after_views t.boolean :expired, default: false t.string :url_token t.boolean :deletable_by_viewer, default: true...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20250519010827_migrate_data_to_push_model.rb
db/migrate/20250519010827_migrate_data_to_push_model.rb
class MigrateDataToPushModel < ActiveRecord::Migration[7.2] def up # This originally contained data migration code but it was moved to config/initializers/migrate_data.rb # Reasons: Docker timeouts and health checks would kill the container before the data migration was complete # This migration is now on...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20210901122057_drop_unused_tables.rb
db/migrate/20210901122057_drop_unused_tables.rb
# frozen_string_literal: true class DropUnusedTables < ActiveRecord::Migration[6.1] def up drop_table :rails_admin_histories end def down # We'll just recreate the table on rollback since they were empty anyways # Copied from the original creation migrations create_table(:rails_admin_histories) ...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20230420175410_fix_passphrase_default.rb
db/migrate/20230420175410_fix_passphrase_default.rb
# frozen_string_literal: true class FixPassphraseDefault < ActiveRecord::Migration[7.0] def change begin # Add ability to set null values change_column_null(:passwords, :passphrase_ciphertext, true) change_column_null(:file_pushes, :passphrase_ciphertext, true) change_column_null(:urls, :...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20221113194838_create_active_storage_variant_records.active_storage.rb
db/migrate/20221113194838_create_active_storage_variant_records.active_storage.rb
# frozen_string_literal: true # This migration comes from active_storage (originally 20191206030411) class CreateActiveStorageVariantRecords < ActiveRecord::Migration[6.0] def change return unless table_exists?(:active_storage_blobs) # Use Active Record's configured type for primary key create_table :ac...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20211203124450_change_my_sql_text_limits.rb
db/migrate/20211203124450_change_my_sql_text_limits.rb
# frozen_string_literal: true class ChangeMySqlTextLimits < ActiveRecord::Migration[6.1] def change # MySQL defaults to the smallest test field type. Set a limit of about ~16MB so MEDIUMTEXT is used change_column :passwords, :payload_ciphertext, :text, limit: 16.megabytes - 1 end end
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20250513074136_add_name_to_models.rb
db/migrate/20250513074136_add_name_to_models.rb
class AddNameToModels < ActiveRecord::Migration[7.2] def change add_column :passwords, :name, :string add_column :file_pushes, :name, :string add_column :urls, :name, :string end end
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20210901131020_update_users.rb
db/migrate/20210901131020_update_users.rb
# frozen_string_literal: true class UpdateUsers < ActiveRecord::Migration[6.1] def change # Destroy all previously existing records since this table # has never been used before (outside of testing) User.all.destroy_all end end
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20120102220933_add_admin_to_user.rb
db/migrate/20120102220933_add_admin_to_user.rb
# frozen_string_literal: true class AddAdminToUser < ActiveRecord::Migration[4.2] def self.up add_column :users, :admin, :boolean, default: false end def self.down remove_column :users, :admin end end
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/db/migrate/20211105145016_add_note_ciphertext_to_password.rb
db/migrate/20211105145016_add_note_ciphertext_to_password.rb
# frozen_string_literal: true class AddNoteCiphertextToPassword < ActiveRecord::Migration[6.1] def change # Column for new lockbox encryption add_column :passwords, :note_ciphertext, :text # Rename legacy encryption column rename_column :passwords, :note, :note_legacy end end
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/application_system_test_case.rb
test/application_system_test_case.rb
# frozen_string_literal: true require "test_helper" class ApplicationSystemTestCase < ActionDispatch::SystemTestCase driven_by :selenium, using: :headless_chrome, screen_size: [1400, 1400] # If you prefer to use Headless Chrome directly without a remote URL # driven_by :selenium, using: :headless_chrome, scree...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/test_helper.rb
test/test_helper.rb
# frozen_string_literal: true ENV["RAILS_ENV"] = "test" require File.expand_path("../config/environment", __dir__) require "rails/test_help" require "minitest/rails" require "i18n/tasks" # Rubocop forces assert_not to be used instead of refute # This adds assert_not to Minitest::Test Minitest::Test.include(ActiveSupp...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/i18n_test.rb
test/i18n_test.rb
# frozen_string_literal: true require "i18n/tasks" class I18nTest < ActiveSupport::TestCase def setup @i18n = I18n::Tasks::BaseTask.new @missing_keys = @i18n.missing_keys @unused_keys = @i18n.unused_keys end def test_no_missing_keys assert_empty @missing_keys, "Missing #{@missing_keys.lea...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/initializers/session_store_test.rb
test/initializers/session_store_test.rb
# frozen_string_literal: true require "test_helper" class SessionStoreTest < ActiveSupport::TestCase def setup # Store the original setting to restore it later @original_secure_cookies = Settings.secure_cookies end def teardown # Restore the original setting Settings.secure_cookies = @original_...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/initializers/validate_settings_test.rb
test/initializers/validate_settings_test.rb
# frozen_string_literal: true require "test_helper" class ValidateSettingsTest < ActiveSupport::TestCase def setup # Store the original setting to restore it later @original_purge_after = Settings.purge_after end def teardown # Restore the original setting Settings.purge_after = @original_purge...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/system/push_creation_workflows_test.rb
test/system/push_creation_workflows_test.rb
# frozen_string_literal: true require "application_system_test_case" class PushCreationWorkflowsTest < ApplicationSystemTestCase setup do Settings.enable_logins = true Settings.enable_password_pushes = true Settings.enable_url_pushes = true Settings.enable_file_pushes = true Settings.enable_qr_p...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/system/password_generation_confirmation_test.rb
test/system/password_generation_confirmation_test.rb
# frozen_string_literal: true require "application_system_test_case" class PasswordGenerationConfirmationTest < ApplicationSystemTestCase test "shows confirmation modal when existing content is present" do visit new_push_path(tab: "text") # Wait for JavaScript to be fully loaded assert_selector "div[da...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/system/urls_test.rb
test/system/urls_test.rb
# frozen_string_literal: true require "application_system_test_case" class UrlsTest < ApplicationSystemTestCase setup do skip "Temporarily disabled" @url = urls(:one) end test "visiting the index" do visit urls_url assert_selector "h1", text: "Urls" end test "should create url" do visi...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/system/file_pushes_test.rb
test/system/file_pushes_test.rb
# frozen_string_literal: true require "application_system_test_case" class FilePushesTest < ApplicationSystemTestCase setup do skip "Temporarily disabled" @file_push = file_pushes(:one) end test "visiting the index" do visit file_pushes_url assert_selector "h1", text: "File pushes" end tes...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/system/push_cookies_test.rb
test/system/push_cookies_test.rb
# frozen_string_literal: true require "application_system_test_case" class PushCookiesTest < ApplicationSystemTestCase setup do Settings.enable_logins = true Settings.enable_password_pushes = true Rails.application.reload_routes! @user = users(:luca) @user.confirm login_as(@user, scope: :use...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/system/push_viewing_workflows_test.rb
test/system/push_viewing_workflows_test.rb
# frozen_string_literal: true require "application_system_test_case" class PushViewingWorkflowsTest < ApplicationSystemTestCase setup do Settings.enable_logins = true Settings.enable_password_pushes = true Rails.application.reload_routes! @push = pushes(:test_push) @push.update( payload: ...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/system/secret_url_bar_test.rb
test/system/secret_url_bar_test.rb
# frozen_string_literal: true require "application_system_test_case" class SecretUrlBarTest < ApplicationSystemTestCase include Devise::Test::IntegrationHelpers setup do # Enable logins for these tests Settings.enable_logins = true Rails.application.reload_routes! # Create and sign in a user ...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/system/user_account_deletion_test.rb
test/system/user_account_deletion_test.rb
# frozen_string_literal: true require "application_system_test_case" class UserAccountDeletionTest < ApplicationSystemTestCase setup do Settings.enable_logins = true Rails.application.reload_routes! @user = users(:luca) @user.confirm login_as(@user, scope: :user) end teardown do logout...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/system/url_cookies_test.rb
test/system/url_cookies_test.rb
# frozen_string_literal: true require "application_system_test_case" class UrlCookiesTest < ApplicationSystemTestCase setup do Settings.enable_logins = true Settings.enable_url_pushes = true Rails.application.reload_routes! @user = users(:luca) @user.confirm login_as(@user, scope: :user) e...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/system/copy_clipboard_test.rb
test/system/copy_clipboard_test.rb
# frozen_string_literal: true require "application_system_test_case" class CopyClipboardTest < ApplicationSystemTestCase setup do Settings.enable_logins = true Settings.enable_password_pushes = true Rails.application.reload_routes! @user = users(:giuliana) @user.confirm login_as(@user, scop...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/system/locale_strings_test.rb
test/system/locale_strings_test.rb
# frozen_string_literal: true require "application_system_test_case" require "test_helper" class LocaleStringsTest < ApplicationSystemTestCase include Devise::Test::IntegrationHelpers setup do Settings.enable_logins = true Rails.application.reload_routes! # Create a user @user = users(:giuliana)...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/system/password_generator_test.rb
test/system/password_generator_test.rb
# frozen_string_literal: true require "application_system_test_case" class PasswordGeneratorTest < ApplicationSystemTestCase setup do Settings.enable_logins = true Settings.enable_password_pushes = true Rails.application.reload_routes! @user = users(:luca) @user.confirm login_as(@user, scop...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/system/passphrase_protection_test.rb
test/system/passphrase_protection_test.rb
# frozen_string_literal: true require "application_system_test_case" class PassphraseProtectionTest < ApplicationSystemTestCase setup do Settings.enable_logins = true Settings.enable_password_pushes = true Rails.application.reload_routes! @push = pushes(:test_push) @push.update( payload: ...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/system/file_push_cookies_test.rb
test/system/file_push_cookies_test.rb
# frozen_string_literal: true require "application_system_test_case" class FilePushCookiesTest < ApplicationSystemTestCase setup do Settings.enable_logins = true Settings.enable_file_pushes = true Rails.application.reload_routes! @user = users(:luca) @user.confirm login_as(@user, scope: :use...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/integration/locale_handling_test.rb
test/integration/locale_handling_test.rb
# frozen_string_literal: true require "test_helper" class LocaleHandlingTest < ActionDispatch::IntegrationTest include Devise::Test::IntegrationHelpers setup do Settings.enable_logins = true Rails.application.reload_routes! @user = users(:luca) @user.confirm end teardown do Settings.ena...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/integration/admin_dashboard_test.rb
test/integration/admin_dashboard_test.rb
# frozen_string_literal: true require "test_helper" class AdminDashboardTest < ActionDispatch::IntegrationTest include Devise::Test::IntegrationHelpers setup do Settings.enable_logins = true Rails.application.reload_routes! end teardown do Settings.enable_logins = false Rails.application.rel...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/integration/owner_and_admin_view_test.rb
test/integration/owner_and_admin_view_test.rb
# frozen_string_literal: true require "test_helper" class OwnerAndAdminViewTest < ActionDispatch::IntegrationTest include Devise::Test::IntegrationHelpers setup do Settings.enable_logins = true Rails.application.reload_routes! @owner = users(:luca) @admin = users(:mr_admin) @other_user = use...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/integration/authentication_token_management_test.rb
test/integration/authentication_token_management_test.rb
# frozen_string_literal: true require "test_helper" class AuthenticationTokenManagementTest < ActionDispatch::IntegrationTest include Devise::Test::IntegrationHelpers setup do Settings.enable_logins = true Rails.application.reload_routes! @user = users(:luca) @user.confirm end teardown do ...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/integration/routes_redirect_test.rb
test/integration/routes_redirect_test.rb
# frozen_string_literal: true require "test_helper" class RoutesRedirectTest < ActionDispatch::IntegrationTest test "redirects from /f/:url_token to /p/:url_token" do get "/f/abc123" assert_redirected_to "/p/abc123" assert_response :redirect assert_equal 301, response.status end test "redirects...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/integration/admin_user_management_test.rb
test/integration/admin_user_management_test.rb
# frozen_string_literal: true require "test_helper" class AdminUserManagementTest < ActionDispatch::IntegrationTest include Devise::Test::IntegrationHelpers setup do Settings.enable_logins = true Rails.application.reload_routes! # Set default URL options for test environment to avoid missing host err...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/integration/password/password_json_active_test.rb
test/integration/password/password_json_active_test.rb
# frozen_string_literal: true require "test_helper" class PasswordJsonExpiredTest < ActionDispatch::IntegrationTest include Devise::Test::IntegrationHelpers setup do Settings.enable_logins = true Rails.application.reload_routes! @luca = users(:luca) @luca.confirm end def test_basic_json_exp...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/integration/password/password_json_creation_test.rb
test/integration/password/password_json_creation_test.rb
# frozen_string_literal: true require "test_helper" class PasswordJsonCreationTest < ActionDispatch::IntegrationTest def test_basic_json_creation post passwords_path(format: :json), params: {password: {payload: "testpw"}} assert_response :success res = JSON.parse(@response.body) assert res.key?("pa...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/integration/password/password_passphrase_test.rb
test/integration/password/password_passphrase_test.rb
# frozen_string_literal: true require "test_helper" class PasswordPassphraseTest < ActionDispatch::IntegrationTest def test_password_passphrase get new_push_path(tab: "text") assert_response :success post pushes_path, params: {push: {kind: "text", payload: "testpw", passphrase: "asdf"}} assert_resp...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/integration/password/password_creation_test.rb
test/integration/password/password_creation_test.rb
# frozen_string_literal: true require "test_helper" class PasswordCreationTest < ActionDispatch::IntegrationTest def test_textarea_has_safeties get new_push_path(tab: "text") assert_response :success # Validate some elements text_area = css_select "textarea#push_payload.form-control" assert te...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/integration/password/password_json_audit_test.rb
test/integration/password/password_json_audit_test.rb
# frozen_string_literal: true require "test_helper" class PasswordJsonAuditTest < ActionDispatch::IntegrationTest include Devise::Test::IntegrationHelpers def test_audit_response_for_authenticated Settings.enable_logins = true @luca = users(:luca) @luca.confirm # Create a push post password...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/integration/password/password_index_test.rb
test/integration/password/password_index_test.rb
# frozen_string_literal: true require "test_helper" class PasswordIndexTest < ActionDispatch::IntegrationTest include Devise::Test::IntegrationHelpers setup do Settings.enable_logins = true Rails.application.reload_routes! @luca = users(:luca) @luca.confirm sign_in @luca end teardown do ...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/integration/password/password_blur_test.rb
test/integration/password/password_blur_test.rb
# frozen_string_literal: true require "test_helper" class PasswordBlurTest < ActionDispatch::IntegrationTest include Devise::Test::IntegrationHelpers setup do Settings.pw.enable_blur = true end teardown do Settings.pw.enable_blur = true end def test_blur_enabled post pushes_path, params: {p...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/integration/password/password_requested_locale_test.rb
test/integration/password/password_requested_locale_test.rb
# frozen_string_literal: true require "test_helper" class PasswordRequestedLocaleTest < ActionDispatch::IntegrationTest def test_requested_locale get new_push_path(tab: "text") assert_response :success post pushes_path, params: {push: {kind: "text", payload: "testpw", passphrase: "asdf", retrieval_step...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/integration/password/password_json_expired_test.rb
test/integration/password/password_json_expired_test.rb
# frozen_string_literal: true require "test_helper" class PasswordJsonExpiredTest < ActionDispatch::IntegrationTest include Devise::Test::IntegrationHelpers setup do Settings.enable_logins = true Rails.application.reload_routes! @luca = users(:luca) @luca.confirm end def test_basic_json_exp...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/integration/password/password_json_deletion_test.rb
test/integration/password/password_json_deletion_test.rb
# frozen_string_literal: true require "test_helper" class PasswordJsonDeletionTest < ActionDispatch::IntegrationTest def test_deletion # Create password post passwords_path(format: :json), params: {password: {payload: "testpw"}} assert_response :success res = JSON.parse(@response.body) assert r...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/integration/password/password_json_retrieval_test.rb
test/integration/password/password_json_retrieval_test.rb
# frozen_string_literal: true require "test_helper" class PasswordJsonRetrievalTest < ActionDispatch::IntegrationTest def test_view_with_passphrase post passwords_path(format: :json), params: {password: {payload: "testpw", expire_after_views: 2, passphrase: "asdf"}} assert_response :success res = JSON....
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/integration/password/password_deletion_test.rb
test/integration/password/password_deletion_test.rb
# frozen_string_literal: true require "test_helper" class PasswordDeletionTest < ActionDispatch::IntegrationTest def test_anonymous_password_deletion assert Settings.pw.enable_deletable_pushes == true # create post pushes_path, params: {push: {kind: "text", payload: "testpw", deletable_by_viewer: "on"}}...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/integration/password/password_json_passphrase_test.rb
test/integration/password/password_json_passphrase_test.rb
# frozen_string_literal: true require "test_helper" class PasswordJsonPassphraseTest < ActionDispatch::IntegrationTest def test_basic_json_passphrase post passwords_path(format: :json), params: {password: {payload: "testpw", passphrase: "asdf"}} assert_response :success res = JSON.parse(@response.body)...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/integration/password/password_anonymous_access_test.rb
test/integration/password/password_anonymous_access_test.rb
# frozen_string_literal: true require "test_helper" class PasswordAnonymousAccessTest < ActionDispatch::IntegrationTest include Devise::Test::IntegrationHelpers setup do Settings.enable_logins = true Rails.application.reload_routes! end teardown do Settings.disable_signups = false end def ...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/integration/password/password_authenticated_test.rb
test/integration/password/password_authenticated_test.rb
# frozen_string_literal: true require "test_helper" class PasswordAuthenticatedTest < ActionDispatch::IntegrationTest def test_authenticated_json_creation post passwords_path(format: :json), params: {password: {payload: "testpw"}}, headers: {"Authorization" => "Bearer #{users(:luca).authentication_t...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/integration/password/password_notfound_test.rb
test/integration/password/password_notfound_test.rb
# frozen_string_literal: true require "test_helper" class PasswordNotfoundTest < ActionDispatch::IntegrationTest def test_password_not_found # Non existant push should return the expired page get "/p/doesnotexist" assert_response :success # Validate the expiration page p_tags = assert_select "p...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/integration/password/password_audit_test.rb
test/integration/password/password_audit_test.rb
# frozen_string_literal: true require "test_helper" class PasswordAuditTest < ActionDispatch::IntegrationTest include Devise::Test::IntegrationHelpers setup do Settings.enable_logins = true Rails.application.reload_routes! # Create a user @luca = users(:luca) @paul = users(:one) sign_in...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false
pglombardo/PasswordPusher
https://github.com/pglombardo/PasswordPusher/blob/9869098cf38d89c76abc2d6bfee2438cce61ce1c/test/integration/password/password_json_preview_test.rb
test/integration/password/password_json_preview_test.rb
# frozen_string_literal: true require "test_helper" require "uri" class PasswordJsonPreviewTest < ActionDispatch::IntegrationTest def test_preview_anonymous_response post passwords_path(format: :json), params: {password: {payload: "testpw", expire_after_views: 2}} assert_response :success res = JSON.pa...
ruby
Apache-2.0
9869098cf38d89c76abc2d6bfee2438cce61ce1c
2026-01-04T15:53:03.627788Z
false