### Installing Postmark Gem Globally via Command Line Source: https://github.com/activecampaign/postmark-gem/blob/main/README.md This command demonstrates how to install the Postmark Ruby gem directly from the command line without using Bundler. Executing `gem install postmark` downloads and installs the gem globally, making it accessible for any Ruby script on the system. This method is suitable for standalone scripts or environments where Bundler is not utilized. ```Bash gem install postmark ``` -------------------------------- ### Installing Postmark Gem with Bundler Source: https://github.com/activecampaign/postmark-gem/blob/main/README.md This snippet shows how to include the Postmark Ruby gem in a project's `Gemfile` for use with Bundler. Adding this line and running `bundle install` integrates the gem into the project's dependency management system, making it available for use within the application. This is the standard installation method for Rails and other Bundler-managed Ruby projects. ```Ruby gem 'postmark' ``` -------------------------------- ### Releasing Postmark Gem Version with Rake Source: https://github.com/activecampaign/postmark-gem/blob/main/RELEASE.md This Rake command automates the release process for the Postmark gem. It pushes the current branch to GitHub with a version tag and publishes the gem to RubyGems, using the version specified in `lib/postmark/version.rb`. Users of Bundler 1.17 might experience a hidden OTP prompt after tagging, requiring manual OTP entry. ```Ruby rake release ``` -------------------------------- ### Configuring Postmark Response Parser in Ruby Source: https://github.com/activecampaign/postmark-gem/blob/main/README.md This snippet demonstrates how to explicitly set the JSON parser used by the Postmark Ruby gem. It allows developers to choose between ":Json" (built-in Ruby JSON), ":ActiveSupport", or ":Yajl" to optimize performance or integrate with existing libraries. This configuration ensures the gem uses the preferred JSON library for parsing API responses. ```Ruby Postmark.response_parser_class = :Json # :ActiveSupport or :Yajl are also supported. ``` -------------------------------- ### Controlling Postmark Deprecation Behavior in Ruby Source: https://github.com/activecampaign/postmark-gem/blob/main/README.md These snippets illustrate how to configure the deprecation behavior for the Postmark Ruby gem. Setting `Postmark::Deprecations.behavior` to `:silence` suppresses warnings, while `:raise` converts them into exceptions. This allows developers to manage how the application responds to deprecated features, aiding in debugging or maintaining a clean console output. ```Ruby Postmark::Deprecations.behavior = :silence Postmark::Deprecations.behavior = :raise ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.