Sha256: 306e44a3a6a1ba107e6fd67fd2b75af4d21689bd1a7f17a792c01ead5ba931f6

Contents?: true

Size: 1.22 KB

Versions: 1

Compression:

Stored size: 1.22 KB

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/base'
require 'hallon/enumerator'
require 'hallon/session'
require 'hallon/link'
require 'hallon/user'
require 'hallon/image'
require 'hallon/track'
require 'hallon/album'
require 'hallon/artist'
require 'hallon/toplist'

require 'hallon/album_browse'
require 'hallon/artist_browse'
require 'hallon/player'
require 'hallon/search'

# 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

  # Spotify API build.
  #
  # @see Spotify#api_build
  API_BUILD = Spotify.build_id

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hallon-0.8.0 lib/hallon.rb