Sha256: a01c3e9c8a72c17aeef1ddd67601592effcda69d4daa7299895a54bccf0200af

Contents?: true

Size: 548 Bytes

Versions: 12

Compression:

Stored size: 548 Bytes

Contents

module Octokit
  class Client
    module Timelines
      def timeline(options={})
        warn 'DEPRECATED: Please use Octokit.public_events instead.'
        path = "/timeline.json"
        get(path, options, 2, false)
      end

      def user_timeline(username=login, options={})
        warn 'DEPRECATED: Please use Octokit.user_events instead.'
        if authenticated?
          path = "/#{username}.private.json"
        else
          path = "/#{username}.json"
        end
        get(path, options, 2, false)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
octokit-1.4.0 lib/octokit/client/timelines.rb
octokit-1.3.0 lib/octokit/client/timelines.rb
octokit-1.2.1 lib/octokit/client/timelines.rb
octokit-1.2.0 lib/octokit/client/timelines.rb
octokit-1.1.1 lib/octokit/client/timelines.rb
octokit-1.1.0 lib/octokit/client/timelines.rb
octokit-1.0.7 lib/octokit/client/timelines.rb
octokit-1.0.6 lib/octokit/client/timelines.rb
octokit-1.0.5 lib/octokit/client/timelines.rb
octokit-1.0.4 lib/octokit/client/timelines.rb
octokit-1.0.3 lib/octokit/client/timelines.rb
octokit-1.0.2 lib/octokit/client/timelines.rb