151355a790
Trying to get things to work with minetest mod security: Require is only allowed at init, with request_insecure_environment()
joenas
2017-08-07 11:46:06 +02:00
2946b55810
Make :sync() always add a "since" query parameter if available
Adrian Perez de Castro
2017-02-05 14:11:55 +01:00
be1ee939ee
Make :sync() call the API endpoint always at least once
Adrian Perez de Castro
2017-02-05 13:50:40 +01:00
ae18e3374d
Support implicitly syncing on login
Adrian Perez de Castro
2017-02-05 11:14:25 +01:00
fda9fa4e41
Return event_id from room methods that send messages
Adrian Perez de Castro
2016-10-24 17:57:57 +03:00
f420a7a8a7
CI: Correct cjson -> lua-cjson
Adrian Perez de Castro
2016-07-10 02:47:04 +03:00
e6da7d88c3
Add new client:find_room(room_id_or_alias) method
Adrian Perez de Castro
2016-07-10 02:43:50 +03:00
876ca4ccc7
CI: Install the cjson dependency
Adrian Perez de Castro
2016-07-10 02:42:48 +03:00
ed7353afc2
Import a few unit test specs for matrix.room
Adrian Perez de Castro
2016-07-10 02:39:13 +03:00
fcbcbbe8d8
detailUtfTerm: Make it play nicer with Travis-CI
Adrian Perez de Castro
2016-07-10 02:38:27 +03:00
2316b25317
Give more details on unit test output
Adrian Perez de Castro
2016-07-10 01:48:37 +03:00
0422c47178
Make room:get_alias_or_id() return the shortest alias
Adrian Perez de Castro
2016-07-10 01:45:49 +03:00
0fa555f6a8
client-cqchat.lua: Actually exit when Ctrl-D is entered
Adrian Perez de Castro
2016-07-09 01:01:31 +03:00
bb23740c1c
Beautify examples/client-cqchat.lua
Adrian Perez de Castro
2016-07-09 00:32:25 +03:00
c2de4bfd85
Add method room:get_alias_or_id()
Adrian Perez de Castro
2016-07-09 00:30:59 +03:00
eee489678b
Add (crappy) but functional interactive cqueues-based chat client
Adrian Perez de Castro
2016-07-08 21:17:41 +03:00
522908d984
Add echobot.lua example
Adrian Perez de Castro
2016-07-05 01:14:11 +03:00
b0cbf93b7e
Use a callback in client:sync() to determine when to stop the loop
Adrian Perez de Castro
2016-07-05 01:09:51 +03:00
cadda45130
Handle "join" events properly
Adrian Perez de Castro
2016-07-05 01:03:23 +03:00
bad6e6ee16
Allow passing a room object to client:join_room()
Adrian Perez de Castro
2016-07-05 01:01:34 +03:00
e51b67aef6
Fire "message" events for rooms which receive messages
Adrian Perez de Castro
2016-07-05 00:59:55 +03:00
f879cd68e6
Have matrix.client fire "left" events when leaving a room
Adrian Perez de Castro
2016-07-05 00:58:33 +03:00
a50931c3f6
Use room.client instead of room._client
Adrian Perez de Castro
2016-07-05 00:57:12 +03:00
30eec81619
Update client-send-message.lua to not do an initial sync
Adrian Perez de Castro
2016-07-04 18:34:23 +03:00
51c8eda815
Fix conversion of http.headers in Lua 5.1 and LuaJIT
Adrian Perez de Castro
2016-07-04 18:23:35 +03:00
0aa232965c
Workaround LuaSocket's lax response validation
Adrian Perez de Castro
2016-07-04 17:52:39 +03:00
43470d72d1
Add examples on how to send messages to rooms
Adrian Perez de Castro
2016-07-04 13:44:23 +03:00
fabb5330d1
First pass at client:sync()
Adrian Perez de Castro
2016-07-04 03:19:16 +03:00
02b3d880a6
Log the identifier of the batch of events being requested
Adrian Perez de Castro
2016-07-04 03:18:43 +03:00
9cd4e13310
Use xpcall() instead of pcall() to obtain tracebacks
Adrian Perez de Castro
2016-07-04 03:17:25 +03:00
c1492cd39a
Add missing string format parameter when loggign property changes
Adrian Perez de Castro
2016-07-04 03:16:46 +03:00
b861b37dbb
Fix typo "ince" -> "since" in api:sync()
Adrian Perez de Castro
2016-07-04 03:16:10 +03:00
c67a5506bf
README: Add build/coverage status badges
Adrian Perez de Castro
2016-07-03 22:57:39 +03:00
7952f15053
eventable: Fix unhooking of handlers
Adrian Perez de Castro
2016-07-03 22:55:28 +03:00
f295145331
CI: Ignore LuaRocks base directory for coverage report
Adrian Perez de Castro
2016-07-03 22:43:59 +03:00
f52aadc7c6
CI: Test also with LuaJIT 2.0 and 2.1
Adrian Perez de Castro
2016-07-03 22:38:43 +03:00
477fb65cf6
CI: Include only matrix/ subdir for code coverage report
Adrian Perez de Castro
2016-07-03 22:33:36 +03:00
76d137009b
Use busted for unit testing
Adrian Perez de Castro
2016-07-03 22:25:31 +03:00
4e9899dbb5
Simplify matrix.eventable for the common use cases
Adrian Perez de Castro
2016-07-03 22:21:33 +03:00
72060d8a32
Fix tests for matrix.eventable
Adrian Perez de Castro
2016-07-03 15:27:59 +03:00
a8ebe24d38
CI: Do nothing in "install" step
Adrian Perez de Castro
2016-07-03 15:24:12 +03:00
513aac201d
CI: Configure Travis-CI
Adrian Perez de Castro
2016-07-03 15:21:14 +03:00
9f71b6d3c5
README: Change the matrix.api example to use :sync()
Adrian Perez de Castro
2016-07-03 15:16:37 +03:00
68d6483df9
README: Add missing target links
Adrian Perez de Castro
2016-07-03 15:14:56 +03:00
ac867581d3
README: Link to examples in their subdirectory
Adrian Perez de Castro
2016-07-03 15:13:14 +03:00
a5c8560483
Example script to set the user's display name
Adrian Perez de Castro
2016-07-03 15:12:45 +03:00
03c1091742
Allow skipping the automatic sync on login/registration
Adrian Perez de Castro
2016-07-03 15:06:25 +03:00
bd811c859e
Rename matrix.factory.* -> matrix.httpclient.*
Adrian Perez de Castro
2016-07-01 05:10:22 +03:00
e128366f7f
Use eventables in matrix.client, implement a chunk of functionality
Adrian Perez de Castro
2016-07-01 05:05:50 +03:00
fc99710658
Improvements to matrix.eventable
Adrian Perez de Castro
2016-07-01 04:55:16 +03:00
99fbf8eb28
First pass at an event-based notification facilty
Adrian Perez de Castro
2016-06-30 00:24:24 +03:00
5a23cb5b85
Use the /sync endpoing instead /initialSync
Adrian Perez de Castro
2016-06-30 00:12:55 +03:00
0a58777f42
Use MATRIX_API_DEBUG_LOG environment variable
Adrian Perez de Castro
2016-06-30 00:11:18 +03:00
9fb0bed7c0
Use "[api]" as log prefix instead of "[http]"
Adrian Perez de Castro
2016-06-30 00:09:56 +03:00
4e27bedc12
README: Mention the LuaSocket/LuaSec-based HTTP client
Adrian Perez de Castro
2016-06-28 23:52:45 +03:00
daa8bfe923
Implement a LuaSocket/LuaSec-based HTTP client
Adrian Perez de Castro
2016-06-28 23:47:51 +03:00
58ff794d92
Improve loading of HTTP client factories
Adrian Perez de Castro
2016-06-28 23:44:20 +03:00
cf14c37e58
Log the HTTP client being used with each request
Adrian Perez de Castro
2016-06-28 23:22:21 +03:00
28477c4db7
Always stringigy returned HTTP status code for logging
Adrian Perez de Castro
2016-06-28 23:21:04 +03:00
724d7cdd54
Simplify HTTP client API
Adrian Perez de Castro
2016-06-28 23:16:45 +03:00
1c13a32e86
examples: Add get-user-info.lua
Adrian Perez de Castro
2016-06-23 13:41:41 +03:00
5f53ecd349
README: Add RockZ self-promotion
Adrian Perez de Castro
2016-06-23 13:40:38 +03:00
e0d49f793d
README: List requirements and LuaRocks instructions
Adrian Perez de Castro
2016-06-23 13:36:31 +03:00
3752be9a73
Add README file
Adrian Perez de Castro
2016-06-23 13:19:36 +03:00
a1cf21b839
Implement room:update_room_{topic,aliases,name}
Adrian Perez de Castro
2016-06-23 04:17:15 +03:00
56a57f2e89
Add __tostring metamethods to prototypes
Adrian Perez de Castro
2016-06-23 04:07:01 +03:00
ec288bf9fd
Make it possible to import "matrix" directly
Adrian Perez de Castro
2016-06-23 03:55:09 +03:00
cafb8724e3
Import rough implementation of matrix.client
Adrian Perez de Castro
2016-06-23 03:54:48 +03:00
6528727cff
Initial import: low-level API wrapper
Adrian Perez de Castro
2016-06-23 02:45:22 +03:00