Skip to content

Commit

Permalink
Release 0.0.3, bugfixes to Session
Browse files Browse the repository at this point in the history
  • Loading branch information
jhollinger committed Sep 6, 2011
1 parent 8eb952d commit 2fa7782
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
@@ -1,3 +1,8 @@
** RELEASE 0.0.3 (09/06/2011) **

* Added Instance#get_session
* Bugfixes to sessions

** RELEASE 0.0.2 (09/05/2011) **

* Bugfix to Pad#private=, documentation updates
Expand Down
4 changes: 2 additions & 2 deletions etherpad-lite.gemspec
@@ -1,10 +1,10 @@
Gem::Specification.new do |spec|
spec.name = 'etherpad-lite'
spec.version = '0.0.2'
spec.version = '0.0.3'
spec.summary = "A Ruby client library for Etherpad Lite"
spec.description = "etherpad-lite is a Ruby interface to Etherpad Lite's HTTP JSON API"
spec.authors = ['Jordan Hollinger']
spec.date = '2011-09-05'
spec.date = '2011-09-06'
spec.email = 'jordan@jordanhollinger.com'
spec.homepage = 'http://github.com/jhollinger/ruby-etherpad-lite'

Expand Down
5 changes: 5 additions & 0 deletions lib/etherpad-lite/models/instance.rb
Expand Up @@ -87,6 +87,11 @@ def create_author(options={})
Author.create self, options
end

# Returns a Session (presumed to already exist).
def get_session(session_id)
Session.new self, session_id
end

def instance; self; end
end
end
2 changes: 1 addition & 1 deletion lib/etherpad-lite/models/session.rb
Expand Up @@ -44,7 +44,7 @@ def valid_until

# Returns true if the session is not expired
def valid?
valid_until < Time.now.to_i
valid_until > Time.now.to_i
end

# Returns true if the session is expired
Expand Down

0 comments on commit 2fa7782

Please sign in to comment.