etherpad-lite 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ ** RELEASE 0.0.3 (09/06/2011) **
2
+
3
+ * Added Instance#get_session
4
+ * Bugfixes to sessions
5
+
1
6
  ** RELEASE 0.0.2 (09/05/2011) **
2
7
 
3
8
  * Bugfix to Pad#private=, documentation updates
@@ -87,6 +87,11 @@ module EtherpadLite
87
87
  Author.create self, options
88
88
  end
89
89
 
90
+ # Returns a Session (presumed to already exist).
91
+ def get_session(session_id)
92
+ Session.new self, session_id
93
+ end
94
+
90
95
  def instance; self; end
91
96
  end
92
97
  end
@@ -44,7 +44,7 @@ module EtherpadLite
44
44
 
45
45
  # Returns true if the session is not expired
46
46
  def valid?
47
- valid_until < Time.now.to_i
47
+ valid_until > Time.now.to_i
48
48
  end
49
49
 
50
50
  # Returns true if the session is expired
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jordan Hollinger
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-09-05 00:00:00 -04:00
17
+ date: 2011-09-06 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies: []
20
20