Skip to content
This repository has been archived by the owner on Jun 23, 2020. It is now read-only.

Commit

Permalink
updating year
Browse files Browse the repository at this point in the history
  • Loading branch information
tstachl committed Nov 23, 2016
1 parent 81e7dca commit f7272f4
Show file tree
Hide file tree
Showing 19 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion lib/desk_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
# if you have to connect to multiple Desk.com sites.
#
# @author Thomas Stachl <tstachl@salesforce.com>
# @copyright Copyright (c) 2013-2014 Salesforce.com
# @copyright Copyright (c) 2013-2016 Salesforce.com
# @license BSD 3-Clause License
#
# @example configure the {DeskApi} client
Expand Down
2 changes: 1 addition & 1 deletion lib/desk_api/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module DeskApi
# the configuration module.
#
# @author Thomas Stachl <tstachl@salesforce.com>
# @copyright Copyright (c) 2013-2014 Salesforce.com
# @copyright Copyright (c) 2013-2016 Salesforce.com
# @license BSD 3-Clause License
class Client
include DeskApi::Configuration
Expand Down
2 changes: 1 addition & 1 deletion lib/desk_api/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module DeskApi
# makes sure secrets are only readable by the client.
#
# @author Thomas Stachl <tstachl@salesforce.com>
# @copyright Copyright (c) 2013-2014 Salesforce.com
# @copyright Copyright (c) 2013-2016 Salesforce.com
# @license BSD 3-Clause License
module Configuration
extend Forwardable
Expand Down
2 changes: 1 addition & 1 deletion lib/desk_api/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module DeskApi
# {DeskApi::Client}.
#
# @author Thomas Stachl <tstachl@salesforce.com>
# @copyright Copyright (c) 2013-2014 Salesforce.com
# @copyright Copyright (c) 2013-2016 Salesforce.com
# @license BSD 3-Clause License
module Default
CONNECTION_OPTIONS = {
Expand Down
2 changes: 1 addition & 1 deletion lib/desk_api/error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module DeskApi
# {DeskApi::Error} is the base error for all {DeskApi} errors.
#
# @author Thomas Stachl <tstachl@salesforce.com>
# @copyright Copyright (c) 2013-2014 Salesforce.com
# @copyright Copyright (c) 2013-2016 Salesforce.com
# @license BSD 3-Clause License
class Error < StandardError
attr_reader :rate_limit
Expand Down
2 changes: 1 addition & 1 deletion lib/desk_api/rate_limit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module DeskApi
# responses from desk.com API.
#
# @author Thomas Stachl <tstachl@salesforce.com>
# @copyright Copyright (c) 2013-2014 Salesforce.com
# @copyright Copyright (c) 2013-2016 Salesforce.com
# @license BSD 3-Clause License
class RateLimit
def initialize(attrs = {})
Expand Down
2 changes: 1 addition & 1 deletion lib/desk_api/request/encode_dates.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module Request
# the request body. It also sets the "Content-Type" header.
#
# @author Thomas Stachl <tstachl@salesforce.com>
# @copyright Copyright (c) 2013-2014 Salesforce.com
# @copyright Copyright (c) 2013-2016 Salesforce.com
# @license BSD 3-Clause License
class EncodeDates < Faraday::Middleware
# Changes the request before it gets sent
Expand Down
2 changes: 1 addition & 1 deletion lib/desk_api/request/encode_json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module Request
# the request body. It also sets the "Content-Type" header.
#
# @author Thomas Stachl <tstachl@salesforce.com>
# @copyright Copyright (c) 2013-2014 Salesforce.com
# @copyright Copyright (c) 2013-2016 Salesforce.com
# @license BSD 3-Clause License
class EncodeJson < Faraday::Middleware
dependency 'json'
Expand Down
2 changes: 1 addition & 1 deletion lib/desk_api/request/oauth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module Request
# sign requests with an OAuth header.
#
# @author Thomas Stachl <tstachl@salesforce.com>
# @copyright Copyright (c) 2013-2014 Salesforce.com
# @copyright Copyright (c) 2013-2016 Salesforce.com
# @license BSD 3-Clause License
class OAuth < Faraday::Middleware
dependency 'simple_oauth'
Expand Down
2 changes: 1 addition & 1 deletion lib/desk_api/request/retry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module Request
# desk.com's rate limiting which are retried only once.
#
# @author Thomas Stachl <tstachl@salesforce.com>
# @copyright Copyright (c) 2013-2014 Salesforce.com
# @copyright Copyright (c) 2013-2016 Salesforce.com
# @license BSD 3-Clause License
class Retry < Faraday::Middleware
class << self
Expand Down
2 changes: 1 addition & 1 deletion lib/desk_api/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module DeskApi
# and allows you access to embedded resources.
#
# @author Thomas Stachl <tstachl@salesforce.com>
# @copyright Copyright (c) 2013-2014 Salesforce.com
# @copyright Copyright (c) 2013-2016 Salesforce.com
# @license BSD 3-Clause License
#
# @example get a cases {DeskApi::Resource}
Expand Down
4 changes: 2 additions & 2 deletions lib/desk_api/resource/download.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Resource
# like `#download`
#
# @author Thomas Stachl <tstachl@salesforce.com>
# @copyright Copyright (c) 2013-2014 Salesforce.com
# @copyright Copyright (c) 2013-2016 Salesforce.com
# @license BSD 3-Clause License
#
# @example download an attachment {DeskApi::Resource}
Expand All @@ -46,7 +46,7 @@ def download
unless resource_type == 'attachment'
raise NoMethodError, "#download is only available on attachment resources"
end

Tempfile.new(file_name).tap do |f|
f.write(@_client.get(url).body)
f.rewind
Expand Down
2 changes: 1 addition & 1 deletion lib/desk_api/resource/pagination.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Resource
# methods like `#each_page` or `#all`
#
# @author Thomas Stachl <tstachl@salesforce.com>
# @copyright Copyright (c) 2013-2014 Salesforce.com
# @copyright Copyright (c) 2013-2016 Salesforce.com
# @license BSD 3-Clause License
#
# @example search for cases {DeskApi::Resource}
Expand Down
2 changes: 1 addition & 1 deletion lib/desk_api/resource/query_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Resource
# modifiers.
#
# @author Thomas Stachl <tstachl@salesforce.com>
# @copyright Copyright (c) 2013-2014 Salesforce.com
# @copyright Copyright (c) 2013-2016 Salesforce.com
# @license BSD 3-Clause License
#
# @example set the per page param {DeskApi::Resource}
Expand Down
2 changes: 1 addition & 1 deletion lib/desk_api/resource/scrud.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Resource
# and delete functionality on the {DeskApi::Resource}
#
# @author Thomas Stachl <tstachl@salesforce.com>
# @copyright Copyright (c) 2013-2014 Salesforce.com
# @copyright Copyright (c) 2013-2016 Salesforce.com
# @license BSD 3-Clause License
#
# @example search for cases {DeskApi::Resource}
Expand Down
2 changes: 1 addition & 1 deletion lib/desk_api/response/follow_redirects.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module Response
# follows redirects automatically
#
# @author Thomas Stachl <tstachl@salesforce.com>
# @copyright Copyright (c) 2013-2014 Salesforce.com
# @copyright Copyright (c) 2013-2016 Salesforce.com
# @license BSD 3-Clause License
class FollowRedirects < Faraday::Response::Middleware
dependency 'uri'
Expand Down
2 changes: 1 addition & 1 deletion lib/desk_api/response/parse_dates.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module Response
# parses strings to dates if they look like ISO8601
#
# @author Thomas Stachl <tstachl@salesforce.com>
# @copyright Copyright (c) 2013-2014 Salesforce.com
# @copyright Copyright (c) 2013-2016 Salesforce.com
# @license BSD 3-Clause License
class ParseDates < Faraday::Response::Middleware
dependency 'time'
Expand Down
2 changes: 1 addition & 1 deletion lib/desk_api/response/parse_json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module Response
# parses the json response body
#
# @author Thomas Stachl <tstachl@salesforce.com>
# @copyright Copyright (c) 2013-2014 Salesforce.com
# @copyright Copyright (c) 2013-2016 Salesforce.com
# @license BSD 3-Clause License
class ParseJson < Faraday::Response::Middleware
dependency 'json'
Expand Down
2 changes: 1 addition & 1 deletion lib/desk_api/response/raise_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module Response
# raises errors that happen during the API request
#
# @author Thomas Stachl <tstachl@salesforce.com>
# @copyright Copyright (c) 2013-2014 Salesforce.com
# @copyright Copyright (c) 2013-2016 Salesforce.com
# @license BSD 3-Clause License
class RaiseError < Faraday::Response::Middleware
# Checks the status code and raises the error if there
Expand Down

0 comments on commit f7272f4

Please sign in to comment.