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
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/db/migrate/20130820161522_add_webstring_to_trips.rb
db/migrate/20130820161522_add_webstring_to_trips.rb
class AddWebstringToTrips < ActiveRecord::Migration def change add_column :trips, :webstring, :string end end
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/db/migrate/20130820171829_add_user_id_to_trips.rb
db/migrate/20130820171829_add_user_id_to_trips.rb
class AddUserIdToTrips < ActiveRecord::Migration def change add_column :trips, :user_id, :integer end end
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/db/migrate/20130905180457_add_columns_to_users.rb
db/migrate/20130905180457_add_columns_to_users.rb
class AddColumnsToUsers < ActiveRecord::Migration def change add_column :users, :provider, :string add_column :users, :uid, :string end end
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/db/migrate/20130906153856_add_added_to_destination.rb
db/migrate/20130906153856_add_added_to_destination.rb
class AddAddedToDestination < ActiveRecord::Migration def change add_column :destinations, :added_by, :string add_column :destinations, :added_by_photo_url, :string end end
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/db/migrate/20130913224703_add_comment_to_destination.rb
db/migrate/20130913224703_add_comment_to_destination.rb
class AddCommentToDestination < ActiveRecord::Migration def change add_column :destinations, :comment, :string end end
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/db/migrate/20130828225911_add_longlocation_to_destination.rb
db/migrate/20130828225911_add_longlocation_to_destination.rb
class AddLonglocationToDestination < ActiveRecord::Migration def change add_column :destinations, :latitude, :float add_column :destinations, :longitude, :float end end
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/features/step_definitions/email_steps.rb
features/step_definitions/email_steps.rb
# Commonly used email steps # # To add your own steps make a custom_email_steps.rb # The provided methods are: # # last_email_address # reset_mailer # open_last_email # visit_in_email # unread_emails_for # mailbox_for # current_email # open_email # read_emails_for # find_email # # General form for email scenarios are: ...
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/spec/spec_helper.rb
spec/spec_helper.rb
# This file is copied to spec/ when you run 'rails generate rspec:install' ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../../config/environment", __FILE__) require 'rspec/rails' require 'email_spec' require 'rspec/autorun' # Requires supporting ruby files with custom matchers and macros, etc, # in spec/suppo...
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/spec/support/devise.rb
spec/support/devise.rb
RSpec.configure do |config| config.include Devise::TestHelpers, :type => :controller end
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/spec/routing/trips_routing_spec.rb
spec/routing/trips_routing_spec.rb
require "spec_helper" describe TripsController do describe "routing" do it "routes to #index" do get("/trips").should route_to("trips#index") end it "routes to #new" do get("/trips/new").should route_to("trips#new") end it "routes to #show" do get("/trips/1").should route_to(...
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/spec/routing/destinations_routing_spec.rb
spec/routing/destinations_routing_spec.rb
require "spec_helper" describe DestinationsController do describe "routing" do it "routes to #index" do get("/destinations").should route_to("destinations#index") end it "routes to #new" do get("/destinations/new").should route_to("destinations#new") end it "routes to #show" do ...
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/spec/requests/trips_spec.rb
spec/requests/trips_spec.rb
require 'spec_helper' describe "Trips" do describe "GET /trips" do it "works! (now write some real specs)" do # Run the generator again with the --webrat flag if you want to use webrat methods/matchers get trips_path response.status.should be(200) end end end
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/spec/requests/destinations_spec.rb
spec/requests/destinations_spec.rb
require 'spec_helper' describe "Destinations" do describe "GET /destinations" do it "works! (now write some real specs)" do # Run the generator again with the --webrat flag if you want to use webrat methods/matchers get destinations_path response.status.should be(200) end end end
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/spec/factories/users.rb
spec/factories/users.rb
# Read about factories at https://github.com/thoughtbot/factory_girl FactoryGirl.define do factory :user do name 'Test User' email 'example@example.com' password 'changeme' password_confirmation 'changeme' # required if the Devise Confirmable module is used # confirmed_at Time.now end end
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/spec/factories/destinations.rb
spec/factories/destinations.rb
# Read about factories at https://github.com/thoughtbot/factory_girl FactoryGirl.define do factory :destination do trip_id 1 name "MyString" photo_url "MyString" address "MyString" cross_street "MyString" city "MyString" state "MyString" postal_code "MyString" country "MyString" ...
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/spec/factories/trips.rb
spec/factories/trips.rb
# Read about factories at https://github.com/thoughtbot/factory_girl FactoryGirl.define do factory :trip do name "MyString" current_lat 1.5 current_lng 1.5 end end
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/spec/controllers/destinations_controller_spec.rb
spec/controllers/destinations_controller_spec.rb
require 'spec_helper' # This spec was generated by rspec-rails when you ran the scaffold generator. # It demonstrates how one might use RSpec to specify the controller code that # was generated by Rails when you ran the scaffold generator. # # It assumes that the implementation code is generated by the rails scaffold ...
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/spec/controllers/users_controller_spec.rb
spec/controllers/users_controller_spec.rb
require 'spec_helper' describe UsersController do before (:each) do @user = FactoryGirl.create(:user) sign_in @user end describe "GET 'show'" do it "should be successful" do get :show, :id => @user.id response.should be_success end it "should find the right user" do ...
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/spec/controllers/home_controller_spec.rb
spec/controllers/home_controller_spec.rb
require 'spec_helper' describe HomeController do describe "GET 'index'" do it "should be successful" do get 'index' response.should be_success end end end
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/spec/controllers/trips_controller_spec.rb
spec/controllers/trips_controller_spec.rb
require 'spec_helper' # This spec was generated by rspec-rails when you ran the scaffold generator. # It demonstrates how one might use RSpec to specify the controller code that # was generated by Rails when you ran the scaffold generator. # # It assumes that the implementation code is generated by the rails scaffold ...
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/spec/models/destination_spec.rb
spec/models/destination_spec.rb
require 'spec_helper' describe Destination do pending "add some examples to (or delete) #{__FILE__}" end
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/spec/models/trip_spec.rb
spec/models/trip_spec.rb
require 'spec_helper' describe Trip do pending "add some examples to (or delete) #{__FILE__}" end
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/spec/models/user_spec.rb
spec/models/user_spec.rb
require 'spec_helper' describe User do before(:each) do @attr = { :name => "Example User", :email => "user@example.com", :password => "changeme", :password_confirmation => "changeme" } end it "should create a new instance given a valid attribute" do User.create!(@attr) end...
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/spec/mailers/trip_mailer_spec.rb
spec/mailers/trip_mailer_spec.rb
require "spec_helper" describe TripMailer do pending "add some examples to (or delete) #{__FILE__}" end
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/config/application.rb
config/application.rb
require File.expand_path('../boot', __FILE__) require 'rails/all' if defined?(Bundler) # If you precompile assets before deploying to production, use this line Bundler.require(*Rails.groups(:assets => %w(development test))) # If you want your assets lazily compiled in production, use this line # Bundler.requi...
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/config/environment.rb
config/environment.rb
# Load the rails application require File.expand_path('../application', __FILE__) # Initialize the rails application Wanderlust::Application.initialize!
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/config/routes.rb
config/routes.rb
Wanderlust::Application.routes.draw do resources :trips resources :destinations authenticated :user do root :to => 'trips#new' end root :to => "trips#new" devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" } resources :users match 'home' => 'home#index' matc...
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/config/boot.rb
config/boot.rb
require 'rubygems' # Set up gems listed in the Gemfile. ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/config/initializers/session_store.rb
config/initializers/session_store.rb
# Be sure to restart your server when you modify this file. Wanderlust::Application.config.session_store :cookie_store, key: '_wanderlust_session' # Use the database for sessions instead of the cookie-based default, # which shouldn't be used to store highly confidential information # (create the session table with "r...
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/config/initializers/devise.rb
config/initializers/devise.rb
# Use this hook to configure devise mailer, warden hooks and so forth. # Many of these configuration options can be set straight in your model. Devise.setup do |config| # ==> Mailer Configuration # Configure the e-mail address which will be shown in Devise::Mailer, # note that it will be overwritten if you use yo...
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/config/initializers/wrap_parameters.rb
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 ...
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/config/initializers/inflections.rb
config/initializers/inflections.rb
# Be sure to restart your server when you modify this file. # Add new inflection rules using the following format # (all these examples are active by default): # ActiveSupport::Inflector.inflections do |inflect| # inflect.plural /^(ox)$/i, '\1en' # inflect.singular /^(ox)en/i, '\1' # inflect.irregular 'person', ...
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/config/initializers/simple_form_bootstrap.rb
config/initializers/simple_form_bootstrap.rb
# Use this setup block to configure all options available in SimpleForm. SimpleForm.setup do |config| config.wrappers :bootstrap, :tag => 'div', :class => 'control-group', :error_class => 'error' do |b| b.use :html5 b.use :placeholder b.use :label b.wrapper :tag => 'div', :class => 'controls' do |ba| ...
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/config/initializers/simple_form.rb
config/initializers/simple_form.rb
# Use this setup block to configure all options available in SimpleForm. SimpleForm.setup do |config| # Wrappers are used by the form builder to generate a # complete input. You can remove any component from the # wrapper, change the order or even add your own to the # stack. The options given below are used to...
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/config/initializers/backtrace_silencers.rb
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
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/config/initializers/mime_types.rb
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 # Mime::Type.register_alias "text/html", :iphone
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/config/initializers/secret_token.rb
config/initializers/secret_token.rb
# Be sure to restart your server when you modify this file. # Your secret key for verifying the integrity of signed cookies. # If you change this key, all old signed cookies will become invalid! # Make sure the secret is at least 30 characters and all random, # no regular words or you'll be exposed to dictionary attac...
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/config/environments/test.rb
config/environments/test.rb
Wanderlust::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...
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/config/environments/development.rb
config/environments/development.rb
Wanderlust::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...
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
danecjensen/mywanderlust
https://github.com/danecjensen/mywanderlust/blob/ad6bf8372a94ea7548d51a771416354cc6a94ef8/config/environments/production.rb
config/environments/production.rb
Wanderlust::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 # Full error reports are disabled and caching is turned on config.consider_all_requests_local = false config.act...
ruby
MIT
ad6bf8372a94ea7548d51a771416354cc6a94ef8
2026-01-04T17:32:27.701520Z
false
amatsuda/roundabout
https://github.com/amatsuda/roundabout/blob/31a1e658f83ad572c54ef13f83e50ea3ecf197a8/app/controllers/roundabout/roundabout_controller.rb
app/controllers/roundabout/roundabout_controller.rb
# frozen_string_literal: true require 'roundabout/application_controller' require 'graphviz' module Roundabout class RoundaboutController < ::Roundabout::ApplicationController def index if (json = Rails.root.join('tmp/roundabout.json')).exist? transitions = ActiveSupport::JSON.decode json.read ...
ruby
MIT
31a1e658f83ad572c54ef13f83e50ea3ecf197a8
2026-01-04T17:32:40.183793Z
false
amatsuda/roundabout
https://github.com/amatsuda/roundabout/blob/31a1e658f83ad572c54ef13f83e50ea3ecf197a8/app/controllers/roundabout/application_controller.rb
app/controllers/roundabout/application_controller.rb
# frozen_string_literal: true module Roundabout class ApplicationController < ::ActionController::Base protect_from_forgery end end
ruby
MIT
31a1e658f83ad572c54ef13f83e50ea3ecf197a8
2026-01-04T17:32:40.183793Z
false
amatsuda/roundabout
https://github.com/amatsuda/roundabout/blob/31a1e658f83ad572c54ef13f83e50ea3ecf197a8/test/application_system_test_case.rb
test/application_system_test_case.rb
# frozen_string_literal: true require "test_helper" class ApplicationSystemTestCase < ActionDispatch::SystemTestCase driven_by :selenium, using: :chrome, screen_size: [1400, 1400] end
ruby
MIT
31a1e658f83ad572c54ef13f83e50ea3ecf197a8
2026-01-04T17:32:40.183793Z
false
amatsuda/roundabout
https://github.com/amatsuda/roundabout/blob/31a1e658f83ad572c54ef13f83e50ea3ecf197a8/test/dummy_app.rb
test/dummy_app.rb
# frozen_string_literal: true require 'active_record' require 'action_controller/railtie' # config ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:') class RoundaboutTestApp < Rails::Application config.secret_key_base = "I'll be the roundabout. The words will make you out 'n' out." ...
ruby
MIT
31a1e658f83ad572c54ef13f83e50ea3ecf197a8
2026-01-04T17:32:40.183793Z
false
amatsuda/roundabout
https://github.com/amatsuda/roundabout/blob/31a1e658f83ad572c54ef13f83e50ea3ecf197a8/test/test_helper.rb
test/test_helper.rb
# frozen_string_literal: true this = self.singleton_class using Module.new { refine this do alias squire require alias squire_relative require_relative end } ENV['RAILS_ENV'] ||= 'test' ENV['ROUNDABOUT'] ||= '1' squire 'rails' squire 'bundler/setup' squire 'sprockets/rails' Bundler.require squire_relative...
ruby
MIT
31a1e658f83ad572c54ef13f83e50ea3ecf197a8
2026-01-04T17:32:40.183793Z
false
amatsuda/roundabout
https://github.com/amatsuda/roundabout/blob/31a1e658f83ad572c54ef13f83e50ea3ecf197a8/test/system/roundabout_test.rb
test/system/roundabout_test.rb
# frozen_string_literal: true require 'test_helper' require 'application_system_test_case' class RoundaboutTest < ApplicationSystemTestCase setup do Roundabout.instance_variable_set :@recorder, Roundabout::Recorder.new @user = User.first end # {from: from, to: to, method: method, type: type} private ...
ruby
MIT
31a1e658f83ad572c54ef13f83e50ea3ecf197a8
2026-01-04T17:32:40.183793Z
false
amatsuda/roundabout
https://github.com/amatsuda/roundabout/blob/31a1e658f83ad572c54ef13f83e50ea3ecf197a8/lib/roundabout.rb
lib/roundabout.rb
# frozen_string_literal: true require 'roundabout/version' require 'roundabout/railtie' require 'roundabout/recorder' module Roundabout def self.record_transition(from, to, method, type) recorder.record_transition from, to, method, type end def self.recorder @recorder ||= Recorder.new end def self...
ruby
MIT
31a1e658f83ad572c54ef13f83e50ea3ecf197a8
2026-01-04T17:32:40.183793Z
false
amatsuda/roundabout
https://github.com/amatsuda/roundabout/blob/31a1e658f83ad572c54ef13f83e50ea3ecf197a8/lib/roundabout/version.rb
lib/roundabout/version.rb
# frozen_string_literal: true module Roundabout VERSION = '0.3.1' end
ruby
MIT
31a1e658f83ad572c54ef13f83e50ea3ecf197a8
2026-01-04T17:32:40.183793Z
false
amatsuda/roundabout
https://github.com/amatsuda/roundabout/blob/31a1e658f83ad572c54ef13f83e50ea3ecf197a8/lib/roundabout/railtie.rb
lib/roundabout/railtie.rb
# frozen_string_literal: true require 'rails' require 'roundabout/engine' module Roundabout class Railtie < ::Rails::Railtie #:nodoc: initializer 'roundabout' do if ENV['ROUNDABOUT'] if Rails::VERSION::MAJOR >= 5 ActiveSupport.on_load :action_dispatch_integration_test do requ...
ruby
MIT
31a1e658f83ad572c54ef13f83e50ea3ecf197a8
2026-01-04T17:32:40.183793Z
false
amatsuda/roundabout
https://github.com/amatsuda/roundabout/blob/31a1e658f83ad572c54ef13f83e50ea3ecf197a8/lib/roundabout/test-unit.rb
lib/roundabout/test-unit.rb
# frozen_string_literal: true at_exit do Roundabout.save_results end
ruby
MIT
31a1e658f83ad572c54ef13f83e50ea3ecf197a8
2026-01-04T17:32:40.183793Z
false
amatsuda/roundabout
https://github.com/amatsuda/roundabout/blob/31a1e658f83ad572c54ef13f83e50ea3ecf197a8/lib/roundabout/minitest.rb
lib/roundabout/minitest.rb
# frozen_string_literal: true Minitest.after_run do Roundabout.save_results end
ruby
MIT
31a1e658f83ad572c54ef13f83e50ea3ecf197a8
2026-01-04T17:32:40.183793Z
false
amatsuda/roundabout
https://github.com/amatsuda/roundabout/blob/31a1e658f83ad572c54ef13f83e50ea3ecf197a8/lib/roundabout/recorder.rb
lib/roundabout/recorder.rb
# frozen_string_literal: true require 'set' module Roundabout class Recorder attr_reader :transitions def initialize @transitions = Set.new end def record_transition(from, to, method, type) @transitions << {from: from, to: to, method: method, type: type} end end end
ruby
MIT
31a1e658f83ad572c54ef13f83e50ea3ecf197a8
2026-01-04T17:32:40.183793Z
false
amatsuda/roundabout
https://github.com/amatsuda/roundabout/blob/31a1e658f83ad572c54ef13f83e50ea3ecf197a8/lib/roundabout/rspec.rb
lib/roundabout/rspec.rb
# frozen_string_literal: true RSpec.configure do |config| config.after :suite do Roundabout.save_results end end
ruby
MIT
31a1e658f83ad572c54ef13f83e50ea3ecf197a8
2026-01-04T17:32:40.183793Z
false
amatsuda/roundabout
https://github.com/amatsuda/roundabout/blob/31a1e658f83ad572c54ef13f83e50ea3ecf197a8/lib/roundabout/engine.rb
lib/roundabout/engine.rb
# frozen_string_literal: true module Roundabout class Engine < ::Rails::Engine isolate_namespace Roundabout end end
ruby
MIT
31a1e658f83ad572c54ef13f83e50ea3ecf197a8
2026-01-04T17:32:40.183793Z
false
amatsuda/roundabout
https://github.com/amatsuda/roundabout/blob/31a1e658f83ad572c54ef13f83e50ea3ecf197a8/lib/roundabout/monkey/capybara.rb
lib/roundabout/monkey/capybara.rb
# frozen_string_literal: true require 'capybara' module Roundabout module Capybara module Node module Element def click(*) path_from = session.current_path case tag_name when 'input' type = :form begin form = ancestor 'form' ...
ruby
MIT
31a1e658f83ad572c54ef13f83e50ea3ecf197a8
2026-01-04T17:32:40.183793Z
false
amatsuda/roundabout
https://github.com/amatsuda/roundabout/blob/31a1e658f83ad572c54ef13f83e50ea3ecf197a8/lib/roundabout/monkey/action_controller.rb
lib/roundabout/monkey/action_controller.rb
# frozen_string_literal: true module Roundabout module ActionController module Redirecting def redirect_to(*) ret = super begin h = @_request.env['action_dispatch.request.path_parameters'].with_indifferent_access Roundabout.record_transition "#{h[:controller]}##{h[:acti...
ruby
MIT
31a1e658f83ad572c54ef13f83e50ea3ecf197a8
2026-01-04T17:32:40.183793Z
false
amatsuda/roundabout
https://github.com/amatsuda/roundabout/blob/31a1e658f83ad572c54ef13f83e50ea3ecf197a8/config/routes.rb
config/routes.rb
# frozen_string_literal: true Roundabout::Engine.routes.draw do get '/(.:format)' => 'roundabout#index' end
ruby
MIT
31a1e658f83ad572c54ef13f83e50ea3ecf197a8
2026-01-04T17:32:40.183793Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/test/referral_chaser_test.rb
test/referral_chaser_test.rb
require_relative 'test_helper' class GitHubLdapReferralChaserTestCases < GitHub::Ldap::Test def setup @ldap = GitHub::Ldap.new(options) @chaser = GitHub::Ldap::ReferralChaser.new(@ldap) end def test_creates_referral_with_connection_credentials @ldap.expects(:search).yields({ search_referrals: ["lda...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/test/ldap_test.rb
test/ldap_test.rb
require_relative 'test_helper' module GitHubLdapTestCases def setup @ldap = GitHub::Ldap.new(options) end def test_connection_with_default_options assert @ldap.test_connection, "Ldap connection expected to succeed" end def test_connection_with_list_of_hosts_with_one_valid_host ldap = GitHub::Ld...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/test/domain_test.rb
test/domain_test.rb
require_relative 'test_helper' module GitHubLdapDomainTestCases def setup @ldap = GitHub::Ldap.new(options) @domain = @ldap.domain("dc=github,dc=com") end def test_user_valid_login assert user = @domain.valid_login?('user1', 'passworD1') assert_equal 'uid=user1,ou=People,dc=github,dc=com', use...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/test/filter_test.rb
test/filter_test.rb
require_relative 'test_helper' class FilterTest < GitHub::Ldap::Test class Subject include GitHub::Ldap::Filter def initialize(ldap) @ldap = ldap end end # Fake a Net::LDAP::Entry class Entry < Struct.new(:dn, :uid) def [](field) Array(send(field)) end end def setup @l...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/test/posix_group_test.rb
test/posix_group_test.rb
require_relative 'test_helper' class GitHubLdapPosixGroupTest < GitHub::Ldap::Test def setup @simple_group = Net::LDAP::Entry._load(""" dn: cn=simple-group,ou=Groups,dc=github,dc=com cn: simple-group objectClass: posixGroup memberUid: user1 memberUid: user2""") @one_level_deep_group = Net::LDAP::Entry._load...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/test/test_helper.rb
test/test_helper.rb
__dir__ = File.expand_path(File.dirname(__FILE__)) __lib__ = File.expand_path('lib', File.dirname(__FILE__)) $LOAD_PATH << __dir__ unless $LOAD_PATH.include?(__dir__) $LOAD_PATH << __lib__ unless $LOAD_PATH.include?(__lib__) require 'pathname' FIXTURES = Pathname(File.expand_path('fixtures', __dir__)) require 'githu...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/test/connection_cache_test.rb
test/connection_cache_test.rb
require_relative 'test_helper' class GitHubLdapConnectionCacheTestCases < GitHub::Ldap::Test def test_returns_cached_connection conn1 = GitHub::Ldap::ConnectionCache.get_connection(options.merge(:host => "ad1.ghe.dev")) conn2 = GitHub::Ldap::ConnectionCache.get_connection(options.merge(:host => "ad1.ghe.dev...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/test/group_test.rb
test/group_test.rb
require_relative 'test_helper' class GitHubLdapGroupTest < GitHub::Ldap::Test def groups_domain @ldap.domain("ou=Groups,dc=github,dc=com") end def setup @ldap = GitHub::Ldap.new(options) @group = @ldap.group("cn=ghe-users,ou=Groups,dc=github,dc=com") end def test_group? assert @group.group...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/test/url_test.rb
test/url_test.rb
require_relative 'test_helper' class GitHubLdapURLTestCases < GitHub::Ldap::Test def setup @url = GitHub::Ldap::URL.new("ldap://dc4.ghe.local:123/CN=Maggie%20Mae,CN=Users,DC=dc4,DC=ghe,DC=local?cn,mail,telephoneNumber?base?(cn=Charlie)") end def test_host assert_equal "dc4.ghe.local", @url.host end ...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/test/user_search/active_directory_test.rb
test/user_search/active_directory_test.rb
require_relative '../test_helper' class GitHubLdapActiveDirectoryUserSearchTests < GitHub::Ldap::Test def test_global_catalog_returns_empty_array_for_no_results ldap = GitHub::Ldap.new(options.merge(host: 'ghe.dev')) ad_user_search = GitHub::Ldap::UserSearch::ActiveDirectory.new(ldap) mock_global_catal...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/test/user_search/default_test.rb
test/user_search/default_test.rb
require_relative '../test_helper' class GitHubLdapActiveDirectoryUserSearchTests < GitHub::Ldap::Test def setup @ldap = GitHub::Ldap.new(options) @default_user_search = GitHub::Ldap::UserSearch::Default.new(@ldap) end def test_default_search_options @ldap.expects(:search).with(has_entries( att...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/test/member_search/active_directory_test.rb
test/member_search/active_directory_test.rb
require_relative '../test_helper' class GitHubLdapActiveDirectoryMemberSearchStubbedTest < GitHub::Ldap::Test # Only run when AD integration tests aren't run def run(*) return super if self.class.test_env != "activedirectory" Minitest::Result.from(self) end def find_group(cn) @domain.groups([cn])....
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/test/member_search/classic_test.rb
test/member_search/classic_test.rb
require_relative '../test_helper' class GitHubLdapRecursiveMemberSearchTest < GitHub::Ldap::Test def setup @ldap = GitHub::Ldap.new(options.merge(search_domains: %w(dc=github,dc=com))) @domain = @ldap.domain("dc=github,dc=com") @entry = @domain.user?('user1') @strategy = GitHub::Ldap::Membe...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/test/member_search/recursive_test.rb
test/member_search/recursive_test.rb
require_relative '../test_helper' class GitHubLdapRecursiveMemberSearchTest < GitHub::Ldap::Test def setup @ldap = GitHub::Ldap.new(options.merge(search_domains: %w(dc=github,dc=com))) @domain = @ldap.domain("dc=github,dc=com") @entry = @domain.user?('user1') @strategy = GitHub::Ldap::Membe...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/test/membership_validators/active_directory_test.rb
test/membership_validators/active_directory_test.rb
require_relative '../test_helper' class GitHubLdapActiveDirectoryMembershipValidatorsStubbedTest < GitHub::Ldap::Test # Only run when AD integration tests aren't run def run(*) return super if self.class.test_env != "activedirectory" Minitest::Result.from(self) end def setup @ldap = GitHub::L...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/test/membership_validators/classic_test.rb
test/membership_validators/classic_test.rb
require_relative '../test_helper' class GitHubLdapClassicMembershipValidatorsTest < GitHub::Ldap::Test def setup @ldap = GitHub::Ldap.new(options.merge(search_domains: %w(dc=github,dc=com))) @domain = @ldap.domain("dc=github,dc=com") @entry = @domain.user?('user1') @validator = GitHub::Ld...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/test/membership_validators/recursive_test.rb
test/membership_validators/recursive_test.rb
require_relative '../test_helper' class GitHubLdapRecursiveMembershipValidatorsTest < GitHub::Ldap::Test def setup @ldap = GitHub::Ldap.new(options.merge(search_domains: %w(dc=github,dc=com))) @domain = @ldap.domain("dc=github,dc=com") @entry = @domain.user?('user1') @validator = GitHub::...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/lib/github/ldap.rb
lib/github/ldap.rb
require 'net/ldap' require 'forwardable' require 'github/ldap/filter' require 'github/ldap/domain' require 'github/ldap/group' require 'github/ldap/posix_group' require 'github/ldap/virtual_group' require 'github/ldap/virtual_attributes' require 'github/ldap/instrumentation' require 'github/ldap/member_search' require...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/lib/github/ldap/referral_chaser.rb
lib/github/ldap/referral_chaser.rb
module GitHub class Ldap # This class adds referral chasing capability to a GitHub::Ldap connection. # # See: https://technet.microsoft.com/en-us/library/cc978014.aspx # http://www.umich.edu/~dirsvcs/ldap/doc/other/ldap-ref.html # class ReferralChaser # Public - Creates a Referral...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/lib/github/ldap/member_search.rb
lib/github/ldap/member_search.rb
require 'github/ldap/member_search/base' require 'github/ldap/member_search/classic' require 'github/ldap/member_search/recursive' require 'github/ldap/member_search/active_directory'
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/lib/github/ldap/group.rb
lib/github/ldap/group.rb
module GitHub class Ldap # This class represents an LDAP group. # It encapsulates operations that you can perform against a group, like retrieving its members. # # To get a group, you'll need to create a `Ldap` object and then call the method `group` with the name of its base. # # For example:...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/lib/github/ldap/filter.rb
lib/github/ldap/filter.rb
module GitHub class Ldap module Filter ALL_GROUPS_FILTER = Net::LDAP::Filter.eq("objectClass", "groupOfNames") | Net::LDAP::Filter.eq("objectClass", "groupOfUniqueNames") | Net::LDAP::Filter.eq("objectClass", "posixGroup") | Net::...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/lib/github/ldap/domain.rb
lib/github/ldap/domain.rb
module GitHub class Ldap # A domain represents the base object for an ldap tree. # It encapsulates the operations that you can perform against a tree, authenticating users, for instance. # # This makes possible to reuse a server connection to perform operations with two different domain bases. # ...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/lib/github/ldap/posix_group.rb
lib/github/ldap/posix_group.rb
module GitHub class Ldap # This class represents a POSIX group. # # To get a POSIX group, you'll need to create a `Ldap` object and then call the method `group`. # The parameter for `group` must be a dn to a group entry with `posixGroup` amongs the values for the attribute `objectClass`. # # F...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/lib/github/ldap/url.rb
lib/github/ldap/url.rb
module GitHub class Ldap # This class represents an LDAP URL # # See: https://tools.ietf.org/html/rfc4516#section-2 # https://docs.oracle.com/cd/E19957-01/817-6707/urls.html # class URL extend Forwardable SCOPES = { "base" => Net::LDAP::SearchScope_BaseObject, ...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/lib/github/ldap/virtual_group.rb
lib/github/ldap/virtual_group.rb
module GitHub class Ldap class VirtualGroup < Group include Filter def members @ldap.search(filter: members_of_group(@entry.dn, membership_attribute)) end def subgroups @ldap.search(filter: subgroups_of_group(@entry.dn, membership_attribute)) end def is_membe...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/lib/github/ldap/membership_validators.rb
lib/github/ldap/membership_validators.rb
require 'github/ldap/membership_validators/base' require 'github/ldap/membership_validators/classic' require 'github/ldap/membership_validators/recursive' require 'github/ldap/membership_validators/active_directory'
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/lib/github/ldap/connection_cache.rb
lib/github/ldap/connection_cache.rb
module GitHub class Ldap # A simple cache of GitHub::Ldap objects to prevent creating multiple # instances of connections that point to the same URI/host. class ConnectionCache # Public - Create or return cached instance of GitHub::Ldap created with options, # where the cache key is the valu...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/lib/github/ldap/server.rb
lib/github/ldap/server.rb
module GitHub class Ldap require 'ladle' # Preconfigured user fixtures. If you want to use them for your own tests. DEFAULT_FIXTURES_PATH = File.expand_path('fixtures.ldif', File.dirname(__FILE__)) DEFAULT_SERVER_OPTIONS = { user_fixtures: DEFAULT_FIXTURES_PATH, user_domain: 'dc=gith...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/lib/github/ldap/virtual_attributes.rb
lib/github/ldap/virtual_attributes.rb
module GitHub class Ldap class VirtualAttributes def initialize(enabled, attributes = {}) @enabled = enabled @attributes = attributes end def enabled? @enabled end def virtual_membership @attributes.fetch(:virtual_membership, "memberOf") end ...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/lib/github/ldap/instrumentation.rb
lib/github/ldap/instrumentation.rb
module GitHub class Ldap # Encapsulates common instrumentation behavior. module Instrumentation attr_reader :instrumentation_service private :instrumentation_service # Internal: Instrument a block with the defined instrumentation service. # # Yields the event payload if a bl...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/lib/github/ldap/user_search/active_directory.rb
lib/github/ldap/user_search/active_directory.rb
module GitHub class Ldap module UserSearch class ActiveDirectory < Default private # Private - Overridden from base class to set the base to "", and use the # Global Catalog to perform the user search. def search(search_options) Array(global_catalog_connection.sea...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/lib/github/ldap/user_search/default.rb
lib/github/ldap/user_search/default.rb
module GitHub class Ldap module UserSearch # The default user search strategy, mainly for allowing Domain#user? to # search for a user on the configured domain controller, or use the Global # Catalog to search across the entire Active Directory forest. class Default include Filter ...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/lib/github/ldap/member_search/active_directory.rb
lib/github/ldap/member_search/active_directory.rb
module GitHub class Ldap module MemberSearch # Look up group members using the ActiveDirectory "in chain" matching rule. # # The 1.2.840.113556.1.4.1941 matching rule (LDAP_MATCHING_RULE_IN_CHAIN) # "walks the chain of ancestry in objects all the way to the root until # it finds a ma...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/lib/github/ldap/member_search/recursive.rb
lib/github/ldap/member_search/recursive.rb
module GitHub class Ldap module MemberSearch # Look up group members recursively. # # This results in a maximum of `depth` iterations/recursions to look up # members of a group and its subgroups. class Recursive < Base include Filter DEFAULT_MAX_DEPTH = 9 DEF...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/lib/github/ldap/member_search/classic.rb
lib/github/ldap/member_search/classic.rb
module GitHub class Ldap module MemberSearch # Look up group members using the existing `Group#members` and # `Group#subgroups` API. class Classic < Base # Public: Performs search for group members, including groups and # members of subgroups recursively. # # Retu...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/lib/github/ldap/member_search/base.rb
lib/github/ldap/member_search/base.rb
module GitHub class Ldap module MemberSearch class Base # Internal: The GitHub::Ldap object to search domains with. attr_reader :ldap # Public: Instantiate new search strategy. # # - ldap: GitHub::Ldap object # - options: Hash of options def initi...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/lib/github/ldap/membership_validators/active_directory.rb
lib/github/ldap/membership_validators/active_directory.rb
module GitHub class Ldap module MembershipValidators ATTRS = %w(dn) OID = "1.2.840.113556.1.4.1941" # Validates membership using the ActiveDirectory "in chain" matching rule. # # The 1.2.840.113556.1.4.1941 matching rule (LDAP_MATCHING_RULE_IN_CHAIN) # "walks the chain of an...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/lib/github/ldap/membership_validators/recursive.rb
lib/github/ldap/membership_validators/recursive.rb
module GitHub class Ldap module MembershipValidators # Validates membership recursively. # # The first step checks whether the entry is a direct member of the given # groups. If they are, then we've validated membership successfully. # # If not, query for all of the groups that...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/lib/github/ldap/membership_validators/classic.rb
lib/github/ldap/membership_validators/classic.rb
module GitHub class Ldap module MembershipValidators # Validates membership using `GitHub::Ldap::Domain#membership`. # # This is a simple wrapper for existing functionality in order to expose # it consistently with the new approach. class Classic < Base def perform(entry) ...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
github/github-ldap
https://github.com/github/github-ldap/blob/06d2c92118fe8c3693314aa6b47a57494926f89c/lib/github/ldap/membership_validators/base.rb
lib/github/ldap/membership_validators/base.rb
module GitHub class Ldap module MembershipValidators class Base # Internal: The GitHub::Ldap object to search domains with. attr_reader :ldap # Internal: an Array of Net::LDAP::Entry group objects to validate with. attr_reader :groups # Public: Instantiate new vali...
ruby
MIT
06d2c92118fe8c3693314aa6b47a57494926f89c
2026-01-04T17:32:44.636035Z
false
benchmark-driver/benchmark-driver
https://github.com/benchmark-driver/benchmark-driver/blob/6c1f90001d5bdee32e67d112b2c91dc40db03e57/benchmark-driver/lib/benchmark-driver.rb
benchmark-driver/lib/benchmark-driver.rb
require 'benchmark_driver'
ruby
MIT
6c1f90001d5bdee32e67d112b2c91dc40db03e57
2026-01-04T17:32:45.703932Z
false
benchmark-driver/benchmark-driver
https://github.com/benchmark-driver/benchmark-driver/blob/6c1f90001d5bdee32e67d112b2c91dc40db03e57/benchmark-driver/lib/benchmark/driver.rb
benchmark-driver/lib/benchmark/driver.rb
require 'benchmark_driver'
ruby
MIT
6c1f90001d5bdee32e67d112b2c91dc40db03e57
2026-01-04T17:32:45.703932Z
false