Skip to content

Commit

Permalink
Remove Redis.connect.
Browse files Browse the repository at this point in the history
  • Loading branch information
djanowski committed Oct 31, 2015
1 parent b2a8529 commit 895cc32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 24 deletions.
16 changes: 3 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
# 4.x (unreleased)

## Planned breaking changes:
* `Redis#client` will no longer expose the underlying `Redis::Client`;
it has not yet been determined how 4.0 will expose the underlying
functionality, but we will make every attempt to provide a final minor
release of 3.x that provides the new interfaces in order to facilitate
a smooth transition.

* Ruby 1.8.7 (and the 1.8 modes of JRuby and Rubinius) will no longer be
supported; 1.8.x entered end-of-life in June of 2012 and stopped receiving
security updates in June of 2013; continuing to support it would prevent
the use of newer features of Ruby.
# 4.0 (unreleased)

* Removed `Redis.connect`. Use `Redis.new`.

# 3.2.1

Expand Down
11 changes: 0 additions & 11 deletions lib/redis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,8 @@

class Redis

def self.deprecate(message, trace = caller[0])
$stderr.puts "\n#{message} (in #{trace})"
end

attr :client

# @deprecated The preferred way to create a new client object is using `#new`.
# This method does not actually establish a connection to Redis,
# in contrary to what you might expect.
def self.connect(options = {})
new(options)
end

def self.current
@current ||= Redis.new
end
Expand Down

0 comments on commit 895cc32

Please sign in to comment.