发行 1.6版本

master v1.6
dengsgo 2019-01-19 17:30:33 +08:00
parent 51d5c22a7c
commit aa27fa263a
4 changed files with 24 additions and 12 deletions

View File

@ -1,3 +1,15 @@
### Release v1.6
2019.01.19
- 修复 http 通知失败导致进程崩溃
- 增加 includeDirs 参数规则验证
- 修改 delayMillSecond 默认值,2000
- 增加 贡献者 @jason-gao
- 优化 log
### Release v1.5
2019.01.03

View File

@ -28,8 +28,8 @@ go version >=1.10,推荐 1.11
### 下载二进制文件
Github: [正式版 v1.5](https://github.com/dengsgo/fileboy/releases)
Gitee: [正式版 v1.5](https://gitee.com/dengsgo/fileboy/releases)
Github: [正式版 v1.6](https://github.com/dengsgo/fileboy/releases)
Gitee: [正式版 v1.6](https://gitee.com/dengsgo/fileboy/releases)
下载已经编译好的对应平台二进制文件,重命名为`fileboy`, 加入系统 Path 中即可。
@ -111,7 +111,7 @@ command:
- go version
- go env
# 文件变更后命令在xx毫秒后才会执行单位为毫秒
# 文件变更后命令在xx毫秒后才会执行单位为毫秒
# 一个变更事件(A)如果在定义的延迟时间(t)内,又有新的文件变更事件(B)那么A会取消执行。
# B及以后的事件均依次类推直到事件Z在t内没有新事件产生Z 会执行
# 合理设置延迟时间,将有效减少冗余和重复任务的执行
@ -125,7 +125,7 @@ notifier:
# 请求超时 15 秒
# POST 格式:
# Content-Type: application/json;charset=UTF-8
# User-Agent: FileBoy Net Notifier v1.5
# User-Agent: FileBoy Net Notifier v1.6
# Body: {"project_folder":"/watcher-dirs","file":"test.go","changed":1546421173070433800,"ext":".go"}
# 例: http://example.com/notifier/fileboy-listener
# 不启用通知,请留空 ""
@ -163,7 +163,7 @@ notifier:
#### idea 下更改文件,为什么会执行两次或者多次 command ?
由于 idea 系列软件特殊的文件保存策略他会自动创建一些临时文件并且在需要时多次重写文件所以有时反映在文件上就是有多次的更改所以会出现这种情况。1.5版本增加了 `delayMillSecond` 参数,可以解决这个问题。
由于 idea 系列软件特殊的文件保存策略他会自动创建一些临时文件并且在需要时多次重写文件所以有时反映在文件上就是有多次的更改所以会出现这种情况。1.5之后的版本增加了 `delayMillSecond` 参数,可以解决这个问题。
#### filegirl.yaml 里面的 command 不支持复杂的命令吗?

View File

@ -60,7 +60,7 @@ func (n *NetNotifier) dispatch(params *postParams) {
return
}
req.Header.Set("Content-Type", "application/json;charset=UTF-8")
req.Header.Set("User-Agent", "FileBoy Net Notifier v1.5")
req.Header.Set("User-Agent", "FileBoy Net Notifier v1.6")
resp, err := client.Do(req)
if err != nil {
log.Println(PreError, "notifier call failed. err:", err)

12
raw.go
View File

@ -47,7 +47,7 @@ command:
- go version
- go env
# xx
# xx
# (A)(t)(B)A
# BZtZ
#
@ -61,10 +61,10 @@ notifier:
# 15
# POST :
# Content-Type: application/json;charset=UTF-8
# User-Agent: FileBoy Net Notifier v1.5
# User-Agent: FileBoy Net Notifier v1.6
# Body: {"project_folder":"/watcher-dirs","file":"test.go","changed":1546421173070433800,"ext":".go"}
# : http://example.com/notifier/fileboy-listener
#
# ""
callUrl: ""
`
@ -104,13 +104,13 @@ var logo = `
_____ _ | | _____ ____) ) | | | |___| |
| ___) | | | | | ___) | __ (| | | |\_____/
| | _| |_| |_____| |_____| |__) ) |___| | ___
|_| (_____)_______)_______)______/ \_____/ (___) V1.5
|_| (_____)_______)_______)______/ \_____/ (___) V1.6
`
var statement = `Dengsgo [dengsgo@gmail.com] Open Source with MIT License`
var versionDesc = `
Version fileboy: v1.5 filegirl: v` + strconv.Itoa(Version) + `
Released 2019.1.3
Version fileboy: v1.6 filegirl: v` + strconv.Itoa(Version) + `
Released 2019.1.19
Licence MIT
Author dengsgo [dengsgo@gmail.com]
Website https://github.com/dengsgo/fileboy