Sha256: c86d79cf19481d8de1967f5b0dfebbb67a5bef762768f4d35e5c890581574e88

Contents?: true

Size: 880 Bytes

Versions: 3

Compression:

Stored size: 880 Bytes

Contents

# coding: utf-8
require 'spotify'
require 'hallon/ext/spotify'
require 'hallon/ext/ffi'

require 'hallon/synchronizable'
require 'hallon/observable'
require 'hallon/linkable'

require 'hallon/version'
require 'hallon/error'
require 'hallon/session'
require 'hallon/link'
require 'hallon/user'
require 'hallon/image'

# The Hallon module wraps around all Hallon objects to avoid polluting
# the global namespace. To start using Hallon, you most likely want to
# be looking for the documentation on {Hallon::Session}.
module Hallon
  # @see Spotify::API_VERSION
  API_VERSION = Spotify::API_VERSION

  # A regex that matches all Spotify URIs
  #
  # @example
  #   Hallon::URI === "spotify:user:burgestrand" # => true
  URI = /(spotify:(?:
    (?:artist|album|track|user:[^:]+:playlist):[a-zA-Z0-9]+
    |user:[^:]+
    |search:(?:[-\w$\.+!*'(),]+|%[a-fA-F0-9]{2})+
    ))
  /x
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hallon-0.2.0 lib/hallon.rb
hallon-0.1.1 lib/hallon.rb
hallon-0.1.0 lib/hallon.rb