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
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/test_flash.rb
padrino-core/test/test_flash.rb
require_relative 'helper' describe Padrino::Flash do describe 'storage' do before do @storage = Padrino::Flash::Storage.new( success: 'Success msg', error: 'Error msg', notice: 'Notice msg', custom: 'Custom msg' ) @storage[:one] = 'One msg' @storage[:two] =...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/test_mounter.rb
padrino-core/test/test_mounter.rb
require_relative 'helper' describe 'Mounter' do class ::TestApp < Padrino::Application; end def setup $VERBOSE, @_verbose_was = nil, $VERBOSE Padrino.clear! end def teardown $VERBOSE = @_verbose_was end describe 'for mounter functionality' do it 'should check methods' do mounter = ...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/test_configuration.rb
padrino-core/test/test_configuration.rb
require_relative 'helper' describe 'PadrinoConfiguration' do it 'should be able to store values' do Padrino.config.val1 = 12_345 assert_equal 12_345, Padrino.config.val1 end it 'should be able to configure with block' do Padrino.configure do |config| config.val2 = 54_321 end assert_equ...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/test_logger.rb
padrino-core/test/test_logger.rb
# coding:utf-8 require_relative 'helper' require 'logger' require 'tempfile' describe 'PadrinoLogger' do before do @save_config = Padrino::Logger::Config[:test].dup Padrino::Logger::Config[:test][:stream] = :null Padrino::Logger.setup! end after do Padrino::Logger::Config[:test] = @save_config ...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/app_gem/app/app.rb
padrino-core/test/fixtures/app_gem/app/app.rb
class AppGem::App < Padrino::Application set :version, AppGem::VERSION end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/app_gem/lib/app_gem.rb
padrino-core/test/fixtures/app_gem/lib/app_gem.rb
require 'padrino' module AppGem extend Padrino::Module gem! 'app_gem' end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/app_gem/lib/app_gem/version.rb
padrino-core/test/fixtures/app_gem/lib/app_gem/version.rb
module AppGem VERSION = '0.0.1' end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/demo_demo.rb
padrino-core/test/fixtures/apps/demo_demo.rb
PADRINO_ROOT = __dir__ unless defined? PADRINO_ROOT module Demo class Demo < Padrino::Application set :reload, true end end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/system_instance_methods_demo.rb
padrino-core/test/fixtures/apps/system_instance_methods_demo.rb
PADRINO_ROOT = __dir__ unless defined? PADRINO_ROOT class SystemInstanceMethodsDemo < Padrino::Application set :reload, true end Padrino.load!
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/precompiled_app.rb
padrino-core/test/fixtures/apps/precompiled_app.rb
PADRINO_ROOT = __dir__ unless defined? PADRINO_ROOT Padrino.configure_apps do set :precompile_routes, true end module PrecompiledApp class App < Padrino::Application 10.times { |n| get("/#{n}") {} } end class SubApp < Padrino::Application 10.times { |n| get("/#{n}") {} } end end Padrino.mount('Pre...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/demo_app.rb
padrino-core/test/fixtures/apps/demo_app.rb
PADRINO_ROOT = __dir__ unless defined? PADRINO_ROOT module Demo class App < Padrino::Application set :reload, true end end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/kiq.rb
padrino-core/test/fixtures/apps/kiq.rb
class Kiq < ::Sinatra::Base set :root, '/weird' end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/static.rb
padrino-core/test/fixtures/apps/static.rb
PADRINO_ROOT = __dir__ unless defined? PADRINO_ROOT class StaticDemo < Padrino::Application disable :reload def self.reload! raise 'reload! called' end end Padrino.load!
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/system_class_methods_demo.rb
padrino-core/test/fixtures/apps/system_class_methods_demo.rb
PADRINO_ROOT = __dir__ unless defined? PADRINO_ROOT class SystemClassMethodsDemo < Padrino::Application set :reload, true end Padrino.load!
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/complex.rb
padrino-core/test/fixtures/apps/complex.rb
PADRINO_ROOT = __dir__ unless defined? PADRINO_ROOT module LibDemo def self.give_me_a_random @rand ||= rand(100) end end class Complex1Demo < Padrino::Application set :reload, true get('/old') { 'Old Sinatra Way' } end class Complex2Demo < Padrino::Application set :reload, true get('/old') { 'Old Sin...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/simple.rb
padrino-core/test/fixtures/apps/simple.rb
PADRINO_ROOT = __dir__ unless defined? PADRINO_ROOT # Remove this comment if you want do some like this: ruby RACK_ENV=test app.rb # # require 'padrino-core' # class SimpleDemo < Padrino::Application set :reload, true before { true } after { true } error(404) { '404' } end SimpleDemo.controllers do get '/'...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/system.rb
padrino-core/test/fixtures/apps/system.rb
# frozen_string_literal: true PADRINO_ROOT = __dir__ unless defined? PADRINO_ROOT class SystemDemo < Padrino::Application set :reload, true end SystemDemo.controllers do get '/' do resolv end end Padrino.load!
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/external_apps/fake_lib.rb
padrino-core/test/fixtures/apps/external_apps/fake_lib.rb
FakeLib = 1
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/external_apps/fake_root.rb
padrino-core/test/fixtures/apps/external_apps/fake_root.rb
class FakeRoot < Sinatra::Base end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/helpers/system_helpers.rb
padrino-core/test/fixtures/apps/helpers/system_helpers.rb
require 'resolv' SystemDemo.helpers do def resolv Resolv.name end end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/helpers/instance_methods_helpers.rb
padrino-core/test/fixtures/apps/helpers/instance_methods_helpers.rb
begin require '/tmp/padrino_instance_demo' rescue LoadError # do nothing end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/helpers/class_methods_helpers.rb
padrino-core/test/fixtures/apps/helpers/class_methods_helpers.rb
begin require '/tmp/padrino_class_demo' rescue LoadError # do nothing end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/models/child.rb
padrino-core/test/fixtures/apps/models/child.rb
class Child < Parent end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/models/parent.rb
padrino-core/test/fixtures/apps/models/parent.rb
class Parent def family 'Danes' end end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/mountable_apps/rack_apps.rb
padrino-core/test/fixtures/apps/mountable_apps/rack_apps.rb
class RackApp def self.call(env) if env['PATH_INFO'] == '/404' [404, {}, ['not found ;(']] else [200, {}, ['hello rack app']] end end def self.prerequisites super end end RackApp2 = ->(_) { [200, {}, ['hello rack app2']] } class SinatraApp < Sinatra::Base set :public_folder, __d...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/demo_project/app.rb
padrino-core/test/fixtures/apps/demo_project/app.rb
module DemoProject class App < Padrino::Application get :index do 'padrino app' end end end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/demo_project/api/app.rb
padrino-core/test/fixtures/apps/demo_project/api/app.rb
module DemoProject class API def self.call(_) [200, {}, ['api app']] end end end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/demo_project/api/lib/api_lib.rb
padrino-core/test/fixtures/apps/demo_project/api/lib/api_lib.rb
module DemoProject APILib = Class.new end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/stealthy/app.rb
padrino-core/test/fixtures/apps/stealthy/app.rb
PADRINO_ROOT = __dir__ unless defined? PADRINO_ROOT class SystemStealthyClassDemo < Padrino::Application set :reload, true end Padrino.load!
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/stealthy/helpers/stealthy_class_helpers.rb
padrino-core/test/fixtures/apps/stealthy/helpers/stealthy_class_helpers.rb
class Boo def self.class_method 'BooClass' end end class Woo < Boo def poo; end end class Soo < Boo end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/lib/myklass.rb
padrino-core/test/fixtures/apps/lib/myklass.rb
class MyKlass < OpenStruct end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/lib/myklass/mysubklass.rb
padrino-core/test/fixtures/apps/lib/myklass/mysubklass.rb
class MyKlass class MySubKlass end end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/concerned/app.rb
padrino-core/test/fixtures/apps/concerned/app.rb
PADRINO_ROOT = __dir__ unless defined? PADRINO_ROOT class SystemConcernedClassDemo < Padrino::Application set :reload, true end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/concerned/models/mixins/badmodule.rb
padrino-core/test/fixtures/apps/concerned/models/mixins/badmodule.rb
module BadModule @happy_global_variable ||= 0 @happy_global_variable += 1 end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/custom_dependencies/custom_dependencies.rb
padrino-core/test/fixtures/apps/custom_dependencies/custom_dependencies.rb
PADRINO_ROOT = __dir__ unless defined? PADRINO_ROOT class CustomDependencies < Padrino::Application set :reload, true end CustomDependencies.controllers do get '/' do 'foo' end end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/apps/custom_dependencies/my_dependencies/my_dependency.rb
padrino-core/test/fixtures/apps/custom_dependencies/my_dependencies/my_dependency.rb
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/reloadable_apps/external/app/app.rb
padrino-core/test/fixtures/reloadable_apps/external/app/app.rb
module ReloadableApp class External < Padrino::Application set :reload, true end end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/reloadable_apps/external/app/controllers/base.rb
padrino-core/test/fixtures/reloadable_apps/external/app/controllers/base.rb
ReloadableApp::External.controller :base do get :index do 'Hello External App' end end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/reloadable_apps/main/app.rb
padrino-core/test/fixtures/reloadable_apps/main/app.rb
require_relative '../external/app/app' module ReloadableApp class Main < Padrino::Application set :reload, true get :index do 'hey' end end end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/dependencies/c.rb
padrino-core/test/fixtures/dependencies/c.rb
C = 'C'
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/dependencies/d.rb
padrino-core/test/fixtures/dependencies/d.rb
D = 0 unless defined?(D) D += 1 raise 'SomeThing'
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/dependencies/a.rb
padrino-core/test/fixtures/dependencies/a.rb
# This file will be safe loaded three times. # The first one fail because B and C constant are not defined # The second one file because B requires C constant so will not be loaded # The third one B and C are defined # But here we need some of b.rb A_result = [B, C] A = 'A'
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/dependencies/b.rb
padrino-core/test/fixtures/dependencies/b.rb
# But here we need some of c.rb and a.rb B_result = C B = 'B'
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/dependencies/linear/i.rb
padrino-core/test/fixtures/dependencies/linear/i.rb
raise
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/dependencies/linear/h.rb
padrino-core/test/fixtures/dependencies/linear/h.rb
raise LoadError
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/dependencies/nested/k.rb
padrino-core/test/fixtures/dependencies/nested/k.rb
class K end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/dependencies/nested/ooo.rb
padrino-core/test/fixtures/dependencies/nested/ooo.rb
class OOO < RRR end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/dependencies/nested/n.rb
padrino-core/test/fixtures/dependencies/nested/n.rb
class N < J end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/dependencies/nested/qqq.rb
padrino-core/test/fixtures/dependencies/nested/qqq.rb
Padrino.require_dependencies( Padrino.root('fixtures/dependencies/nested/rrr.rb'), Padrino.root('fixtures/dependencies/nested/sss.rb') )
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/dependencies/nested/sss.rb
padrino-core/test/fixtures/dependencies/nested/sss.rb
class RollbackTarget def self.hello 'hello' end end class SSS < OOO end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/dependencies/nested/j.rb
padrino-core/test/fixtures/dependencies/nested/j.rb
class J < K end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/dependencies/nested/l.rb
padrino-core/test/fixtures/dependencies/nested/l.rb
Padrino.require_dependencies( Padrino.root('fixtures/dependencies/nested/m.rb'), Padrino.root('fixtures/dependencies/nested/n.rb') )
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/dependencies/nested/rrr.rb
padrino-core/test/fixtures/dependencies/nested/rrr.rb
class RRR def self.hello 'hello' end end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/dependencies/nested/m.rb
padrino-core/test/fixtures/dependencies/nested/m.rb
class M def self.hello 'hello' end end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/dependencies/nested/ppp.rb
padrino-core/test/fixtures/dependencies/nested/ppp.rb
class PPP end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/dependencies/circular/e.rb
padrino-core/test/fixtures/dependencies/circular/e.rb
class E def self.fields @fields ||= [] end def self.inherited(subclass) super subclass.fields.replace fields.dup end fields << 'name' end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/dependencies/circular/g.rb
padrino-core/test/fixtures/dependencies/circular/g.rb
class G end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/test/fixtures/dependencies/circular/f.rb
padrino-core/test/fixtures/dependencies/circular/f.rb
class F < E end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core.rb
padrino-core/lib/padrino-core.rb
require 'sinatra/base' require 'padrino-core/version' require 'padrino-support' require 'padrino-support/inflections' require 'padrino-core/configuration' require 'padrino-core/application' require 'padrino-core/caller' require 'padrino-core/command' require 'padrino-core/loader' require 'padrino-core/logger' require ...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/command.rb
padrino-core/lib/padrino-core/command.rb
require 'rbconfig' module Padrino ## # This method return the correct location of padrino bin or # exec it using Kernel#system with the given args. # # @param [Array] args # command or commands to execute # # @return [Boolean] # # @example # Padrino.bin('start', '-e production') # def sel...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/caller.rb
padrino-core/lib/padrino-core/caller.rb
module Padrino unless defined?(PADRINO_IGNORE_CALLERS) # List of callers in a Padrino application that should be ignored as part of a stack trace. PADRINO_IGNORE_CALLERS = [ *Sinatra::Base.callers_to_ignore, # Inherit Sinatra's default ignore patterns Regexp.new(Regexp.e...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/version.rb
padrino-core/lib/padrino-core/version.rb
# # Manages current Padrino version for use in gem generation. # # We put this in a separate file so you can get padrino version # without include full padrino core. # module Padrino # The version constant for the current version of Padrino. VERSION = '0.16.0' unless defined?(Padrino::VERSION) # # The current ...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/application.rb
padrino-core/lib/padrino-core/application.rb
require 'padrino-core/application/flash' require 'padrino-core/application/routing' require 'padrino-core/application/show_exceptions' require 'padrino-core/application/authenticity_token' require 'padrino-core/application/application_setup' require 'padrino-core/application/params_protection' module Padrino ## # ...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/logger.rb
padrino-core/lib/padrino-core/logger.rb
require 'pathname' require 'stringio' # Defines the log level for a Padrino project. PADRINO_LOG_LEVEL = ENV['PADRINO_LOG_LEVEL'] unless defined?(PADRINO_LOG_LEVEL) # Defines the logger used for a Padrino project. PADRINO_LOGGER = ENV['PADRINO_LOGGER'] unless defined?(PADRINO_LOGGER) module Padrino ## # @return ...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/filter.rb
padrino-core/lib/padrino-core/filter.rb
module Padrino class Filter attr_reader :block def initialize(mode, scoped_controller, options, args, &block) @mode = mode @scoped_controller = scoped_controller @options = options @args = args @block = block end def apply?(request) detect = match_with_arguments?(...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/loader.rb
padrino-core/lib/padrino-core/loader.rb
module Padrino module Loader ## # Hooks to be called before a load/reload. # # @yield [] # The given block will be called before Padrino was loaded/reloaded. # # @return [Array<Proc>] # The load/reload before hooks. # # @example # before_load do # pre_initiali...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/router.rb
padrino-core/lib/padrino-core/router.rb
module Padrino ## # This class is an extended version of Rack::URLMap. # # Padrino::Router like Rack::URLMap dispatches in such a way that the # longest paths are tried first, since they are most specific. # # Features: # # * Map a path to the specified App # * Ignore server names (this solve issues...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/configuration.rb
padrino-core/lib/padrino-core/configuration.rb
require 'ostruct' module Padrino ## # Padrino simple configuration module # module Configuration ## # Returns the configuration structure allowing to get and set it's values. # Padrino.config is a simple Ruby OpenStruct object with no additional magic. # # Example: # # Padrino.con...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/path_router.rb
padrino-core/lib/padrino-core/path_router.rb
require 'padrino-core/path_router/error_handler' require 'padrino-core/path_router/route' require 'padrino-core/path_router/matcher' require 'padrino-core/path_router/compiler' module Padrino ## # Provides an HTTP router for use in path routing. # module PathRouter ## # Constructs an instance of PathRo...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/server.rb
padrino-core/lib/padrino-core/server.rb
module Padrino ## # Runs the Padrino apps as a self-hosted server using: # thin, mongrel, or WEBrick in that order. # # @example # Padrino.run! # with these defaults => host: '127.0.0.1', port: '3000', adapter: the first found # Padrino.run!('0.0.0.0', '4000', 'mongrel') # use => host: '0.0.0.0', port...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/tasks.rb
padrino-core/lib/padrino-core/tasks.rb
module Padrino ## # This module it's used for bootstrap with padrino rake # third party tasks, in your gem/plugin/extension you # need only do this: # # @example # Padrino::Tasks.files << yourtask.rb # Padrino::Tasks.files.concat(Dir["/path/to/all/my/tasks/*.rb"]) # Padrino::Tasks.files.unshift(...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/module.rb
padrino-core/lib/padrino-core/module.rb
module Padrino module Module attr_writer :root ## # Register this module as being loaded from a gem. This automatically # sets the root and therefore the dependency paths correctly. # # @param [String] name # The name of the gem. Has to be the name as stated in the gemspec. # # ...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/reloader.rb
padrino-core/lib/padrino-core/reloader.rb
require 'pathname' require 'padrino-core/reloader/rack' require 'padrino-core/reloader/storage' module Padrino ## # High performance source code reloader middleware # module Reloader ## # This reloader is suited for use in a many environments because each file # will only be checked once and only o...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/mounter.rb
padrino-core/lib/padrino-core/mounter.rb
require 'padrino-core/mounter/application_extension' module Padrino ## # Represents a particular mounted Padrino application. # Stores the name of the application (app folder name) and url mount path. # # @example # Mounter.new('blog_app', app_class: 'Blog').to('/blog') # Mounter.new('blog_app', app_...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/application/flash.rb
padrino-core/lib/padrino-core/application/flash.rb
module Padrino module Flash class << self def registered(app) app.helpers Helpers app.after do session[:_flash] = @_flash.next if @_flash end end end class Storage include Enumerable # @private def initialize(session = nil) @_now =...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/application/authenticity_token.rb
padrino-core/lib/padrino-core/application/authenticity_token.rb
module Padrino class AuthenticityToken < Rack::Protection::AuthenticityToken def initialize(app, options = {}) @app = app @except = options[:except] @except = Array(@except) unless @except.is_a?(Proc) super end def call(env) if except?(env) @app.call(env) else ...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/application/routing.rb
padrino-core/lib/padrino-core/application/routing.rb
require 'padrino-support' require 'padrino-core/path_router' unless defined?(PathRouter) require 'padrino-core/ext/sinatra' require 'padrino-core/filter' module Padrino ## # Padrino provides advanced routing definition support to make routes and # url generation much easier. This routing system supports named ro...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
true
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/application/application_setup.rb
padrino-core/lib/padrino-core/application/application_setup.rb
module Padrino ## # Holds setup-oriented methods for Padrino::Application. # module ApplicationSetup def self.registered(app) app.extend(ClassMethods) end module ClassMethods ## # Defines default settings for Padrino application. # def default_configuration! se...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/application/params_protection.rb
padrino-core/lib/padrino-core/application/params_protection.rb
module Padrino ## # Padrino application module providing means for mass-assignment protection. # module ParamsProtection class << self def registered(app) included(app) end def included(base) base.send(:include, InstanceMethods) base.extend(ClassMethods) end ...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/application/show_exceptions.rb
padrino-core/lib/padrino-core/application/show_exceptions.rb
module Padrino ## # This module extend Sinatra::ShowExceptions adding Padrino as "Framework". # # @private class ShowExceptions < Sinatra::ShowExceptions private def frame_class(frame) if frame.filename =~ %r{lib/sinatra.*\.rb|lib/padrino.*\.rb} 'framework' elsif (defined?(Gem) &&...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/ext/sinatra.rb
padrino-core/lib/padrino-core/ext/sinatra.rb
require 'sinatra/base' ## # Adds to Sinatra +controller+ informations # class Sinatra::Request attr_accessor :route_obj def controller route_obj&.controller end def action route_obj&.action end end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/path_router/compiler.rb
padrino-core/lib/padrino-core/path_router/compiler.rb
module Padrino module PathRouter # # High performance engine for finding all routes which are matched with pattern # class Compiler attr_accessor :routes ## # Constructs an instance of Padrino::PathRouter::Compiler # def initialize(routes) @routes = routes ...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/path_router/route.rb
padrino-core/lib/padrino-core/path_router/route.rb
module Padrino module PathRouter class Route ## # The accessors are useful to access from PathRouter::Router # attr_accessor :name, :capture, :order, :options, :index, :regexp ## # A reader for compile option # attr_reader :verb, :block ## # The router...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/path_router/matcher.rb
padrino-core/lib/padrino-core/path_router/matcher.rb
require 'mustermann/sinatra' module Padrino module PathRouter class Matcher # To count group of regexp GROUP_REGEXP = /\((?!\?:|\?!|\?<=|\?<!|\?=).+?\)/ ## # Constructs an instance of PathRouter::Matcher. # def initialize(path, options = {}) @path = path.is_a?(String)...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/path_router/error_handler.rb
padrino-core/lib/padrino-core/path_router/error_handler.rb
module Padrino module PathRouter ## # @see PathRouter::Router#path # InvalidRouteException = Class.new(ArgumentError) end end
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/mounter/application_extension.rb
padrino-core/lib/padrino-core/mounter/application_extension.rb
module Padrino class Mounter module ApplicationExtension attr_accessor :uri_root, :mounter_options, :cascade attr_writer :public_folder def dependencies @__dependencies ||= Dir.glob("#{root}/**/*.rb").delete_if { |path| path == app_file } end def prerequisites @__pr...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/cli/rake_tasks.rb
padrino-core/lib/padrino-core/cli/rake_tasks.rb
# Loads the Padrino applications mounted within the project. # Setting up the required environment for Padrino. task :environment do require File.expand_path('config/boot.rb', Rake.application.original_dir) Padrino.mounted_apps.each do |app| app.app_obj.setup_application! end end task :skeleton do PADRINO...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/cli/adapter.rb
padrino-core/lib/padrino-core/cli/adapter.rb
require 'padrino-support' module Padrino module Cli module Adapter class << self # Start for the given options a rackup handler def start(options) Padrino.run!(Utils.symbolize_keys(options)) end # Method that stop (if exist) a running Padrino.application d...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/cli/console.rb
padrino-core/lib/padrino-core/cli/console.rb
# Reloads classes def reload! Padrino.reload! end # Show applications def applications puts "==== List of Mounted Applications ====\n\n" Padrino.mounted_apps.each do |app| puts format(' * %-10s mapped to %s', app.name, app.uri_root) end puts Padrino.mounted_apps.map { |app| "#{app.name} => #{app.u...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/cli/binstub.rb
padrino-core/lib/padrino-core/cli/binstub.rb
module Padrino ## # Replaces the current process with it's binstub. # def self.replace_with_binstub(executable) begin return if Bundler.definition.missing_specs.empty? rescue NameError, NoMethodError, Bundler::GemfileNotFound # Move forward end project_root = Dir.pwd until proje...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/cli/base.rb
padrino-core/lib/padrino-core/cli/base.rb
require 'padrino-core/cli/launcher' module Padrino module Cli class Base < Launcher desc 'rake', 'Execute rake tasks.' method_option :environment, type: :string, aliases: '-e' method_option :list, type: :string, aliases: '-T', desc: 'Display the tasks (matching optional PATTERN) with d...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/cli/launcher.rb
padrino-core/lib/padrino-core/cli/launcher.rb
require 'thor' module Padrino module Cli class Launcher < Thor include Thor::Actions class_option :chdir, type: :string, aliases: '-c', desc: 'Change to dir before starting.' class_option :environment, type: :string, aliases: '-e', desc: 'Padrino Environment.' class_option :help, type: :...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/cli/rake.rb
padrino-core/lib/padrino-core/cli/rake.rb
require File.expand_path('../tasks', __dir__) require 'rake' require 'rake/dsl_definition' require 'thor' require 'securerandom' unless defined?(SecureRandom) begin require 'padrino-gen' rescue LoadError # do nothing if padrino-gen is not available end module PadrinoTasks def self.init(init = false) Padrino:...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/reloader/storage.rb
padrino-core/lib/padrino-core/reloader/storage.rb
module Padrino module Reloader module Storage extend self def clear! files.each_key do |file| remove(file) Reloader.remove_feature(file) end @files = {} end def remove(name) file = files[name] || return file[:constants].each { |...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-core/lib/padrino-core/reloader/rack.rb
padrino-core/lib/padrino-core/reloader/rack.rb
module Padrino module Reloader ## # This class acts as a Rack middleware to be added to the application stack. # This middleware performs a check and reload for source files at the start # of each request, but also respects a specified cool down time # during which no further action will be taken....
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-mailer/test/test_part.rb
padrino-mailer/test/test_part.rb
require_relative 'helper' describe 'Part' do describe 'the part' do it 'should use correctly parts' do message = Mail::Message.new do views "#{__dir__}/fixtures/views/mailers" to 'padrino@test.lindsaar.net' subject 'nested multipart' from 'test@example.com' ...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-mailer/test/test_message.rb
padrino-mailer/test/test_message.rb
require_relative 'helper' describe 'Message' do describe 'the message' do it 'should accept headers and body' do message = Mail::Message.new do from 'padrino@me.com' to 'padrino@you.com' subject 'Hello there Padrino' body 'This is a body of text' end ...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-mailer/test/helper.rb
padrino-mailer/test/helper.rb
ENV['RACK_ENV'] = 'test' PADRINO_ROOT = __dir__ unless defined? PADRINO_ROOT require 'minitest/autorun' require 'minitest/pride' require 'rack/test' require 'padrino-core' require 'padrino-helpers' require 'padrino/rendering' require 'padrino-mailer/ext' require 'padrino-mailer' require 'ext/rack-test-methods' class...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-mailer/test/test_email.rb
padrino-mailer/test/test_email.rb
require_relative 'helper' describe 'Email' do describe 'the mailer in an app' do it 'should send a basic inline email' do mock_app do register Padrino::Mailer get '/' do email do from 'padrino@me.com' to 'padrino@you.com' subject 'Hello ...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false
padrino/padrino-framework
https://github.com/padrino/padrino-framework/blob/a079eae8d9eda238cfdb131d197493d2f919c715/padrino-mailer/test/test_padrino_mailer.rb
padrino-mailer/test/test_padrino_mailer.rb
require_relative 'helper' require_relative 'fixtures/sinatra_app/app' require_relative 'fixtures/padrino_app/app' describe 'PadrinoMailer' do describe 'for mail delivery in sample Sinatra application' do before { @app = SinatraApp } it 'should be able to deliver inline emails using the email helper' do ...
ruby
MIT
a079eae8d9eda238cfdb131d197493d2f919c715
2026-01-04T15:50:33.574154Z
false