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 | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/age_rating_declaration.rb | Ruby | mit | 41,450 | master | 7,024 | require_relative '../model'
module Spaceship
class ConnectAPI
class AgeRatingDeclaration
include Spaceship::ConnectAPI::Model
# Rating
attr_accessor :alcohol_tobacco_or_drug_use_or_references
attr_accessor :contests
attr_accessor :gambling_simulated
attr_accessor :guns_or_othe... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/pre_release_version.rb | Ruby | mit | 41,450 | master | 376 | require_relative '../model'
module Spaceship
class ConnectAPI
class PreReleaseVersion
include Spaceship::ConnectAPI::Model
attr_accessor :version
attr_accessor :platform
attr_mapping({
"version" => "version",
"platform" => "platform"
})
def self.type
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/beta_app_localization.rb | Ruby | mit | 41,450 | master | 734 | require_relative '../model'
module Spaceship
class ConnectAPI
class BetaAppLocalization
include Spaceship::ConnectAPI::Model
attr_accessor :feedback_email
attr_accessor :marketing_url
attr_accessor :privacy_policy_url
attr_accessor :tv_os_privacy_policy
attr_accessor :descript... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/beta_app_review_detail.rb | Ruby | mit | 41,450 | master | 938 | require_relative '../model'
module Spaceship
class ConnectAPI
class BetaAppReviewDetail
include Spaceship::ConnectAPI::Model
attr_accessor :contact_first_name
attr_accessor :contact_last_name
attr_accessor :contact_phone
attr_accessor :contact_email
attr_accessor :demo_account... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/user.rb | Ruby | mit | 41,450 | master | 4,314 | require_relative '../model'
module Spaceship
class ConnectAPI
class User
include Spaceship::ConnectAPI::Model
attr_accessor :username
attr_accessor :first_name
attr_accessor :last_name
attr_accessor :email
attr_accessor :preferred_currency_territory
attr_accessor :agreed... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/beta_tester.rb | Ruby | mit | 41,450 | master | 3,481 | require_relative '../model'
module Spaceship
class ConnectAPI
class BetaTester
include Spaceship::ConnectAPI::Model
attr_accessor :first_name
attr_accessor :last_name
attr_accessor :email
attr_accessor :invite_type
attr_accessor :beta_tester_state
attr_accessor :is_delet... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/capabilities.rb | Ruby | mit | 41,450 | master | 580 | require_relative '../model'
module Spaceship
class ConnectAPI
class Capabilities
include Spaceship::ConnectAPI::Model
attr_accessor :name
attr_accessor :description
attr_mapping({
"name" => "name",
"description" => "description",
})
def self.type
ret... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/app_store_version.rb | Ruby | mit | 41,450 | master | 9,188 | require_relative '../model'
require_relative './app_store_review_detail'
require_relative './app_store_version_localization'
module Spaceship
class ConnectAPI
class AppStoreVersion
include Spaceship::ConnectAPI::Model
attr_accessor :platform
attr_accessor :version_string
attr_accessor :a... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/review_submission_item.rb | Ruby | mit | 41,450 | master | 1,181 | require_relative '../model'
module Spaceship
class ConnectAPI
class ReviewSubmissionItem
include Spaceship::ConnectAPI::Model
attr_accessor :state
attr_accessor :app_store_version_experiment
attr_accessor :app_store_version
attr_accessor :app_store_product_page_version
attr_... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/build_bundle_file_sizes.rb | Ruby | mit | 41,450 | master | 850 | require_relative '../model'
module Spaceship
class ConnectAPI
class BuildBundleFileSizes
include Spaceship::ConnectAPI::Model
attr_accessor :device_model
attr_accessor :os_version
attr_accessor :download_bytes
attr_accessor :install_bytes
attr_mapping({
"deviceModel" ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/app_price.rb | Ruby | mit | 41,450 | master | 373 | require_relative '../model'
module Spaceship
class ConnectAPI
class AppPrice
include Spaceship::ConnectAPI::Model
attr_accessor :start_date
attr_accessor :price_tier
attr_mapping({
"startDate" => "start_date",
"priceTier" => "price_tier"
})
def self.type
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/bundle_id_capability.rb | Ruby | mit | 41,450 | master | 5,160 | require_relative '../model'
module Spaceship
class ConnectAPI
class BundleIdCapability
include Spaceship::ConnectAPI::Model
attr_accessor :capability_type
attr_accessor :settings
attr_mapping({
"capabilityType" => "capability_type",
"settings" => "settings"
})
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/build.rb | Ruby | mit | 41,450 | master | 6,402 | require_relative '../model'
require 'spaceship/test_flight/build'
module Spaceship
class ConnectAPI
class Build
include Spaceship::ConnectAPI::Model
attr_accessor :version
attr_accessor :uploaded_date
attr_accessor :expiration_date
attr_accessor :expired
attr_accessor :min_os_... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/app_store_version_submission.rb | Ruby | mit | 41,450 | master | 586 | require_relative '../model'
module Spaceship
class ConnectAPI
class AppStoreVersionSubmission
include Spaceship::ConnectAPI::Model
attr_accessor :can_reject
attr_mapping({
"canReject" => "can_reject"
})
def self.type
return "appStoreVersionSubmissions"
end
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/beta_feedback.rb | Ruby | mit | 41,450 | master | 2,365 | require_relative '../model'
module Spaceship
class ConnectAPI
class BetaFeedback
include Spaceship::ConnectAPI::Model
attr_accessor :timestamp
attr_accessor :comment
attr_accessor :email_address
attr_accessor :device_model
attr_accessor :os_version
attr_accessor :bookmar... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/app.rb | Ruby | mit | 41,450 | master | 18,261 | require_relative '../model'
require_relative './build'
# rubocop:disable Metrics/ClassLength
module Spaceship
class ConnectAPI
class App
include Spaceship::ConnectAPI::Model
attr_accessor :name
attr_accessor :bundle_id
attr_accessor :sku
attr_accessor :primary_locale
attr_acc... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/profile.rb | Ruby | mit | 41,450 | master | 4,004 | require_relative '../../connect_api'
module Spaceship
class ConnectAPI
class Profile
include Spaceship::ConnectAPI::Model
attr_accessor :name
attr_accessor :platform
attr_accessor :profile_content
attr_accessor :uuid
attr_accessor :created_date
attr_accessor :profile_st... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/territory_availability.rb | Ruby | mit | 41,450 | master | 3,031 | require_relative '../model'
module Spaceship
class ConnectAPI
class TerritoryAvailability
include Spaceship::ConnectAPI::Model
attr_accessor :available
attr_accessor :content_statuses
attr_accessor :pre_order_enabled
attr_accessor :pre_order_publish_date
attr_accessor :release... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/territory.rb | Ruby | mit | 41,450 | master | 605 | require_relative '../model'
module Spaceship
class ConnectAPI
class Territory
include Spaceship::ConnectAPI::Model
attr_accessor :currency
attr_mapping({
"currency" => "currency"
})
def self.type
return "territories"
end
#
# API
#
de... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/resolution_center_thread.rb | Ruby | mit | 41,450 | master | 2,138 | require_relative '../model'
module Spaceship
class ConnectAPI
class ResolutionCenterThread
include Spaceship::ConnectAPI::Model
attr_accessor :state
attr_accessor :can_developer_add_node
attr_accessor :objectionable_content
attr_accessor :thread_type
attr_accessor :created_da... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/build_delivery.rb | Ruby | mit | 41,450 | master | 999 | require_relative '../model'
module Spaceship
class ConnectAPI
class BuildDelivery
include Spaceship::ConnectAPI::Model
attr_accessor :cf_build_version
attr_accessor :cf_build_short_version_string
attr_accessor :platform
attr_accessor :uploaded_date
attr_mapping({
"cfB... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/app_preview.rb | Ruby | mit | 41,450 | master | 4,426 | require_relative '../model'
require_relative '../file_uploader'
require 'spaceship/globals'
require 'digest/md5'
module Spaceship
class ConnectAPI
class AppPreview
include Spaceship::ConnectAPI::Model
attr_accessor :file_size
attr_accessor :file_name
attr_accessor :source_file_checksum
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/app_availability.rb | Ruby | mit | 41,450 | master | 523 | require_relative '../model'
module Spaceship
class ConnectAPI
class AppAvailability
include Spaceship::ConnectAPI::Model
attr_accessor :app
attr_accessor :available_in_new_territories
attr_accessor :territoryAvailabilities
attr_mapping({
app: 'app',
availableIn... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/beta_group.rb | Ruby | mit | 41,450 | master | 2,151 | require_relative '../model'
module Spaceship
class ConnectAPI
class BetaGroup
include Spaceship::ConnectAPI::Model
attr_accessor :name
attr_accessor :created_date
attr_accessor :is_internal_group
attr_accessor :public_link_enabled
attr_accessor :public_link_id
attr_acces... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/app_price_point.rb | Ruby | mit | 41,450 | master | 526 | require_relative '../model'
module Spaceship
class ConnectAPI
class AppPricePoint
include Spaceship::ConnectAPI::Model
attr_accessor :customer_price
attr_accessor :proceeds
attr_accessor :price_tier
attr_accessor :territory
attr_mapping({
"customerPrice" => "custome... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/app_store_version_release_request.rb | Ruby | mit | 41,450 | master | 244 | require_relative '../model'
module Spaceship
class ConnectAPI
class AppStoreVersionReleaseRequest
include Spaceship::ConnectAPI::Model
def self.type
return "appStoreVersionReleaseRequests"
end
end
end
end |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/resolution_center_message.rb | Ruby | mit | 41,450 | master | 622 | require_relative '../model'
require_relative './actor'
require_relative './review_rejection'
module Spaceship
class ConnectAPI
class ResolutionCenterMessage
include Spaceship::ConnectAPI::Model
attr_accessor :message_body
attr_accessor :created_date
attr_accessor :rejections
attr_a... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/app_screenshot.rb | Ruby | mit | 41,450 | master | 6,344 | require_relative '../model'
require_relative '../file_uploader'
require_relative './app_screenshot_set'
require 'spaceship/globals'
require 'digest/md5'
module Spaceship
class ConnectAPI
class AppScreenshot
include Spaceship::ConnectAPI::Model
attr_accessor :file_size
attr_accessor :file_name... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/actor.rb | Ruby | mit | 41,450 | master | 576 | require_relative '../model'
module Spaceship
class ConnectAPI
class Actor
include Spaceship::ConnectAPI::Model
attr_accessor :actor_type
attr_accessor :user_first_name
attr_accessor :user_last_name
attr_accessor :user_email
attr_accessor :api_key_id
attr_mapping({
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/beta_screenshot.rb | Ruby | mit | 41,450 | master | 320 | require_relative '../model'
module Spaceship
class ConnectAPI
class BetaScreenshot
include Spaceship::ConnectAPI::Model
attr_accessor :image_assets
attr_mapping({
"imageAssets" => "image_assets"
})
def self.type
return "betaScreenshots"
end
end
end
end |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb | Ruby | mit | 41,450 | master | 4,364 | require_relative '../model'
require_relative './app_preview_set'
require_relative './app_screenshot_set'
require_relative '../../errors'
module Spaceship
class ConnectAPI
class AppStoreVersionLocalization
include Spaceship::ConnectAPI::Model
attr_accessor :description
attr_accessor :locale
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/app_data_usage_grouping.rb | Ruby | mit | 41,450 | master | 318 | require_relative '../model'
module Spaceship
class ConnectAPI
class AppDataUsageGrouping
include Spaceship::ConnectAPI::Model
attr_accessor :deleted
attr_mapping({
"deleted" => "deleted"
})
def self.type
return "appDataUsageGroupings"
end
end
end
end |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/app_info_localization.rb | Ruby | mit | 41,450 | master | 1,415 | require_relative '../model'
require_relative '../../errors'
module Spaceship
class ConnectAPI
class AppInfoLocalization
include Spaceship::ConnectAPI::Model
attr_accessor :locale
attr_accessor :name
attr_accessor :subtitle
attr_accessor :privacy_policy_url
attr_accessor :priva... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/build_upload.rb | Ruby | mit | 41,450 | master | 1,121 | require_relative '../model'
module Spaceship
class ConnectAPI
class BuildUpload
include Spaceship::ConnectAPI::Model
attr_accessor :cf_build_version
attr_accessor :cf_build_short_version_string
attr_accessor :created_date
attr_accessor :state
attr_accessor :platform
attr... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/app_preview_set.rb | Ruby | mit | 41,450 | master | 5,285 | require_relative '../model'
require_relative './app_preview'
module Spaceship
class ConnectAPI
class AppPreviewSet
include Spaceship::ConnectAPI::Model
attr_accessor :preview_type
attr_accessor :app_previews
module PreviewType
# https://developer.apple.com/documentation/appstor... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/app_store_review_attachment.rb | Ruby | mit | 41,450 | master | 2,074 | require_relative '../model'
require_relative '../file_uploader'
require 'digest/md5'
module Spaceship
class ConnectAPI
class AppStoreReviewAttachment
include Spaceship::ConnectAPI::Model
attr_accessor :file_name
attr_accessor :source_file_checksum
attr_accessor :upload_operations
a... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/build_bundle.rb | Ruby | mit | 41,450 | master | 2,181 | require_relative '../model'
require_relative './build_bundle_file_sizes'
module Spaceship
class ConnectAPI
class BuildBundle
include Spaceship::ConnectAPI::Model
attr_accessor :bundle_id
attr_accessor :bundle_type
attr_accessor :sdk_build
attr_accessor :platform_build
attr_acc... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/webhook.rb | Ruby | mit | 41,450 | master | 2,668 | require_relative '../model'
module Spaceship
class ConnectAPI
class Webhook
include Spaceship::ConnectAPI::Model
attr_accessor :enabled
attr_accessor :event_types
attr_accessor :name
attr_accessor :url
attr_mapping({
"enabled" => "enabled",
"eventTypes" => "e... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/models/review_submission.rb | Ruby | mit | 41,450 | master | 2,830 | require_relative '../model'
require_relative './review_submission_item'
module Spaceship
class ConnectAPI
class ReviewSubmission
include Spaceship::ConnectAPI::Model
attr_accessor :platform
attr_accessor :state
attr_accessor :submitted_date
attr_accessor :app_store_version_for_rev... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/provisioning/client.rb | Ruby | mit | 41,450 | master | 3,214 | require_relative '../api_client'
require_relative './provisioning'
require_relative '../../portal/portal_client'
module Spaceship
class ConnectAPI
module Provisioning
class Client < Spaceship::ConnectAPI::APIClient
def initialize(cookie: nil, current_team_id: nil, token: nil, another_client: nil)
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/connect_api/provisioning/provisioning.rb | Ruby | mit | 41,450 | master | 8,974 | require 'spaceship/connect_api/provisioning/client'
module Spaceship
class ConnectAPI
module Provisioning
module API
module Version
V1 = "v1"
end
def provisioning_request_client=(provisioning_request_client)
@provisioning_request_client = provisioning_request_cl... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/portal/portal_base.rb | Ruby | mit | 41,450 | master | 344 | require_relative '../base'
module Spaceship
class PortalBase < Spaceship::Base
class << self
def client
require_relative 'spaceship'
(
@client or
Spaceship::Portal.client or
raise "Please login using `Spaceship::Portal.login('user', 'password')`"
)
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/portal/portal_client.rb | Ruby | mit | 41,450 | master | 28,859 | require_relative '../client'
require_relative 'app'
require_relative 'app_group'
require_relative 'cloud_container'
require_relative 'device'
require_relative 'merchant'
require_relative 'passbook'
require_relative 'provisioning_profile'
require_relative 'certificate'
require_relative 'website_push'
require_relative '... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/portal/device.rb | Ruby | mit | 41,450 | master | 7,085 | require_relative 'portal_base'
module Spaceship
module Portal
# Represents a device from the Apple Developer Portal
class Device < PortalBase
# @return (String) The ID given from the developer portal. You'll probably not need it.
# @example
# "XJXGVS46MW"
attr_accessor :id
# ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/portal/provisioning_profile_template.rb | Ruby | mit | 41,450 | master | 1,562 | require_relative 'portal_base'
module Spaceship
module Portal
class ProvisioningProfileTemplate < PortalBase
##
# Data model representing a provisioning profile template
# @return (String) Template's description
# @example
# "Subscription Service iOS (dist)"
attr_accessor :... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/portal/portal.rb | Ruby | mit | 41,450 | master | 654 | require 'spaceship/portal/portal_base'
require 'spaceship/portal/app'
require 'spaceship/portal/website_push'
require 'spaceship/portal/app_group'
require 'spaceship/portal/app_service'
require 'spaceship/portal/certificate'
require 'spaceship/portal/cloud_container'
require 'spaceship/portal/device'
require 'spaceship... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/portal/persons.rb | Ruby | mit | 41,450 | master | 1,772 | require_relative 'person'
require_relative 'invite'
module Spaceship
module Portal
class Persons < PortalBase
class << self
def all
members = client.team_members
all_members = []
member = factory_member(members["members"], "member")
admins = factory_member(me... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/portal/cloud_container.rb | Ruby | mit | 41,450 | master | 2,305 | require_relative 'portal_base'
module Spaceship
module Portal
# Represents an iCloud Container of the Apple Dev Portal
class CloudContainer < PortalBase
# @return (String) The identifier assigned to this container
# @example
# "iCloud.com.example.application"
attr_accessor :identifi... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/portal/app_service.rb | Ruby | mit | 41,450 | master | 3,395 | module Spaceship
module Portal
# Represents a single application service (its state to be more precise) on the Apple Dev Portal
class AppService
# @return (String) The identifier used by the Dev Portal to represent this service
# @example
# "homeKit"
attr_accessor :service_id
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/portal/provisioning_profile.rb | Ruby | mit | 41,450 | master | 21,413 | require_relative 'app'
require_relative 'device'
require_relative 'certificate'
require_relative 'provisioning_profile_template'
module Spaceship
module Portal
# Represents a provisioning profile of the Apple Dev Portal
#
# NOTE: If the environment variable `SPACESHIP_AVOID_XCODE_API` is present when usi... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/portal/person.rb | Ruby | mit | 41,450 | master | 1,551 | require_relative 'portal_base'
module Spaceship
module Portal
class Person < PortalBase
# @return (String) Person Id
attr_accessor :person_id
# @return (String) First name
attr_accessor :firstname
# @return (String) Last name
attr_accessor :lastname
# @return (String)... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/portal/invite.rb | Ruby | mit | 41,450 | master | 1,430 | require_relative 'portal_base'
module Spaceship
module Portal
class Invite < PortalBase
# @return (String) Invite Id
attr_accessor :invite_id
# @return (String) Inviter name
attr_accessor :inviter_name
# @return (String) Recipient Email Address
attr_accessor :email_address
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/portal/certificate.rb | Ruby | mit | 41,450 | master | 13,662 | require 'openssl'
require_relative 'app'
require_relative 'website_push'
module Spaceship
module Portal
# Represents a certificate from the Apple Developer Portal.
#
# This can either be a code signing identity or a push profile
class Certificate < PortalBase
# @return (String) The ID given fr... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/portal/app.rb | Ruby | mit | 41,450 | master | 7,098 | require_relative 'portal_base'
require_relative 'app_group'
require_relative 'cloud_container'
module Spaceship
module Portal
# Represents an App ID from the Developer Portal
class App < PortalBase
# @return (String) The identifier of this app, provided by the Dev Portal
# @example
# "RGA... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/portal/website_push.rb | Ruby | mit | 41,450 | master | 2,798 | require_relative 'portal_base'
module Spaceship
module Portal
# Represents an Website Push ID from the Developer Portal
class WebsitePush < PortalBase
# @return (String) The identifier of this website push, provided by the Dev Portal
# @example
# "RGAWZGXSAA"
attr_accessor :website_... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/portal/passbook.rb | Ruby | mit | 41,450 | master | 2,248 | require_relative 'portal_base'
module Spaceship
module Portal
# Represents an Passbook ID from the Developer Portal
class Passbook < PortalBase
# @return (String) The identifier of this passbook, provided by the Dev Portal
# @example
# "RGAWZGXSAA"
attr_accessor :passbook_id
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/portal/key.rb | Ruby | mit | 41,450 | master | 2,728 | require_relative 'portal_base'
module Spaceship
module Portal
class Key < PortalBase
##
# data model for managing JWT tokens or "Keys" as the ADP refers to them
APNS_ID = 'U27F4V844T'
DEVICE_CHECK_ID = 'DQ8HTZ7739'
MUSIC_KIT_ID = '6A7HVUVQ3M'
attr_accessor :id
attr_acc... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/portal/spaceship.rb | Ruby | mit | 41,450 | master | 4,485 | require_relative 'portal_client'
require_relative 'app_service'
module Spaceship
module Portal
class << self
# This client stores the default client when using the lazy syntax
# Spaceship.app instead of using the spaceship launcher
attr_accessor :client
# Authenticates with Apple's web s... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/portal/app_group.rb | Ruby | mit | 41,450 | master | 2,081 | require_relative 'portal_base'
module Spaceship
module Portal
# Represents an app group of the Apple Dev Portal
class AppGroup < PortalBase
# @return (String) The identifier assigned to this group
# @example
# "group.com.example.application"
attr_accessor :group_id
# @return ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/portal/merchant.rb | Ruby | mit | 41,450 | master | 2,614 | require_relative 'portal_base'
module Spaceship
module Portal
# Represents a Merchant ID from the Developer Portal
class Merchant < PortalBase
# @return (String) The identifier of this merchant, provided by the Dev Portal
# @example
# "LM1UX73BAC"
attr_accessor :merchant_id
#... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/portal/legacy_wrapper.rb | Ruby | mit | 41,450 | master | 683 | require_relative 'certificate'
require_relative 'provisioning_profile'
require_relative 'device'
require_relative 'app'
require_relative 'app_group'
require_relative 'passbook'
require_relative 'website_push'
require_relative 'app_service'
require_relative 'merchant'
module Spaceship
Certificate = Spaceship::Portal:... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/portal/ui/select_team.rb | Ruby | mit | 41,450 | master | 5,402 | module Spaceship
class Client
class UserInterface
# Shows the UI to select a team
# @example teams value:
# [{"status"=>"active",
# "teamId"=>"5A997XAAAA",
# "type"=>"Company/Organization",
# "extendedTeamAttributes"=>{},
# "teamAgent"=>{
# "personId"... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/test_flight/build.rb | Ruby | mit | 41,450 | master | 7,717 | require 'time'
require_relative 'base'
require_relative 'test_info'
require_relative 'export_compliance'
require_relative 'beta_review_info'
require_relative 'build_trains'
require_relative '../connect_api'
module Spaceship
module TestFlight
class Build < Base
# @example
# "com.sample.app"
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/test_flight/group.rb | Ruby | mit | 41,450 | master | 4,610 | require_relative 'base'
require_relative 'build'
module Spaceship::TestFlight
class Group < Base
attr_accessor :id
attr_accessor :name
attr_accessor :is_default_external_group
attr_accessor :is_internal_group
attr_accessor :provider_id
attr_accessor :is_active
attr_accessor :created
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/test_flight/test_info.rb | Ruby | mit | 41,450 | master | 1,349 | require_relative 'base'
module Spaceship::TestFlight
class TestInfo < Base
# TestInfo Contains a collection of info for testers. There is one "testInfo" for each locale.
#
# For now, when we set a value it sets the same value for all locales
# When getting a value, we return the first locale values
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/test_flight/export_compliance.rb | Ruby | mit | 41,450 | master | 272 | require_relative 'base'
module Spaceship::TestFlight
class ExportCompliance < Base
attr_accessor :uses_encryption, :encryption_updated
attr_mapping({
'usesEncryption' => :uses_encryption,
'encryptionUpdated' => :encryption_updated
})
end
end |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/test_flight/base.rb | Ruby | mit | 41,450 | master | 1,163 | require_relative '../base'
require_relative '../tunes/tunes_client'
module Spaceship
module TestFlight
class Base < Spaceship::Base
def self.client
# Verify there is a client that can be used
if Spaceship::Tunes.client
# Initialize new client if new or if team changed
if... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/test_flight/tester.rb | Ruby | mit | 41,450 | master | 4,471 | require_relative 'base'
module Spaceship
module TestFlight
class Tester < Base
# @return (String) The identifier of this tester, provided by App Store Connect
# @example
# "60f858b4-60a8-428a-963a-f943a3d68d17"
attr_accessor :tester_id
# @return (String) The email of this tester
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/test_flight/app_test_info.rb | Ruby | mit | 41,450 | master | 1,165 | require_relative 'base'
require_relative 'test_info'
require_relative 'beta_review_info'
module Spaceship::TestFlight
class AppTestInfo < Base
# AppTestInfo wraps a test_info and beta_review_info in the format required to manage test_info
# for an application. Note that this structure, although looking simil... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/test_flight/build_trains.rb | Ruby | mit | 41,450 | master | 1,269 | require_relative 'base'
require_relative 'build'
module Spaceship::TestFlight
class BuildTrains < Base
##
# BuildTrains represent the collection of builds for a `train_version`
#
# Note: builds returned by BuildTrains are _partially_ complete. Properties
# such as `exportCompliance`, `testInfo` a... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/test_flight/client.rb | Ruby | mit | 41,450 | master | 12,460 | require_relative '../client'
module Spaceship
module TestFlight
class Client < Spaceship::Client
##
# Spaceship HTTP client for the testflight API.
#
# This client is solely responsible for the making HTTP requests and
# parsing their responses. Parameters should be either named par... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/lib/spaceship/test_flight/beta_review_info.rb | Ruby | mit | 41,450 | master | 661 | require_relative 'base'
module Spaceship::TestFlight
class BetaReviewInfo < Base
attr_accessor :contact_first_name, :contact_last_name, :contact_phone, :contact_email
attr_accessor :demo_account_name, :demo_account_password, :demo_account_required, :notes
attr_mapping({
'contactFirstName' => :cont... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/two_step_or_factor_client_spec.rb | Ruby | mit | 41,450 | master | 15,137 | require_relative 'mock_servers'
describe Spaceship::Client do
class TwoStepOrFactorClient < Spaceship::Client
def self.hostname
"http://example.com"
end
def ask_for_2fa_code(text)
'123'
end
def choose_phone_number(opts)
opts.first
end
def store_cookie(path: nil)
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/mock_servers.rb | Ruby | mit | 41,450 | master | 754 | require_relative 'mock_servers/test_flight_server'
require_relative 'mock_servers/developer_portal_server'
RSpec.configure do |config|
config.include(WebMock::API)
config.before do
stub_request(:any, %r(appstoreconnect\.apple.com/testflight/v2)).to_rack(MockAPI::TestFlightServer)
stub_request(:any, %r(dev... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/spec_helper.rb | Ruby | mit | 41,450 | master | 5,180 | require 'plist'
require_relative 'client_stubbing'
require_relative 'connect_api/provisioning/provisioning_stubbing'
require_relative 'connect_api/testflight/testflight_stubbing'
require_relative 'connect_api/tunes/tunes_stubbing'
require_relative 'connect_api/users/users_stubbing'
require_relative 'portal/portal_stub... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/spaceauth_spec.rb | Ruby | mit | 41,450 | master | 3,387 | require_relative 'tunes/tunes_stubbing'
require 'fastlane_core/clipboard'
describe Spaceship::SpaceauthRunner do
let(:user_cookie) { TunesStubbing.itc_read_fixture_file('spaceauth_cookie.yml') }
it 'uses all required cookies for fastlane session' do
if FastlaneCore::Helper.mac?
expect(Spaceship::Client:... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/client_spec.rb | Ruby | mit | 41,450 | master | 13,174 | describe Spaceship::Client do
class TestClient < Spaceship::Client
def self.hostname
"http://example.com"
end
def req_home
request(:get, TestClient.hostname)
end
def send_login_request(_user, _password)
true
end
end
class TestResponse
attr_accessor :body
attr_a... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/stats_middleware_spec.rb | Ruby | mit | 41,450 | master | 2,862 | describe Spaceship::StatsMiddleware do
context '#log' do
let(:app) { double('app') }
let(:middleware) { Spaceship::StatsMiddleware.new(app) }
before(:each) do
allow(Spaceship::Globals).to receive(:verbose?).and_return(true)
end
it 'with nil env' do
success = middleware.log(nil)
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/base_spec.rb | Ruby | mit | 41,450 | master | 2,073 | describe Spaceship::Base do
include_examples "common spaceship login", true
before { Spaceship.login }
let(:client) { Spaceship::App.client }
class TestBase < Spaceship::Base
attr_accessor :child
def initialize # required
end
end
describe "#inspect" do
it "contains the relevant data" do
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/client_stubbing.rb | Ruby | mit | 41,450 | master | 492 | class ClientStubbing
class << self
def client_read_fixture_file(filename)
File.read(File.join('spaceship', 'spec', 'fixtures', filename))
end
# Necessary, as we're now running this in a different context
def stub_request(*args)
WebMock::API.stub_request(*args)
end
def stub_connec... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/launcher_spec.rb | Ruby | mit | 41,450 | master | 3,034 | describe Spaceship do
describe Spaceship::Launcher do
let(:username) { 'spaceship@krausefx.com' }
let(:password) { 'so_secret' }
let(:spaceship1) { Spaceship::Launcher.new }
let(:spaceship2) { Spaceship::Launcher.new }
before do
spaceship1.login(username, password)
spaceship2.login(us... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/provisioning_profile_spec.rb | Ruby | mit | 41,450 | master | 16,720 | describe Spaceship::ProvisioningProfile do
before { Spaceship.login }
let(:client) { Spaceship::ProvisioningProfile.client }
let(:cert_id) { "C8DL7464RQ" }
describe '#all' do
let(:provisioning_profiles) { Spaceship::ProvisioningProfile.all }
it "properly retrieves and filters the provisioning profiles... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/spaceship_base_spec.rb | Ruby | mit | 41,450 | master | 2,440 | describe Spaceship::Base do
let(:client) { double('Client') }
before { Spaceship::Portal.client = double('Default Client') }
describe 'Class Methods' do
it 'will use a default client' do
expect(Spaceship::PortalBase.client).to eq(Spaceship::Portal.client)
end
it 'can set a client' do
Spa... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/spaceship_spec.rb | Ruby | mit | 41,450 | master | 1,270 | describe Spaceship do
before { Spaceship.login }
it "#select_team" do
expect(Spaceship.select_team).to eq('XXXXXXXXXX')
end
it 'should initialize with a client' do
expect(Spaceship.client).to be_instance_of(Spaceship::PortalClient)
end
it "Device" do
expect(Spaceship.device.all.count).to eq(4... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/client_pbkdf2_spec.rb | Ruby | mit | 41,450 | master | 2,458 | describe Spaceship::Client do
class TestClient < Spaceship::Client
def self.hostname
"http://example.com"
end
end
let(:subject) { TestClient.new }
describe '#pbkdf2' do
let(:password) { 'password123' }
let(:salt) { 'salt'.b }
let(:iterations) { 1000 }
let(:key_length) { 32 }
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/hashcash_spec.rb | Ruby | mit | 41,450 | master | 649 | describe Spaceship::Hashcash do
it "makes hashcash with 11 bits" do
allow_any_instance_of(Time).to receive(:strftime).and_return("20230223170600")
sha = Spaceship::Hashcash.make(bits: "11", challenge: "4d74fb15eb23f465f1f6fcbf534e5877")
expect(sha).to eq("1:11:20230223170600:4d74fb15eb23f465f1f6fcbf534e5... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/UI/select_team_spec.rb | Ruby | mit | 41,450 | master | 3,697 | describe Spaceship::Client do
describe "UI" do
describe "#select_team" do
include_examples "common spaceship login"
subject { Spaceship.client }
before do
Spaceship.login
client = Spaceship.client
end
it "uses the first team if there is only one" do
expect(... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/du/du_stubbing.rb | Ruby | mit | 41,450 | master | 12,782 | def du_fixture_file_path(filename)
File.join('spaceship', 'spec', 'du', 'fixtures', filename)
end
def du_read_fixture_file(filename)
File.read(du_fixture_file_path(filename))
end
# those represent UploadFile structures
def du_uploadimage_correct_screenshot
mock_jpg = double
allow(mock_jpg).to receive(:file_na... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/du/du_client_spec.rb | Ruby | mit | 41,450 | master | 5,794 | describe Spaceship::DUClient, :du do
before { Spaceship::Tunes.login }
let(:client) { Spaceship::AppVersion.client }
let(:app) { Spaceship::Application.all.find { |a| a.apple_id == "898536088" } }
let(:contentProviderId) { "4321" }
let(:ssoTokenForImage) { "sso token for image" }
let(:version) { app.edit_v... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/du/utilities_spec.rb | Ruby | mit | 41,450 | master | 1,199 | describe Spaceship::Utilities do
describe '#content_type' do
it 'recognizes the .jpg extension' do
expect(Spaceship::Utilities.content_type('blah.jpg')).to eq('image/jpeg')
end
it 'recognizes the .jpeg extension' do
expect(Spaceship::Utilities.content_type('blah.jpeg')).to eq('image/jpeg')
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/portal/certificate_spec.rb | Ruby | mit | 41,450 | master | 5,404 | describe Spaceship::Certificate do
# Skip tunes login and login with portal
include_examples "common spaceship login", true
before { Spaceship.login }
let(:client) { Spaceship::Portal::Certificate.client }
describe "successfully loads and parses all certificates" do
it "the number is correct" do
ex... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/portal/portal_stubbing.rb | Ruby | mit | 41,450 | master | 30,608 | class PortalStubbing
class << self
def adp_read_fixture_file(filename)
File.read(File.join('spaceship', 'spec', 'portal', 'fixtures', filename))
end
def adp_read_binary_fixture_file(filename)
File.binread(File.join('spaceship', 'spec', 'portal', 'fixtures', filename))
end
# Necessary... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/portal/persons_spec.rb | Ruby | mit | 41,450 | master | 815 | describe Spaceship::Portal::Persons do
# Skip tunes login and login with portal
include_examples "common spaceship login", true
before { Spaceship.login }
let(:client) { Spaceship::Persons.client }
it "should load all persons" do
all = Spaceship::Portal::Persons.all
expect(all.length).to eq(3)
end
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/portal/portal_permission_spec.rb | Ruby | mit | 41,450 | master | 1,513 | describe Spaceship::Portal do
describe "InsufficientPermissions" do
# Skip tunes login and login with portal
include_examples "common spaceship login", true
before { Spaceship::Portal.login }
let(:certificate) { Spaceship::Certificate.all.first }
it "raises an appropriate Developer Portal error w... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/portal/key_spec.rb | Ruby | mit | 41,450 | master | 4,273 | require 'spec_helper'
describe Spaceship::Portal::Key do
let(:mock_client) { double('MockClient') }
before do
Spaceship::Portal::Key.client = mock_client
end
describe '.all' do
it 'uses the client to fetch all keys' do
mock_client_response(:list_keys, with: no_args) do
[
{
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/portal/person_spec.rb | Ruby | mit | 41,450 | master | 1,991 | describe Spaceship::Portal::Persons do
# Skip tunes login and login with portal
include_examples "common spaceship login", true
before { Spaceship.login }
let(:client) { Spaceship::Persons.client }
it "should factor a new person object" do
joined = "2016-06-20T06:30:26Z"
attrs = {
"personId" => ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/portal/tvos_profile_spec.rb | Ruby | mit | 41,450 | master | 1,191 | describe Spaceship::ProvisioningProfile do
describe "Development tvOS Profiles" do
# Skip tunes login and login with portal
include_examples "common spaceship login", true
before do
Spaceship.login
PortalStubbing.adp_enterprise_stubbing
end
let(:client) { Spaceship::ProvisioningProfile... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/portal/passbook_spec.rb | Ruby | mit | 41,450 | master | 2,091 | describe Spaceship::Portal::Passbook do
# Skip tunes login and login with portal
include_examples "common spaceship login", true
before { Spaceship.login }
let(:client) { Spaceship::Portal::Passbook.client }
describe "successfully loads and parses all passbooks" do
it "the number is correct" do
exp... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/portal/portal_client_spec.rb | Ruby | mit | 41,450 | master | 21,333 | require_relative '../mock_servers'
require 'fastlane-sirp'
describe Spaceship::Client do
# Skip tunes login and login with portal
include_examples "common spaceship login", true
before {
Spaceship.login
}
subject { Spaceship.client }
describe '#login' do
it 'sets the session cookies' do
resp... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | spaceship/spec/portal/website_push_spec.rb | Ruby | mit | 41,450 | master | 2,259 | describe Spaceship::Portal::WebsitePush do
include_examples "common spaceship login", true
before { Spaceship.login }
let(:client) { Spaceship::Portal::WebsitePush.client }
describe "successfully loads and parses all website pushes" do
it "the number is correct" do
expect(Spaceship::Portal::WebsitePu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.