source stringclasses 1
value | repo stringlengths 5 63 | repo_url stringlengths 24 82 | path stringlengths 5 167 | language stringclasses 1
value | license stringclasses 5
values | stars int64 10 51.4k | ref stringclasses 23
values | size_bytes int64 200 258k | text stringlengths 137 258k |
|---|---|---|---|---|---|---|---|---|---|
github | Homebrew/brew | https://github.com/Homebrew/brew | Library/Homebrew/cask/dsl/version.rb | Ruby | bsd-2-clause | 47,751 | main | 5,715 | # typed: strict
# frozen_string_literal: true
module Cask
class DSL
# Class corresponding to the `version` stanza.
class Version < ::String
DIVIDERS = T.let({
"." => :dots,
"-" => :hyphens,
"_" => :underscores,
}.freeze, T::Hash[String, Symbol])
DIVIDER_REGEX = /(#{... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | Gemfile | Ruby | mit | 41,450 | master | 2,672 | source("https://rubygems.org")
# Needed for the Fastlane::RUBOCOP_REQUIREMENT below
require_relative "fastlane/lib/fastlane/version.rb"
# Please keep all gems and their comments together without empty lines, so RuboCop can sort them alphabetically.
# Allows fine-grained control of environment variables.
gem "climate... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | Rakefile | Ruby | mit | 41,450 | master | 4,145 | require "bundler/gem_tasks"
task(:test_all) do
formatter = "--format progress"
formatter += " -r rspec_junit_formatter --format RspecJunitFormatter -o #{ENV['CIRCLE_TEST_REPORTS']}/rspec/fastlane-junit-results.xml" if ENV["CIRCLE_TEST_REPORTS"]
command = "rspec --pattern spec/**/*_spec.rb,*/spec/**/*_spec.rb #{f... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spec_helper.rb | Ruby | mit | 41,450 | master | 6,796 | # This module is only used to check the environment is currently a testing env
module SpecHelper
end
require "coveralls"
Coveralls.wear! unless ENV["FASTLANE_SKIP_UPDATE_CHECK"]
require "webmock/rspec"
WebMock.disable_net_connect!(allow: 'coveralls.io')
require "fastlane"
UI = FastlaneCore::UI
unless ENV["DEBUG"]
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane.gemspec | Ruby | mit | 41,450 | master | 7,201 | # coding: utf-8
lib = File.expand_path('../fastlane/lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'fastlane/version'
Gem::Specification.new do |spec|
spec.name = "fastlane"
spec.version = Fastlane::VERSION
# list of authors is regenerated and resorted on each rel... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | Dangerfile | Ruby | mit | 41,450 | master | 2,088 | # We generally try to avoid big PRs
warn("Big PR") if git.lines_of_code > 500
# Show a warning for PRs that are Work In Progress
if (github.pr_body + github.pr_title).include?("WIP")
warn("Pull Request is Work in Progress")
end
# Contributors should always provide a changelog when submitting a PR
if github.pr_body.... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/spec/detect_values_spec.rb | Ruby | mit | 41,450 | master | 4,195 | describe Snapshot do
describe Snapshot::DetectValues do
describe "value coercion" do
before(:each) do
allow(Snapshot).to receive(:snapfile_name).and_return("some fake snapfile")
end
it "coerces only_testing to be an array", requires_xcodebuild: true do
options = {
pr... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/spec/collector_spec.rb | Ruby | mit | 41,450 | master | 1,234 | describe Snapshot do
describe Snapshot::Collector do
describe '#attachments_in_file for Xcode 7.2.1 plist output' do
it 'finds attachments and returns filenames' do
expected_files = [
"Screenshot_658CD3E2-96C5-4598-86EF-18164AEDE71D.png",
"Screenshot_31FC792E-A9E9-4C04-A31D-9901E... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/spec/test_command_generator_xcode_8_spec.rb | Ruby | mit | 41,450 | master | 17,326 | describe Snapshot do
describe Snapshot::TestCommandGeneratorXcode8 do
let(:os_version) { "9.3" }
let(:iphone6_9_3) { FastlaneCore::DeviceManager::Device.new(name: "iPhone 6", os_version: os_version, udid: "11111", state: "Don't Care", is_simulator: true) }
let(:iphone6_9_3_2) { FastlaneCore::DeviceManager... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/spec/reports_generator_spec.rb | Ruby | mit | 41,450 | master | 884 | require 'snapshot/reports_generator'
describe Snapshot::ReportsGenerator do
describe '#available_devices' do
# the Collector generates file names that remove all spaces from the device names, so
# any keys here can't contain spaces
it "xcode 8 devices don't have keys that contain spaces" do
allow(F... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/spec/test_command_generator_spec.rb | Ruby | mit | 41,450 | master | 30,019 | require 'tmpdir'
describe Snapshot do
describe Snapshot::TestCommandGenerator do
let(:os_version) { "9.3" }
let(:iphone6_9_3) { FastlaneCore::DeviceManager::Device.new(name: "iPhone 6", os_version: os_version, udid: "11111", state: "Don't Care", is_simulator: true) }
let(:iphone6_9_3_2) { FastlaneCore::D... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/spec/simulator_launcher_base_spec.rb | Ruby | mit | 41,450 | master | 4,249 | describe Snapshot do
describe Snapshot::SimulatorLauncherBase do
let(:device_udid) { "123456789" }
let(:paths) { ['./logo.png'] }
describe '#add_media' do
it "should call simctl addmedia", requires_xcode: true do
allow(Snapshot::TestCommandGenerator).to receive(:device_udid).and_return(devi... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/spec/reset_simulators_spec.rb | Ruby | mit | 41,450 | master | 6,173 | require 'snapshot/reset_simulators'
describe Snapshot::ResetSimulators do
let(:usable_devices) do
[
[" iPhone 6s Plus (0311D4EC-14E7-443B-9F27-F32E72342799) (Shutdown)", "iPhone 6s Plus", "0311D4EC-14E7-443B-9F27-F32E72342799"],
[" iPad Pro (AD6A06DF-16EF-492D-8AF3-8128FCC03CBF) (Shutdown)", "i... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/spec/spec_helper.rb | Ruby | mit | 41,450 | master | 598 | # Loading the XCode Project is really slow (>1 second)
# fake it out for tests
def fake_out_xcode_project_loading
fake_result = <<-EOS
Information about project "Example":
Targets:
Example
ExampleUITests
ExampleMacOS
ExampleMacOSUITests
Build Configurations:
Debug
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/spec/commands_generator_spec.rb | Ruby | mit | 41,450 | master | 3,310 | require 'snapshot/commands_generator'
require 'snapshot/reset_simulators'
describe Snapshot::CommandsGenerator do
let(:available_options) { Snapshot::Options.available_options }
describe ":run option handling" do
def expect_runner_work
allow(Snapshot::DetectValues).to receive(:set_additional_default_val... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/spec/runner_spec.rb | Ruby | mit | 41,450 | master | 2,411 | require 'os'
describe Snapshot do
describe Snapshot::Runner do
let(:runner) { Snapshot::Runner.new }
describe 'Parses embedded SnapshotHelper.swift' do
it 'finds the current embedded version' do
allow(FastlaneCore::Helper).to receive(:xcode_at_least?).with("9.0").and_return(true)
helpe... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/lib/snapshot.rb | Ruby | mit | 41,450 | master | 927 | require_relative 'snapshot/runner'
require_relative 'snapshot/reports_generator'
require_relative 'snapshot/detect_values'
require_relative 'snapshot/screenshot_flatten'
require_relative 'snapshot/screenshot_rotate'
require_relative 'snapshot/dependency_checker'
require_relative 'snapshot/latest_os_version'
require_rel... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/lib/snapshot/collector.rb | Ruby | mit | 41,450 | master | 5,437 | require 'plist'
require_relative 'module'
require_relative 'test_command_generator'
module Snapshot
# Responsible for collecting the generated screenshots and copying them over to the output directory
class Collector
# Returns true if it succeeds
def self.fetch_screenshots(output, dir_name, device_type, l... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/lib/snapshot/runner.rb | Ruby | mit | 41,450 | master | 5,462 | require 'shellwords'
require 'plist'
require 'os'
require 'thread'
require 'terminal-table'
require 'fastlane_core/print_table'
require_relative 'module'
require_relative 'update'
require_relative 'test_command_generator'
require_relative 'reports_generator'
require_relative 'simulator_launchers/simulator_launcher'
re... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/lib/snapshot/reports_generator.rb | Ruby | mit | 41,450 | master | 9,189 | require_relative 'module'
module Snapshot
class ReportsGenerator
require 'erb'
require 'fastimage'
def html_path
if Snapshot.config[:html_template]
Snapshot.config[:html_template]
else
File.join(Snapshot::ROOT, "lib", "snapshot/page.html.erb")
end
end
def gener... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/lib/snapshot/reset_simulators.rb | Ruby | mit | 41,450 | master | 5,229 | require 'fastlane_core/device_manager'
require_relative 'module'
module Snapshot
class ResetSimulators
def self.clear_everything!(ios_versions, force = false)
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# !! Warning: This script will remove all your existing simulators !!
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/lib/snapshot/screenshot_rotate.rb | Ruby | mit | 41,450 | master | 1,011 | require_relative 'module'
require 'fastlane_core/fastlane_pty'
module Snapshot
# This class takes care of rotating images
class ScreenshotRotate
require 'shellwords'
# @param (String) The path in which the screenshots are located in
def run(path)
UI.verbose("Rotating the screenshots (if necessar... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/lib/snapshot/dependency_checker.rb | Ruby | mit | 41,450 | master | 3,110 | require 'fastlane_core/device_manager'
require 'fastlane_core/helper'
require_relative 'latest_os_version'
module Snapshot
class DependencyChecker
def self.check_dependencies
return if FastlaneCore::Helper.test?
return unless FastlaneCore::Helper.mac?
self.check_xcode_select
self.check_s... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/lib/snapshot/detect_values.rb | Ruby | mit | 41,450 | master | 3,367 | require 'fastlane_core/project'
require 'fastlane_core/device_manager'
require_relative 'module'
module Snapshot
class DetectValues
# This is needed as these are more complex default values
def self.set_additional_default_values
config = Snapshot.config
# First, try loading the Snapfile from th... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/lib/snapshot/screenshot_flatten.rb | Ruby | mit | 41,450 | master | 671 | require_relative 'module'
module Snapshot
# This class takes care of removing the alpha channel of the generated screenshots
class ScreenshotFlatten
# @param (String) The path in which the screenshots are located in
def run(path)
UI.message("Removing the alpha channel from generated png files")
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/lib/snapshot/commands_generator.rb | Ruby | mit | 41,450 | master | 3,957 | require 'commander'
require 'fastlane_core/ui/help_formatter'
require_relative 'module'
require_relative 'runner'
require_relative 'options'
HighLine.track_eof = false
module Snapshot
class CommandsGenerator
include Commander::Methods
def self.start
self.new.run
end
def run
program :... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/lib/snapshot/test_command_generator_xcode_8.rb | Ruby | mit | 41,450 | master | 2,801 | require_relative 'test_command_generator_base'
require_relative 'module'
require_relative 'latest_os_version'
module Snapshot
# Responsible for building the fully working xcodebuild command
# This TestCommandGenerator supports Xcode 8's `xcodebuild` requirements
# It is its own object, as the logic differs for h... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/lib/snapshot/test_command_generator_base.rb | Ruby | mit | 41,450 | master | 5,046 | require 'fastlane_core/device_manager'
require_relative 'module'
module Snapshot
class TestCommandGeneratorBase
class << self
def prefix
["set -o pipefail &&"]
end
# Path to the project or workspace as parameter
# This will also include the scheme (if given)
# @return [Arra... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/lib/snapshot/options.rb | Ruby | mit | 41,450 | master | 25,053 | require 'fastlane_core/configuration/config_item'
require 'fastlane_core/device_manager'
require 'fastlane/helper/xcodebuild_formatter_helper'
require 'credentials_manager/appfile_config'
require_relative 'module'
module Snapshot
# rubocop:disable Metrics/ClassLength
class Options
def self.verify_type(item_nam... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/lib/snapshot/setup.rb | Ruby | mit | 41,450 | master | 2,688 | require_relative 'module'
module Snapshot
class Setup
# This method will take care of creating a Snapfile and other necessary files
def self.create(path, is_swift_fastfile: false, print_instructions_on_failure: false)
# First generate all the names & paths
if is_swift_fastfile
template_pa... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/lib/snapshot/error_handler.rb | Ruby | mit | 41,450 | master | 799 | require_relative 'module'
module Snapshot
class ErrorHandler
class << self
# @param [Array] The output of the errored build (line by line)
# This method should raise an exception in any case, as the return code indicated a failed build
def handle_test_error(output, return_code)
# The or... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/lib/snapshot/update.rb | Ruby | mit | 41,450 | master | 1,436 | require_relative 'module'
require_relative 'runner'
module Snapshot
# Migrate helper files
class Update
# @return [Array] A list of helper files (usually just one)
def self.find_helper
paths = Dir["./**/SnapshotHelper.swift"] + Dir["./**/SnapshotHelperXcode8.swift"]
# exclude assets in gym
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/lib/snapshot/test_command_generator.rb | Ruby | mit | 41,450 | master | 5,320 | require_relative 'test_command_generator_base'
require_relative 'latest_os_version'
module Snapshot
# Responsible for building the fully working xcodebuild command
# Xcode 9 introduced the ability to run tests in parallel on multiple simulators
# This TestCommandGenerator constructs the appropriate `xcodebuild` ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/lib/snapshot/module.rb | Ruby | mit | 41,450 | master | 1,205 | require 'fastlane_core/helper'
require 'fastlane/boolean'
require_relative 'detect_values'
require_relative 'dependency_checker'
module Snapshot
# Use this to just setup the configuration attribute and set it later somewhere else
class << self
attr_accessor :config
attr_accessor :project
attr_accesso... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/lib/snapshot/latest_os_version.rb | Ruby | mit | 41,450 | master | 1,059 | require 'open3'
require 'fastlane_core/ui/ui'
module Snapshot
class LatestOsVersion
def self.ios_version
return ENV["SNAPSHOT_IOS_VERSION"] if FastlaneCore::Env.truthy?("SNAPSHOT_IOS_VERSION")
self.version("iOS")
end
@versions = {}
def self.version(os)
@versions[os] ||= version_for... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/lib/snapshot/simulator_launchers/simulator_launcher_base.rb | Ruby | mit | 41,450 | master | 9,227 | require 'plist'
require 'time'
require_relative '../module'
require_relative '../test_command_generator'
require_relative '../collector'
require_relative '../fixes/hardware_keyboard_fix'
require_relative '../fixes/simulator_zoom_fix'
require_relative '../fixes/simulator_shared_pasteboard'
module Snapshot
class Simu... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/lib/snapshot/simulator_launchers/launcher_configuration.rb | Ruby | mit | 41,450 | master | 2,433 | module Snapshot
class SimulatorLauncherConfiguration
# both
attr_accessor :languages
attr_accessor :devices
attr_accessor :add_photos
attr_accessor :add_videos
attr_accessor :clean
attr_accessor :erase_simulator
attr_accessor :headless
attr_accessor :localize_simulator
attr_acc... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/lib/snapshot/simulator_launchers/simulator_launcher_xcode_8.rb | Ruby | mit | 41,450 | master | 5,335 | require_relative 'simulator_launcher_base'
require_relative '../error_handler'
require_relative '../collector'
require_relative '../test_command_generator_xcode_8'
module Snapshot
class SimulatorLauncherXcode8 < SimulatorLauncherBase
def take_screenshots_one_simulator_at_a_time
results = {} # collect all t... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/lib/snapshot/simulator_launchers/simulator_launcher.rb | Ruby | mit | 41,450 | master | 9,433 | require 'fastlane_core/test_parser'
require_relative 'simulator_launcher_base'
module Snapshot
class CPUInspector
def self.hwprefs_available?
`which hwprefs` != ''
end
def self.cpu_count
@cpu_count ||=
case RUBY_PLATFORM
when /darwin9/
`hwprefs cpu_count`.to_i
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/lib/snapshot/fixes/hardware_keyboard_fix.rb | Ruby | mit | 41,450 | master | 1,418 | require_relative '../module'
module Snapshot
module Fixes
# Having "Connect Hardware Keyboard" enabled causes issues with entering text in secure textfields
# Fixes https://github.com/fastlane/fastlane/issues/2494
class HardwareKeyboardFix
def self.patch
UI.verbose("Patching simulator to w... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/lib/snapshot/fixes/simulator_zoom_fix.rb | Ruby | mit | 41,450 | master | 969 | require_relative '../module'
module Snapshot
module Fixes
# This fix is needed due to a bug in UI Tests that creates invalid screenshots when the
# simulator is not scaled to a 100%
# Issue: https://github.com/fastlane/fastlane/issues/2578
# Radar: https://openradar.appspot.com/radar?id=6127019184095... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | snapshot/lib/snapshot/fixes/simulator_shared_pasteboard.rb | Ruby | mit | 41,450 | master | 530 | require_relative '../module'
module Snapshot
module Fixes
# Becoming first responder can trigger Pasteboard sync, which can stall and crash the simulator
# See https://twitter.com/steipete/status/1227551552317140992
class SharedPasteboardFix
def self.patch
UI.verbose("Patching simulator to... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/helper/plugin_scores_helper.rb | Ruby | mit | 41,450 | master | 17,012 | module Fastlane
module Helper
module PluginScoresHelper
require 'faraday'
require 'faraday_middleware'
require 'yaml'
class FastlanePluginRating
attr_accessor :key
attr_accessor :description
attr_accessor :value
def initialize(key: nil, description: nil, v... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/helper/tool_name_formatting_helper.rb | Ruby | mit | 41,450 | master | 2,795 | module Fastlane
module Helper
class ToolNameFormattingHelper
attr_accessor :path, :is_documenting_invalid_examples
# @param [String] path Path to the file to be checked for tool formatting
# @param [Bool] is_documenting_invalid_examples
# Ignore checks if line starts with "^\s*- ❌"... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/actions/test_sample_code.rb | Ruby | mit | 41,450 | master | 4,042 | module Fastlane
module Actions
class TestSampleCodeAction < Action
def self.run(params)
content = params[:content] || File.read(params[:path])
fill_in_env_variables
errors = []
content.scan(/```ruby\n(((.|\n)(?!```))*)\n```/).each do |current_match|
current_match =... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/actions/plugin_scores.rb | Ruby | mit | 41,450 | master | 2,244 | module Fastlane
module Actions
class PluginScoresAction < Action
def self.run(params)
require_relative '../helper/plugin_scores_helper.rb'
require "erb"
plugins = fetch_plugins(params[:cache_path]).sort_by { |v| v.data[:overall_score] }.reverse
result = "<!--\nAuto generate... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/action_metadata_spec.rb | Ruby | mit | 41,450 | master | 2,979 | require 'fastlane/documentation/actions_list'
describe Fastlane::Action do
Fastlane::ActionsList.all_actions do |action, name|
describe name do
it "`fastlane_class` and `action` are matching" do
# `to_s.gsub(/::.*/, '')` to convert
# "Fastlane::Actions::AdbDevicesAction"
# to
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/tools_spec.rb | Ruby | mit | 41,450 | master | 912 | describe Fastlane do
describe "Fastlane::TOOLS" do
it "lists all the fastlane tools" do
expect(Fastlane::TOOLS.count).to be >= 15
end
it "contains symbols for each of the tools" do
Fastlane::TOOLS.each do |current|
expect(current).to be_kind_of(Symbol)
end
end
it "warns... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/fastlane_require_spec.rb | Ruby | mit | 41,450 | master | 1,243 | require 'fastlane/fastlane_require'
describe Fastlane do
describe Fastlane::FastlaneRequire do
it "formats gem require name for fastlane-plugin" do
gem_name = "fastlane-plugin-test"
gem_require_name = Fastlane::FastlaneRequire.format_gem_require_name(gem_name)
expect(gem_require_name).to eq("fa... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/junit_spec.rb | Ruby | mit | 41,450 | master | 976 | describe Fastlane do
describe Fastlane::JUnitGenerator do
describe "#generate" do
it "properly generates a valid JUnit XML File" do
time = 25
step = {
name: "My Step Name",
error: nil,
time: time,
started: Time.now - 100
}
error_step =... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/command_line_handler_spec.rb | Ruby | mit | 41,450 | master | 978 | describe Fastlane do
describe Fastlane::CommandLineHandler do
it "properly handles default calls" do
expect(Fastlane::LaneManager).to receive(:cruise_lane).with("ios", "deploy", {})
Fastlane::CommandLineHandler.handle(["ios", "deploy"], {})
end
it "properly handles calls with custom parameter... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_list_spec.rb | Ruby | mit | 41,450 | master | 1,587 | require 'fastlane/documentation/actions_list'
describe Fastlane do
describe "Action List" do
it "doesn't throw an exception" do
Fastlane::ActionsList.run(filter: nil)
end
it "doesn't throw an exception with filter" do
Fastlane::ActionsList.run(filter: 'deliver')
end
it "shows all av... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/runner_spec.rb | Ruby | mit | 41,450 | master | 5,612 | describe Fastlane do
describe Fastlane::Runner do
describe "#available_lanes" do
before do
@ff = Fastlane::FastFile.new('./fastlane/spec/fixtures/fastfiles/FastfileGrouped')
end
it "lists all available lanes" do
expect(@ff.runner.available_lanes).to eq(["test", "anotherroot", "m... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/spec_helper_spec.rb | Ruby | mit | 41,450 | master | 776 | describe FastlaneSpec::Env do
# rubocop:disable Naming/VariableName
describe "#with_ARGV" do
it "temporarily overrides the ARGV values under normal usage" do
current_ARGV = ARGV.dup
temp_ARGV = ['temp_inside']
block_ARGV = nil
FastlaneSpec::Env.with_ARGV(temp_ARGV) do
block_ARGV ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/one_off_spec.rb | Ruby | mit | 41,450 | master | 1,259 | require 'fastlane/one_off'
describe Fastlane do
describe Fastlane::OneOff do
describe "Valid parameters" do
before do
@runner = "runner"
expect(Fastlane::Runner).to receive(:new).and_return(@runner)
end
it "calls load_actions to load all built-in actions" do
action = 'i... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/private_public_fastfile_spec.rb | Ruby | mit | 41,450 | master | 1,531 | describe Fastlane do
describe Fastlane::FastFile do
describe "Public/Private lanes" do
let(:path) { './fastlane/spec/fixtures/fastfiles/FastfilePrivatePublic' }
before do
FileUtils.rm_rf('/tmp/fastlane/')
@ff = Fastlane::FastFile.new(path)
end
it "raise an exception when ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/erb_template_helper_spec.rb | Ruby | mit | 41,450 | master | 1,181 | describe Fastlane do
describe Fastlane::ErbTemplateHelper do
describe "load_template" do
it "raises an error if file does not exist" do
expect do
Fastlane::ErbTemplateHelper.load('invalid_name')
end.to raise_exception("Could not find template at path '#{Fastlane::ROOT}/lib/assets/i... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/lane_manager_spec.rb | Ruby | mit | 41,450 | master | 2,990 | describe Fastlane do
describe Fastlane::LaneManager do
describe "#init" do
it "raises an error on invalid platform" do
expect do
Fastlane::LaneManager.cruise_lane(123, nil)
end.to raise_error("platform must be a string")
end
it "raises an error on invalid lane" do
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/spec_helper.rb | Ruby | mit | 41,450 | master | 577 | Fastlane.load_actions
def before_each_fastlane
Fastlane::Actions.clear_lane_context
ENV.delete('DELIVER_SCREENSHOTS_PATH')
ENV.delete('DELIVER_SKIP_BINARY')
ENV.delete('DELIVER_VERSION')
end
def stub_plugin_exists_on_rubygems(plugin_name, exists)
stub_request(:get, "https://rubygems.org/api/v1/gems/fastlan... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_helper_spec.rb | Ruby | mit | 41,450 | master | 4,256 | describe Fastlane do
describe Fastlane::FastFile do
describe "#execute_action" do
let(:step_name) { "My Step" }
it "stores the action properly" do
Fastlane::Actions.execute_action(step_name) {}
result = Fastlane::Actions.executed_actions.last
expect(result[:name]).to eq(step_n... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/gradle_helper_spec.rb | Ruby | mit | 41,450 | master | 800 | describe Fastlane::Helper::GradleHelper do
describe 'parameter handling' do
it 'stores a shell-escaped version of the gradle_path when constructed' do
gradle_path = '/fake gradle/path'
helper = Fastlane::Helper::GradleHelper.new(gradle_path: gradle_path)
expect(helper.gradle_path).to eq(gradle_... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/action_spec.rb | Ruby | mit | 41,450 | master | 6,109 | describe Fastlane do
describe Fastlane::Action do
describe "#action_name" do
it "converts the :: format to a readable one" do
expect(Fastlane::Actions::IpaAction.action_name).to eq('ipa')
expect(Fastlane::Actions::IncrementBuildNumberAction.action_name).to eq('increment_build_number')
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/ruby_version_warning_spec.rb | Ruby | mit | 41,450 | master | 5,477 | require 'fastlane/cli_tools_distributor'
describe Fastlane::CLIToolsDistributor do
describe "Ruby version warning" do
before(:each) do
# Need to make sure we don't actually trigger at_exit during tests in a way that interferes
allow(Fastlane::CLIToolsDistributor).to receive(:at_exit)
end
it ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/supported_platforms.rb | Ruby | mit | 41,450 | master | 920 | describe Fastlane do
describe Fastlane::Action do
describe "#all" do
it "Contains 3 default supported platforms" do
expect(Fastlane::SupportedPlatforms.all.count).to eq(3)
end
end
describe "#extra=" do
after :each do
Fastlane::SupportedPlatforms.extra = []
end
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/swift_fastlane_function_spec.rb | Ruby | mit | 41,450 | master | 6,393 | describe Fastlane do
describe Fastlane::SwiftFunction do
describe 'swift_parameter_documentation' do
it 'generates nil for functions with 0 parameters' do
swift_function = Fastlane::SwiftFunction.new
output = swift_function.swift_parameter_documentation
expect(output).to be_nil
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/lane_list_spec.rb | Ruby | mit | 41,450 | master | 2,495 | require 'fastlane/lane_list'
describe Fastlane do
describe Fastlane::LaneList do
it "#generate" do
result = Fastlane::LaneList.generate('./fastlane/spec/fixtures/fastfiles/FastfileGrouped')
expect(result).to include("fastlane ios beta")
expect(result).to include("Build and upload a new build t... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/action_collector_spec.rb | Ruby | mit | 41,450 | master | 1,074 | describe Fastlane::ActionCollector do
before(:all) { ENV.delete("FASTLANE_OPT_OUT_USAGE") }
let(:collector) { Fastlane::ActionCollector.new }
describe "#determine_version" do
it "accesses the version number of the other tools" do
expect(collector.determine_version(:gym)).to eq(Fastlane::VERSION)
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/lane_manager_base_spec.rb | Ruby | mit | 41,450 | master | 1,320 | describe Fastlane do
describe Fastlane::LaneManagerBase do
describe "#print_lane_context" do
it "prints lane context" do
Fastlane::Actions.lane_context[Fastlane::Actions::SharedValues::LANE_NAME] = "test"
cleaned_row_data = [[:LANE_NAME, "test"]]
table_data = FastlaneCore::PrintTab... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/cli_tools_distributor_spec.rb | Ruby | mit | 41,450 | master | 6,334 | require 'fastlane/cli_tools_distributor'
describe Fastlane::CLIToolsDistributor do
around do |example|
# FASTLANE_SKIP_UPDATE_CHECK: prevent the update checker to run and clutter the output
# (Fastlane::PluginUpdateManager.start_looking_for_updates() will return)
# FASTLANE_DISABLE_ANIMATION: prevent the... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/env_spec.rb | Ruby | mit | 41,450 | master | 2,391 | require "fastlane/environment_printer"
require "fastlane/cli_tools_distributor"
describe Fastlane do
describe Fastlane::EnvironmentPrinter do
before do
stub_request(:get, %r{https://rubygems\.org\/api\/v1\/gems\/.*}).
to_return(status: 200, body: '{"version": "0.16.2"}', headers: {})
end
l... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/docs_generator_spec.rb | Ruby | mit | 41,450 | master | 1,730 | require 'fastlane/documentation/docs_generator'
describe Fastlane do
describe Fastlane::DocsGenerator do
it "generates new markdown docs" do
output_path = "/tmp/documentation.md"
ff = Fastlane::FastFile.new('./fastlane/spec/fixtures/fastfiles/FastfileGrouped')
Fastlane::DocsGenerator.run(ff, ou... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/console_spec.rb | Ruby | mit | 41,450 | master | 1,486 | require 'fastlane/console'
describe Fastlane::Console do
describe '.execute' do
let(:irb_instance) { instance_double(IRB::Irb) }
let(:irb_context) { instance_double(IRB::Context) }
before do
allow(IRB).to receive(:setup)
allow(IRB::Irb).to receive(:new).and_return(irb_instance)
allow(i... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/fast_file_spec.rb | Ruby | mit | 41,450 | master | 26,004 | describe Fastlane do
describe Fastlane::FastFile do
describe "#initialize" do
it "raises an error if file does not exist" do
expect do
Fastlane::FastFile.new('./fastlane/spec/fixtures/fastfiles/fastfileNotHere')
end.to raise_exception("Could not find Fastfile at path './fastlane/sp... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/unused_options_spec.rb | Ruby | mit | 41,450 | master | 2,572 | describe Fastlane do
describe Fastlane::Action do
describe "No unused options" do
let(:all_exceptions) do
%w(
pilot
appstore
cert
deliver
gym
match
pem
produce
scan
sigh
snapshot
p... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/helper/s3_client_helper_spec.rb | Ruby | mit | 41,450 | master | 2,738 | describe Fastlane::Helper::S3ClientHelper do
subject { described_class.new(s3_client: instance_double('Aws::S3::Client')) }
describe '#find_bucket!' do
before { class_double('Aws::S3::Bucket', new: bucket).as_stubbed_const }
context 'when bucket found' do
let(:bucket) { instance_double('Aws::S3::Buc... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/helper/adb_helper_spec.rb | Ruby | mit | 41,450 | master | 3,385 | describe Fastlane::Helper::AdbHelper do
before do
stub_const('ENV', { 'ANDROID_HOME' => '/usr/local/android-sdk' })
end
describe "#load_all_devices" do
context 'adb host' do
it 'no host specified' do
devices = Fastlane::Helper::AdbHelper.new
expect(devices.host_option).to eq(nil)
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/helper/plugin_scores_helper_spec.rb | Ruby | mit | 41,450 | master | 1,010 | require_relative '../../helper/plugin_scores_helper.rb'
describe Fastlane::Helper::PluginScoresHelper::FastlaneActionFileParser do
describe 'parsing' do
it "parses single line action's description" do
action_file = './fastlane/spec/fixtures/plugins/single_line_description_action.rb'
actions = Fastlan... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/helper/xcodes_helper_spec.rb | Ruby | mit | 41,450 | master | 1,685 | describe Fastlane::Helper::XcodesHelper do
describe ".read_xcode_version_file" do
let(:xcode_version_path) { ".xcode-version" }
context ".xcode-version file exists" do
before do
allow(Dir).to receive(:glob).with(".xcode-version").and_return([xcode_version_path])
allow(File).to receive(:... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/helper/sh_helper_spec.rb | Ruby | mit | 41,450 | master | 5,420 | require "stringio"
describe Fastlane::Actions do
describe "#sh" do
before do
allow(FastlaneCore::Helper).to receive(:sh_enabled?).and_return(true)
end
context "external commands are failed" do
context "with error_callback" do
it "doesn't raise shell_error" do
allow(Fastlane... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/helper/podspec_helper_spec.rb | Ruby | mit | 41,450 | master | 4,063 | require "stringio"
describe Fastlane::Actions do
describe "#podspechelper" do
before do
@version_podspec_file = Fastlane::Helper::PodspecHelper.new
end
it "raises an exception when an incorrect path is given" do
expect do
Fastlane::Helper::PodspecHelper.new('invalid_podspec')
e... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/helper/lane_helper_spec.rb | Ruby | mit | 41,450 | master | 1,461 | require "stringio"
describe Fastlane::Actions do
describe "#lanespechelper" do
describe "current_platform" do
it "no platform" do
Fastlane::Actions.lane_context[Fastlane::Actions::SharedValues::PLATFORM_NAME] = nil
expect(Fastlane::Helper::LaneHelper.current_platform).to eq(nil)
end
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/helper/tool_name_formatting_helper_spec.rb | Ruby | mit | 41,450 | master | 1,192 | require_relative '../../helper/tool_name_formatting_helper.rb'
describe Fastlane::Helper::ToolNameFormattingHelper do
let(:fixture_path) { 'fastlane/spec/fixtures/fastfiles/tool_name_formatting.txt' }
before(:each) do
@helper = Fastlane::Helper::ToolNameFormattingHelper.new(path: fixture_path, is_documenting_i... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/helper/dotenv_helper_spec.rb | Ruby | mit | 41,450 | master | 2,604 | require 'dotenv'
describe Fastlane::Helper::DotenvHelper do
describe "#load_dot_env" do
it "does not load dotenvs when there is no directory" do
expect(subject.class).to receive(:find_dotenv_directory).and_return(nil)
expect(subject.class).to_not(receive(:load_dot_envs_from))
subject.class.load... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/helper/xcodeproj_helper_spec.rb | Ruby | mit | 41,450 | master | 1,760 | require 'fileutils'
require 'tmpdir'
describe Fastlane::Actions do
describe '#xcodeproj_helper' do
PATH = 'Project.xcodeproj'.freeze
SECONDARY_PATH = 'Secondary/Project.xcodeproj'.freeze
COCOAPODS_PATH = 'Pods/Pod.xcodeproj'.freeze
COCOAPODS_FRAMEWORK_EXAMPLE_PATH = 'Pods/Alamofire/Example/iOS Exampl... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/notification/slack_spec.rb | Ruby | mit | 41,450 | master | 1,861 | describe Fastlane::Notification::Slack do
describe Fastlane::Notification::Slack::LinkConverter do
it 'should convert HTML anchor tag to Slack link format' do
{
%|Hello <a href="https://fastlane.tools">fastlane</a>| => 'Hello <https://fastlane.tools|fastlane>',
%|Hello <a href='https://fastl... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/plugins_specs/plugin_info_collector_spec.rb | Ruby | mit | 41,450 | master | 9,942 | describe Fastlane::PluginInfoCollector do
let(:test_ui) do
ui = Fastlane::PluginGeneratorUI.new
allow(ui).to receive(:message)
allow(ui).to receive(:input).and_raise(":input call was not mocked!")
allow(ui).to receive(:confirm).and_raise(":confirm call was not mocked!")
ui
end
before do
[... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/plugins_specs/plugin_manager_spec.rb | Ruby | mit | 41,450 | master | 10,948 | describe Fastlane do
describe Fastlane::PluginManager do
let(:plugin_manager) { Fastlane::PluginManager.new }
describe "#gemfile_path" do
it "returns an absolute path if Gemfile available" do
expect(plugin_manager.gemfile_path).to eq(File.expand_path("./Gemfile"))
end
it "returns ni... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/plugins_specs/plugin_update_manager_spec.rb | Ruby | mit | 41,450 | master | 1,043 | describe Fastlane::PluginUpdateManager do
describe "#show_update_status" do
before(:each) do
ENV.delete("FASTLANE_SKIP_UPDATE_CHECK")
end
it "does nothing if no updates are available" do
Fastlane::PluginUpdateManager.show_update_status
end
it "prints out a table if updates are availa... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/plugins_specs/plugin_generator_spec.rb | Ruby | mit | 41,450 | master | 11,926 | require 'rubygems'
initialized = false
test_ui = nil
generator = nil
tmp_dir = nil
oldwd = nil
describe Fastlane::PluginGenerator do
describe '#generate' do
let(:plugin_info) { Fastlane::PluginInfo.new('tester_thing', 'Fabricio Devtoolio', 'fabric.devtools@gmail.com', 'summary', 'details') }
let(:plugin_nam... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/plugins_specs/plugin_fetcher_spec.rb | Ruby | mit | 41,450 | master | 1,833 | describe Fastlane do
describe Fastlane::PluginFetcher do
describe "#fetch_gems" do
before do
current_gem = "yolo"
# We have to stub both a specific search, and the general listing
stub_request(:get, "https://rubygems.org/api/v1/search.json?page=1&query=fastlane-plugin-#{current_gem}"... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/plugins_specs/plugin_generator_ui_spec.rb | Ruby | mit | 41,450 | master | 497 | describe Fastlane::PluginGeneratorUI do
let(:ui) { Fastlane::PluginGeneratorUI.new }
describe '#message' do
it 'calls puts' do
expect(ui).to receive(:puts).with('hi')
ui.message('hi')
end
end
describe '#input' do
it 'calls UI#input' do
expect(UI).to receive(:input).with('hi')
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/plugins_specs/plugin_info_spec.rb | Ruby | mit | 41,450 | master | 1,145 | describe Fastlane::PluginInfo do
describe 'object equality' do
it "detects equal PluginInfo objects" do
object_a = Fastlane::PluginInfo.new('name', 'Me', 'me@you.com', 'summary', 'details')
object_b = Fastlane::PluginInfo.new('name', 'Me', 'me@you.com', 'summary', 'details')
expect(object_a).to ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/ensure_no_debug_code_spec.rb | Ruby | mit | 41,450 | master | 3,777 | describe Fastlane do
describe Fastlane::FastFile do
describe "ensure_no_debug_code" do
before :each do
allow(FastlaneCore::FastlaneFolder).to receive(:path).and_return(nil)
end
it "handles extension and extensions parameters correctly" do
result = Fastlane::FastFile.new.parse("l... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/swiftlint_spec.rb | Ruby | mit | 41,450 | master | 19,319 | describe Fastlane do
describe Fastlane::FastFile do
describe "SwiftLint" do
let(:swiftlint_gem_version) { Gem::Version.new('0.11.0') }
let(:output_file) { "swiftlint.result.json" }
let(:config_file) { ".swiftlint-ci.yml" }
before :each do
allow(Fastlane::Actions::SwiftlintAction).... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/set_build_number_repository_spec.rb | Ruby | mit | 41,450 | master | 1,852 | describe Fastlane do
describe Fastlane::FastFile do
context "set build number repository" do
before do
allow(Fastlane::Actions::IncrementBuildNumberAction).to receive(:system).with(/agvtool/).and_return(true)
expect(Fastlane::Actions::GetBuildNumberRepositoryAction).to receive(:run).and_retu... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/xcode_server_get_assets_spec.rb | Ruby | mit | 41,450 | master | 3,510 | describe Fastlane do
describe Fastlane::FastFile do
describe "xcode_server_get_assets" do
it "fails if server is unavailable" do
stub_request(:get, "https://1.2.3.4:20343/api/bots").to_return(status: 500)
begin
result = Fastlane::FastFile.new.parse("lane :test do
xcode... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/modify_services_spec.rb | Ruby | mit | 41,450 | master | 1,645 | require 'produce/service'
describe Fastlane do
describe Fastlane::FastFile do
describe "modify_services" do
it 'sends enable and disable with strings, symbols, and booleans' do
allow(Produce).to receive(:config)
expect(Produce::Service).to receive(:enable) do |options, args|
expec... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/supply_spec.rb | Ruby | mit | 41,450 | master | 9,377 | describe Fastlane do
describe Fastlane::FastFile do
describe "supply" do
let(:apk_path) { "app/my.apk" }
let(:apk_paths) { ["app/my1.apk", "app/my2.apk"] }
let(:wrong_apk_paths) { ['wrong.apk', 'nope.apk'] }
let(:aab_path) { "app/bundle.aab" }
let(:aab_paths_unique) { ["app/bundle1.a... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/min_fastlane_version_spec.rb | Ruby | mit | 41,450 | master | 2,421 | describe Fastlane do
describe Fastlane::FastFile do
describe "min_fastlane_version action" do
it "works as expected" do
Fastlane::FastFile.new.parse("lane :test do
min_fastlane_version '0.1'
end").runner.execute(:test)
end
it "raises an exception if it's an old version... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/hockey_spec.rb | Ruby | mit | 41,450 | master | 8,913 | describe Fastlane do
describe Fastlane::FastFile do
describe "Hockey Integration" do
before :each do
allow(FastlaneCore::FastlaneFolder).to receive(:path).and_return(nil)
end
it "raises an error if no build file was given" do
expect do
Fastlane::FastFile.new.parse("lan... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.