Sha256: 2c792c92b4c8aeb1e358c56582fcbd67aa7010295908da33dde5cd2dab71faba

Contents?: true

Size: 1.3 KB

Versions: 1

Compression:

Stored size: 1.3 KB

Contents

require 'mechanize'
require 'certified'

module Cupertino
  module ProvisioningPortal
    HOST = "developer.apple.com"

    class UnsuccessfulAuthenticationError < RuntimeError; end
    class UnexpectedContentError < RuntimeError; end

    class Device < Struct.new(:name, :udid)
      def to_s
        "#{self.name} #{self.udid}"
      end
    end

    class Certificate < Struct.new(:name, :type, :expiration_date, :status, :download_url) #:provisioning_profiles,
      def to_s
        "#{self.name}"
      end
    end

    class AppID < Struct.new(:bundle_seed_id, :description, :development_properties, :distribution_properties)
      def to_s
        "#{self.bundle_seed_id}"
      end
    end

    class ProvisioningProfile < Struct.new(:name, :type, :app_id, :status, :download_url, :edit_url)
      def to_s
        "#{self.name}"
      end
    end

    class PassTypeID < Struct.new(:description, :id, :pass_certificates, :card_id)
      def to_s
        "#{self.id} #{self.description}"
      end
    end

    class PassCertificate < Struct.new(:name, :status, :expiration_date, :certificate_id)
      def to_s
        "#{self.certificate_id}"
      end
    end
  end
end

require 'cupertino/provisioning_portal/helpers'
require 'cupertino/provisioning_portal/agent'
require 'cupertino/provisioning_portal/commands'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cupertino-0.8.0 ./lib/cupertino/provisioning_portal.rb