Commit Graph

322 Commits

Author SHA1 Message Date
lionsoul 300d631caf Merge pull request #66 from Maledong/NeedDispose
[Fix] Add "Disposible" interface for final release of resouces
2018-07-30 11:31:18 +08:00
MaleDong fb564c79e5 [Fix] Add "Disposible" interface for final release of resouces
`_search` should release resouces because the file state is still open.
2018-07-30 11:21:31 +08:00
lionsoul 235cd0388c Merge pull request #65 from Maledong/ChangeToTask
[Update] Refactor codes according to RocherHong's changes
2018-07-30 10:56:10 +08:00
MaleDong 614ced34e4 [Update] Refactor codes according to RocherHong's changes
1) Considering using xUnit for UnitTest, remove my unit tests.
2) Remove useless `async`, because `async` is just the wrapper of `Task`.
3) Modify unit tests to be sure that the values MUST BE equal to each other when the IP is the same.
2018-07-30 10:48:30 +08:00
lionsoul ca3997f822 Merge pull request #61 from Maledong/master
New Feature of async for Nodejs, Refactor of codes in node.js
2018-07-30 10:41:23 +08:00
lionsoul d1c443f934 Fix the conflicts 2018-07-30 10:39:15 +08:00
lionsoul d239a43fa5 Merge pull request #63 from RocherKong/master
Code Refactoring
2018-07-30 10:26:21 +08:00
MaleDong 09a6d60620 Change from `async Task` to `Task`
Because the async is the wrapper of Task, we don't need to use async
again.
2018-07-30 09:56:25 +08:00
RocherKong 11f527b207 1.CodeStandardized 2.Support Netfx4.5 3.TestStandardized 2018-07-30 00:31:49 +08:00
Rocher 4120c4e9c8 Merge pull request #2 from lionsoul2014/master
merge newest
2018-07-30 00:27:46 +08:00
MaleDong 35fc3cbf23 Refactor of codes in node.js
1) Add async method: `binarySearch` and `btreeSearch`.
2) Refactor of tests by putting them into `tests` folder.
3) Create several new tests in details.
4) Remove useless and reformat codes to be clear.
5) Remove useless snapshots, because they can be recreated when you run `npm run test`.
2018-07-29 20:02:14 +08:00
lionsoul 0a7b2e225f Merge pull request #62 from Maledong/RefactorCSharp
Refactor of CSharp
2018-07-28 15:32:50 +08:00
MaleDong 23dbb5ab2c Refactor of CSharp:
1) Add `Async` methods.
2) Remove uesless variables, codes.
3) Remove ConsoleApp and use UnitTest instead.
4) Add README.md instead.
2018-07-20 13:57:32 +08:00
Rocher 05bc534d87 Merge pull request #1 from lionsoul2014/master
update to newest
2018-07-17 15:32:37 +08:00
lionsoul af12f97152 Merge pull request #57 from biluohc/master
Rust: 0.2.0, use std::net::Ipaddr and update Error.
2018-07-03 20:04:22 +08:00
biluohc 1605a3d9a5 Rust: 0.2.0, use std::net::Ipaddr and update Error. 2018-07-03 15:53:16 +08:00
dongyado 52bede553d update php_extension client intro file 2018-07-03 15:27:33 +08:00
dongyado 202f86eba7 add new author and email for nodejs binding client 2018-07-03 15:17:47 +08:00
Monster Slayer a823a70326 Merge pull request #50 from leeching/refactor/nodejs
refactor(nodejs): write nodejs script in javascript way
2018-07-03 15:14:41 +08:00
lionsoul 0aacd39882 Merge pull request #55 from biluohc/master
add rust implement.
2018-07-03 10:55:40 +08:00
leeching b705253664 feat: add destroy method for backward compatibility 2018-07-03 10:07:25 +08:00
leeching 7a020f52aa feat(nodejs): add create static method 2018-07-03 09:48:41 +08:00
leeching c7104902e3 refactor(nodejs): write nodejs script in javascript way 2018-07-03 09:48:41 +08:00
biluohc 42a6d37c43 add a example 2018-07-02 23:04:46 +08:00
biluohc 5287df2fe7 use workspace 2018-07-02 22:17:10 +08:00
biluohc 8a48d41657 add rust implement. 2018-06-30 16:16:00 +08:00
lionsoul ddb815aab6 Merge pull request #54 from Insua/master
fix issuse golang执行测试报错 #29
2018-06-30 10:40:37 +08:00
insua e70d1e473e fix(move golang package in directory and typo in readme): 2018-06-29 16:49:38 +08:00
lionsoul 7fbe737e92 Merge pull request #52 from felixonmars/patch-1
Fix some typos in Ip2Region.class.php
2018-06-28 10:51:19 +08:00
Felix Yan c9bf99d07f Fix some typos in Ip2Region.class.php 2018-06-28 02:00:05 +08:00
dongyado 22bd52fd65 keep php class and php_extention return data key same, we change php_extension return data key : cityId to city_id 2018-06-27 10:44:29 +08:00
lionsoul dfca3494ad Merge pull request #48 from leeching/fix/nodejs-var
remove unnecessary var
2018-06-26 17:34:03 +08:00
lionsoul 8b6e67f1d6 Merge pull request #49 from leeching/fix/nodejs-snapshot
test(nodejs): update snapshot
2018-06-26 17:33:08 +08:00
leeching 12dd913be4 test(nodejs): update snapshot 2018-06-26 17:10:56 +08:00
leeching dbcb33f608 remove unnecessary var 2018-06-26 16:26:00 +08:00
lionsoul ae6ae1cfe2 Merge pull request #47 from jwcn/master
重命名 php 测试脚本
2018-06-26 12:37:00 +08:00
Wei.Jiang ac63e52851 Merge pull request #1 from jwcn/jwcn-patch-1
重命名 php 测试脚本
2018-06-26 11:06:46 +08:00
Wei.Jiang d0c5ea05b6 重命名 php 测试脚本
重命名 php 测试脚本,与 README 和其他语言脚本名保持一致
2018-06-26 11:05:48 +08:00
lionsoul 4624e421b2 Merge pull request #46 from WoShiSunWuKong/patch-1
add nodejs sample
2018-06-26 10:09:09 +08:00
我是孙悟空 0c3f199116 add nodejs sampale 2018-06-25 12:59:52 +08:00
lionsoul 34043b50e1 fix the region and re-generate the ip2region.db file 2018-06-19 17:38:33 +08:00
dongyado 9527177a91 update php_extension install guides 2018-05-17 12:11:13 +08:00
lionsoul 3cf3f0cc36 Merge pull request #44 from Chunlin-Li/fix-binding-nodejs
fix: ReferenceError: m is not defined
2018-05-17 09:20:26 +08:00
Chunlin Li d8fcf0a31e fix: ReferenceError: m is not defined 2018-05-16 19:01:17 +08:00
lionsoul 55c3851872 Ignore the testSearch generated by Makefile 2018-04-09 09:31:48 +08:00
lionsoul 171d9319c5 Merge pull request #41 from helloKaiDing/master
Makefile for binding/c with ip2region.db auto generate.
2018-04-09 09:28:45 +08:00
helloKaiDing 174e4a46db Makefile for binding/c
This is an Makefile for the binding/c program, can use to generate the db file ip2config.db  and the test program testSearcher, can be very convient for the new starter.
2018-04-08 17:23:03 +08:00
lionsoul 0bc2060b31 Merge pull request #39 from panjunjie/patch-1
Update README.md
2018-03-30 00:39:55 +08:00
Jack a784a0295e Update README.md
更改 markdow h 标签错误格式!
2018-03-29 19:04:48 +08:00
lionsoul 2f26c9bc71 Update the ip data to version 2018/03/26 2018-03-27 14:38:33 +08:00