lib/spaceship/portal/certificate.rb in spaceship-0.3.4 vs lib/spaceship/portal/certificate.rb in spaceship-0.4.0
- old
+ new
@@ -235,11 +235,11 @@
raise "Could not find app with bundle id '#{bundle_id}'" unless app
app_id = app.app_id
end
# ensure csr is a OpenSSL::X509::Request
- csr = OpenSSL::X509::Request.new(csr) if csr.is_a?(String)
+ csr = OpenSSL::X509::Request.new(csr) if csr.kind_of?(String)
# if this succeeds, we need to save the .cer and the private key in keychain access or wherever they go in linux
response = client.create_certificate!(type, csr.to_pem, app_id)
# munge the response to make it work for the factory
response['certificateTypeDisplayId'] = response['certificateType']['certificateTypeDisplayId']
@@ -264,10 +264,10 @@
client.revoke_certificate!(id, type_display_id)
end
# @return (Bool): Is this certificate a push profile for apps?
def is_push?
- self.kind_of?PushCertificate
+ self.kind_of? PushCertificate
end
end
end
end