Skip to content

Commit

Permalink
Add other require fields
Browse files Browse the repository at this point in the history
  • Loading branch information
kaluznyo committed Jul 24, 2012
1 parent fbe0128 commit 50f9951
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/passbook/pkpass.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ def checkPass manifest
# Check for developer field in JSON
raise 'Pass Type Identifier missing' unless @json.include?('passTypeIdentifier')
raise 'Team Identifier missing' unless @json.include?('teamIdentifier')
raise 'Serial Number missing' unless @json.include?('serialNumber')
raise 'Organization Name Identifier missing' unless @json.include?('organizationName')
raise 'Format Version' unless @json.include?('formatVersion')
raise 'Description' unless @json.include?('description')
end

def createManifest
Expand Down

0 comments on commit 50f9951

Please sign in to comment.