lib/flayyer.rb in flayyer-1.0.0 vs lib/flayyer.rb in flayyer-1.1.0

- old
+ new

@@ -1,7 +1,7 @@ -require "flayyer/version" -require "uri" +require 'flayyer/version' +require 'uri' module Flayyer class Error < StandardError; end class FlayyerURL @@ -30,17 +30,17 @@ end # Create a https://FLAYYER.com string. # If you are on Ruby on Rails please use .html_safe when rendering this string into the HTML def href - raise Error.new("Missing 'tenant' property") if @tenant.nil? - raise Error.new("Missing 'deck' property") if @deck.nil? - raise Error.new("Missing 'template' property") if @template.nil? + raise Error.new('Missing "tenant" property') if @tenant.nil? + raise Error.new('Missing "deck" property') if @deck.nil? + raise Error.new('Missing "template" property') if @template.nil? if @version.nil? - "https://flayyer.host/v2/#{@tenant}/#{@deck}/#{@template}.#{@extension}?#{self.querystring}" + "https://flayyer.io/v2/#{@tenant}/#{@deck}/#{@template}.#{@extension}?#{self.querystring}" else - "https://flayyer.host/v2/#{@tenant}/#{@deck}/#{@template}.#{@version}.#{@extension}?#{self.querystring}" + "https://flayyer.io/v2/#{@tenant}/#{@deck}/#{@template}.#{@version}.#{@extension}?#{self.querystring}" end end end # A compatible qs stringify/parse (https://github.com/ljharb/qs)