etherpad-lite 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ ** RELEASE 0.2.2 (2013-01-20) **
2
+
3
+ * Support for Etherpad Lite API v1.2.1
4
+
1
5
  ** RELEASE 0.2.1 (2012-12-13) **
2
6
 
3
7
  * Support for the Etherpad Lite 1.2 release
@@ -13,7 +13,7 @@ See {github.com/ether/etherpad-lite}[https://github.com/ether/etherpad-lite] for
13
13
  require 'etherpad-lite'
14
14
 
15
15
  # Connect to your Etherpad Lite instance
16
- ether = EtherpadLite.connect('http://etherpad-lite.example.com', 'the api key', 1.1)
16
+ ether = EtherpadLite.connect('http://etherpad-lite.example.com', 'the api key', '1.2.1')
17
17
 
18
18
  # Get a Pad (or create one if it doesn't exist)
19
19
  pad = ether.pad('my first etherpad lite pad')
@@ -20,6 +20,16 @@ module EtherpadLite
20
20
  @client = Client.new(url_or_port, api_key_or_file, api_version)
21
21
  end
22
22
 
23
+ # Returns an array of all pad IDs
24
+ def pad_ids
25
+ @client.listAllPads[:padIDs]
26
+ end
27
+
28
+ # Returns an array of all Pad objects
29
+ def pads
30
+ pad_ids.map { |id| Pad.new self, id }
31
+ end
32
+
23
33
  # Returns, creating if necessary, a Group mapped to your foreign system's group
24
34
  def group(mapper)
25
35
  create_group(:mapper => mapper)
@@ -1,4 +1,4 @@
1
1
  module EtherpadLite
2
2
  # The library version
3
- VERSION = '0.2.1'
3
+ VERSION = '0.2.2'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: etherpad-lite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-13 00:00:00.000000000 Z
12
+ date: 2013-01-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client