source stringclasses 1
value | repo stringlengths 5 63 | repo_url stringlengths 24 82 | path stringlengths 5 167 | language stringclasses 1
value | license stringclasses 5
values | stars int64 10 51.4k | ref stringclasses 23
values | size_bytes int64 200 258k | text stringlengths 137 258k |
|---|---|---|---|---|---|---|---|---|---|
github | Bodacious/blogit | https://github.com/Bodacious/blogit | lib/tasks/blogit.rake | Ruby | mit | 241 | main | 1,040 | require 'yaml'
namespace :blogit do
desc "Add a bunch of mock blog posts to the database for dev"
task :seed => :environment do
if Rails.env.production?
warn "Can't seed your production database bro, too risky!"
else
load_all_models
seed_blog_content.each do |blog_post_atts|
st... |
github | Bodacious/blogit | https://github.com/Bodacious/blogit | lib/tasks/blogit/css.rake | Ruby | mit | 241 | main | 702 | namespace :blogit do
desc "Alias of blogit:css:compile"
task :css => [:"css:compile"]
namespace :css do
desc "Compiles blogit sass files to css and .min.css"
task :compile do
system "sass -r sass-globbing --no-cache --quiet \
--load-path=app/assets/stylesheets/blogit/themes \
app/... |
github | Bodacious/blogit | https://github.com/Bodacious/blogit | lib/tasks/blogit/doc.rake | Ruby | mit | 241 | main | 524 | namespace :blogit do
desc "Alias of blogit:doc:compile"
task :doc => [:"doc:compile"]
namespace :doc do
DOC_FILES = ["Contributing", "TODOS", "Upgrading", "HowTo"].map { |filename|
"./doc/#{filename}.md"
}.join(",")
desc "Builds the blogit documentation using YARD-Tomdoc"
task :compile ... |
github | Bodacious/blogit | https://github.com/Bodacious/blogit | config/routes.rb | Ruby | mit | 241 | main | 316 | Blogit::Engine.routes.draw do
# Keep these above the posts resources block
get "posts/page/:page" => "posts#index"
get "posts/tagged/:tag" => 'posts#tagged', as: :tagged_blog_posts
resources :posts do
resources :comments, only: [:create, :destroy]
end
get "/" => "posts#index", as: :blog_root
end |
github | Bodacious/blogit | https://github.com/Bodacious/blogit | db/migrate/20110814093229_create_blogit_comments.rb | Ruby | mit | 241 | main | 371 | class CreateBlogitComments < ActiveRecord::Migration
def change
create_table :blogit_comments do |t|
t.string :name, null: false
t.string :email, null: false
t.string :website
t.text :body, null: false
t.references :post, null: false
t.string :state
t.timestamps
end
... |
github | Bodacious/blogit | https://github.com/Bodacious/blogit | db/migrate/20110814091434_create_blogit_posts.rb | Ruby | mit | 241 | main | 466 | class CreateBlogitPosts < ActiveRecord::Migration
def change
create_table :blogit_posts do |t|
t.with_options(null: false) do |r|
r.string :title
r.text :body
r.string :state, default: Blogit::configuration.hidden_states.first.to_s
r.integer :comments_count, default: 0
... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | Gemfile | Ruby | mit | 241 | main | 265 | source "https://rubygems.org"
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
# Specify your gem's dependencies in devise-passwordless.gemspec
gemspec
gem "rake", "~> 13.0"
group :test do
gem "rspec", "~> 3.0"
gem "generator_spec"
end |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | devise-passwordless.gemspec | Ruby | mit | 241 | main | 1,837 | lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "devise/passwordless/version"
Gem::Specification.new do |spec|
spec.name = "devise-passwordless"
spec.version = Devise::Passwordless::VERSION
spec.authors = ["Abe Voelker", "Jennifer Konikowski"]
spec.ema... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | lib/generators/devise/passwordless/install_generator.rb | Ruby | mit | 241 | main | 4,822 | require "psych"
require "rails/generators"
require "yaml"
module Devise::Passwordless
module Generators # :nodoc:
class InstallGenerator < ::Rails::Generators::Base # :nodoc:
desc "Creates default install and config files for the Devise :magic_link_authenticatable strategy"
def self.default_generato... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | lib/devise/monkeypatch.rb | Ruby | mit | 241 | main | 2,583 | # Monkeypatch to allow multiple routes for a single module
# TODO this should be submitted as a PR to devise to deleted if/when merged
module Devise
class Mapping
def routes
@routes ||= ROUTES.values_at(*modules).compact.flatten.uniq
end
end
def self.add_module(module_name, options = {})
option... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | lib/devise/passwordless.rb | Ruby | mit | 241 | main | 1,569 | require "devise"
require "devise/passwordless/version"
require "devise/monkeypatch"
require "devise/passwordless/rails" if defined?(Rails::Engine)
require "devise/models/magic_link_authenticatable"
require "generators/devise/passwordless/install_generator"
require "devise/passwordless/tokenizers/message_encryptor_token... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | lib/devise/hooks/magic_link_authenticatable.rb | Ruby | mit | 241 | main | 486 | # frozen_string_literal: true
# Deny user access when magic link authentication is disabled
Warden::Manager.after_set_user do |record, warden, options|
if record&.respond_to?(:active_for_magic_link_authentication?) && !record.active_for_magic_link_authentication? && warden.winning_strategy.is_a?(Devise::Strategies::... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | lib/devise/passwordless/login_token.rb | Ruby | mit | 241 | main | 418 | module Devise::Passwordless
class LoginToken
def self.secret_key
Devise::Passwordless.deprecator.warn <<-DEPRECATION.strip_heredoc
[Devise-Passwordless] `Devise::Passwordless::LoginToken.secret_key` is
deprecated and will be removed in a future release. Please use
`Devise::Passwordle... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | lib/devise/passwordless/routing.rb | Ruby | mit | 241 | main | 265 | module ActionDispatch::Routing
class Mapper
protected
def devise_magic_link(mapping, controllers) # :nodoc:
resource :magic_link, only: [:show],
path: mapping.path_names[:magic_link], controller: controllers[:magic_links]
end
end
end |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | lib/devise/passwordless/rails.rb | Ruby | mit | 241 | main | 596 | module Devise::Passwordless
class Engine < Rails::Engine
initializer "devise_passwordless.routing" do
require "devise/passwordless/routing"
Devise.add_module(:magic_link_authenticatable, {
model: true,
strategy: true,
route: {magic_link: [nil, :show], session: [nil, :new, :des... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | lib/devise/passwordless/tokenizers/signed_global_id_tokenizer.rb | Ruby | mit | 241 | main | 638 | require "globalid"
module Devise::Passwordless
class SignedGlobalIDTokenizer
def self.encode(resource, expires_in: nil, expires_at: nil)
if expires_at
resource.to_sgid(expires_at: expires_at, for: "login").to_s
else
resource.to_sgid(expires_in: expires_in || resource.class.passwordles... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | lib/devise/passwordless/tokenizers/message_encryptor_tokenizer.rb | Ruby | mit | 241 | main | 2,503 | module Devise::Passwordless
class MessageEncryptorTokenizer
def self.encode(resource, extra: nil, expires_at: nil)
now = Time.current
len = ActiveSupport::MessageEncryptor.key_len
salt = SecureRandom.random_bytes(len)
key = ActiveSupport::KeyGenerator.new(Devise::Passwordless.secret_key).g... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | lib/devise/models/magic_link_authenticatable.rb | Ruby | mit | 241 | main | 4,817 | require "devise/strategies/magic_link_authenticatable"
require "devise/hooks/magic_link_authenticatable"
module Devise
module Models
module MagicLinkAuthenticatable
extend ActiveSupport::Concern
# Models using the :database_authenticatable strategy will already
# have #password_required? and #... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | lib/devise/strategies/magic_link_authenticatable.rb | Ruby | mit | 241 | main | 1,640 | # frozen_string_literal: true
require "devise"
require "devise/strategies/authenticatable"
require "devise/passwordless/login_token"
module Devise
module Strategies
class MagicLinkAuthenticatable < Authenticatable
# undef :password
# undef :password=
attr_accessor :token
def valid_for_h... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | app/controllers/devise/magic_links_controller.rb | Ruby | mit | 241 | main | 841 | class Devise::MagicLinksController < DeviseController
prepend_before_action :require_no_authentication, only: :show
prepend_before_action :allow_params_authentication!, only: :show
prepend_before_action(only: [:show]) { request.env["devise.skip_timeout"] = true }
# GET /resource/magic_link
def show
self.... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | app/controllers/devise/passwordless/sessions_controller.rb | Ruby | mit | 241 | main | 1,454 | class Devise::Passwordless::SessionsController < Devise::SessionsController
def create
if (self.resource = resource_class.find_for_authentication(email: create_params[:email]))
send_magic_link(resource)
if Devise.paranoid
set_flash_message!(:notice, :magic_link_sent_paranoid)
else
... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | app/mailers/devise/passwordless/mailer.rb | Ruby | mit | 241 | main | 369 | # frozen_string_literal: true
if defined?(ActionMailer)
module Devise
module Passwordless
class Mailer < Devise::Mailer
def magic_link(record, token, remember_me, opts = {})
@token = token
@remember_me = remember_me
@opts = opts
devise_mail(record, :magic_lin... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/spec_helper.rb | Ruby | mit | 241 | main | 468 | require "bundler/setup"
require "devise/passwordless"
require "timecop"
RSpec.configure do |config|
# Enable flags like --only-failures and --next-failure
config.example_status_persistence_file_path = ".rspec_status"
# Disable RSpec exposing methods globally on `Module` and `main`
config.disable_monkey_patchi... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/generators/install_generator_spec.rb | Ruby | mit | 241 | main | 1,914 | require "spec_helper"
require "generator_spec"
RSpec.describe Devise::Passwordless::Generators::InstallGenerator, type: :generator do
destination File.expand_path("../../tmp", __FILE__)
before do
prepare_destination
end
context "Devise installed" do
let(:default_devise_initializer) {
File.expand... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/generators/templates/default/devise.rb | Ruby | mit | 241 | main | 15,190 | # frozen_string_literal: true
# Assuming you have not yet modified this file, each configuration option below
# is set to its default value. Note that some are commented out while others
# are not: uncommented lines are intended to protect your configuration from
# breaking changes in upgrades (i.e., in the event that... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/generators/templates/expected/devise.rb | Ruby | mit | 241 | main | 16,449 | # frozen_string_literal: true
# Assuming you have not yet modified this file, each configuration option below
# is set to its default value. Note that some are commented out while others
# are not: uncommented lines are intended to protect your configuration from
# breaking changes in upgrades (i.e., in the event that... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/dummy_app_config/shared_source/7.0/config/environments/development.rb | Ruby | mit | 241 | main | 2,360 | require "active_support/core_ext/integer/time"
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded any time
# it changes. This slows down response time but is perfect for developme... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/dummy_app_config/shared_source/7.0/config/environments/test.rb | Ruby | mit | 241 | main | 2,350 | require "active_support/core_ext/integer/time"
# 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 the... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/dummy_app_config/shared_source/all/config/routes.rb | Ruby | mit | 241 | main | 1,659 | Rails.application.routes.draw do
devise_for :password_users
# Passwordless users with :confirmable behavior
# (users are logged out until they confirm their email address)
devise_for :passwordless_confirmable_users,
controllers: { sessions: "devise/passwordless/sessions" }
# Passwordless users without :c... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/dummy_app_config/shared_source/all/config/initializers/devise.rb | Ruby | mit | 241 | main | 16,729 | # frozen_string_literal: true
# Assuming you have not yet modified this file, each configuration option below
# is set to its default value. Note that some are commented out while others
# are not: uncommented lines are intended to protect your configuration from
# breaking changes in upgrades (i.e., in the event that... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/dummy_app_config/shared_source/all/spec/rails_helper.rb | Ruby | mit | 241 | main | 2,938 | # This file is copied to spec/ when you run 'rails generate rspec:install'
require 'spec_helper'
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../config/environment', __dir__)
# Prevent database truncation if the environment is production
abort("The Rails environment is running in production mode!") if Rails.en... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/dummy_app_config/shared_source/all/spec/system/system_spec.rb | Ruby | mit | 241 | main | 209 | require "rails_helper"
RSpec.describe "App startup", :type => :system do
before do
driven_by(:rack_test)
end
it "has a homepage" do
visit "/"
expect(page.status_code).to be(200)
end
end |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/dummy_app_config/shared_source/all/spec/system/combined_user/sign_in_spec.rb | Ruby | mit | 241 | main | 9,143 | require "rails_helper"
require "system/shared/shared_passwordless_sign_in_examples"
RSpec.describe "CombinedUser sign in", :type => :system do
let(:email) { "foo@example.com" }
let(:password) { "foobar123" }
before do
driven_by(:rack_test)
end
context "signing in with password" do
let(:sign_in_path)... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/dummy_app_config/shared_source/all/spec/system/combined_user/registration_spec.rb | Ruby | mit | 241 | main | 944 | require "rails_helper"
RSpec.describe "CombinedUser registration", :type => :system do
before do
driven_by(:rack_test)
end
it "handles registration email and password" do
email = "foo@example.com"
password = "foobar123"
visit "/combined_users/sign_up"
expect(page.status_code).to be(200)
... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/dummy_app_config/shared_source/all/spec/system/passwordless_confirmable_user/sign_in_spec.rb | Ruby | mit | 241 | main | 2,942 | require "rails_helper"
require "yaml"
require "system/shared/shared_passwordless_sign_in_examples"
RSpec.describe "PasswordlessConfirmableUser sign in", :type => :system do
let(:email) { "foo@example.com" }
before do
driven_by(:rack_test)
end
let(:unconfirmed_user) { PasswordlessConfirmableUser.new(email:... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/dummy_app_config/shared_source/all/spec/system/passwordless_confirmable_user/magic_link_spec.rb | Ruby | mit | 241 | main | 808 | require "rails_helper"
RSpec.describe "PasswordlessConfirmableUser magic links", :type => :system do
let(:email) { "foo@example.com" }
let(:css_class) { "passwordless_confirmable_user" }
before do
driven_by(:rack_test)
end
let(:user) { PasswordlessConfirmableUser.new(email: email).tap{|x|
x.skip_co... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/dummy_app_config/shared_source/all/spec/system/passwordless_confirmable_user/registration_spec.rb | Ruby | mit | 241 | main | 728 | require "rails_helper"
RSpec.describe "PasswordlessConfirmableUser registration", :type => :system do
before do
driven_by(:rack_test)
end
it "handles registration using only email" do
email = "foo@example.com"
visit "/passwordless_confirmable_users/sign_up"
expect(page.status_code).to be(200)
... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/dummy_app_config/shared_source/all/spec/system/shared/shared_passwordless_sign_in_examples.rb | Ruby | mit | 241 | main | 9,840 | RSpec.shared_examples "passwordless resource shared sign-in examples" do
context "paranoid mode enabled (default)" do
let(:login_message) { "If your account exists, you will receive an email with a login link. Please follow the link to log in to your account." }
before do
allow(Devise).to receive(:para... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/dummy_app_config/shared_source/all/spec/system/password_user/sign_in_spec.rb | Ruby | mit | 241 | main | 739 | require "rails_helper"
RSpec.describe "PasswordUser sign in", :type => :system do
let(:email) { "foo@example.com" }
let(:password) { "foobar123" }
before do
driven_by(:rack_test)
end
let!(:user) { PasswordUser.create(email: email, password: password) }
it "successfully logs in password user using pas... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/dummy_app_config/shared_source/all/spec/system/password_user/registration_spec.rb | Ruby | mit | 241 | main | 944 | require "rails_helper"
RSpec.describe "PasswordUser registration", :type => :system do
before do
driven_by(:rack_test)
end
it "handles registration email and password" do
email = "foo@example.com"
password = "foobar123"
visit "/password_users/sign_up"
expect(page.status_code).to be(200)
... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/dummy_app_config/shared_source/all/spec/system/passwordless_user/magic_link_spec.rb | Ruby | mit | 241 | main | 691 | require "rails_helper"
RSpec.describe "PasswordlessUser magic links", :type => :system do
let(:email) { "foo@example.com" }
let(:css_class) { "passwordless_user" }
before do
driven_by(:rack_test)
end
let(:user) { PasswordlessUser.create(email: email) }
let(:token) { user.encode_passwordless_token }
... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/dummy_app_config/shared_source/all/spec/system/passwordless_user/sign_in_spec.rb | Ruby | mit | 241 | main | 3,634 | require "rails_helper"
require "yaml"
require "system/shared/shared_passwordless_sign_in_examples"
RSpec.describe "PasswordlessUser sign in", :type => :system do
let(:email) { "foo@example.com" }
before do
driven_by(:rack_test)
end
context "shared examples" do
let(:sign_in_path) { "/passwordless_users... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/dummy_app_config/shared_source/all/spec/system/passwordless_user/registration_spec.rb | Ruby | mit | 241 | main | 840 | require "rails_helper"
RSpec.describe "PasswordlessUser registration", :type => :system do
before do
driven_by(:rack_test)
end
it "handles registration using only email" do
email = "foo@example.com"
visit "/passwordless_users/sign_up"
expect(page.status_code).to be(200)
expect(page).to hav... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/dummy_app_config/shared_source/all/app/models/combined_user.rb | Ruby | mit | 241 | main | 304 | class CombinedUser < ApplicationRecord
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
devise :database_authenticatable, :magic_link_authenticatable, :registerable,
:recoverable, :rememberable, :validatable
end |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/dummy_app_config/shared_source/all/app/models/password_user.rb | Ruby | mit | 241 | main | 275 | class PasswordUser < ApplicationRecord
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :validatable
end |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/dummy_app_config/shared_source/all/app/models/passwordless_confirmable_user.rb | Ruby | mit | 241 | main | 365 | class PasswordlessConfirmableUser < ApplicationRecord
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
devise :magic_link_authenticatable, :registerable,
:confirmable, :rememberable, :validatable
def self.passwordless_tokeniz... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/dummy_app_config/shared_source/all/app/models/passwordless_user.rb | Ruby | mit | 241 | main | 267 | class PasswordlessUser < ApplicationRecord
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
devise :magic_link_authenticatable, :registerable,
:rememberable, :validatable
end |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/dummy_app_config/shared_source/all/db/schema.rb | Ruby | mit | 241 | main | 3,305 | # 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 `rails
#... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/dummy_app_config/shared_source/all/db/migrate/20230828011615_devise_create_passwordless_users.rb | Ruby | mit | 241 | main | 1,414 | # frozen_string_literal: true
class DeviseCreatePasswordlessUsers < ActiveRecord::Migration[6.0]
def change
create_table :passwordless_users do |t|
## Email authenticatable
t.string :email, null: false
## Recoverable
#t.string :reset_password_token
#t.datetime :reset_password_sen... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/dummy_app_config/shared_source/all/db/migrate/20230908215556_devise_create_combined_users.rb | Ruby | mit | 241 | main | 1,454 | # frozen_string_literal: true
class DeviseCreateCombinedUsers < ActiveRecord::Migration[6.0]
def change
create_table :combined_users do |t|
## Database authenticatable
t.string :email, null: false, default: ""
t.string :encrypted_password, null: false, default: ""
## Recover... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/dummy_app_config/shared_source/all/db/migrate/20230829171605_devise_create_passwordless_confirmable_users.rb | Ruby | mit | 241 | main | 1,501 | # frozen_string_literal: true
class DeviseCreatePasswordlessConfirmableUsers < ActiveRecord::Migration[6.0]
def change
rename_table :passwordless_users, :passwordless_confirmable_users
create_table :passwordless_users do |t|
## Email authenticatable
t.string :email, null: false
## Recovera... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/dummy_app_config/shared_source/all/db/migrate/20230901220533_devise_create_password_users.rb | Ruby | mit | 241 | main | 1,454 | # frozen_string_literal: true
class DeviseCreatePasswordUsers < ActiveRecord::Migration[6.0]
def change
create_table :password_users do |t|
## Database authenticatable
t.string :email, null: false, default: ""
t.string :encrypted_password, null: false, default: ""
## Recover... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/devise/passwordless_spec.rb | Ruby | mit | 241 | main | 1,722 | RSpec.describe Devise::Passwordless do
it "has a version number" do
expect(Devise::Passwordless::VERSION).not_to be nil
end
context "check_filter_parameters" do
let(:warn_msg) { Devise::Passwordless::FILTER_PARAMS_WARNING + "\n" }
context "symbol keys" do
it "warns if :token is not filtered" d... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/devise/passwordless/tokenizers/signed_global_id_tokenizer_spec.rb | Ruby | mit | 241 | main | 5,281 | RSpec.describe Devise::Passwordless::SignedGlobalIDTokenizer do
describe 'encryption and decryption' do
let(:secret) { 's3Krit' }
before do
Timecop.freeze(Time.utc(2023, 1, 1))
allow(Devise::Passwordless).to receive(:secret_key).and_return(secret)
verifier = ActiveSupport::MessageVerifier.n... |
github | devise-passwordless/devise-passwordless | https://github.com/devise-passwordless/devise-passwordless | spec/devise/passwordless/tokenizers/message_encryptor_tokenizer_spec.rb | Ruby | mit | 241 | main | 6,416 | RSpec.describe Devise::Passwordless::MessageEncryptorTokenizer do
describe 'encryption and decryption' do
let(:user_class) { double(:user_class) }
let(:user) { double(:user, email: 'email@example.com', to_key: [12345]) }
before do
Timecop.freeze(Time.utc(2023, 1, 1))
allow(Devise::Passwordle... |
github | modcloth-labs/github-xcode-bot-builder | https://github.com/modcloth-labs/github-xcode-bot-builder | Rakefile | Ruby | mit | 241 | master | 1,576 | # encoding: utf-8
require 'rubygems'
require 'bundler'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'rake'
require 'jeweler'
Jeweler::Tasks.new do |gem|
# gem is... |
github | modcloth-labs/github-xcode-bot-builder | https://github.com/modcloth-labs/github-xcode-bot-builder | Gemfile | Ruby | mit | 241 | master | 237 | source "http://rubygems.org"
gem "octokit", "~> 2.0"
gem "parseconfig", "~> 1.0.2"
group :development do
gem "rspec", "~> 2.8.0"
gem "rdoc", "~> 3.12"
gem "bundler", "~> 1.0"
gem "jeweler", "~> 1.8.7"
#gem "rcov", ">= 0"
end |
github | modcloth-labs/github-xcode-bot-builder | https://github.com/modcloth-labs/github-xcode-bot-builder | github-xcode-bot-builder.gemspec | Ruby | mit | 241 | master | 2,562 | # Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = "github-xcode-bot-builder"
s.version = "0.0.2"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :... |
github | modcloth-labs/github-xcode-bot-builder | https://github.com/modcloth-labs/github-xcode-bot-builder | spec/spec_helper.rb | Ruby | mit | 241 | master | 374 | $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rspec'
require 'github-xcode-bot-builder'
# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].eac... |
github | modcloth-labs/github-xcode-bot-builder | https://github.com/modcloth-labs/github-xcode-bot-builder | spec/github_xcode_bot_builder_spec.rb | Ruby | mit | 241 | master | 215 | require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
describe "GithubXcodeBotBuilder" do
it "fails" do
fail "hey buddy, you should probably rename this file and start specing for real"
end
end |
github | modcloth-labs/github-xcode-bot-builder | https://github.com/modcloth-labs/github-xcode-bot-builder | lib/bot_cli.rb | Ruby | mit | 241 | master | 2,247 | require 'bot_builder'
require 'bot_github'
require 'bot_configuration'
# Patch net/http to set a reasonable open_timeout to prevent hanging
module Net
class HTTP
alias old_initialize initialize
def initialize(*args)
old_initialize(*args)
@open_timeout = 60
end
e... |
github | modcloth-labs/github-xcode-bot-builder | https://github.com/modcloth-labs/github-xcode-bot-builder | lib/bot_configuration.rb | Ruby | mit | 241 | master | 1,188 | require 'json'
require 'pp'
Repository = Struct.new(:github_repo, :project_or_workspace, :bots) do
end
Bot = Struct.new(:scheme, :run_analyzer, :run_test, :create_archive, :devices) do
end
class BotConfiguration
attr_accessor :github_access_token
attr_accessor :xcode_server
attr_accessor :api_endpoint
attr_acces... |
github | modcloth-labs/github-xcode-bot-builder | https://github.com/modcloth-labs/github-xcode-bot-builder | lib/bot_builder.rb | Ruby | mit | 241 | master | 9,618 | require 'net/http'
require 'uri'
require 'cgi/cookie'
require 'SecureRandom'
require 'json'
require 'pp'
require 'singleton'
require 'ostruct'
class BotBuilder
attr_accessor :server
attr_accessor :project_path
attr_accessor :bot
def initialize(server, project_path=nil, bot=nil)
self.server = server
se... |
github | modcloth-labs/github-xcode-bot-builder | https://github.com/modcloth-labs/github-xcode-bot-builder | lib/bot_github.rb | Ruby | mit | 241 | master | 9,876 | require 'octokit'
require 'singleton'
require 'bot_builder'
require 'ostruct'
class BotGithub
attr_accessor :client, :bot_builder, :github_repo, :scheme
def initialize(client, bot_builder, github_repo, scheme)
self.client = client
self.bot_builder = bot_builder
self.github_repo = github_repo
self.... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | fleximage.gemspec | Ruby | mit | 241 | master | 10,608 | # Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = %q{fleximage}
s.version = "1.0.3"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | Rakefile | Ruby | mit | 241 | master | 1,369 | require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rubygems'
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the fleximage plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.pattern = 'test/unit/**/*_test.rb'
t.verbose = true
end
desc 'Generate documentation for... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/test_helper.rb | Ruby | mit | 241 | master | 2,312 | # Load the environment
ENV['RAILS_ENV'] ||= 'test'
require File.dirname(__FILE__) + '/rails_root/config/environment.rb'
# Load the testing framework
require 'test_help'
silence_warnings { RAILS_ENV = ENV['RAILS_ENV'] }
# Run the migrations
ActiveRecord::Migrator.migrate("#{RAILS_ROOT}/db/migrate")
# Setup the fix... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/mock_file.rb | Ruby | mit | 241 | master | 297 | # This is a testable class that emulates an uploaded file
class MockFile
attr_reader :path
def initialize(path)
@path = path
end
def size
1
end
def original_filename
@path.split('/').last
end
def read
File.open(@path) { |f| f.read }
end
def rewind; end
end |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/unit/default_image_path_option_test.rb | Ruby | mit | 241 | master | 481 | require File.dirname(__FILE__) + '/../../test/test_helper'
class FleximageDefaultImagePathOptionTest < Test::Unit::TestCase
def test_should_use_a_default_image
PhotoBare.require_image = false
PhotoBare.default_image_path = "../fixtures/photo.jpg"
p = PhotoBare.new
assert p.save
assert_equal ... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/unit/dsl_accessor_test.rb | Ruby | mit | 241 | master | 2,772 | require File.dirname(__FILE__) + '/../test_helper.rb'
class DslAccessorTest < Test::Unit::TestCase
class CoolActiveRecord
dsl_accessor :primary_key
dsl_accessor :table_name
end
class Item < CoolActiveRecord
end
class LegacyItem < CoolActiveRecord
primary_key :itcd
table_name :item
end
... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/unit/blank_test.rb | Ruby | mit | 241 | master | 612 | require File.dirname(__FILE__) + '/../../test/test_helper'
class FleximageBlankTest < Test::Unit::TestCase
def test_should_create_blank_image_of_proper_dimensions
p = Fleximage::Blank.new('320x480')
p.operate do |image|
assert_equal(320, image.width)
assert_equal(480, image.height)
end
e... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/unit/image_storage_format_option_test.rb | Ruby | mit | 241 | master | 1,031 | require File.dirname(__FILE__) + '/../../test/test_helper'
class FleximageImageStorageOptionTest < Test::Unit::TestCase
def test_should_have_default_storage_format_png
p = PhotoBare.create(:image_file => files(:photo))
assert_match %r{\d+\.png$}, p.file_path
assert_equal 'PNG', p.load_image.format
end
... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/unit/file_upload_to_db_test.rb | Ruby | mit | 241 | master | 1,334 | require File.dirname(__FILE__) + '/../../test/test_helper'
class FleximageFileUploadToDbTest < Test::Unit::TestCase
def test_should_be_valid_with_image
p = PhotoDb.new(:image_file => files(:photo))
assert p.save, 'Record expected to be allowed to save'
p = PhotoDb.find(p.id)
assert_kind_of Magic... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/unit/file_upload_from_local_test.rb | Ruby | mit | 241 | master | 1,074 | require File.dirname(__FILE__) + '/../../test/test_helper'
class FleximageFileUploadFromLocalTest < Test::Unit::TestCase
def test_should_be_valid_with_image
p = PhotoBare.new(:image_file => files(:photo))
assert p.save, 'Record expected to be allowed to save'
end
def test_should_require_an_image
p... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/unit/operator_base_test.rb | Ruby | mit | 241 | master | 3,814 | require File.dirname(__FILE__) + '/../../test/test_helper'
class FleximageOperatorBaseTest < Test::Unit::TestCase
def setup
@photo = PhotoBare.create(:image_file => files(:photo))
proxy = Fleximage::ImageProxy.new(@photo.load_image, @photo)
@op = Fleximage::Operator::Base.new(proxy, @photo.load_im... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/unit/file_upload_from_strings_test.rb | Ruby | mit | 241 | master | 604 | require File.dirname(__FILE__) + '/../../test/test_helper'
class FleximageFileUploadFromStringsTest < Test::Unit::TestCase
def test_should_accept_file_as_string
data = files(:photo).read
p = PhotoBare.new
p.image_file_string = data
p.save
assert p.save, 'Record expected to be allowed to save... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/unit/image_proxy_test.rb | Ruby | mit | 241 | master | 444 | require File.dirname(__FILE__) + '/../../test/test_helper'
class FleximageImageProxyTest < Test::Unit::TestCase
def test_should_have_a_width
p = PhotoBare.create(:image_file => files(:photo))
p.operate do |image|
assert_equal 768, image.width
end
end
def test_should_have_a_height
p = Pho... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/unit/abstract_test.rb | Ruby | mit | 241 | master | 472 | require File.dirname(__FILE__) + '/../../test/test_helper'
class FleximageAbstractTest < Test::Unit::TestCase
def test_should_generate_a_default_image
p = Abstract.new
assert p.save
assert_equal 320, p.load_image.columns
assert_equal 240, p.load_image.rows
assert_color [65535, 0, 0], '160... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/unit/i18n_messages_test.rb | Ruby | mit | 241 | master | 1,465 | require File.dirname(__FILE__) + '/../../test/test_helper'
class I18nMessagesTest < Test::Unit::TestCase
def test_should_have_default_message
p = PhotoBare.new
p.save
assert_equal "is required", p.errors["image_file"]
p = PhotoBare.new(:image_file => files(:not_a_photo))
p.save
assert_e... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/unit/operator_resize_test.rb | Ruby | mit | 241 | master | 585 | require File.dirname(__FILE__) + '/../../test/test_helper'
class FleximageOperatorResizeTest < Test::Unit::TestCase
def setup
@photo = PhotoBare.create(:image_file => files(:photo))
proxy = Fleximage::ImageProxy.new(@photo.load_image, @photo)
@op = Fleximage::Operator::Base.new(proxy, @photo.load_... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/unit/minimum_image_size_test.rb | Ruby | mit | 241 | master | 1,361 | require File.dirname(__FILE__) + '/../../test/test_helper'
class BigPhoto < ActiveRecord::Base
set_table_name :photo_dbs
acts_as_fleximage do
validates_image_size '80x60'
end
end
class WidePhoto < ActiveRecord::Base
set_table_name :photo_dbs
acts_as_fleximage do
validates_image_size '80x0'
end
en... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/unit/image_directory_option_test.rb | Ruby | mit | 241 | master | 773 | require File.dirname(__FILE__) + '/../../test/test_helper'
class FleximageImageDirectoryOptionTest < Test::Unit::TestCase
def test_should_store_in_default_image_directory
PhotoBare.use_creation_date_based_directories = true
p = PhotoBare.create(:image_file => files(:photo))
assert_match %r{public/uploads... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/unit/require_image_option_test.rb | Ruby | mit | 241 | master | 787 | require File.dirname(__FILE__) + '/../../test/test_helper'
class ValidatedPhoto < ActiveRecord::Base
set_table_name :photo_dbs
acts_as_fleximage
def validate
# overiding the validate method
end
end
class FleximageRequireImageOptionTest < Test::Unit::TestCase
def test_should_require_image_by_default
... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/unit/magic_columns_test.rb | Ruby | mit | 241 | master | 1,062 | require File.dirname(__FILE__) + '/../../test/test_helper'
class FleximageMagicColumnsTest < Test::Unit::TestCase
def test_should_save_data_in_magic_columns_from_local
p = PhotoFile.create(:image_file => files(:photo))
assert_equal 'photo.jpg', p.image_filename
assert_equal 1024, p.image_height
asse... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/unit/use_creation_date_based_directories_option_test.rb | Ruby | mit | 241 | master | 664 | require File.dirname(__FILE__) + '/../../test/test_helper'
class FleximageUseCreationDateBasedDirectoriesOptionTest < Test::Unit::TestCase
def test_should_store_images_with_creation_date_based_directories
p = PhotoBare.create(:image_file => files(:photo))
assert_match %r{public/uploads/\d+/\d+/\d+/\d+}, p.fi... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/unit/file_upload_from_url_test.rb | Ruby | mit | 241 | master | 1,206 | require File.dirname(__FILE__) + '/../../test/test_helper'
class FleximageFileUploadFromUrlTest < Test::Unit::TestCase
def test_should_be_valid_with_image_from_url
p = PhotoBare.new(:image_file_url => files(:web_photo))
assert p.save, 'Record expected to be valid after upload via URL'
rescue SocketError
... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/unit/temp_image_test.rb | Ruby | mit | 241 | master | 816 | require File.dirname(__FILE__) + '/../../test/test_helper'
class FleximageTempImageTest < Test::Unit::TestCase
def test_should_save_and_use_a_temp_image
a1 = Avatar.new(:image_file => files(:photo))
assert !a1.save
assert_match /^\d+_\d+$/, a1.image_file_temp
assert File.exists?("#{RAILS_ROOT}/tmp/fl... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/unit/basic_model_test.rb | Ruby | mit | 241 | master | 1,672 | require File.dirname(__FILE__) + '/../../test/test_helper'
class FleximageBasicModelTest < Test::Unit::TestCase
def test_should_have_correct_file_path_with_creation_date_based_storage
p = PhotoBare.create(:image_file => files(:photo))
assert_equal "#{RAILS_ROOT}/public/uploads/#{Time.now.year}/#{Time.now... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/unit/preprocess_image_option_test.rb | Ruby | mit | 241 | master | 600 | require File.dirname(__FILE__) + '/../../test/test_helper'
class FleximagePreprocessImageOptionTest < Test::Unit::TestCase
def test_should_resize_image_on_upload
PhotoDb.preprocess_image do |image|
image.resize '50x50', :crop => true
end
p = PhotoDb.new(:image_file => files(:photo))
assert... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/rails_root/config/environment.rb | Ruby | mit | 241 | master | 3,043 | # Be sure to restart your server when you modify this file
# Uncomment below to force Rails into production mode when
# you don't control web/app server and can't set it the proper way
# ENV['RAILS_ENV'] ||= 'production'
# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.2... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/rails_root/config/routes.rb | Ruby | mit | 241 | master | 1,606 | ActionController::Routing::Routes.draw do |map|
map.resources :avatars
map.resources :photo_bares
map.resources :photo_dbs
map.resources :photo_files
# The priority is based upon order of creation: first created -> highest priority.
# Sample of regular route:
# map.connect 'products/:id', :controll... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/rails_root/config/environments/production.rb | Ruby | mit | 241 | master | 823 | # Settings specified here will take precedence over those in config/environment.rb
# The production environment is meant for finished, "live" apps.
# Code is not reloaded between requests
config.cache_classes = true
# Use a different logger for distributed setups
# config.logger = SyslogLogger.new
# Full error repor... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/rails_root/config/environments/development.rb | Ruby | mit | 241 | master | 808 | # Settings specified here will take precedence over those in config/environment.rb
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the webserver when you make code changes.
config.ca... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/rails_root/config/environments/test.rb | Ruby | mit | 241 | master | 974 | # Settings specified here will take precedence over those in config/environment.rb
# 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... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/rails_root/db/migrate/002_create_photo_dbs.rb | Ruby | mit | 241 | master | 305 | class CreatePhotoDbs < ActiveRecord::Migration
def self.up
create_table :photo_dbs do |t|
t.string :image_filename
t.integer :image_width
t.integer :image_height
t.binary :image_file_data
t.timestamps
end
end
def self.down
drop_table :photo_dbs
end
end |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/rails_root/db/migrate/001_create_photo_files.rb | Ruby | mit | 241 | master | 309 | class CreatePhotoFiles < ActiveRecord::Migration
def self.up
create_table :photo_files do |t|
t.string :image_filename
t.integer :image_width
t.integer :image_height
t.string :image_format
t.timestamps
end
end
def self.down
drop_table :photo_files
end
end |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/rails_root/db/migrate/004_create_avatars.rb | Ruby | mit | 241 | master | 203 | class CreateAvatars < ActiveRecord::Migration
def self.up
create_table :avatars do |t|
t.string :username
t.timestamps
end
end
def self.down
drop_table :avatars
end
end |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/rails_root/app/models/photo_custom_error.rb | Ruby | mit | 241 | master | 339 | class PhotoCustomError < ActiveRecord::Base
set_table_name :photo_dbs
acts_as_fleximage do
image_directory 'public/uploads'
validates_image_size '2x2'
missing_image_message "needs to be attached"
invalid_image_message "seems to be broken"
image_too_small_message "must be bigger (min. size: {{min... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/rails_root/app/controllers/avatars_controller.rb | Ruby | mit | 241 | master | 1,994 | class AvatarsController < ApplicationController
# GET /avatars
# GET /avatars.xml
def index
@avatars = Avatar.find(:all)
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @avatars }
end
end
# GET /avatars/1
# GET /avatars/1.xml
def show
@avatar ... |
github | AlexJWayne/fleximage | https://github.com/AlexJWayne/fleximage | test/rails_root/app/controllers/photo_files_controller.rb | Ruby | mit | 241 | master | 2,164 | class PhotoFilesController < ApplicationController
# GET /photo_files
# GET /photo_files.xml
def index
@photo_files = PhotoFile.find(:all)
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @photo_files }
end
end
# GET /photo_files/1
# GET /photo_files... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.