Sha256: 287387fdd7ed86a94939436e2028795637d7227f19527b7984598c3b49ad59be

Contents?: true

Size: 1.3 KB

Versions: 9

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, :enabled, :device_id)
      def to_s
        "#{self.name} #{self.udid} #{self.enabled}"
      end
    end

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

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

    class ProvisioningProfile < Struct.new(:name, :type, :app_id, :status, :expiration, :download_url, :edit_url, :identifier)
      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 Team < Struct.new(:name, :programs, :identifier)
      def to_s
        "#{self.name} (#{self.identifier})" + (" [#{self.programs.join(', ')}]" unless self.programs.empty?).to_s
      end
    end
  end
end

require 'cupertino/provisioning_portal/agent'

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cupertino-1.4.0 ./lib/cupertino/provisioning_portal.rb
cupertino-1.3.4 ./lib/cupertino/provisioning_portal.rb
cupertino-1.3.3 ./lib/cupertino/provisioning_portal.rb
cupertino-1.3.2 ./lib/cupertino/provisioning_portal.rb
cupertino-1.3.1 ./lib/cupertino/provisioning_portal.rb
cupertino-1.3.0 ./lib/cupertino/provisioning_portal.rb
cupertino-1.2.4 ./lib/cupertino/provisioning_portal.rb
cupertino-1.2.3 ./lib/cupertino/provisioning_portal.rb
cupertino-1.2.2 ./lib/cupertino/provisioning_portal.rb