From d0b280eff43382512fba9d6917411de892b3a909 Mon Sep 17 00:00:00 2001 From: paul Date: Thu, 20 Aug 2015 11:09:54 +0800 Subject: [PATCH 1/4] remove vendor/OCHamcrest submodule --- .gitmodules | 3 --- Vendor/OCHamcrest | 1 - 2 files changed, 4 deletions(-) delete mode 160000 Vendor/OCHamcrest diff --git a/.gitmodules b/.gitmodules index 689259e..73dffc2 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,3 @@ -[submodule "Vendor/OCHamcrest"] - path = Vendor/OCHamcrest - url = http://github.com/pivotal/OCHamcrest.git [submodule "Vendor/TouchJSON"] path = Vendor/TouchJSON url = http://github.com/mrevilme/TouchJSON.git diff --git a/Vendor/OCHamcrest b/Vendor/OCHamcrest deleted file mode 160000 index 5fc199f..0000000 --- a/Vendor/OCHamcrest +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 5fc199f2191dd9eb64fc051e0c6c660f9cec41a5 From 602f84c444432e142af4089b79c8a56d2bd2ee91 Mon Sep 17 00:00:00 2001 From: paul Date: Thu, 20 Aug 2015 11:12:59 +0800 Subject: [PATCH 2/4] Revert "remove vendor/OCHamcrest submodule" This reverts commit d0b280eff43382512fba9d6917411de892b3a909. --- .gitmodules | 3 +++ Vendor/OCHamcrest | 1 + 2 files changed, 4 insertions(+) create mode 160000 Vendor/OCHamcrest diff --git a/.gitmodules b/.gitmodules index 73dffc2..689259e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ +[submodule "Vendor/OCHamcrest"] + path = Vendor/OCHamcrest + url = http://github.com/pivotal/OCHamcrest.git [submodule "Vendor/TouchJSON"] path = Vendor/TouchJSON url = http://github.com/mrevilme/TouchJSON.git diff --git a/Vendor/OCHamcrest b/Vendor/OCHamcrest new file mode 160000 index 0000000..5fc199f --- /dev/null +++ b/Vendor/OCHamcrest @@ -0,0 +1 @@ +Subproject commit 5fc199f2191dd9eb64fc051e0c6c660f9cec41a5 From 55a2328279f09ca309f72d88883adb4c56f2b59e Mon Sep 17 00:00:00 2001 From: paul Date: Thu, 20 Aug 2015 11:16:39 +0800 Subject: [PATCH 3/4] update OCHamcrest submodule to latest --- .gitmodules | 2 +- Vendor/OCHamcrest | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitmodules b/.gitmodules index 689259e..4f7e64b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,6 @@ [submodule "Vendor/OCHamcrest"] path = Vendor/OCHamcrest - url = http://github.com/pivotal/OCHamcrest.git + url = https://github.com/hamcrest/OCHamcrest.git [submodule "Vendor/TouchJSON"] path = Vendor/TouchJSON url = http://github.com/mrevilme/TouchJSON.git diff --git a/Vendor/OCHamcrest b/Vendor/OCHamcrest index 5fc199f..d7c0f55 160000 --- a/Vendor/OCHamcrest +++ b/Vendor/OCHamcrest @@ -1 +1 @@ -Subproject commit 5fc199f2191dd9eb64fc051e0c6c660f9cec41a5 +Subproject commit d7c0f5509b0b7bbcdcbd44c925ec6d19b924e0ba From 5eff1874c748a960fbf1081073aeda1235d8bc99 Mon Sep 17 00:00:00 2001 From: Paul Chou Date: Sat, 29 Oct 2016 02:06:41 +0800 Subject: [PATCH 4/4] fix post with payload should use post, not put --- Classes/LRRestyResource.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/LRRestyResource.m b/Classes/LRRestyResource.m index 1c98415..a59a9a2 100644 --- a/Classes/LRRestyResource.m +++ b/Classes/LRRestyResource.m @@ -133,7 +133,7 @@ - (void)post:(LRRestyResourceResponseBlock)responseBlock; - (void)post:(id)payload callback:(LRRestyResourceResponseBlock)responseBlock; { __block LRRestyResource *blockResource = [self retain]; - [restClient put:[URL absoluteString] payload:payload headers:nil withBlock:^(LRRestyResponse *response){ + [restClient post:[URL absoluteString] payload:payload headers:nil withBlock:^(LRRestyResponse *response){ responseBlock(response, blockResource); [blockResource release]; }];