Skip to content

Commit f985b03

Browse files
committed
Merge branch 'develop'
2 parents 61e5447 + 6a5177c commit f985b03

File tree

12 files changed

+58
-22
lines changed

12 files changed

+58
-22
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,13 @@ docs/_
4545
#VirtualEnv
4646
.Python
4747
include/
48+
Scripts/
49+
pyvenv.cfg
4850

4951
werobot_session.db
5052

5153
.coveralls.yml
54+
5255
werobot_session
56+
pip-selfcheck.json
57+

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ python:
33
- 2.6
44
- 2.7
55
- 3.3
6+
- 3.4
67
- pypy
78

89
services:

docs/_templates/sidebarintro.html

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +0,0 @@
1-
<h3>关于</h3>
2-
WeRoBot 是一个高中生利用闲暇时间写成的微信公共平台开发框架。如果你喜欢 WeRoBot ,请考虑捐助:
3-
<ul>
4-
<li><a href="https://www.gittip.com/whtsky/">GitTip</a></li>
5-
</ul>
6-
7-
<h3>帮助</h3>
8-
如果你在使用过程中有任何建议或者疑惑,欢迎<a href="mailto:whtsky@gmail.com">给我发信</a>

docs/changelog.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changelog
22
=============
33

4+
Version 0.6.1
5+
----------------
6+
7+
+ Fix wrong URL in ``upload_media``
8+
+ Add VideoMessage
9+
410
Version 0.6.0
511
----------------
612

docs/deploy.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
def echo(message):
1414
return 'Hello World!'
1515

16-
robot.run(server='gevent')
16+
robot.run(server='gevent', port=12233)
1717

1818
server 支持以下几种:
1919

@@ -77,11 +77,11 @@ server 支持以下几种:
7777
location / {
7878
proxy_pass_header Server;
7979
proxy_redirect off;
80-
proxy_pass http://127.0.0.1:8888;
80+
proxy_pass http://127.0.0.1:12233;
8181
}
8282
}
8383

84-
.. note:: 在这个例子中, WeRoBot 的端口号为8888。你应该在微信管理后台中将服务器地址设为 ``http://example.com`` 。
84+
.. note:: 在这个例子中, WeRoBot 的端口号为 12233。你应该在微信管理后台中将服务器地址设为 ``http://example.com`` 。
8585

8686
在SAE上部署
8787
-----------------

docs/messages.rst

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
消息
22
==========
3-
目前WeRoBot共有以下几种Message: `TextMessage` , `ImageMessage` , `LocationMessage` , `EventMessage` , `VoiceMessage` [3]_ 和 `UnknownMessage` 。他们都继承自 WeChatMessage 。
43

54
公共属性
65
--------------
@@ -11,8 +10,8 @@
1110
name value
1211
======== ===================================
1312
id 消息id,64位整型 [2]_
14-
target 信息的目标用户。通常是机器人用户。
15-
source 信息的来源用户。通常是发送信息的用户。
13+
target 开发者账号( OpenID )
14+
source 发送方账号( OpenID )
1615
time 信息发送的时间,一个UNIX时间戳。
1716
raw 信息的原始 XML 格式
1817
======== ===================================
@@ -92,11 +91,24 @@ VoiceMessage的属性:
9291
name value
9392
============ =====================================
9493
type 'voice'
95-
media_id 微信内部的一个文件ID。
94+
media_id 消息媒体 ID
9695
format 声音格式
97-
recognition 未公开字段,猜测为语音识别后的文字。
96+
recognition 语音识别结果
9897
============ =====================================
9998

99+
VideoMessage
100+
--------------------
101+
102+
VideoMessage:
103+
104+
================ =====================================
105+
name value
106+
================ =====================================
107+
type 'video'
108+
media_id 消息媒体 ID
109+
thumb_media_id 视频缩略图媒体 ID
110+
=============== =====================================
111+
100112
UnknownMessage
101113
---------------
102114

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
bottle==0.11.6
2-
requests==2.2.1
3-
six==1.5.2
1+
bottle
2+
requests
3+
six

setup.cfg

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[aliases]
2-
release = sdist --formats=zip,gztar register upload
2+
release = sdist --formats=zip,gztar bdist_wheel register upload
3+
4+
[bdist_wheel]
5+
universal = 1

setup.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@
2828
'Programming Language :: Python :: 2.6',
2929
'Programming Language :: Python :: 2.7',
3030
'Programming Language :: Python :: 3.3',
31+
'Programming Language :: Python :: 3.4',
32+
'Programming Language :: Python :: 3.3',
33+
'Programming Language :: Python :: Implementation :: CPython',
34+
'Programming Language :: Python :: Implementation :: PyPy',
35+
'Intended Audience :: Developers',
36+
'Topic :: Software Development :: Libraries',
37+
'Topic :: Software Development :: Libraries :: Python Modules',
38+
'Topic :: Utilities',
3139
],
3240
tests_require=['nose'],
3341
test_suite='nose.collector',

werobot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '0.6.0'
1+
__version__ = '0.6.1'
22
__author__ = 'whtsky'
33
__license__ = 'MIT'
44

0 commit comments

Comments
 (0)