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
JDutil/contact_us
https://github.com/JDutil/contact_us/blob/8f39e962881f17362cdf66a88da3edede22b77b8/lib/contact_us/version.rb
lib/contact_us/version.rb
module ContactUs VERSION = "1.2.0" end
ruby
MIT
8f39e962881f17362cdf66a88da3edede22b77b8
2026-01-04T17:46:23.553669Z
false
JDutil/contact_us
https://github.com/JDutil/contact_us/blob/8f39e962881f17362cdf66a88da3edede22b77b8/lib/contact_us/engine.rb
lib/contact_us/engine.rb
require "contact_us" require "rails" module ContactUs class Engine < Rails::Engine end end
ruby
MIT
8f39e962881f17362cdf66a88da3edede22b77b8
2026-01-04T17:46:23.553669Z
false
JDutil/contact_us
https://github.com/JDutil/contact_us/blob/8f39e962881f17362cdf66a88da3edede22b77b8/lib/contact_us/tasks/install.rb
lib/contact_us/tasks/install.rb
require 'rails/generators' module ContactUs module Tasks class Install class << self def run copy_initializer_file puts "Done!" end def copy_initializer_file print "Copying initializer file...\n" app_path = Rails.root.join("config/initialize...
ruby
MIT
8f39e962881f17362cdf66a88da3edede22b77b8
2026-01-04T17:46:23.553669Z
false
JDutil/contact_us
https://github.com/JDutil/contact_us/blob/8f39e962881f17362cdf66a88da3edede22b77b8/config/routes.rb
config/routes.rb
Rails.application.routes.draw do # Place the contact_us routes within the optional locale scope # If the I18n gem is installed and the localize_routes variable has # been set to true in the application's initializer file if defined?(I18n) && ContactUs.localize_routes scope "(:locale)", locale: /#{I18n.avail...
ruby
MIT
8f39e962881f17362cdf66a88da3edede22b77b8
2026-01-04T17:46:23.553669Z
false
pienkowb/active_record-events
https://github.com/pienkowb/active_record-events/blob/8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2/spec/spec_helper.rb
spec/spec_helper.rb
ENV['RAILS_ENV'] ||= 'test' require 'bundler/setup' require 'simplecov' SimpleCov.start do if ENV['CI'] require 'simplecov-lcov' SimpleCov::Formatter::LcovFormatter.config do |config| config.report_with_single_file = true config.single_report_path = 'coverage/lcov.info' end formatter S...
ruby
MIT
8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2
2026-01-04T17:46:25.965698Z
false
pienkowb/active_record-events
https://github.com/pienkowb/active_record-events/blob/8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2/spec/support/helpers/generator_helpers.rb
spec/support/helpers/generator_helpers.rb
module GeneratorHelpers def write_file(file_name, contents) file_path = File.expand_path(file_name, destination_root) FileUtils.mkdir_p(File.dirname(file_path)) File.write(file_path, contents) end end
ruby
MIT
8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2
2026-01-04T17:46:25.965698Z
false
pienkowb/active_record-events
https://github.com/pienkowb/active_record-events/blob/8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2/spec/support/factories/task_factory.rb
spec/support/factories/task_factory.rb
FactoryGirl.define do factory :task end
ruby
MIT
8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2
2026-01-04T17:46:25.965698Z
false
pienkowb/active_record-events
https://github.com/pienkowb/active_record-events/blob/8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2/spec/support/matchers/have_method.rb
spec/support/matchers/have_method.rb
RSpec::Matchers.define :have_method do |expected| match do |actual| actual.public_instance_methods.include?(expected) end end
ruby
MIT
8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2
2026-01-04T17:46:25.965698Z
false
pienkowb/active_record-events
https://github.com/pienkowb/active_record-events/blob/8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2/spec/generators/active_record/event/event_generator_spec.rb
spec/generators/active_record/event/event_generator_spec.rb
require 'spec_helper' require 'generators/active_record/event/event_generator' RSpec.describe ActiveRecord::Generators::EventGenerator, type: :generator do arguments %w[ task complete --field-type=date --skip-scopes --strategy=time_comparison ] destination File.expand_path('../../../../tmp', __d...
ruby
MIT
8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2
2026-01-04T17:46:25.965698Z
false
pienkowb/active_record-events
https://github.com/pienkowb/active_record-events/blob/8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2/spec/dummy/app/models/task.rb
spec/dummy/app/models/task.rb
class Task < ActiveRecord::Base has_event :complete has_event :archive, skip_scopes: true has_event :expire, strategy: :time_comparison has_event :notify, field_type: :date, strategy: :time_comparison def complete! super logger.info("Task #{id} has been completed") end def self.complete_all ...
ruby
MIT
8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2
2026-01-04T17:46:25.965698Z
false
pienkowb/active_record-events
https://github.com/pienkowb/active_record-events/blob/8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2/spec/dummy/db/schema.rb
spec/dummy/db/schema.rb
# This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # This file is the source Rails uses to define your schema when running `bin/rai...
ruby
MIT
8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2
2026-01-04T17:46:25.965698Z
false
pienkowb/active_record-events
https://github.com/pienkowb/active_record-events/blob/8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2/spec/dummy/db/migrate/20230308160359_add_notified_on_to_tasks.rb
spec/dummy/db/migrate/20230308160359_add_notified_on_to_tasks.rb
class AddNotifiedOnToTasks < ACTIVE_RECORD_MIGRATION_CLASS def change add_column :tasks, :notified_on, :date end end
ruby
MIT
8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2
2026-01-04T17:46:25.965698Z
false
pienkowb/active_record-events
https://github.com/pienkowb/active_record-events/blob/8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2/spec/dummy/db/migrate/20220609015338_add_expired_at_to_tasks.rb
spec/dummy/db/migrate/20220609015338_add_expired_at_to_tasks.rb
class AddExpiredAtToTasks < ACTIVE_RECORD_MIGRATION_CLASS def change add_column :tasks, :expired_at, :datetime end end
ruby
MIT
8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2
2026-01-04T17:46:25.965698Z
false
pienkowb/active_record-events
https://github.com/pienkowb/active_record-events/blob/8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2/spec/dummy/db/migrate/20150813132804_create_tasks.rb
spec/dummy/db/migrate/20150813132804_create_tasks.rb
class CreateTasks < ACTIVE_RECORD_MIGRATION_CLASS def change create_table :tasks do |t| t.datetime :completed_at t.timestamps null: false end end end
ruby
MIT
8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2
2026-01-04T17:46:25.965698Z
false
pienkowb/active_record-events
https://github.com/pienkowb/active_record-events/blob/8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2/spec/dummy/config/environment.rb
spec/dummy/config/environment.rb
require File.expand_path('boot', __dir__) require 'active_record' Bundler.require(:default, ENV.fetch('RAILS_ENV')) # Load application files Dir["#{__dir__}/../app/**/*.rb"].sort.each { |f| require f } # Load the database configuration config_file = File.expand_path('database.yml', __dir__) config = YAML.load_file(...
ruby
MIT
8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2
2026-01-04T17:46:25.965698Z
false
pienkowb/active_record-events
https://github.com/pienkowb/active_record-events/blob/8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2/spec/dummy/config/boot.rb
spec/dummy/config/boot.rb
ENV['RAILS_ENV'] ||= 'development' ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../Gemfile', __dir__) require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE']) $LOAD_PATH.unshift(File.expand_path('../../../lib', __dir__))
ruby
MIT
8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2
2026-01-04T17:46:25.965698Z
false
pienkowb/active_record-events
https://github.com/pienkowb/active_record-events/blob/8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2/spec/active_record/events_spec.rb
spec/active_record/events_spec.rb
require 'spec_helper' RSpec.describe ActiveRecord::Events do around(:each) do |example| Timecop.freeze { example.run } end let!(:task) { create(:task) } it 'records a timestamp' do task.complete expect(task.completed?).to eq(true) expect(task.not_completed?).to eq(false) expect(task.com...
ruby
MIT
8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2
2026-01-04T17:46:25.965698Z
false
pienkowb/active_record-events
https://github.com/pienkowb/active_record-events/blob/8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2/spec/active_record/events/macro_spec.rb
spec/active_record/events/macro_spec.rb
require 'spec_helper' require 'active_record/events/macro' RSpec.describe ActiveRecord::Events::Macro do let(:event_name) { :confirm } subject { described_class.new(event_name, options) } context 'without options' do let(:options) { {} } it "doesn't include any options" do expect(subject.to_s).t...
ruby
MIT
8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2
2026-01-04T17:46:25.965698Z
false
pienkowb/active_record-events
https://github.com/pienkowb/active_record-events/blob/8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2/spec/active_record/events/method_factory_spec.rb
spec/active_record/events/method_factory_spec.rb
require 'spec_helper' RSpec.describe ActiveRecord::Events::MethodFactory do let(:event_name) { :complete } let(:options) { {} } subject { described_class.new(event_name, options) } it 'generates instance methods' do result = subject.instance_methods expect(result).to have_method(:completed?) exp...
ruby
MIT
8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2
2026-01-04T17:46:25.965698Z
false
pienkowb/active_record-events
https://github.com/pienkowb/active_record-events/blob/8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2/spec/active_record/events/naming_spec.rb
spec/active_record/events/naming_spec.rb
require 'spec_helper' RSpec.describe ActiveRecord::Events::Naming do let(:event_name) { :complete } let(:options) { {} } subject { described_class.new(event_name, options) } it 'generates a field name' do expect(subject.field).to eq('completed_at') end it 'generates a predicate name' do expect(s...
ruby
MIT
8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2
2026-01-04T17:46:25.965698Z
false
pienkowb/active_record-events
https://github.com/pienkowb/active_record-events/blob/8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2/lib/generators/active_record/event/event_generator.rb
lib/generators/active_record/event/event_generator.rb
require 'rails/generators' require 'active_record/events/naming' require 'active_record/events/macro' module ActiveRecord module Generators class EventGenerator < Rails::Generators::Base MACRO_OPTIONS = %w[object field_type skip_scopes strategy].freeze argument :model_name, type: :string argu...
ruby
MIT
8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2
2026-01-04T17:46:25.965698Z
false
pienkowb/active_record-events
https://github.com/pienkowb/active_record-events/blob/8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2/lib/active_record/events.rb
lib/active_record/events.rb
require 'active_support' require 'active_record/events/version' require 'active_record/events/naming' require 'active_record/events/method_factory' require 'active_record/events/extension' require 'active_record/events/macro' ActiveSupport.on_load(:active_record) do extend ActiveRecord::Events::Extension end
ruby
MIT
8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2
2026-01-04T17:46:25.965698Z
false
pienkowb/active_record-events
https://github.com/pienkowb/active_record-events/blob/8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2/lib/active_record/events/version.rb
lib/active_record/events/version.rb
module ActiveRecord module Events VERSION = '4.1.2'.freeze end end
ruby
MIT
8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2
2026-01-04T17:46:25.965698Z
false
pienkowb/active_record-events
https://github.com/pienkowb/active_record-events/blob/8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2/lib/active_record/events/method_factory.rb
lib/active_record/events/method_factory.rb
require 'active_record/events/naming' module ActiveRecord module Events class MethodFactory def initialize(event_name, options) @options = options @naming = Naming.new(event_name, options) @strategy = options[:strategy].try(:to_sym) @field_type = options[:field_type].try(:to...
ruby
MIT
8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2
2026-01-04T17:46:25.965698Z
false
pienkowb/active_record-events
https://github.com/pienkowb/active_record-events/blob/8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2/lib/active_record/events/extension.rb
lib/active_record/events/extension.rb
require 'active_record/events/method_factory' module ActiveRecord module Events module Extension def has_events(*names) options = names.extract_options! names.each { |n| has_event(n, options) } end def has_event(name, options = {}) method_factory = MethodFactory.new(nam...
ruby
MIT
8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2
2026-01-04T17:46:25.965698Z
false
pienkowb/active_record-events
https://github.com/pienkowb/active_record-events/blob/8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2/lib/active_record/events/macro.rb
lib/active_record/events/macro.rb
module ActiveRecord module Events class Macro def initialize(event_name, options) @event_name = event_name.to_s @options = options end def to_s "has_event :#{event_name}#{options_list}" end private def event_name @event_name.underscore e...
ruby
MIT
8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2
2026-01-04T17:46:25.965698Z
false
pienkowb/active_record-events
https://github.com/pienkowb/active_record-events/blob/8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2/lib/active_record/events/naming.rb
lib/active_record/events/naming.rb
require 'verbs' module ActiveRecord module Events class Naming def initialize(infinitive, options = {}) @infinitive = infinitive @object = options[:object].presence @field_name = options[:field_name].to_s @field_type = options[:field_type].try(:to_sym) end def f...
ruby
MIT
8dff3e67d5e0ea82aac3854ed26a07c40c31b2e2
2026-01-04T17:46:25.965698Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/ruby-generate-dockerfile/app/generate_dockerfile.rb
ruby-generate-dockerfile/app/generate_dockerfile.rb
#!/rbenv/shims/ruby # Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/ruby-generate-dockerfile/app/app_config.rb
ruby-generate-dockerfile/app/app_config.rb
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/integration_test/builder_app/myapp.rb
integration_test/builder_app/myapp.rb
require 'json' require 'sinatra' require "sinatra/multi_route" require 'stackdriver' require "google/cloud/monitoring/v3" require 'open3' # Grab project_id from gcloud sdk project_id = ENV["GOOGLE_CLOUD_PROJECT"] || Google::Cloud.env.project_id.to_s unless project_id.empty? ####################################### ...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/integration_test/simple_app/myapp.rb
integration_test/simple_app/myapp.rb
require 'json' require 'sinatra' require "sinatra/multi_route" require 'stackdriver' require "google/cloud/monitoring/v3" require 'open3' # Grab project_id from gcloud sdk project_id = ENV["GOOGLE_CLOUD_PROJECT"] || Google::Cloud.env.project_id.to_s unless project_id.empty? ####################################### ...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/integration_test/deploy_check/app.rb
integration_test/deploy_check/app.rb
require "sinatra" get "/" do "Hello world!" end
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/test_generate_dockerfile.rb
test/test_generate_dockerfile.rb
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/test_base_image_structure.rb
test/test_base_image_structure.rb
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/test_app_config.rb
test/test_app_config.rb
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/test_app_engine_exec_wrapper.rb
test/test_app_engine_exec_wrapper.rb
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/test_sample_app_builds.rb
test/test_sample_app_builds.rb
# Copyright 2016 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/test_base_image_sample_apps.rb
test/test_base_image_sample_apps.rb
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/test_ubuntu_image_structure.rb
test/test_ubuntu_image_structure.rb
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/test_build_tools.rb
test/test_build_tools.rb
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/helper.rb
test/helper.rb
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/test_base_ruby_versions.rb
test/test_base_ruby_versions.rb
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/app_engine_exec_wrapper/no_cloudsql/run.rb
test/app_engine_exec_wrapper/no_cloudsql/run.rb
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/app_engine_exec_wrapper/harness/fake_cloud_sql_proxy.rb
test/app_engine_exec_wrapper/harness/fake_cloud_sql_proxy.rb
#!/usr/bin/env ruby # Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/app_engine_exec_wrapper/simple/run.rb
test/app_engine_exec_wrapper/simple/run.rb
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/app_config/rails/config/application.rb
test/app_config/rails/config/application.rb
# Hello
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/app_config/gemfile-rack/gems.rb
test/app_config/gemfile-rack/gems.rb
source 'https://rubygems.org' gem 'rack', '~> 2.0'
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/app_config/gemfile-ruby/gems.rb
test/app_config/gemfile-ruby/gems.rb
source 'https://rubygems.org' ruby "2.0.98"
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/sinatra1_app/myapp.rb
test/sample_apps/sinatra1_app/myapp.rb
require 'sinatra' set :environment, :production set :bind, "0.0.0.0" set :port, 8080 set :show_exceptions, true get '/' do "Hello World!" end
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/app/jobs/application_job.rb
test/sample_apps/rails5_app/app/jobs/application_job.rb
class ApplicationJob < ActiveJob::Base end
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/app/helpers/application_helper.rb
test/sample_apps/rails5_app/app/helpers/application_helper.rb
module ApplicationHelper end
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/app/controllers/home_controller.rb
test/sample_apps/rails5_app/app/controllers/home_controller.rb
class HomeController < ApplicationController def index unless Rails.env == "production" raise "Wrong Rails environment: #{Rails.env}" end render :text => "Hello World!" end end
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/app/controllers/application_controller.rb
test/sample_apps/rails5_app/app/controllers/application_controller.rb
class ApplicationController < ActionController::Base protect_from_forgery with: :exception end
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/app/models/application_record.rb
test/sample_apps/rails5_app/app/models/application_record.rb
class ApplicationRecord < ActiveRecord::Base self.abstract_class = true end
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/app/mailers/application_mailer.rb
test/sample_apps/rails5_app/app/mailers/application_mailer.rb
class ApplicationMailer < ActionMailer::Base default from: 'from@example.com' layout 'mailer' end
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/app/channels/application_cable/channel.rb
test/sample_apps/rails5_app/app/channels/application_cable/channel.rb
module ApplicationCable class Channel < ActionCable::Channel::Base end end
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/app/channels/application_cable/connection.rb
test/sample_apps/rails5_app/app/channels/application_cable/connection.rb
module ApplicationCable class Connection < ActionCable::Connection::Base end end
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/db/seeds.rb
test/sample_apps/rails5_app/db/seeds.rb
# This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). # # Examples: # # movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) # Ch...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/test/test_helper.rb
test/sample_apps/rails5_app/test/test_helper.rb
ENV['RAILS_ENV'] ||= 'test' require File.expand_path('../../config/environment', __FILE__) require 'rails/test_help' class ActiveSupport::TestCase # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. fixtures :all # Add more helper methods to be used by all tests here... end
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/config/application.rb
test/sample_apps/rails5_app/config/application.rb
require_relative 'boot' require 'rails/all' # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) module Rails5App class Application < Rails::Application # Settings in config/environments/* take precedence over those spe...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/config/environment.rb
test/sample_apps/rails5_app/config/environment.rb
# Load the Rails application. require_relative 'application' # Initialize the Rails application. Rails.application.initialize!
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/config/puma.rb
test/sample_apps/rails5_app/config/puma.rb
# Puma can serve each request in a thread from an internal thread pool. # The `threads` method setting takes two numbers a minimum and maximum. # Any libraries that use thread pools should be configured to match # the maximum value specified for Puma. Default is set to 5 threads for minimum # and maximum, this matches ...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/config/routes.rb
test/sample_apps/rails5_app/config/routes.rb
Rails.application.routes.draw do root 'home#index' end
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/config/spring.rb
test/sample_apps/rails5_app/config/spring.rb
%w( .ruby-version .rbenv-vars tmp/restart.txt tmp/caching-dev.txt ).each { |path| Spring.watch(path) }
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/config/boot.rb
test/sample_apps/rails5_app/config/boot.rb
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) require 'bundler/setup' # Set up gems listed in the Gemfile.
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/config/initializers/filter_parameter_logging.rb
test/sample_apps/rails5_app/config/initializers/filter_parameter_logging.rb
# Be sure to restart your server when you modify this file. # Configure sensitive parameters which will be filtered from the log file. Rails.application.config.filter_parameters += [:password]
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/config/initializers/application_controller_renderer.rb
test/sample_apps/rails5_app/config/initializers/application_controller_renderer.rb
# Be sure to restart your server when you modify this file. # ApplicationController.renderer.defaults.merge!( # http_host: 'example.org', # https: false # )
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/config/initializers/session_store.rb
test/sample_apps/rails5_app/config/initializers/session_store.rb
# Be sure to restart your server when you modify this file. Rails.application.config.session_store :cookie_store, key: '_rails5_app_session'
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/config/initializers/new_framework_defaults.rb
test/sample_apps/rails5_app/config/initializers/new_framework_defaults.rb
# Be sure to restart your server when you modify this file. # # This file contains migration options to ease your Rails 5.0 upgrade. # # Read the Guide for Upgrading Ruby on Rails for more info on each option. # Enable per-form CSRF tokens. Previous versions had false. Rails.application.config.action_controller.per_fo...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/config/initializers/wrap_parameters.rb
test/sample_apps/rails5_app/config/initializers/wrap_parameters.rb
# Be sure to restart your server when you modify this file. # This file contains settings for ActionController::ParamsWrapper which # is enabled by default. # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. ActiveSupport.on_load(:action_controller) do wrap_parameters f...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/config/initializers/inflections.rb
test/sample_apps/rails5_app/config/initializers/inflections.rb
# Be sure to restart your server when you modify this file. # Add new inflection rules using the following format. Inflections # are locale specific, and you may define rules for as many different # locales as you wish. All of these examples are active by default: # ActiveSupport::Inflector.inflections(:en) do |inflec...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/config/initializers/cookies_serializer.rb
test/sample_apps/rails5_app/config/initializers/cookies_serializer.rb
# Be sure to restart your server when you modify this file. # Specify a serializer for the signed and encrypted cookie jars. # Valid options are :json, :marshal, and :hybrid. Rails.application.config.action_dispatch.cookies_serializer = :json
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/config/initializers/assets.rb
test/sample_apps/rails5_app/config/initializers/assets.rb
# Be sure to restart your server when you modify this file. # Version of your assets, change this if you want to expire all your assets. Rails.application.config.assets.version = '1.0' # Add additional assets to the asset load path # Rails.application.config.assets.paths << Emoji.images_path # Precompile additional ...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/config/initializers/backtrace_silencers.rb
test/sample_apps/rails5_app/config/initializers/backtrace_silencers.rb
# Be sure to restart your server when you modify this file. # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } # You can also remove all the silencers if you're trying to debug a probl...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/config/initializers/mime_types.rb
test/sample_apps/rails5_app/config/initializers/mime_types.rb
# Be sure to restart your server when you modify this file. # Add new mime types for use in respond_to blocks: # Mime::Type.register "text/richtext", :rtf
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/config/environments/test.rb
test/sample_apps/rails5_app/config/environments/test.rb
Rails.application.configure do # Settings specified here will take precedence over those in config/application.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 suit...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/config/environments/development.rb
test/sample_apps/rails5_app/config/environments/development.rb
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 on # every request. This slows down response time but is perfect for development # since you don't have to restart the web serv...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails5_app/config/environments/production.rb
test/sample_apps/rails5_app/config/environments/production.rb
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # Code is not reloaded between requests. config.cache_classes = true # Eager load code on boot. This eager loads most of Rails and # your application in memory, allowing both threaded web serve...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails4_app/app/helpers/application_helper.rb
test/sample_apps/rails4_app/app/helpers/application_helper.rb
module ApplicationHelper end
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails4_app/app/controllers/home_controller.rb
test/sample_apps/rails4_app/app/controllers/home_controller.rb
class HomeController < ApplicationController def index unless Rails.env == "production" raise "Wrong Rails environment: #{Rails.env}" end render :text => "Hello World!" end end
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails4_app/app/controllers/application_controller.rb
test/sample_apps/rails4_app/app/controllers/application_controller.rb
class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception end
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails4_app/db/seeds.rb
test/sample_apps/rails4_app/db/seeds.rb
# This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). # # Examples: # # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) # Mayor.create(name: 'Emanuel...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails4_app/config/application.rb
test/sample_apps/rails4_app/config/application.rb
require File.expand_path('../boot', __FILE__) require "rails" # Pick the frameworks you want: require "active_model/railtie" require "active_job/railtie" # require "active_record/railtie" require "action_controller/railtie" require "action_mailer/railtie" require "action_view/railtie" require "sprockets/railtie" # req...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails4_app/config/environment.rb
test/sample_apps/rails4_app/config/environment.rb
# Load the Rails application. require File.expand_path('../application', __FILE__) # Initialize the Rails application. Rails.application.initialize!
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails4_app/config/routes.rb
test/sample_apps/rails4_app/config/routes.rb
Rails.application.routes.draw do root 'home#index' end
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails4_app/config/boot.rb
test/sample_apps/rails4_app/config/boot.rb
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) require 'bundler/setup' # Set up gems listed in the Gemfile.
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails4_app/config/initializers/filter_parameter_logging.rb
test/sample_apps/rails4_app/config/initializers/filter_parameter_logging.rb
# Be sure to restart your server when you modify this file. # Configure sensitive parameters which will be filtered from the log file. Rails.application.config.filter_parameters += [:password]
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails4_app/config/initializers/session_store.rb
test/sample_apps/rails4_app/config/initializers/session_store.rb
# Be sure to restart your server when you modify this file. Rails.application.config.session_store :cookie_store, key: '_rails4_app_session'
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails4_app/config/initializers/to_time_preserves_timezone.rb
test/sample_apps/rails4_app/config/initializers/to_time_preserves_timezone.rb
# Be sure to restart your server when you modify this file. # Preserve the timezone of the receiver when calling to `to_time`. # Ruby 2.4 will change the behavior of `to_time` to preserve the timezone # when converting to an instance of `Time` instead of the previous behavior # of converting to the local system timezo...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails4_app/config/initializers/wrap_parameters.rb
test/sample_apps/rails4_app/config/initializers/wrap_parameters.rb
# Be sure to restart your server when you modify this file. # This file contains settings for ActionController::ParamsWrapper which # is enabled by default. # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. ActiveSupport.on_load(:action_controller) do wrap_parameters f...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails4_app/config/initializers/inflections.rb
test/sample_apps/rails4_app/config/initializers/inflections.rb
# Be sure to restart your server when you modify this file. # Add new inflection rules using the following format. Inflections # are locale specific, and you may define rules for as many different # locales as you wish. All of these examples are active by default: # ActiveSupport::Inflector.inflections(:en) do |inflec...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails4_app/config/initializers/cookies_serializer.rb
test/sample_apps/rails4_app/config/initializers/cookies_serializer.rb
# Be sure to restart your server when you modify this file. Rails.application.config.action_dispatch.cookies_serializer = :json
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails4_app/config/initializers/assets.rb
test/sample_apps/rails4_app/config/initializers/assets.rb
# Be sure to restart your server when you modify this file. # Version of your assets, change this if you want to expire all your assets. Rails.application.config.assets.version = '1.0' # Add additional assets to the asset load path # Rails.application.config.assets.paths << Emoji.images_path # Precompile additional ...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails4_app/config/initializers/backtrace_silencers.rb
test/sample_apps/rails4_app/config/initializers/backtrace_silencers.rb
# Be sure to restart your server when you modify this file. # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } # You can also remove all the silencers if you're trying to debug a probl...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails4_app/config/initializers/mime_types.rb
test/sample_apps/rails4_app/config/initializers/mime_types.rb
# Be sure to restart your server when you modify this file. # Add new mime types for use in respond_to blocks: # Mime::Type.register "text/richtext", :rtf
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails4_app/config/environments/test.rb
test/sample_apps/rails4_app/config/environments/test.rb
Rails.application.configure do # Settings specified here will take precedence over those in config/application.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 suit...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails4_app/config/environments/development.rb
test/sample_apps/rails4_app/config/environments/development.rb
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 on # every request. This slows down response time but is perfect for development # since you don't have to restart the web serv...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/test/sample_apps/rails4_app/config/environments/production.rb
test/sample_apps/rails4_app/config/environments/production.rb
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # Code is not reloaded between requests. config.cache_classes = true # Eager load code on boot. This eager loads most of Rails and # your application in memory, allowing both threaded web serve...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/.toys/.toys.rb
.toys/.toys.rb
# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false
GoogleCloudPlatform/ruby-docker
https://github.com/GoogleCloudPlatform/ruby-docker/blob/d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1/.toys/build.rb
.toys/build.rb
# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
ruby
Apache-2.0
d2dca08aa04430c3e00c1fe1a99e855ccffdd8a1
2026-01-04T17:46:25.817234Z
false