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
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/authenticated_controller_base.rb
app/shared/authenticated_controller_base.rb
require_relative "models/provider_credential" require_relative "controller_base" require_relative "logging_module" require_relative "authentication_request_checker" require_relative "../services/config_service" module FastlaneCI # # A user is required to be logged in to access any routes on this controller # c...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/transactor.rb
app/shared/transactor.rb
module FastlaneCI # Abstract base for handling transactions for any backend (e.g. git) class Transactor # Runs given block inside of a transaction, automatically starting and ending it. Throw an exception to roll back def transaction start_transaction result = yield return result rescu...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/setup_checker.rb
app/shared/setup_checker.rb
require_relative "logging_module" module FastlaneCI # A module to ensure that a user has the proper configuration setup module SetupChecker include FastlaneCI::Logging # Before each route, this function will check to see if the user is setup # correctly. Should the user not be setup correctly, they wi...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/available_settings.rb
app/shared/available_settings.rb
module FastlaneCI # This class is responsible for defining all the available # system-wide fastlane.ci settings class AvailableSettings def self.available_settings [ Setting.new( key: :metrics_enabled, default_value: true, description: "Set this to false to opt out ...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/dot_keys_variables.rb
app/shared/dot_keys_variables.rb
# frozen_string_literal: true module FastlaneCI # Class wrapping fastlane CI environment variables that people using fastlane.ci should care about # NOTE: This doesn't include the fastlane.ci-developer-sepcific environment variables primarily used # during development of fastlane.ci by the fastlane class DotKe...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/fastlane_ci_error.rb
app/shared/fastlane_ci_error.rb
# Subclass for all exceptions that are raised by fastlane.ci module FastlaneCI class FastlaneCIError < StandardError end end
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/string_encrypter.rb
app/shared/string_encrypter.rb
require "openssl" require_relative "logging_module" module FastlaneCI # makes encrypting string as easy as ijFkpReUM6kLfvry0A78cQ== class StringEncrypter class << self include FastlaneCI::Logging end def self.default_key @_key ||= Digest::SHA256.digest(FastlaneCI.dot_keys.encryption_key) ...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/controller_base.rb
app/shared/controller_base.rb
require "sinatra/base" require "sinatra/reloader" require "sinatra/custom_logger" require "sinatra/flash" require "set" require "logger" require_relative "logging_module" require_relative "setup_checker" require_relative "resource_reloader" module FastlaneCI # # Base class for all controllers # Handles default ...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/fastfile_finder.rb
app/shared/fastfile_finder.rb
require_relative "logging_module" module FastlaneCI # Find your Fastfile easier! class FastfileFinder class << self include FastlaneCI::Logging end def self.find_fastfile_in_repo(repo:, relative_path: false) local_storage = repo.local_folder return search_path(path: local_storage, re...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/json_convertible.rb
app/shared/json_convertible.rb
require "json" module FastlaneCI # make it so any class can be converted to json and back module JSONConvertible def self.included(base) base.send(:include, InstanceMethods) base.extend(ClassMethods) end # add these as instance methods module InstanceMethods def to_json(options =...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/authentication_request_checker.rb
app/shared/authentication_request_checker.rb
require_relative "logging_module" require_relative "models/provider_credential" module FastlaneCI # by registering this module in your controller you can call `ensure_logged_in` for any route # you want. Alternatively, you can subclass AuthenticatedControllerBase and every route that # originates from `self::HOM...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/git_monkey_patches.rb
app/shared/git_monkey_patches.rb
module Git # Lib class from https://github.com/voxpupuli/modulesync/pull/144/files # # Copyright [2018] [Dave Wongillies https://github.com/davewongillies] # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtai...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/fastfile_peeker.rb
app/shared/fastfile_peeker.rb
require_relative "fastfile_finder" require_relative "github_handler" require_relative "logging_module" require "fastfile_parser" require "digest" module FastlaneCI # Object that encapsulates retrieving Fastfile information for a given repo. class FastfilePeeker include FastlaneCI::GitHubHandler include Fa...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/factories/trigger_factory.rb
app/shared/factories/trigger_factory.rb
require_relative "abstract_factory" module FastlaneCI # A concrete factory for returning `JobTrigger`s. class TriggerFactory < AbstractFactory def create(params:) branch = params[:branch].nil? ? "master" : params[:branch] triggers_to_add = [FastlaneCI::ManualJobTrigger.new(branch: branch)] c...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/factories/abstract_factory.rb
app/shared/factories/abstract_factory.rb
module FastlaneCI # An abstract factory following the abstract factory design pattern. class AbstractFactory def create(params: {}) not_implemented(__method__) end end end
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/models/job_trigger.rb
app/shared/models/job_trigger.rb
module FastlaneCI # A specific event that will cause a job to start class JobTrigger TRIGGER_TYPE = { commit: "commit", pull_request: "pull_request", manual: "manual", nightly: "nightly" } # @return [TRIGGER_TYPE] attr_reader :type # @return [String] the branch we are c...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/models/project.rb
app/shared/models/project.rb
require "securerandom" require_relative "../../shared/logging_module" require_relative "artifact_provider" require_relative "local_artifact_provider" require_relative "job_trigger" module FastlaneCI # All metadata about a project. # A project is usually a git url, a lane, and a project name, like "Production Buil...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/models/github_provider_credential.rb
app/shared/models/github_provider_credential.rb
require "base64" require_relative "provider_credential" require_relative "../string_encrypter" module FastlaneCI # GitHub ProviderCredential class class GitHubProviderCredential < ProviderCredential # @return [String] attr_reader :id # @return [String] attr_reader :email # @return [PROVIDER_...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/models/build.rb
app/shared/models/build.rb
module FastlaneCI # Represents a build, part of a project, usually many builds per project # One build is identified using the `build.project.id` + `build.number` class Build # Note, BUILD_STATUSES determine how a build is persisted and how the information is pushed to remote. # Example: on success/failur...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/models/git_repo.rb
app/shared/models/git_repo.rb
# We're using https://github.com/ruby-git/ruby-git # for all git interactions require "git" require "tty-command" require "securerandom" require "digest" require "task_queue" require "faraday" require "faraday-http-cache" require "fileutils" require_relative "../logging_module" require_relative "../git_monkey_patches...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/models/apple_id.rb
app/shared/models/apple_id.rb
require "securerandom" module FastlaneCI # `AppleID` model representing a single Apple ID login # This class is similar to `EnvironmentVariable` class AppleID attr_accessor :user # currently we don't support 2 step verification for Apple IDs yet # tracked via https://github.com/fastlane/ci/issues/63...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/models/artifact_provider.rb
app/shared/models/artifact_provider.rb
module FastlaneCI # Abstract class that provides the interface to load and store Artifacts. class ArtifactProvider # :class_name should always be the class name of the child class which inherits from ArtifactProvider. # This attribute is key in order to be able to persist the information enough and recreate...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/models/artifact.rb
app/shared/models/artifact.rb
require "securerandom" module FastlaneCI # Represents a single unit of data generated by a build class Artifact # # The Artifact model provides a simple interface to store a reference to any kind of data, but it is a dummy class. # It does not know how to access to its resource. # Also, it holds a ...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/models/provider_credential.rb
app/shared/models/provider_credential.rb
require "json" module FastlaneCI # base class for all provider credentials, see GitHubProviderCredential as an example class ProviderCredential # we'll transform this list so the enum can be sym => string, and string => string simple_provider_types = { github: "github" } doubled_types = {} ...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/models/git_fork_config.rb
app/shared/models/git_fork_config.rb
require_relative "../../shared/json_convertible" module FastlaneCI # Information that is required for us to be able to checkout a branch/sha from a fork # This information is also stored together with `FastlaneCI::Build` class GitForkConfig # The `include` below shouldn't be here, as it already is part of JS...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/models/setting.rb
app/shared/models/setting.rb
module FastlaneCI # Setting model representing a single entry of a fastlane.ci system setting class Setting attr_accessor :key attr_reader :value attr_accessor :verify_block attr_accessor :default_value attr_accessor :description def initialize(key: nil, description: nil, value: nil, defaul...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/models/gcp_artifact_provider.rb
app/shared/models/gcp_artifact_provider.rb
require_relative "artifact_provider" require_relative "artifact" require_relative "build" require_relative "project" require "google/cloud/storage" require "pathname" module FastlaneCI # ArtifactProvider backed by a Google Cloud Platform Storage bucket. class GCPStorageArtifactProvider < ArtifactProvider clas...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/models/repo_config.rb
app/shared/models/repo_config.rb
require "securerandom" require_relative "provider_credential" module FastlaneCI # Contains the metadata about a git repo class RepoConfig include FastlaneCI::Logging attr_reader :id attr_reader :git_url attr_reader :description attr_reader :name # for example: "fastlane ci app" attr_reader...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/models/git_hub_repo_config.rb
app/shared/models/git_hub_repo_config.rb
require "securerandom" require_relative "repo_config" require_relative "provider_credential" module FastlaneCI # Contains the metadata about a git repo class GitHubRepoConfig < RepoConfig include FastlaneCI::Logging # GitHub full_name, like fastlane/ci (vs just `ci`) attr_reader :full_name def in...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/models/local_artifact_provider.rb
app/shared/models/local_artifact_provider.rb
require_relative "artifact_provider" require_relative "artifact" require_relative "build" require_relative "project" require "pathname" module FastlaneCI # ArtifactProvider backed by a local filesystem. class LocalArtifactProvider < ArtifactProvider class << self # Provide a simple default root_path for...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/models/notification.rb
app/shared/models/notification.rb
require "securerandom" module FastlaneCI # All metadata about a notification. class Notification # Enum for notification priority # # @return [Hash] PRIORITIES = { warn: "warn", urgent: "urgent", normal: "normal", success: "success" } # Enum for notification type ...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/models/environment_variable.rb
app/shared/models/environment_variable.rb
require "securerandom" module FastlaneCI # EnvironmentVariable model representing a single entry of an env variable class EnvironmentVariable attr_accessor :key def initialize(key: nil, value: nil) @key = key self.value = value # we use `self` to trigger encrypting the value end def v...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/app/shared/models/user.rb
app/shared/models/user.rb
require "securerandom" require_relative "provider_credential" require_relative "github_provider_credential" module FastlaneCI # User model that will end up in the session as session[:user] class User # @return [String] The UUID of the user attr_accessor :id # @return [String] The email associated with...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/helper_functions.rb
spec/helper_functions.rb
module HelperFunctions def fixture_path File.join(FastlaneCI::FastlaneApp.settings.root, "spec/fixtures/files/") end def provider_credential FastlaneCI::GitHubProviderCredential.new(email: "test_user", api_token: nil) end def git_repo FastlaneCI::GitHubRepoConfig.new( id: "fastlane-ci-conf...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/docs_spec.rb
spec/docs_spec.rb
describe FastlaneCI do describe "docs" do Dir["app/features/*"].each do |feature_directory| next unless File.directory?(feature_directory) it "#{feature_directory} has a README.md" do readme_path = File.join(feature_directory, "README.md") expect(File.exist?(readme_path)).to eq(true), ...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/stub_helpers.rb
spec/stub_helpers.rb
require "helper_functions" module StubHelpers include HelperFunctions def stub_file_io allow(File).to receive(:write) end def stub_dot_keys allow_any_instance_of(FastlaneCI::DotKeysVariables).to receive(:all).and_return(environment_variables) allow_any_instance_of(FastlaneCI::DotKeysVariables).to...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/api_helper.rb
spec/api_helper.rb
module APIHelper def jwt_secret "fastlane-ci-test" end # if you need to change the JWT payload from the header, please make sure you use the correct secret. def bearer_token "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwidXNlciI6IjEiLCJpYXQiOjEsImlzcyI6ImZhc3RsYW5lLmNpIn0.m2uY...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/spec_helper.rb
spec/spec_helper.rb
require "bundler/setup" $LOAD_PATH << File.dirname(File.expand_path("../", __FILE__)) require "coveralls" Coveralls.wear! require "rack/test" require "rspec" require "webmock/rspec" require "stub_helpers" require "api_helper" require "helper_functions" require "timecop" ENV["RACK_ENV"] = "test" require File.expand_...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/services/xcode_manager_service_spec.rb
spec/services/xcode_manager_service_spec.rb
require "spec_helper" require "app/services/xcode_manager_service" describe FastlaneCI::XcodeManagerService do let (:apple_id_email) { "fake@random.com" } let (:apple_id_password) { "top_secret" } let (:secondary_apple_id_email) { "fake_also@random.com" } let (:xcode_manager_service) do apple_ids = [ ...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/services/configuration_respository_service_spec.rb
spec/services/configuration_respository_service_spec.rb
require "spec_helper" require "app/services/configuration_repository_service" describe FastlaneCI::ConfigurationRepositoryService do let(:user_client) { double("User Client", login: true) } let(:bot_client) { double("Bot Client", login: true) } let(:invitation) { double("Invitation", id: "12345678") } let(:ser...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/services/user_service_spec.rb
spec/services/user_service_spec.rb
require "spec_helper" require "app/services/user_service" describe FastlaneCI::UserService do let(:user_id) { "user_id" } let(:credentials) do (1..3).map do |index| FastlaneCI::GitHubProviderCredential.new( provider_credential_params.merge(id: index.to_s) ) end end let(:user) do ...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/services/dot_keys_variable_service_spec.rb
spec/services/dot_keys_variable_service_spec.rb
require "spec_helper" require "app/services/dot_keys_variable_service" describe FastlaneCI::DotKeysVariableService do let(:fake_home_path) do File.join(FastlaneCI::FastlaneApp.settings.root, "spec/fixtures/files/") end let (:fake_keys_file) do File.join(fake_home_path, ".fastlane/ci/.keys") end bef...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/services/code_hosting/git_hub_service_spec.rb
spec/services/code_hosting/git_hub_service_spec.rb
require "spec_helper" require "app/services/code_hosting/git_hub_service" describe FastlaneCI::GitHubService do describe ".token_scope_validation_error" do context "invalid_token" do before(:each) do client_instance = an_instance_of(Octokit::Client) allow(Octokit::Client).to receive(:new).w...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/services/json_deserializers/json_trigger_deserailizer_spec.rb
spec/services/json_deserializers/json_trigger_deserailizer_spec.rb
require "spec_helper" require "app/services/json_deserializers/json_trigger_deserializer" describe FastlaneCI::JSONTriggerDeserializer do let(:deserializer) { FastlaneCI::JSONTriggerDeserializer.new } let(:commit_trigger_json) do JSON.parse('{ "type": "commit", "branch": "master" }') end let(:pull_reques...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/services/file_writers/keys_writer_spec.rb
spec/services/file_writers/keys_writer_spec.rb
require "spec_helper" require "app/services/file_writers/keys_writer" describe FastlaneCI::KeysWriter do before(:each) do stub_file_io end let(:fixtures_path) do File.join( FastlaneCI::FastlaneApp.settings.root, "spec/fixtures/files/templates" ) end let(:template_path) do File.j...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/services/file_writers/file_writer_spec.rb
spec/services/file_writers/file_writer_spec.rb
require "spec_helper" require "app/services/file_writers/file_writer" describe FastlaneCI::FileWriter do before(:each) do stub_file_io end let(:fixtures_path) do File.join( FastlaneCI::FastlaneApp.settings.root, "spec/fixtures/files/templates" ) end let(:template_path) do File.j...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/services/cofig_data_sources/json_project_data_source_spec.rb
spec/services/cofig_data_sources/json_project_data_source_spec.rb
require "spec_helper" require "app/shared/models/project" require "app/services/config_data_sources/json_project_data_source" describe FastlaneCI::JSONProjectDataSource do before(:each) do stub_file_io stub_git_repos stub_services end subject do FastlaneCI::JSONProjectDataSource.create(git_repo_...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/services/data_sources/json_build_data_source_spec.rb
spec/services/data_sources/json_build_data_source_spec.rb
require "spec_helper" require "app/shared/models/build" require "app/services/data_sources/json_build_data_source" describe FastlaneCI::JSONBuildDataSource do before(:each) do stub_file_io stub_git_repos stub_services end project_ids = %w[ 4ebdf02f-01cc-4f27-9a48-cc5471e440c 3288c136-e62b-49...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/services/data_sources/json_user_data_source_spec.rb
spec/services/data_sources/json_user_data_source_spec.rb
require "spec_helper" require "app/shared/models/user" require "app/services/data_sources/json_user_data_source" describe FastlaneCI::JSONUserDataSource do before(:each) do stub_file_io stub_git_repos stub_services end let(:file_path) do File.join(FastlaneCI::FastlaneApp.settings.root, "spec/fix...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/services/data_sources/json_notification_data_source_spec.rb
spec/services/data_sources/json_notification_data_source_spec.rb
require "spec_helper" require "app/shared/models/notification" require "app/services/data_sources/json_notification_data_source" describe FastlaneCI::JSONNotificationDataSource do before(:each) do stub_file_io stub_git_repos stub_services end let(:file_path) do File.join(FastlaneCI::FastlaneApp....
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/workers/check_for_new_commits_on_github_worker_spec.rb
spec/workers/check_for_new_commits_on_github_worker_spec.rb
require "spec_helper" require "app/shared/models/project" require "app/workers/check_for_new_commits_on_github_worker" describe FastlaneCI::CheckForNewCommitsOnGithubWorker do # The sample project name. let(:project_name) do "project-1" end # The full name for the sample project. let(:repo_full_name) do...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/workers/check_for_new_prs_on_github_worker_spec.rb
spec/workers/check_for_new_prs_on_github_worker_spec.rb
require "spec_helper" require "app/workers/check_for_new_prs_on_github_worker" describe FastlaneCI::CheckForNewPullRequestsOnGithubWorker do # The sample project name. let(:project_name) do "project-1" end # The full name for the sample project. let(:repo_full_name) do "username/#{project_name}" e...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/workers/check_for_fastlane_ci_update_worker_spec.rb
spec/workers/check_for_fastlane_ci_update_worker_spec.rb
require "spec_helper" require "app/workers/check_for_fastlane_ci_update_worker" describe FastlaneCI::CheckForFastlaneCIUpdateWorker do let(:service) do FastlaneCI::CheckForFastlaneCIUpdateWorker.new end describe "#check_for_update" do it "doesn't do antyhing if no new version is available" do late...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/features/remote_runner_spec.rb
spec/features/remote_runner_spec.rb
require "spec_helper" require "app/features/build_runner/remote_runner" describe FastlaneCI::RemoteRunner do let(:service) { FastlaneCI::Agent::Service.new } # using port 9999 here in case you run tests and have an agent aleady running on the default port let(:grpc_client) { FastlaneCI::Agent::Client.new("localh...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/features-json/setting_json_controller_spec.rb
spec/features-json/setting_json_controller_spec.rb
require "spec_helper" require "app/features-json/setting_json_controller" describe FastlaneCI::SettingJSONController do let(:app) { described_class.new } let(:json) { JSON.parse(last_response.body) } before do header("Authorization", bearer_token) end describe "GET /data/settings" do it "returns th...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/features-json/user_json_spec.rb
spec/features-json/user_json_spec.rb
require "spec_helper" require "app/features-json/user_json_controller" require "app/services/user_service" describe FastlaneCI::UserJSONController do def app described_class end let(:json) { JSON.parse(last_response.body) } before do allow(FastlaneCI.dot_keys).to receive(:encryption_key).and_return("t...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/features-json/login_json_controller_spec.rb
spec/features-json/login_json_controller_spec.rb
require "spec_helper" require "app/features-json/login_json_controller" require "app/services/onboarding_service" require "app/services/user_service" describe FastlaneCI::LoginJSONController do def app described_class end let(:user) { double("User", id: "some-id") } let(:json) { JSON.parse(last_response.bo...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/features-json/artifact_json_controller_spec.rb
spec/features-json/artifact_json_controller_spec.rb
require "spec_helper" require "app/features-json/artifact_json_controller" describe FastlaneCI::ArtifactJSONController do let(:app) { described_class.new } let(:json) { JSON.parse(last_response.body) } let(:build_number) { 1 } let(:artifact_id) { "123-123" } before do header("Authorization", bearer_tok...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/features-json/api_controller_spec.rb
spec/features-json/api_controller_spec.rb
require "spec_helper" require "app/features-json/api_controller" describe FastlaneCI::APIController do let(:json) { JSON.parse(last_response.body) } ## # some example usages of APIController, with default authentication and with authentication disabled. # describe "by default" do class MySecureApiContro...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/features-json/json_params_spec.rb
spec/features-json/json_params_spec.rb
require "spec_helper" require "app/features-json/json_params" describe FastlaneCI::JSONParams do let(:app) do klass = Class.new(Sinatra::Base) do include FastlaneCI::JSONParams end klass.new end it "parses the JSON params" do setup_request('{"hello":"world"}') expect(app.helpers.param...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/features-json/build_json_controller_spec.rb
spec/features-json/build_json_controller_spec.rb
require "spec_helper" require "app/features-json/build_json_controller" describe FastlaneCI::BuildJSONController do let(:app) { described_class.new } let(:json) { JSON.parse(last_response.body) } let(:git_fork_config) { double("GitForkConfig", clone_url: "https://github.com/fastlane/ci", branch: "master", ref: "...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/shared/git_transactor_spec.rb
spec/shared/git_transactor_spec.rb
require "spec_helper" require "app/shared/git_transactor" module FastlaneCI describe GitTransactor do let(:mock_repo) { "Mock Repo" } let(:transactor) { GitTransactor.new(git_repo: mock_repo) } it "reports that a transaction is in progress when the git repo is dirty" do expect(mock_repo).to receiv...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/shared/github_handler_spec.rb
spec/shared/github_handler_spec.rb
require "spec_helper" require "app/shared/github_handler" describe FastlaneCI::GitHubHandler do class TestClass include FastlaneCI::GitHubHandler end it "adds handler methods on instances of a class" do test_class = TestClass.new expect(test_class).to respond_to(:github_action) end it "adds han...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/shared/string_encrypter_spec.rb
spec/shared/string_encrypter_spec.rb
require "spec_helper" require "app/shared/string_encrypter" module FastlaneCI describe StringEncrypter do before do encryption_key = "iUjsfjfiU" allow(ENV).to receive(:[]).with("FASTLANE_CI_ENCRYPTION_KEY").and_return(encryption_key) end describe "string encrypter example" do it "shoul...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/shared/transactor_spec.rb
spec/shared/transactor_spec.rb
require "spec_helper" require "app/shared/transactor" module FastlaneCI describe Transactor do let(:transactor) { Transactor.new } context "transaction lifecycle" do before do allow(transactor).to receive(:start_transaction) allow(transactor).to receive(:end_transaction) end ...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/shared/json_convertible_spec.rb
spec/shared/json_convertible_spec.rb
require "spec_helper" require "app/shared/json_convertible" class MockJSONConvertible include FastlaneCI::JSONConvertible attr_accessor :one_attribute attr_accessor :other_attribute def initialize(one_attribute: nil, other_attribute: nil) self.one_attribute = one_attribute self.other_attribute = oth...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/shared/fastfile_peeker_spec.rb
spec/shared/fastfile_peeker_spec.rb
require "fastfile_parser" require "digest" require_relative "../stub_helpers" require_relative "../../app/shared/fastfile_peeker" module FastlaneCI describe FastlaneCI::FastfilePeeker do let(:file_path) do File.join(FastlaneCI::FastlaneApp.settings.root, "spec/fixtures/files/") end let(:provider_...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/agent/service_spec.rb
spec/agent/service_spec.rb
require "spec_helper" require "agent/service" describe FastlaneCI::Agent::Service do let(:service) { FastlaneCI::Agent::Service.new } it "creates a new grpc service with .server" do expect(FastlaneCI::Agent::Service.server).to be_instance_of(GRPC::RpcServer) end describe "#run_fastlane" do let(:call)...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/agent/invocation_spec.rb
spec/agent/invocation_spec.rb
require "spec_helper" require "agent/invocation" require "tempfile" RSpec::Matchers.define(:proto_message) do |message| message = message.to_h unless message.kind_of?(Symbol) match do |actual| expect(actual.to_h).to include(message) end end describe FastlaneCI::Agent::Invocation do let(:yielder) { double(...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/agent/invocation/state_machine_spec.rb
spec/agent/invocation/state_machine_spec.rb
require "spec_helper" require "agent/invocation/state_machine" describe FastlaneCI::Agent::StateMachine do # use a invocation class here to decouple from other side-effects class Invocation prepend FastlaneCI::Agent::StateMachine def send_state(_event, _payload) # no-op end def run "s...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/spec/agent/invocation/recipes_spec.rb
spec/agent/invocation/recipes_spec.rb
require "spec_helper" require "agent/invocation/recipes" describe FastlaneCI::Agent::Recipes do let(:queue) { Queue.new } class RecipesIncludingClass include FastlaneCI::Agent::Recipes end subject { RecipesIncludingClass.new } before do subject.output_queue = queue end it "shell commands put th...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/lib/notifications.rb
lib/notifications.rb
# Notifications are taken from rails/active_support/notification. # http://api.rubyonrails.org/classes/ActiveSupport/Notifications.html # # Copyright (c) 2005-2018 David Heinemeier Hansson # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation fi...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/lib/bundler_cop.rb
lib/bundler_cop.rb
# frozen_string_literal: true module RuboCop module Cop module Bundler ## # discourage usage of pessimistic version locking # # discussed here: https://github.com/fastlane/ci/pull/905 class PessimisticVersionMatcher < Cop MSG = "Please use `<` and `>=` instead of `~>`." ...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/protos/agent_pb.rb
protos/agent_pb.rb
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: agent.proto require 'google/protobuf' Google::Protobuf::DescriptorPool.generated_pool.build do add_message "FastlaneCI.Proto.Log" do optional :message, :string, 1 optional :level, :enum, 2, "FastlaneCI.Proto.Log.Level" optional :status...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/protos/agent_services_pb.rb
protos/agent_services_pb.rb
# Generated by the protocol buffer compiler. DO NOT EDIT! # Source: agent.proto for package 'FastlaneCI.Proto' # Original file comments: # * # proto definitions for auto-generated client, server, and messages to pass using grpc. # # if you make any changes to this file, run # `rake generate_protos` # to regenerate t...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/agent/agent.rb
agent/agent.rb
# frozen_string_literal: true require "logger" require "grpc" # put ./protos in the load path. this is required because they are auto-generated and have specific `require` paths proto_path = File.expand_path("../protos", File.dirname(__FILE__)) $LOAD_PATH << proto_path unless $LOAD_PATH.include?(proto_path) require "...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/agent/client.rb
agent/client.rb
require_relative "agent" # A module encapsulating fastlane.ci agent code. module FastlaneCI module Agent ## # A sample client that can be used to make a request to the service. class Client ## # the host that the client is connecting to attr_reader :host # the port that the clien...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/agent/service.rb
agent/service.rb
require "open3" require_relative "agent" require_relative "invocation" module FastlaneCI module Agent ## # A simple implementation of the agent service. class Service < FastlaneCI::Proto::Agent::Service include FastlaneCI::Agent::Logging ## # returns a configured GRPC server ready to l...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/agent/invocation.rb
agent/invocation.rb
require_relative "agent" require_relative "invocation/recipes" require_relative "invocation/state_machine" module FastlaneCI::Agent ## # the Invocation models a fastlane invocation. # It has states and state transitions # streams update to state, logs, and artifacts via the `yielder` # # # class Invoca...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/agent/invocation/state_machine.rb
agent/invocation/state_machine.rb
require "forwardable" require "micromachine" require_relative "../agent" module FastlaneCI::Agent ## # StateMachine defines the state and transition events of an Invocation # # This module is implemented to be `prepended` into a class. # # Methods for each transition are defined, and will only be called in...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
fastlane/ci
https://github.com/fastlane/ci/blob/92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f/agent/invocation/recipes.rb
agent/invocation/recipes.rb
require "tmpdir" require_relative "../agent" module FastlaneCI::Agent ## # stateless invocation recipes go here module Recipes include Logging ## # set up a Queue that is used to push output from stdout/err from commands that shell out. def output_queue=(value) @output_queue = value en...
ruby
MIT
92d3af7f8ff0f1e8ed6809a97a4b6ef259e4c36f
2026-01-04T15:58:31.267755Z
false
brendon/acts_as_list
https://github.com/brendon/acts_as_list/blob/c105e17152142040813c11873e77891c82ec6069/init.rb
init.rb
# frozen_string_literal: true $:.unshift "#{File.dirname(__FILE__)}/lib" require "acts_as_list"
ruby
MIT
c105e17152142040813c11873e77891c82ec6069
2026-01-04T15:58:42.362067Z
false
brendon/acts_as_list
https://github.com/brendon/acts_as_list/blob/c105e17152142040813c11873e77891c82ec6069/test/test_no_update_for_scope_destruction.rb
test/test_no_update_for_scope_destruction.rb
# frozen_string_literal: true require 'helper' class DestructionTodoList < ActiveRecord::Base has_many :destruction_todo_items, dependent: :destroy has_many :destruction_tada_items, dependent: :destroy end class DestructionTodoItem < ActiveRecord::Base belongs_to :destruction_todo_list acts_as_list scope: :d...
ruby
MIT
c105e17152142040813c11873e77891c82ec6069
2026-01-04T15:58:42.362067Z
false
brendon/acts_as_list
https://github.com/brendon/acts_as_list/blob/c105e17152142040813c11873e77891c82ec6069/test/test_no_update_for_extra_classes.rb
test/test_no_update_for_extra_classes.rb
# frozen_string_literal: true require 'helper' class TodoList < ActiveRecord::Base has_many :todo_items acts_as_list end class TodoItem < ActiveRecord::Base belongs_to :todo_list has_many :todo_item_attachments acts_as_list scope: :todo_list end class TodoItemAttachment < ActiveRecord::Base belongs_to :...
ruby
MIT
c105e17152142040813c11873e77891c82ec6069
2026-01-04T15:58:42.362067Z
false
brendon/acts_as_list
https://github.com/brendon/acts_as_list/blob/c105e17152142040813c11873e77891c82ec6069/test/test_composite_foreign_key.rb
test/test_composite_foreign_key.rb
# frozen_string_literal: true require 'helper' # Composite foreign keys were introduced in Rails 7.2 if ActiveRecord::VERSION::MAJOR == 7 && ActiveRecord::VERSION::MINOR >= 2 || ActiveRecord::VERSION::MAJOR > 7 class CompositeForeignKeyParent < ActiveRecord::Base self.table_name = 'composite_foreign_key_parents...
ruby
MIT
c105e17152142040813c11873e77891c82ec6069
2026-01-04T15:58:42.362067Z
false
brendon/acts_as_list
https://github.com/brendon/acts_as_list/blob/c105e17152142040813c11873e77891c82ec6069/test/test_acts_as_list_options.rb
test/test_acts_as_list_options.rb
# frozen_string_literal: true require 'helper' class ActsAsListOptionsTest def setup setup_db end def test_acts_as_list_options_returns_the_macro_configuration # rubocop:disable Metrics/MethodLength klass = Class.new(ActiveRecord::Base) do self.table_name = 'mixins' acts_as_list( co...
ruby
MIT
c105e17152142040813c11873e77891c82ec6069
2026-01-04T15:58:42.362067Z
false
brendon/acts_as_list
https://github.com/brendon/acts_as_list/blob/c105e17152142040813c11873e77891c82ec6069/test/shared_quoting.rb
test/shared_quoting.rb
# frozen_string_literal: true module Shared module Quoting def setup 3.times { |counter| QuotedList.create! order: counter } end def test_create assert_equal QuotedList.in_list.size, 3 end # This test execute raw queries involving table name def test_moving item = QuotedL...
ruby
MIT
c105e17152142040813c11873e77891c82ec6069
2026-01-04T15:58:42.362067Z
false
brendon/acts_as_list
https://github.com/brendon/acts_as_list/blob/c105e17152142040813c11873e77891c82ec6069/test/test_default_scope_with_select.rb
test/test_default_scope_with_select.rb
require 'helper' class Animal < ActiveRecord::Base acts_as_list default_scope -> { select(:name) } end class DefaultScopeWithSelectTest < Minitest::Test def setup ActiveRecord::Base.connection.create_table :animals do |t| t.column :position, :integer t.column :name, :string end ActiveRe...
ruby
MIT
c105e17152142040813c11873e77891c82ec6069
2026-01-04T15:58:42.362067Z
false
brendon/acts_as_list
https://github.com/brendon/acts_as_list/blob/c105e17152142040813c11873e77891c82ec6069/test/shared_list.rb
test/shared_list.rb
# frozen_string_literal: true module Shared module List def setup(mixin = ListMixin, mixinError = ListMixinError, id = :id) @mixin = mixin @id = id @mixinError = mixinError (1..4).each do |counter| node = @mixin.new parent_id: 5 node.first_id = counter if @id == :first_id ...
ruby
MIT
c105e17152142040813c11873e77891c82ec6069
2026-01-04T15:58:42.362067Z
false
brendon/acts_as_list
https://github.com/brendon/acts_as_list/blob/c105e17152142040813c11873e77891c82ec6069/test/shared_array_scope_list.rb
test/shared_array_scope_list.rb
# frozen_string_literal: true module Shared module ArrayScopeList def setup (1..4).each { |counter| ArrayScopeListMixin.create! pos: counter, parent_id: 5, parent_type: 'ParentClass' } (1..4).each { |counter| ArrayScopeListMixin.create! pos: counter, parent_id: 6, parent_type: 'ParentClass' } end...
ruby
MIT
c105e17152142040813c11873e77891c82ec6069
2026-01-04T15:58:42.362067Z
false
brendon/acts_as_list
https://github.com/brendon/acts_as_list/blob/c105e17152142040813c11873e77891c82ec6069/test/test_joined_list.rb
test/test_joined_list.rb
# frozen_string_literal: true require 'helper' class Section < ActiveRecord::Base has_many :items acts_as_list scope :visible, -> { where(visible: true) } end class Item < ActiveRecord::Base belongs_to :section acts_as_list scope: :section scope :visible, -> { where(visible: true).joins(:section).merge...
ruby
MIT
c105e17152142040813c11873e77891c82ec6069
2026-01-04T15:58:42.362067Z
false
brendon/acts_as_list
https://github.com/brendon/acts_as_list/blob/c105e17152142040813c11873e77891c82ec6069/test/shared_zero_based.rb
test/shared_zero_based.rb
# frozen_string_literal: true module Shared module ZeroBased def setup (1..4).each { |counter| ZeroBasedMixin.create! pos: counter, parent_id: 5 } end def test_insert new = ZeroBasedMixin.create(parent_id: 20) assert_equal 0, new.pos assert new.first? assert new.last? ...
ruby
MIT
c105e17152142040813c11873e77891c82ec6069
2026-01-04T15:58:42.362067Z
false
brendon/acts_as_list
https://github.com/brendon/acts_as_list/blob/c105e17152142040813c11873e77891c82ec6069/test/shared_top_addition.rb
test/shared_top_addition.rb
# frozen_string_literal: true module Shared module TopAddition def setup (1..4).each { |counter| TopAdditionMixin.create! pos: counter, parent_id: 5 } end def test_setup_state # If we explicitly define a position (as above) then that position is what gets applied assert_equal [1, 2, 3,...
ruby
MIT
c105e17152142040813c11873e77891c82ec6069
2026-01-04T15:58:42.362067Z
false
brendon/acts_as_list
https://github.com/brendon/acts_as_list/blob/c105e17152142040813c11873e77891c82ec6069/test/helper.rb
test/helper.rb
# frozen_string_literal: true # $DEBUG = true require "rubygems" require "bundler/setup" begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts "Run `bundle install` to install missing gems" exit e.status_code end require 'logger' require "active_reco...
ruby
MIT
c105e17152142040813c11873e77891c82ec6069
2026-01-04T15:58:42.362067Z
false
brendon/acts_as_list
https://github.com/brendon/acts_as_list/blob/c105e17152142040813c11873e77891c82ec6069/test/test_no_update_for_subclasses.rb
test/test_no_update_for_subclasses.rb
# frozen_string_literal: true require 'helper' class MasterItem < ActiveRecord::Base acts_as_list end class SlaveItem < MasterItem; end class NoUpdateForSubclassesTestCase < Minitest::Test def setup ActiveRecord::Base.connection.create_table :master_items do |t| t.column :position, :integer t.co...
ruby
MIT
c105e17152142040813c11873e77891c82ec6069
2026-01-04T15:58:42.362067Z
false
brendon/acts_as_list
https://github.com/brendon/acts_as_list/blob/c105e17152142040813c11873e77891c82ec6069/test/shared_list_sub.rb
test/shared_list_sub.rb
# frozen_string_literal: true module Shared module ListSub def setup (1..4).each do |i| node = ((i % 2 == 1) ? ListMixinSub1 : ListMixinSub2).new parent_id: 5000 node.pos = i node.save! end end def test_reordering assert_equal [1, 2, 3, 4], ListMixin.where(paren...
ruby
MIT
c105e17152142040813c11873e77891c82ec6069
2026-01-04T15:58:42.362067Z
false
brendon/acts_as_list
https://github.com/brendon/acts_as_list/blob/c105e17152142040813c11873e77891c82ec6069/test/test_list.rb
test/test_list.rb
# frozen_string_literal: true # NOTE: following now done in helper.rb (better Readability) require 'helper' def setup_db(position_options = {}) $default_position = position_options[:default] # sqlite cannot drop/rename/alter columns and add constraints after table creation sqlite = ENV.fetch("DB") == "sqlite" ...
ruby
MIT
c105e17152142040813c11873e77891c82ec6069
2026-01-04T15:58:42.362067Z
true
brendon/acts_as_list
https://github.com/brendon/acts_as_list/blob/c105e17152142040813c11873e77891c82ec6069/test/shared_no_addition.rb
test/shared_no_addition.rb
# frozen_string_literal: true module Shared module NoAddition def setup (1..4).each { |counter| NoAdditionMixin.create! pos: counter, parent_id: 5 } end def test_insert new = NoAdditionMixin.create(parent_id: 20) assert_nil new.pos assert !new.in_list? new = NoAdditionMixi...
ruby
MIT
c105e17152142040813c11873e77891c82ec6069
2026-01-04T15:58:42.362067Z
false
brendon/acts_as_list
https://github.com/brendon/acts_as_list/blob/c105e17152142040813c11873e77891c82ec6069/test/shared.rb
test/shared.rb
# frozen_string_literal: true # Common shared behaviour. module Shared autoload :List, 'shared_list' autoload :ListSub, 'shared_list_sub' autoload :ZeroBased, 'shared_zero_based' autoload :ArrayScopeList, 'shared_array_scope_list' autoload :TopAddition, 'shared_top_addition' autolo...
ruby
MIT
c105e17152142040813c11873e77891c82ec6069
2026-01-04T15:58:42.362067Z
false
brendon/acts_as_list
https://github.com/brendon/acts_as_list/blob/c105e17152142040813c11873e77891c82ec6069/test/test_scope_with_user_defined_foreign_key.rb
test/test_scope_with_user_defined_foreign_key.rb
require 'helper' class Checklist < ActiveRecord::Base has_many :checklist_items, foreign_key: 'list_id', inverse_of: :checklist end class ChecklistItem < ActiveRecord::Base belongs_to :checklist, foreign_key: 'list_id', inverse_of: :checklist_items acts_as_list scope: :checklist end class ScopeWithUserDefinedF...
ruby
MIT
c105e17152142040813c11873e77891c82ec6069
2026-01-04T15:58:42.362067Z
false