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 +4 -0
- data/README.rdoc +1 -1
- data/lib/etherpad-lite/models/instance.rb +10 -0
- data/lib/etherpad-lite/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
@@ -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)
|
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.
|
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:
|
12
|
+
date: 2013-01-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|