lib/unsplash/configuration.rb in unsplash-1.5.2 vs lib/unsplash/configuration.rb in unsplash-1.5.3

- old
+ new

@@ -1,8 +1,8 @@ module Unsplash # :nodoc: class Configuration # :nodoc: - attr_accessor :application_id + attr_accessor :application_access_key attr_accessor :application_secret attr_accessor :application_redirect_uri attr_accessor :logger attr_accessor :utm_source attr_writer :test @@ -12,9 +12,18 @@ @logger = Logger.new(STDOUT) end def test? !!@test + end + + def application_id=(key) + logger.warn "Configuring application_id is deprecated. Use application_access_key." + self.application_access_key = key + end + + def application_id + application_access_key end end end \ No newline at end of file