Skip to content
Browse files

various documentation updates

  • Loading branch information...
1 parent b9ccc89 commit 709c0b34e7ad2d39633b0c655d24f6f197a1d3db @arirusso arirusso committed Sep 13, 2012
Showing with 7 additions and 8 deletions.
  1. +3 −3 README.md
  2. +4 −5 examples/simple.rb
View
6 README.md
@@ -93,16 +93,16 @@ key_pem = "path/to/a/key.pem"
pass_phrase = "somethingsomething"
cert_pem = "path/to/a/certificate.pem"
-# Create the signing
+# Create a Signing object
signing = Passifier::Signing.new(key_pem, pass_phrase, cert_pem)
```
### Generate!
-Now it's time to create your pass!
+Now it's time to create your pass.
```ruby
-Passifier::Pass.create_archive("readme.pkpass", serial, spec, images, signing)
+Passifier::Pass.generate("readme.pkpass", serial, spec, images, signing)
```
Passifier will have created the file `readme.pkpass` for you. When opened in Passbook, that pass looks something like:
View
9 examples/simple.rb
@@ -69,19 +69,18 @@
pass_phrase = File.read("../test/assets/signing/pass_phrase.txt").strip.lstrip # you can just replace this with a string if you want
cert_pem = "../test/assets/signing/certificate/certificate.pem"
+# Create a signing object
+signing = Passifier::Signing.new(key_pem, pass_phrase, cert_pem)
+
#
#
# Now, generate the pass!
#
#
-# Create the signing
-#
-signing = Passifier::Signing.new(key_pem, pass_phrase, cert_pem)
-
# Create the pass archive
output_file = "./simple.pkpass"
-Passifier::Pass.create_archive(output_file, serial, spec, images, signing)
+Passifier::Pass.generate(output_file, serial, spec, images, signing)
# Finished!
puts "Finished generating the pass archive: #{output_file}"

0 comments on commit 709c0b3

Please sign in to comment.
Something went wrong with that request. Please try again.