test/sync.rb in docraptor-0.0.3 vs test/sync.rb in docraptor-0.1.0

- old
+ new

@@ -1,12 +1,16 @@ -#!/usr/bin/env ruby require "bundler/setup" Bundler.require DocRaptor.configure do |dr| - dr.username = "YOUR_API_KEY_HERE" - dr.debugging = true + dr.username = "YOUR_API_KEY_HERE" + # dr.debugging = true end -doc_api = DocRaptor::ClientApi.new +$docraptor = DocRaptor::ClientApi.new -response = doc_api.create_doc(test: true, document_content: "<html><body>Swagger Ruby</body></html>", name: "swagger-ruby.pdf", document_type: "pdf") +$docraptor.create_doc( + test: true, + document_content: "<html><body>Hello from Ruby</body></html>", + name: "ruby-sync.pdf", + document_type: "pdf", +)